Exported SVG

SVG export

SVG export

This demo shows how to export the current view of the FoamTree visualization to the SVG format using thedrawTo() method.

The drawTo() method draws the complete visualization to the Context2D you provide. There are a number of Context2D implementations, such as svgcanvas, that capture the drawing calls and expose the corresponding SVG elements.

What's in the code?

Limitations