@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
21 lines (20 loc) • 671 B
TypeScript
declare const _default: {
/**
* Set each origin value to shape
* @param {fabric.Object} shape - Shape object
*/
setOrigins(shape: any): void;
/**
* Resize the shape
* @param {fabric.Object} shape - Shape object
* @param {{x: number, y: number}} pointer - Mouse pointer values on canvas
* @param {boolean} isScaling - Whether the resizing action is scaling or not
*/
resize(shape: any, pointer: any, isScaling?: any): void;
/**
* Adjust the origin position of shape to center
* @param {fabric.Object} shape - Shape object
*/
adjustOriginToCenter(shape: any): void;
};
export default _default;