weasel API - v0.8.0
    Preparing search index...

    Interface SnapDep

    World-space point snapping — grid, guides, or any consumer rule.

    Sourced by <SceneCanvas> from its toolOptions.snapPoint. Actions apply it to the coords they ingest so the live preview and the committed geometry agree; insertAction snaps the drag's start and current point.

    Optional: when the dep is absent, actions treat it as identity.

    interface SnapDep {
        point(p: { x: number; y: number }): { x: number; y: number };
    }
    Index

    Methods

    Methods