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

    Interface BuiltinToolOptions

    Per-tool option overrides for the built-in shape/lasso tools. Each entry is a narrow subset of the underlying hook's options surface — just the knobs that need consumer control under the bundle pattern.

    interface BuiltinToolOptions {
        lasso?: { mode?: LassoHitMode };
        snapPoint?: (p: { x: number; y: number }) => { x: number; y: number };
    }
    Index

    Properties

    Properties

    lasso?: { mode?: LassoHitMode }
    snapPoint?: (p: { x: number; y: number }) => { x: number; y: number }

    Snap world-space points to the active grid (or any other snap target).

    Registered as the snap dep, which insertAction applies to the drag start and current point — so the live preview and the committed geometry agree — and which the pen tool reads for its own anchor placement. Covers every drag-to-insert tool (rect / ellipse / line / polygon / star / text); freehand pencil samples are deliberately left unsnapped.