pivotick - v0.0.1
    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

      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 { data: EdgeData; from: string; id: string; to: string }

    • 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
    to: Node