Set properties on each node pointing to its parent node. Required for many Treecle functions, e.g. closest(). By default it will skip nodes that already have a parent entirely, but you can set force = true to prevent that.
closest()
The node to start from
Optional
Overwrite existing parent properties
parent
Generated using TypeDoc
Set properties on each node pointing to its parent node. Required for many Treecle functions, e.g.
closest()
. By default it will skip nodes that already have a parent entirely, but you can set force = true to prevent that.