UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

15 lines • 816 B
import type RootStore from '../RootStore'; /** * Point the store at the container this FloorPlan was handed, and measure it. * * Kept apart from `initUi` because the two have different lifetimes: the store * module body — and so `initUi` — evaluates once per page, while one page may * build several FloorPlans in turn. A second `load()` gets a new container, so * anything still sized against or observing the first one is measuring a node * the host has already detached, and the plan renders blank. Idempotent: it * re-points the single ResizeObserver instead of stacking another one up. */ export declare function bindRootElement(store: RootStore): void; export default function initUi(store: RootStore): void; export declare function destroyUiHandlers(): void; //# sourceMappingURL=init-ui.d.ts.map