Rotatable

Moveable. Rotatable

Methods

request(eopt, e.deltaRotateopt, e.isInstantopt) → {Moveable.Requester}

Source:
Name Type Description
e? object the Resizable's request parameter
Properties
Name Type Default Description
deltaRotate? number 0 delta number of rotation
isInstant? number Whether to execute the request instantly
Example
// Instantly Request (requestStart - request - requestEnd)
moveable.request("rotatable", { deltaRotate: 10, isInstant: true });

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

// request
requester.request({ deltaRotate: 10 });
requester.request({ deltaRotate: 10 });
requester.request({ deltaRotate: 10 });

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