@expofp/floorplan
Version:
Interactive floor plan library for expos and events
23 lines • 783 B
TypeScript
interface GeoAnchorPoint {
x: number;
y: number;
lat: number;
lng: number;
}
export interface TransformGeoConfig {
p0: GeoAnchorPoint;
p1?: GeoAnchorPoint;
p2: GeoAnchorPoint;
}
/**
* Affine matrix mapping plan (SVG) coordinates to Mercator, used as the
* `staticTransform` in the `SceneDef` so the renderer can position the floor
* plan inside a Maplibre `CustomLayerInterface`.
*
* Solved by Gaussian elimination from 3 anchors. The third anchor is synthesized
* perpendicular to the p0->p2 diagonal, so the result is a similarity transform
* (uniform scale + rotation, no shear).
*/
export declare function calculateTransformMatrix(geoConfig: TransformGeoConfig, units?: string | null): number[];
export {};
//# sourceMappingURL=solver.d.ts.map