Exports the shape data as SVG.

Static variables

staticSVG_STYLE_HOOK:String = "::svg_style_hook::"

A hook that an SVG exporter should use to augment shape styling produced by the getSvgShapeData method. Note that shape subclasses should include this in shape data - so an SVG exporter implementation must remove/replace this hook string to produce correct SVG files.

Static methods

staticexport (shapes:Array<ShapeResult>, width:Int, height:Int):String

Exports the shapes to an SVG image.

Parameters:

shapes

The shape data to export.

width

The width of the SVG image.

height

The height of the SVG image.

Returns:

A string representing the SVG image.

staticexportShape (shape:ShapeResult):String

Exports a single shape to SVG.

Parameters:

shape

The shape data to export.

Returns:

A string representing the SVG shape data for the shape.

staticexportShapes (shapes:Array<ShapeResult>):String

Exports an array of shapes to SVG.

Parameters:

shapes

The shape data to export.

Returns:

A string representing the SVG shape data for the shapes.

staticgetSvgNodeClose ():String

staticgetSvgNodeOpen (width:Int, height:Int):String

staticgetSvgPrelude ():String