Skip to main content

Interface: DrawPadItem

Properties​

drawPadPosition​

drawPadPosition: Point

Position of the DrawPadItem within the DrawPad coordinate system, in which (0, 0) is the upper-left corner.

Defined in​

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


isStrokeWithinBounds​

isStrokeWithinBounds: boolean

Is a DrawPad stroke currently within the bounds of the DrawPad item?

Defined in​

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

Methods​

onStrokeEnter()​

onStrokeEnter(callback, options?): void

Executes a callback when a DrawPad stroke begins on or enters the DrawPadItem.

Parameters​

• callback

function to execute

• options?: CallbackOptions

CallbackOptions

Returns​

void

Defined in​

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


onStrokeLeave()​

onStrokeLeave(callback, options?): void

Executes a callback when a DrawPad stroke leaves the DrawPadItem.

Parameters​

• callback

function to execute

• options?: CallbackOptions

CallbackOptions

Returns​

void

Defined in​

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