@architwankhade/math
Version:
Excalidraw math functions
8 lines (7 loc) • 391 B
TypeScript
import type { AppState } from "@excalidraw/excalidraw/types";
import type { ElementsMap, ExcalidrawElement } from "./types";
export interface Distribution {
space: "between";
axis: "x" | "y";
}
export declare const distributeElements: (selectedElements: ExcalidrawElement[], elementsMap: ElementsMap, distribution: Distribution, appState: Readonly<AppState>) => ExcalidrawElement[];