Interface: TimedStrokePoint
Defined in: src/lib/messages/schema.ts:51
A stroke point with the time it was recorded
Extends
Properties
pressure?
optionalpressure?:number
Defined in: src/lib/brushes/types/index.ts:264
The pressure (0–1) of the brush stroke point, from PointerEvent.pressure
Inherited from
rotation?
optionalrotation?:number
Defined in: src/lib/brushes/types/index.ts:262
The rotation (in radians) of the brush stroke point
Inherited from
tiltX?
optionaltiltX?:number
Defined in: src/lib/brushes/types/index.ts:266
The pen tilt (-90–90 degrees) along the X axis, from PointerEvent.tiltX
Inherited from
tiltY?
optionaltiltY?:number
Defined in: src/lib/brushes/types/index.ts:268
The pen tilt (-90–90 degrees) along the Y axis, from PointerEvent.tiltY
Inherited from
time
time:
number
Defined in: src/lib/messages/schema.ts:53
Milliseconds, from the same clock as the stroke's other points (e.g. PointerEvent.timeStamp)
x
x:
number
Defined in: src/lib/brushes/types/index.ts:258
The X coordinate of the brush stroke point
Inherited from
y
y:
number
Defined in: src/lib/brushes/types/index.ts:260
The Y coordinate of the brush stroke point