UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

33 lines 1.79 kB
import type { ControlCursorCallback, Transform, TransformActionHandler } from '../EventTypeDefs'; export type SkewTransform = Transform & { skewingSide: -1 | 1; }; /** * return the correct cursor style for the skew action * @param {Event} eventData the javascript event that is causing the scale * @param {Control} control the control that is interested in the action * @param {FabricObject} fabricObject the fabric object that is interested in the action * @return {String} a valid css string for the cursor */ export declare const skewCursorStyleHandler: ControlCursorCallback; /** * Wrapped Action handler for skewing on the X axis, takes care of the * skew direction and determines the correct transform origin for the anchor point * @param {Event} eventData javascript event that is doing the transform * @param {Object} transform javascript object containing a series of information around the current transform * @param {number} x current mouse x position, canvas normalized * @param {number} y current mouse y position, canvas normalized * @return {Boolean} true if some change happened */ export declare const skewHandlerX: TransformActionHandler; /** * Wrapped Action handler for skewing on the Y axis, takes care of the * skew direction and determines the correct transform origin for the anchor point * @param {Event} eventData javascript event that is doing the transform * @param {Object} transform javascript object containing a series of information around the current transform * @param {number} x current mouse x position, canvas normalized * @param {number} y current mouse y position, canvas normalized * @return {Boolean} true if some change happened */ export declare const skewHandlerY: TransformActionHandler; //# sourceMappingURL=skew.d.ts.map