UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

18 lines 1.01 kB
/** * "Event not found" fallback shown when the config fails to load. * * `loadConfig` fetches the event's data document (`data.js`); if that 404s or * fails validation the event data is missing and the floor plan cannot * initialize. Instead of leaving a blank or * half-broken view, we render a short message inside the target element, centered * within whatever box it already occupies — full-screen on a standalone page, or * the integrator's container when embedded — so it never escapes the host page's * layout. (That containment is why no host check is needed.) * * Deliberately plain-DOM (no React/MobX) so it works even though the floor plan * never booted, and it avoids flex `gap` (unsupported on the SDK's old-WebView * targets, e.g. chrome66) — the subtitle uses a margin instead. */ /** Renders a centered "Event not found" message inside the target element. */ export declare function showEventNotFound(element: HTMLElement): void; //# sourceMappingURL=event-not-found.d.ts.map