Field Notes
    Preparing search index...

    Interface PathToolOptions

    interface PathToolOptions {
        color?: string;
        commitTapRadiusPx?: number;
        diagonalRule?: DiagonalRule;
        feetPerCell?: number;
        footprint?: Footprint;
        rangeBands?: readonly PathRangeBand[];
        resolveStart?: (world: Point, ctx: ToolContext) => PathAnchor | null;
    }
    Index
    color?: string
    commitTapRadiusPx?: number

    Screen-space radius, in CSS pixels, around the last waypoint inside which a tap finishes the path instead of adding a corner. Default 12. Screen space so the target keeps its physical size at any zoom; 0 restores exact-match-only commits (a fingertip can never hit an exact world point on a gridless canvas, so a touch commit needs the tolerance). Ignored while this path has an active snapping grid (square, or hex with an orientation) — there the snapped tap already lands exactly on the last waypoint, and a screen-space radius could otherwise reach a neighbouring cell centre at a zoomed-out camera.

    diagonalRule?: DiagonalRule
    feetPerCell?: number
    footprint?: Footprint
    rangeBands?: readonly PathRangeBand[]
    resolveStart?: (world: Point, ctx: ToolContext) => PathAnchor | null

    Returning null vetoes the gesture — no path opens and nothing is emitted.