@expofp/floorplan
Version:
Interactive floor plan library for expos and events
22 lines • 913 B
TypeScript
import type { FloorContext, Wayfinding } from '@expofp/wayfinding';
/**
* Places or hides the "You Are Here" marker. An efp-specific map annotation
* (shown when `routeStore.iconType !== 0` and no active route) — separated
* from the core runtime so the runtime never learns that YAH exists.
*
* Mutually exclusive with the runtime's position icon: `bindMobxReactions`
* orchestrates so that only one of the two is visible at any time.
*/
export type YahHandler = (position: {
readonly x: number;
readonly y: number;
readonly layer: string;
} | null) => void;
export declare function createYahHandler({ wayfinding, iconMap, pixelRatio, floorContext, layer, }: {
wayfinding: Pick<Wayfinding, 'setIcon' | 'flush'>;
iconMap: Map<string, HTMLImageElement>;
pixelRatio: number;
floorContext: FloorContext;
layer: string;
}): YahHandler;
//# sourceMappingURL=yahHandler.d.ts.map