UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

14 lines • 873 B
import type { Booth } from '../../store/BoothStore'; /** * Starts keeping the hit-test index current with the live plan's stores; the reaction is disposed * with the plan. * * Called from the instance wiring (`floorplan.ready`) rather than run at module scope: the reaction * belongs to one plan, and this module sits inside the store <-> components import cycle — `reaction` * reads its expression the moment it is created, and at module scope that is `boothStore` still in * its temporal dead zone. One binding serves both map modes; the MapLibre path resolves outdoor-PoI * booths through this index too. `fireImmediately` buckets whatever the plan has already loaded. */ export declare function bindBoothHitTest(): void; export default function getBoothIdFromClientXy(clientX: number, clientY: number): Booth | null; //# sourceMappingURL=booth-by-xy.d.ts.map