Methods
from(json) → {*}
Construct Pencil objects from a JSON
Parameters:
Name | Type | Description |
---|---|---|
json | Object | Valid JSON |
Returns:
- Type:
- *
use(plugin, optionsopt) → {Object}
Install a plugin in Pencil.js
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
plugin | Plugin | Plugin to install | |
options | Object | <optional> | Option passed down to the plugin |
Returns:
The Pencil.js package
- Type:
- Object
Type Definitions
Plugin
Type:
Properties- Object
Name | Type | Description |
---|---|---|
name | String | Name of the plugin |
install | function | Function called at use |