An example that uses the SVG DOM function getBBox()

To show what happens when an SVG object (circle in this case) is outside of the SVG "viewport"
Note that the key here is putting everything in a <g> element which we can then use the getBBox() on the specific node.


SVG width: 100 height: 100


SVG width: 100 height: 100