fabric.Canvas Class
Canvas class
Methods
(
String
-
[options] -
[reviver]
Returns SVG representation of canvas
Parameters:
-
[options]Object optionalOptions object for SVG output
-
[reviver]Function optionalMethod for further parsing of svg elements, called after each fabric object converted into svg representation.
Returns:
String:
SVG string
Example:
digitalsignage.com - open source docs