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

    Interface NestedHitTester

    interface NestedHitTester {
        pickBest: (
            worldX: number,
            worldY: number,
            alt: boolean,
            selection: readonly string[],
        ) => string | null;
        pickOutermost: (worldX: number, worldY: number) => string | null;
    }
    Index

    Properties

    pickBest: (
        worldX: number,
        worldY: number,
        alt: boolean,
        selection: readonly string[],
    ) => string | null

    Alt-aware selection-update pick. Without alt, returns the outermost ancestor (same as pickOutermost). With alt, returns one level deeper than the deepest currently-selected ancestor in the leaf's chain — repeated alt-clicks step ancestor → descendant → leaf. With alt and nothing in the chain selected, jumps straight to the leaf. Plug into useSelectTool({ pickBest }).

    pickOutermost: (worldX: number, worldY: number) => string | null

    Outermost-ancestor pick. Suitable as the chrome-level pickEvery: a casual click selects the whole top-level ancestor. Returns null on empty space.