@expofp/floorplan
Version:
Interactive floor plan library for expos and events
14 lines • 647 B
TypeScript
import type { BoundingBox, RouteLine } from "../core";
/**
* Compute the payload for the runtime's `onRouteUpdate` callback:
* - `lines`: route lines as the consumer sees them — virtual graph-internal
* segments are filtered out before publication.
* - `bounds`: bounding box over the visible route points, or `null` when
* the route is empty or collapses to a single point (no useful viewport
* to fit).
*/
export declare function computeRouteUpdate(routeLines: ReadonlyArray<RouteLine>, visibleLines: ReadonlyArray<RouteLine>): {
lines: RouteLine[];
bounds: BoundingBox | null;
};
//# sourceMappingURL=routeUpdate.d.ts.map