@expofp/floorplan
Version:
Interactive floor plan library for expos and events
16 lines • 1.02 kB
TypeScript
import type { Booth } from '../../store/BoothStore';
/**
* Starts keeping the hit-test index current with the stores, and returns the disposer.
*
* Called from the instance wiring (`floorplan.ready`) rather than run at module scope: this module
* sits inside the store ↔ components import cycle (the store's own modules reach it through the
* config chain), and `reaction` reads its expression the moment it is created — at module scope
* that is `boothStore` still in its temporal dead zone. Bound at init, every store exists;
* `fireImmediately` buckets whatever a remount finds already loaded, and the reaction tracks
* changes from there exactly as before. One binding serves both map modes — the MapLibre path
* resolves outdoor-PoI booths through this index too.
* @returns Disposes the reaction.
*/
export declare function bindBoothHitTest(): () => void;
export default function getBoothIdFromClientXy(clientX: number, clientY: number): Booth | null;
//# sourceMappingURL=booth-by-xy.d.ts.map