The publicly exported module. Exports the following methods by default, and
contains named exports of internal classes, types, and utils.
Methods
plugin(pluginFn)⚓
Register a plugin.
Parameters:
Name | Type | Description |
---|---|---|
pluginFn |
function | Imported plugin module. |
createTree(element, config)⚓
A factory function for Phylocanvas instances to enable decoration by plugins.
Parameters:
Name | Type | Description |
---|---|---|
element |
string | HTMLElement | ID or element within which to place Phylocanvas instance. |
config |
Object | Configuration object, properties are copied into the Tree object. |
Returns:
An instance of Tree.