Function updateParents

  • 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.

    Parameters

    • node: any
    • Optional options: {
          force: boolean;
      }
      • force: boolean

        Overwrite existing parent properties

    Returns void

Generated using TypeDoc