Various settings for the editor, defined at the time of initialization, or added at any time later in the program. Includes various geometric settings such as canvas dimensions and the gutter between nodes, and, in a later version of this package, more functional settings such as hiding placeholder nodes.
Sets the width of node.
Sets the width of the canvas.
Sets the height of the canvas.
Vertical distance between the bottom of a parent node and the top of its child.
Horizontal gutter between nodes.
When a node is activated, the interface centers it automatically. Sometimes, though, it is useful to move it somewhere other than the center, e.g. to accommodate a large pop-up underneath. With this configuration option, you can specify this offset, horizontal first, vertical second.
Stroke color of the lines connecting siblings.
Stroke width of the lines connecting siblings.
Enable or disable drag and drop with this boolean flag (True is enabled, which is the default value). Note that the tree can still be panned if drag and drop is disabled.
Sets a default node to be created automatically when a child placeholder is clicked. If none is specified, the placeholder is activated so that a new node may be added manually.
Set whether placeholder leaves should be displayed.
A fine-grained control version of showPlaceholderLeaves, allowing control on the display of placeholder leaves based on the contents of the node, as well as its parent and children.
Tells arborist which nodes should be clustered. Clustered nodes do not render their children, making the tree easier to understand. Use e.g. setActive to toggle clustered state on and off.
Specifies whether node connectors should extend a certain distance at root- or leaf nodes to connect to peripheral UI elements
Sets the width of node.