@excalidraw/excalidraw
Version:
Excalidraw as a React component
4 lines (3 loc) • 341 B
TypeScript
import type { GlobalPoint, LineSegment, LocalPoint, Rectangle } from "./types";
export declare function rectangle<P extends GlobalPoint | LocalPoint>(topLeft: P, bottomRight: P): Rectangle<P>;
export declare function rectangleIntersectLineSegment<Point extends LocalPoint | GlobalPoint>(r: Rectangle<Point>, l: LineSegment<Point>): Point[];