Interface: PenSample
Defined in: telemetry.ts:80
One normalized sample. This is the currency of the whole pipeline: filtering, cusp detection, splining, resampling, and dab generation all speak it.
altitude/azimuth are always populated (derived if not reported), so downstream code never branches on which coordinate system a browser chose. Whether they are meaningful is what PenSupport and observe are for.
Properties
altitude
altitude:
number
Defined in: telemetry.ts:88
Radians, 0 (flat on the page) .. π/2 (upright).
azimuth
azimuth:
number
Defined in: telemetry.ts:90
Radians, 0..2π, from +X toward +Y. Undefined-in-principle when upright; 0 there.
height
height:
number
Defined in: telemetry.ts:96
kind
kind:
PenKind
Defined in: telemetry.ts:93
pressure
pressure:
number
Defined in: telemetry.ts:86
0..1. A mouse reports 0 (up) or 0.5 (down); a pen reports a real range.
t
t:
number
Defined in: telemetry.ts:84
Event timestamp, ms. The velocity signal — the only width cue a mouse has.
twist
twist:
number
Defined in: telemetry.ts:92
Barrel rotation, degrees 0..359. Almost nothing reports it.
width
width:
number
Defined in: telemetry.ts:95
Contact geometry, px — how palm rejection tells a palm from a fingertip.
x
x:
number
Defined in: telemetry.ts:81
y
y:
number
Defined in: telemetry.ts:82