pivotick - v1.2.0
    Preparing search index...

    Class Edge

    Represents an edge (connection) between two nodes in a graph.

    Index

    Accessors

    Constructors

    • Create a new Edge instance.

      Parameters

      • id: string

        Unique identifier for the edge

      • from: Node

        Source node

      • to: Node

        Target node

      • Optionaldata: EdgeData

        Optional data payload for the edge

      • Optionalstyle: Partial<EdgeFullStyle>

        Optional style for the edge

      • directed: boolean | null = null
      • OptionalsyntheticTerminalNode: Node

      Returns Edge

    Methods

    • Returns SVGGElement | null

    • Returns boolean

    • Update the edge's data.

      Parameters

      Returns void

    • Convert edge to a simple JSON object representation.

      Returns Record<string, unknown>

    • Parameters

      • visible: boolean

      Returns void

    • Structured-cloneable payload for the simulation worker; endpoints reduced to ids, keeps directed.

      Returns SimulationEdgeDTO

    • Merge partial data into the current edge data.

      Parameters

      • partialData: Partial<EdgeData>

        Partial data object to merge

      Returns void

    • Merge partial style into the current edge style. Useful for updating only parts of the style.

      Parameters

      Returns void

    Properties

    directed: boolean | null
    domID: string
    from: Node
    id: string
    isCrossCluster?: boolean

    True for the subclass of synthetic edges that stand in for a real edge whose both endpoints are children of different clusters. Unlike the external→cluster synthetic edges, these are resolved as a set (one per collapse state) by ClusterDrawer.resolveCrossClusterEdges rather than the per-node toggle.

    isSynthetic?: boolean

    True if this is a synthetic edge (placeholder for collapsed cluster child)

    syntheticSourceNode?: Node

    For a cross-cluster synthetic edge: the real child the from side stands in for.

    syntheticTerminalNode?: Node

    The actual child node this synthetic edge points to (for expansion logic)

    to: Node
    visible: boolean