@expofp/floorplan
Version:
Interactive floor plan library for expos and events
20 lines • 1.03 kB
TypeScript
import { type SceneDef } from '@expofp/renderer';
/**
* Publishes the scene the mounted map is drawing, for as long as it is on screen.
*
* The same inversion `setMapCamera` and `setMapViewport` perform, for the same callers: the parts
* of the SDK that are not components — the venue-fit resolution in `UIState.fitBounds`, the traffic
* hooks — need the def tree the map built, and the map is the one place that knows it. The
* imperative path parked the scene on `RendererService`; this hands it out without the service.
* @param scene - The scene; omitted to unpublish it as the map unmounts.
*/
export declare function setMapScene(scene?: SceneDef): void;
/**
* The scene the mounted map is drawing, if one is on screen.
*
* Absent before the map has built its scene, and after it unmounts. In MapLibre mode the adapter
* publishes the embed's prepared scene the same way.
* @returns The scene, or `undefined`.
*/
export declare function mapScene(): SceneDef | undefined;
//# sourceMappingURL=scene.d.ts.map