@expofp/floorplan
Version:
Interactive floor plan library for expos and events
10 lines • 641 B
TypeScript
import { type RouteLine, type RoutePoint } from "../types";
/** Decides whether the current GPS tick warrants rebuilding the route. */
export interface RerouteController {
/** Evaluates the current tick. Returns `true` when the caller should rebuild the route. */
shouldReroute(position: RoutePoint, routeLines: RouteLine[]): boolean;
}
/** `thresholdSvg` — plan-scale-aware off-route distance (SVG units), produced by
* `resolveRerouteThresholdSvg` and passed in by the composition root. */
export declare function createRerouteController(thresholdSvg: number): RerouteController;
//# sourceMappingURL=rerouteController.d.ts.map