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

    Interface DragSample

    One accumulated point on a drag trail: world-space position plus whatever stylus state the originating PointerEvent carried.

    The stylus fields are absent for mouse/touch on browsers that don't report them, and for synthetic events. Consumers that want pressure-driven output (e.g. Stroke.vertexWidths from a pencil stroke) read them off the samples their insert dep receives — see apps/site/demos/VertexWidthsDemo.tsx.

    interface DragSample {
        pressure?: number;
        tiltX?: number;
        tiltY?: number;
        x: number;
        y: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    pressure?: number

    0..1. Mouse/touch report 0.5 while a button is held, per the spec.

    tiltX?: number

    Degrees, ±90. Zero for mouse/touch.

    tiltY?: number

    Degrees, ±90. Zero for mouse/touch.

    x: number
    y: number