fabric
Version:
Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.
10 lines • 466 B
TypeScript
import type { FabricObject, Point } from 'fabric';
import type { PointMap } from '../typedefs';
export declare function getDistance(a: number, b: number): number;
export declare function getDistanceList(point: Point, list: Point[], type: 'x' | 'y'): {
dis: number;
arr: Point[];
};
export declare function getPointMap(target: FabricObject): PointMap;
export declare function getContraryMap(target: FabricObject): PointMap;
//# sourceMappingURL=basic.d.ts.map