Scalable

Moveable. Scalable

Methods

request(eopt, e.directionopt, e.deltaWidthopt, e.deltaHeightopt, e.isInstantopt) → {Moveable.Requester}

Source:
Name Type Description
e? object the Resizable's request parameter
Properties
Name Type Default Description
direction? number [1, 1] Direction to scale
deltaWidth? number delta number of width
deltaHeight? number delta number of height
isInstant? number Whether to execute the request instantly
Example
// Instantly Request (requestStart - request - requestEnd)
moveable.request("scalable", { deltaWidth: 10, deltaHeight: 10, isInstant: true });

// requestStart
const requester = moveable.request("scalable");

// request
requester.request({ deltaWidth: 10, deltaHeight: 10 });
requester.request({ deltaWidth: 10, deltaHeight: 10 });
requester.request({ deltaWidth: 10, deltaHeight: 10 });

// requestEnd
requester.requestEnd();
Returns:
Moveable Requester
Type
Moveable.Requester