serializer

$.fn.sketchable.plugins. serializer

Serializer plugin constructor for jQuery Sketchable instances.

Source:

Methods

(static) load(jsonStr) → {jQuery}

Load canvas data from JSON string.

Source:
Parameters:
Name Type Description
jsonStr string

JSON data saved with $.fn.sketchable.plugins.serializer.save method.

Returns:
Type:
jQuery

jQuery sketchable element.

Example
jqueryElem.sketchable('serializer.load', jsonStr);

(static) save() → {string}

Save canvas data as JSON string.

Source:
Returns:
Type:
string
Example
var contents = jqueryElem.sketchable('serializer.save');