Class DirectionNode<Value>

Type Parameters

  • Value = any

Hierarchy

  • DirectionNode

Constructors

Properties

_id: string | number
_layout?: Layout
_neighbors: Neighbors
_nodeFit: Fit
_paintGroups: PaintGroups
_rightToLeft: boolean
_scale: number
_siblings: Siblings
_value?: Value

Methods

  • Connects the given node to this node in the specified direction.

    If the node already has a parent, it will be disconnected. If this node already has a child in the specified direction, that child will be disconected.

    This will invalidate the layout of this node.

    Returns

    the given node

    Parameters

    Returns DirectionNode<Value>

  • Removes the child in the specified direction.

    Returns

    the disconnected node, or undefined if no node was disconnected. If this node was to be removed and this node is a root node, this node is returned.

    Parameters

    • Optional inDirection: Direction

      the direction of the child. If undefined, the node to remove is this node from its parent.

    Returns DirectionNode<any>

  • Sets a new value for this DirectionNode.

    The layout is invaidated if the value is changed.

    Returns

    the new value

    Parameters

    • newValue: Value

      the new value to use

    Returns Value

Generated using TypeDoc