@samatawy/diagrams
    Preparing search index...

    Interface GuidesComputeInput

    Input required to compute guide candidates and snap results for an interaction step.

    interface GuidesComputeInput {
        diagram: DiagramView;
        nodes: INode[];
        byX: number;
        byY: number;
        downShapeId?: string;
        handle?: NodeHandle;
    }
    Index

    Properties

    diagram: DiagramView

    Diagram instance that provides nodes, layers, grid, and coordinates.

    nodes: INode[]

    Active nodes participating in move/resize interaction.

    byX: number

    Delta X from latest interaction step.

    byY: number

    Delta Y from latest interaction step.

    downShapeId?: string

    Optional down-shape id to explicitly exclude from candidate matching.

    handle?: NodeHandle

    Active interaction handle. When provided, guides are restricted to the edges that are actually moving, matching the snap behavior of pointer-up.