UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

24 lines 826 B
interface GeoAnchorPoint { x: number; y: number; lat: number; lng: number; } export interface TransformGeoConfig { p0: GeoAnchorPoint; p1?: GeoAnchorPoint; p2: GeoAnchorPoint; } /** * Calculates an affine transformation matrix that maps SVG floorplan * coordinates to Mercator coordinates. This matrix is used as the * `staticTransform` in the `SceneDef` so the renderer can position * the floorplan correctly inside a Maplibre `CustomLayerInterface`. * * The solver uses 3 anchor points (p0, p1, p2) from the geo config * to set up a system of linear equations, then solves via Gaussian * elimination with partial pivoting. */ export declare function calculateTransformMatrix(geoConfig: TransformGeoConfig, units?: string | null): number[]; export {}; //# sourceMappingURL=solver.d.ts.map