Skip to main content

Interface: StrokeInteraction

Properties

interpolated

interpolated: boolean

Was the interaction's position interpolated? (clipped to DrawPad boundary) because the user drew out of bounds?

Remarks

Only StrokeMove and StrokeEnd can be interpolated. A StrokeStart position can never begin out of bounds.

Defined in

m2c2kit/packages/addons/src/composites/draw-pad.ts:76


iso8601Timestamp

iso8601Timestamp: string

Device ISO8601 Timestamp of the interaction.

Defined in

m2c2kit/packages/addons/src/composites/draw-pad.ts:74


position

position: Point

Position on the DrawPad where the interaction occurred. In the DrawPad coordinate system, (0, 0) is the upper-left corner.

Defined in

m2c2kit/packages/addons/src/composites/draw-pad.ts:72


type

type: DrawPadEventType

Type of user interaction with the stroke: StrokeStart, StrokeMove, or StrokeEnd.

Defined in

m2c2kit/packages/addons/src/composites/draw-pad.ts:70