@expofp/floorplan
Version:
Interactive floor plan library for expos and events
25 lines • 1.29 kB
TypeScript
import type { Kiosk } from "../../components/Kiosk/SetKiosk";
import type { WayfindingRenderer } from "../renderer";
/**
* Updates the kiosk icon in response to store changes.
*
* @param kiosk Current kiosk data, or null when kiosk mode is off.
* @param activeFloor Name of the currently active floor (from `layerStore.floors.find(f => f.active)`), or undefined.
* @param layersMode Current `layerStore.mode` value; when equal to `LayersMode.Default` (0),
* the per-floor visibility check is skipped.
*/
export type KioskHandler = (kiosk: Kiosk | null, activeFloor: string | undefined, layersMode: number) => void;
/**
* Creates a kiosk-icon handler that lives outside the wayfinding runtime.
*
* Kiosk is an efp-specific map annotation — not part of the route. Keeping it
* next to `createWayfinding.ts` (rather than in `runtime/`) preserves the
* runtime's portability: the runtime deals with source/destination/position/
* transitions only, and never learns that kiosks exist.
*/
export declare function createKioskHandler({ renderer, kioskIconMap, layer, }: {
renderer: WayfindingRenderer;
kioskIconMap: Map<string, HTMLImageElement> | undefined;
layer: string;
}): KioskHandler;
//# sourceMappingURL=kioskHandler.d.ts.map