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

    Interface Selector

    A selector is a conjunction of key/value tests. Multiple keys at the same level AND together. Each key maps to a selector primitive in the evaluator.

    interface Selector {
        actionIs?: string;
        canHover?: boolean;
        capability?:
            | CapabilityTag
            | readonly CapabilityTag[]
            | { in: readonly CapabilityTag[] }
            | { not: CapabilityTag };
        coarsePointer?: boolean;
        editingAnchors?: boolean;
        focused?: boolean;
        gesturing?: boolean;
        hovering?: boolean;
        hoveringSelected?: boolean;
        mode?: string | { not: string } | { in: readonly string[] };
        modifierHeld?: keyof ModifierState;
        resizable?: boolean;
        selection?: { atLeast?: number; empty?: boolean; is?: number };
        zoomAtLeast?: number;
    }
    Index

    Properties

    actionIs?: string
    canHover?: boolean

    Matches ctx.device.canHover — the primary pointer can hover. Absent device is treated as true.

    capability?:
        | CapabilityTag
        | readonly CapabilityTag[]
        | { in: readonly CapabilityTag[] }
        | { not: CapabilityTag }
    coarsePointer?: boolean

    Matches ctx.device.coarsePointer — the primary pointer is imprecise (touch, most styluses). Absent device is treated as false.

    editingAnchors?: boolean

    Matches ctx.editingAnchors — true while a path is in anchor-edit mode. Absent flag is treated as false.

    focused?: boolean
    gesturing?: boolean
    hovering?: boolean
    hoveringSelected?: boolean
    mode?: string | { not: string } | { in: readonly string[] }
    modifierHeld?: keyof ModifierState
    resizable?: boolean

    Matches ctx.selectionResizable. Absent flag is treated as true (resizable), so { resizable: true } passes for legacy ctx builders that don't compute it.

    selection?: { atLeast?: number; empty?: boolean; is?: number }
    zoomAtLeast?: number