@expofp/floorplan
Version:
Interactive floor plan library for expos and events
17 lines • 991 B
TypeScript
/**
* "Event not found" fallback shown when an event's `data.js` fails to load.
*
* `data.js` is what assigns `window.__data`; if it 404s (or never runs) the 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