@samatawy/diagrams
    Preparing search index...

    Interface IConnectionAnchor

    IConnectionAnchor defines the properties of an anchor point for a connection, including the node it is attached to, the handle of the node, and optional properties for specifying the exact point on the node where the connection should attach (such as a specific point index or offsets). This interface is used to determine how connections are anchored to nodes in the diagram, allowing for flexible connection points based on the node's geometry and the desired connection style.

    interface IConnectionAnchor {
        node: string | INode;
        handle: NodeHandle;
        index?: number;
        relative: IPoint;
    }
    Index

    Properties

    node: string | INode

    The node to which the connection anchor is attached, specified by either the node's ID or a reference to the INode object.

    handle: NodeHandle

    The handle of the node that the connection is anchored to, which indicates the specific part of the node (e.g., 'n', 's', 'e', 'w', etc.) where the connection should attach.

    index?: number

    An optional index specifying a particular point on the node's geometry to anchor to, allowing for more precise connection points beyond just the handles.

    relative: IPoint