UNPKG

@excalidraw/math

Version:

Excalidraw math functions

4 lines (3 loc) 238 B
import type { GlobalPoint } from "@excalidraw/math"; import type { ElementsMap, ExcalidrawElement } from "./types"; export declare const distanceToElement: (element: ExcalidrawElement, elementsMap: ElementsMap, p: GlobalPoint) => number;