Files
game-cards-poker-design/frontend/node_modules/fabric/dist/src/controls/skew.d.ts

33 lines
1.8 KiB
TypeScript
Raw Normal View History

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