UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

18 lines 968 B
import { type Renderer } from '@expofp/renderer'; import { type Map as MaplibreMap } from 'maplibre-gl'; import { type RefObject } from 'react'; /** * Keeps the kiosk idle timer alive while a visitor pans or zooms the map. * * The timer's usual source is the renderer's `navigation:change`, which only * fires for the renderer's own camera — and map mode doesn't drive it. Without * these listeners the timer runs out mid-gesture for a visitor who only moves * the map. * * `renderer` is not read; it is the mount signal. `mapRef.current` is assigned * in the same `handleRendererReady` call that sets `renderer`, so keying the * effect on `renderer` is what guarantees there is a map to subscribe to — the * early return below is the assertion of that contract, not a tolerated miss. */ export declare function useKioskIdleEvents(renderer: Renderer | null, mapRef: RefObject<MaplibreMap | null>): void; //# sourceMappingURL=useKioskIdleEvents.d.ts.map