@expofp/floorplan
Version:
Interactive floor plan library for expos and events
16 lines • 729 B
TypeScript
type PoiMarkerHitTest = (clientX: number, clientY: number) => boolean;
/**
* Screen-space hit-test (viewport `clientX`/`clientY`) against the outdoor PoI
* symbol/cluster layers, set by `usePoiMarkers` while active. The plan's click
* seam (`clickedPlan` in Map/pointer.ts) consults it so a click handled by a
* native MapLibre layer does not also select the booth underneath.
*
* Deliberately a leaf module (no imports): it decouples the renderer click
* pipeline from the Maplibre hook that owns the marker layers.
*/
export declare const poiMarkerHitTest: {
set(fn: PoiMarkerHitTest | null): void;
test(clientX: number, clientY: number): boolean;
};
export {};
//# sourceMappingURL=poi-marker-hit-test.d.ts.map