UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

19 lines 962 B
import { type Kiosk } from './SetKiosk'; /** * Narrows a saved kiosk field to a usable number. * * Every field of a kiosk record is optional (`KioskSchema`) and the record can * arrive from localStorage, from `config.kiosk` or from the legacy `kiosk_*` * params — so a field can be absent, or present and `NaN` from a bad parse. * Both must read as "not set": feeding `NaN` into a camera move silently parks * the kiosk nowhere. */ export declare function toFiniteNumber(value: number | null | undefined): number | undefined; /** * The zoom factor that takes the plan renderer from the pt-scale it booted at * to the one the kiosk was saved at, or undefined when the record does not * carry both. Restoring the home framing and integrating the kiosk at load both * need it, and both need the same guard. */ export declare function getPtScaleZoomRatio(kiosk: Kiosk | null | undefined): number | undefined; //# sourceMappingURL=kiosk-record.d.ts.map