svg

svg

SVG plugin constructor for Sketchable instances.

Source:

Methods

(static) create(callback) → {Sketchable}

Generate SVG.

Source:
Parameters:
Name Type Description
callback function

Callback function, executed with the SVG (string) as argument.

Returns:
Type:
Sketchable

Sketchable element.

Example
sketchableInstance.svg.create(function(contents) {
  // Do something with the SVG string.
});