iink-ts - v5.0.0
    Preparing search index...

    Type Alias TPointer

    TPointer: TPoint & { dt: number; p: number }

    Type Declaration

    • dt: number

      Milliseconds since the gesture that captured this pointer began, so the first pointer of a stroke is at 0. Fractional: a pen samples faster than once per millisecond, and rounding the gap between two samples to zero would tell the recognizer they were captured at the same instant.

      Relative rather than absolute so it stays a two- or three-digit number. The absolute instant is stroke.creationTime + dt, which is what goes on the wire — the recognizer needs absolute times to order strokes against each other.

    • p: number