UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

19 lines 731 B
import { type Point } from "simple-geometry"; /** * Generates evenly-spaced points along a quadratic Bézier curve * between two points. Used for dotted trail visualization when * a point (kiosk, GPS, marker, etc.) is far from the route. * * @param from - Start point (e.g. route endpoint) * @param to - End point (e.g. off-route position) * @param interval - Spacing between points in SVG units (default: 8) * @param curvature - Arc height as fraction of distance (0 = straight, 0.4 = default arc) */ export declare function computeTrailPoints(from: { x: number; y: number; }, to: { x: number; y: number; }, interval?: number, curvature?: number): Point[]; //# sourceMappingURL=computeTrailPoints.d.ts.map