Methods

from(json) → {*}

Construct Pencil objects from a JSON

Parameters:
NameTypeDescription
jsonObject

Valid JSON

Returns:
Type: 
*

use(plugin, optionsopt) → {Object}

Install a plugin in Pencil.js

Parameters:
NameTypeAttributesDescription
pluginPlugin

Plugin to install

optionsObject<optional>

Option passed down to the plugin

Returns:

The Pencil.js package

Type: 
Object

Type Definitions

Plugin

Type:
  • Object
Properties
NameTypeDescription
nameString

Name of the plugin

installfunction

Function called at use