Skip to content

scaleOrSkewActionName

scaleOrSkewActionName(eventData, control, fabricObject): "" | TAxisKey<"scale" | "skew">

Defined in: src/controls/scaleSkew.ts:24

Inspect event, control and fabricObject to return the correct action name

Parameters

eventData

TPointerEvent

the javascript event that is causing the scale

control

Control

the control that is interested in the action

fabricObject

FabricObject

the fabric object that is interested in the action

Returns

"" | TAxisKey<"scale" | "skew">

an action name