@expofp/floorplan
Version:
Interactive floor plan library for expos and events
16 lines • 901 B
TypeScript
import { Box } from '@expofp/geometry';
/**
* The part of the canvas a command should frame into: what the user can see of the plan, narrowed by
* an overlay sat over it.
*
* Composed here rather than kept on the store, because nothing observes it — it is read once, by the
* command about to run. `canvasVisibleRectPx` is where the plan is *drawn* and does have observers;
* widening that would slide the plan every time a details panel opened, where this only moves where
* a `zoomTo` puts its target. The imperative renderer got the same effect by shifting the visible
* rect around each call and putting it back in a `finally`.
*
* Shared by both views, so a command frames into the same region with and without MapLibre.
* @returns The region, in css pixels from the canvas's top-left corner.
*/
export declare function framingRect(): Box;
//# sourceMappingURL=framing-rect.d.ts.map