Global

Methods

# from(json) → {*}

Construct Pencil objects from a JSON

Parameters:
Name Type Description
json Object

Valid JSON

Source:
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

Source:
Returns:

The Pencil.js package

Type
Object

Type Definitions

# Plugin

Type:
  • Object
Properties
Name Type Description
name String

Name of the plugin

install function

Function called at use

Source: