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

    Interface DeviceProfile

    Facts about the device the canvas is running on.

    One object, recomputed when the underlying media queries change, read by two consumers: the chrome-caps rule layer (via RuleCtx.device) and the handle-sizing constants (via targetScale).

    Deliberately NOT a form-factor concept. There is no isPhone here and there should never be one: chrome layout is the consuming app's decision. The kit's job is to stop assuming a mouse.

    interface DeviceProfile {
        canHover: boolean;
        coarsePointer: boolean;
        dpr: number;
        targetScale: number;
    }
    Index

    Properties

    canHover: boolean

    matchMedia('(hover: hover)') — the primary pointer can hover.

    coarsePointer: boolean

    matchMedia('(pointer: coarse)') — the primary pointer is imprecise.

    dpr: number

    Live device pixel ratio.

    targetScale: number

    Multiplier for handle sizes and hit radii. Derived from coarsePointer unless explicitly overridden.