Class: Chart

flowchart. Chart

Loads, renders and handles the chart flow

new Chart() → {Object}

Chart class

Source:
Returns:
A flowchart.Chart instance
Type
Object

Methods

getXmlObject(path) → {Object}

Loads the xml from path

Parameters:
Name Type Description
path String The xml path
Source:
Returns:
The xml object
Type
Object

listen(evt_name, params)

Callback called when passing from a block to the next one @see flowchart.EventDispatcher

Parameters:
Name Type Description
evt_name String The event name
params Object The params passed by the EventDispatcher
Properties
Name Type Description
from String The id of the previous block
next String The id of the next block
Source:
Returns:
void

run(from, id)

Renders a block

Parameters:
Name Type Description
from String The id of the previous block
id String The id of the next block
Source:
Returns:
void

start(path)

Starts the chart flow

Parameters:
Name Type Description
path String The xml path
Source:
Returns:
void