<svg width=${width} height="500" viewBox="0 0 ${width} 500">
<text x=10 y=100>This text object is not in a group</text>
<g id="layer1">
<text x=0 y=20>This text is in Layer 1</text>
</g>
<g id="layer2" transform="translate(300,80)">
<rect x-0 y=0 fill="none" stroke="#ccc" stroke-width="1" width=1000 height=1000></rect>
<rect x=0 y=0 width=150 height=130 style="fill:red;"></rect>
<circle cx=20 cy=20 r=10 style="fill: blue;"></circle>
<text x=0 y=0>Layer 2</text>
<text x=0 y=50>notice that positions are relative to the Group's x,y</text>
</g>
<g id="layer3" transform="translate(50,300)">
<rect x-0 y=0 fill="none" stroke="#ccc" stroke-width="1" width=1000 height=1000></rect>
<rect x=0 y=0 width=50 height=80 style="fill:green;"></rect>
<circle cx=20 cy=20 r=10 style="fill: cyan;"></circle>
<text x=0 y=100>Layer 3</text>
</g>
</svg>