SVGFile

Wick. SVGFile

Utility class for creating and parsing wickobject files.

Constructor

new SVGFile()

Source:

Methods

(static) fromSVGFile(svgFile, callback)

Description:
  • Create a project from a wick file.

Source:
Parameters:
Name Type Description
svgFile Blob | string

WickObject file containing object data (can be a Blob or a dataURL string)

callback function

Function called when the object is done being loaded

(static) toSVGFile(timeline, onError, callback) → {Blob}

Description:
  • Create a wick file from the project.

Source:
Parameters:
Name Type Description
timeline Wick.Timeline

the clip to create a wickobject file from

onError function

Can be 'blob' or 'dataurl'.

callback function

function to call when done

Returns:
Type
Blob