UNPKG

@excalidraw/math

Version:

Excalidraw math functions

7 lines (6 loc) 235 B
import type { PointerCoords } from "./types"; export declare const getCenter: (pointers: Map<number, PointerCoords>) => { x: number; y: number; }; export declare const getDistance: ([a, b]: readonly PointerCoords[]) => number;