@excalidraw/math
Version:
Excalidraw math functions
18 lines (17 loc) • 876 B
TypeScript
import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
import { type ElementUpdate } from "./mutateElement";
import { type ExcalidrawElbowArrowElement, type NonDeletedSceneElementsMap } from "./types";
import type { FixedPointBinding, FixedSegment } from "./types";
export declare const BASE_PADDING = 40;
/**
*
*/
export declare const updateElbowArrowPoints: (arrow: Readonly<ExcalidrawElbowArrowElement>, elementsMap: NonDeletedSceneElementsMap, updates: {
points?: readonly LocalPoint[];
fixedSegments?: readonly FixedSegment[] | null;
startBinding?: FixedPointBinding | null;
endBinding?: FixedPointBinding | null;
}, options?: {
isDragging?: boolean;
}) => ElementUpdate<ExcalidrawElbowArrowElement>;
export declare const validateElbowPoints: <P extends GlobalPoint | LocalPoint>(points: readonly P[], tolerance?: number) => boolean;