Unable to minimize and maximize Grouped node in downloaded SVG file

I am not able to minimize and maximize Grouped node data after downloading Go JS Diagram in SVG format.

I have created groups in Go JS Diagram and able to maximize and maximize groups in Chrome browser if diagram is in HTML format.

but when I am downloading Go JS Diagram in SVG Format and opened it in browser, not able to expand and minimize Groups,

What is the correct way to save the Go JS Diagram or Download the GO JS diagram?

Scenario 1 : if I am downloading already expanded GO JS Diagram in Chrome browser, then I can see Nodes under Diagrams in downloaded SVG file. that is correct.

but I am not able to minimize nodes in downloaded SVG file.

Scenario 2 : if I am downloading Go JS Diagram without expanding nodes by groups in Chrome browser, then I can’t see nodes under grouped nodes in downloaded SVG file and unable to maximize grouped nodes.

I am using this code to download GO JS diagram in SVG format.

        function makeSvg() {
            var svg = myDiagram.makeSvg({ scale: 1, background: "white" });
            var svgstr = new XMLSerializer().serializeToString(svg);
            var blob = new Blob([svgstr], { type: "image/svg+xml" });
            myCallback(blob);
        }

        function myCallback(blob)
        {
            var url = window.URL.createObjectURL(blob);
            var filename = "mySVGFile.svg";

            var a = document.createElement("a");
            a.style = "display: none";
            a.href = url;
            a.download = filename;
            if (window.navigator.msSaveBlob !== undefined)
            {
                window.navigator.msSaveBlob(blob, filename);
                return;
            }
            document.body.appendChild(a);
            requestAnimationFrame(() =>
            {
                a.click();
                //window.URL.revokeObjectURL(url);
                document.body.removeChild(a);
            });
        }


Diagram.makeSvg is just like Diagram.makeImage – it produces a rendering of the diagram (or a piece of it) at that moment.

It does not render an interactive image – there is no JavaScript in the SVG.

If you want something interactive, you have to use a user agent (DOM/CSS/JavaScript) that is running an app using the GoJS library.