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 |
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');