UNPKG

@architwankhade/math

Version:
8 lines (7 loc) 391 B
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[];