@samatawy/diagrams
    Preparing search index...

    Interface SnapMatch

    A single snap match between a source point and candidate target point.

    interface SnapMatch {
        axis: SnapAxis;
        candidateId: string;
        sourcePoint: SnapPointKey;
        targetPoint: SnapPointKey;
        delta: number;
        distance: number;
    }
    Index

    Properties

    axis: SnapAxis

    Axis on which this match was computed.

    candidateId: string

    Candidate node id that produced this match.

    sourcePoint: SnapPointKey

    Source point key on the moving/resizing rectangle.

    targetPoint: SnapPointKey

    Target point key on the candidate rectangle.

    delta: number

    Signed delta required to align source and target points.

    distance: number

    Absolute distance between source and target points before snapping.