Skip to main content

Interface: TimedStrokePoint

Defined in: src/lib/messages/schema.ts:51

A stroke point with the time it was recorded

Extends​

Properties​

pressure?​

optional pressure?: number

Defined in: src/lib/brushes/types/index.ts:264

The pressure (0–1) of the brush stroke point, from PointerEvent.pressure

Inherited from​

BrushStrokePoint.pressure


rotation?​

optional rotation?: number

Defined in: src/lib/brushes/types/index.ts:262

The rotation (in radians) of the brush stroke point

Inherited from​

BrushStrokePoint.rotation


tiltX?​

optional tiltX?: 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​

BrushStrokePoint.tiltX


tiltY?​

optional tiltY?: 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​

BrushStrokePoint.tiltY


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​

BrushStrokePoint.x


y​

y: number

Defined in: src/lib/brushes/types/index.ts:260

The Y coordinate of the brush stroke point

Inherited from​

BrushStrokePoint.y