@mapcreator/sdk 1.5.3 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ import { BBox } from '../types/geometry';
2
+ export declare function merge(bboxes: BBox[]): BBox;
3
+ export declare function translate(bbox: BBox, x: number, y: number): void;
4
+ export declare function round(bbox: BBox): void;
@@ -1,5 +1,6 @@
1
1
  import { JobObjectDataBindings } from '../types/jobObject';
2
2
  import { Map as MapLibre } from '@mapcreator/maplibre-gl';
3
+ import { BBox as BBoxArray } from '../types/geometry';
3
4
  import { ColorGenerator } from './choropleth';
4
5
  import { Font } from '../types';
5
6
  export declare function escapeXML(str: string): string;
@@ -15,6 +16,7 @@ export interface SvgText {
15
16
  }
16
17
  export declare function collectUsedFonts(svg: string, fontMap: Map<string, Font>): Font[];
17
18
  export declare function injectFonts(svg: string, fonts: Font[], fontBuffers: Array<string | undefined>): string;
19
+ export declare function getBBox(svg: string): BBoxArray;
18
20
  export declare class SvgHelper {
19
21
  private _seen;
20
22
  private _svg;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapcreator/sdk",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "engines": {
5
5
  "node": "^24.0.0",
6
6
  "npm": "^11.0.0"