I would like to change the reference point in SVG. I have a nested SVG in another SVG. I would like the reference point to be in the middle.
html,body {
height:100%;
margin:0;
}
<svg style="width:100%;height:100%" xmlns="http://www.w3.org/2000/svg">
<g>
<svg x="30" y="200" style="width:100%;height:100%">
<rect x="3" y="0" width="1" height="68" style="stroke-width:0.5;stroke:black;fill:none" />
<rect x="7" y="0" width="1" height="68" style="stroke-width:0.5;stroke:black;fill:none" />
<rect x="0" y="71" width="11" height="9" style="stroke-width:0.5;stroke:black;fill:none" />
<rect x="3" y="83" width="1" height="68" style="stroke-width:0.5;stroke:black;fill:none" />
<rect x="7" y="83" width="1" height="68" style="stroke-width:0.5;stroke:black;fill:none" />
<rect x="4" y="61" width="3" height="30" style="stroke-width:0.5;stroke:black;fill:none" />
<rect x="1.5" y="60" width="8" height="1" style="stroke-width:0.5;stroke:black;fill:none" />
</svg>
</g>
</svg>
At the moment, the internal SVG has a point in the upper left corner. Variables X and Y specify the distance to this point.