GoJS API
/ to search
    Preparing search index...

    Enumeration TreePath

    This enumeration specifies how to build a tree from the TreeNetwork. Used for TreeLayout.path.

    since

    3.0

    Index

    Enumeration Members

    Enumeration Members

    Default: 0

    Causes the value of Diagram.isTreePathToChildren to effectively choose either Destination (if true) or Source (if false).

    Destination: 1

    The children of a TreeVertex are its LayoutVertex.destinationVertexes, the collection of connected LayoutEdge.toVertexes.

    The tree roots are those TreeVertexes that have zero source edges.

    Source: 2

    The children of a TreeVertex are its LayoutVertex.sourceVertexes, the collection of connected LayoutEdge.fromVertexes.

    The tree roots are those TreeVertexes that have zero destination edges.