@excalidraw/excalidraw
Version:
Excalidraw as a React component
17 lines (16 loc) • 721 B
TypeScript
import { ExcalidrawElement } from "./types";
export declare const isInvisiblySmallElement: (element: ExcalidrawElement) => boolean;
/**
* Makes a perfect shape or diagonal/horizontal/vertical line
*/
export declare const getPerfectElementSize: (elementType: string, width: number, height: number) => {
width: number;
height: number;
};
export declare const resizePerfectLineForNWHandler: (element: ExcalidrawElement, x: number, y: number) => void;
export declare const getNormalizedDimensions: (element: Pick<ExcalidrawElement, "width" | "height" | "x" | "y">) => {
width: ExcalidrawElement["width"];
height: ExcalidrawElement["height"];
x: ExcalidrawElement["x"];
y: ExcalidrawElement["y"];
};