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:105
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:103
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:88
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:98