@mapcreator/sdk 3.1.2 → 3.2.0

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.
@@ -4,7 +4,7 @@
4
4
  */
5
5
  export type JobObject = {
6
6
  type: 'v5';
7
- version: 1;
7
+ version: 2 | 1;
8
8
  title?: Optional<string>;
9
9
  export?: Optional<{
10
10
  size?: Optional<[number, number]>;
@@ -437,7 +437,7 @@ export type JobObjectEasingType = 'linear' | 'easeOutCubic' | 'easeOutBack' | 'e
437
437
  /**
438
438
  * All possible JobObject stored values and their representations as BoundValue objects:
439
439
  *
440
- * string -> { t: 's'; v: string } or { t: 'n'; v: string } if string can be parsed as a number
440
+ * string -> { t: 's'; v: string }
441
441
  * number -> { t: 'n'; v: number }, implies 'General' format: { z: 0 | 'General' }, which is ignored
442
442
  * boolean -> { t: 'b'; v: boolean }
443
443
  * null -> { t: 'z' }, so-called Stub value (no data, and similar meaning)
@@ -2,7 +2,6 @@ import { Map } from '@mapcreator/maplibre-gl';
2
2
  import { LngLat } from '../types/geometry';
3
3
  import { ExportType } from '../types';
4
4
  import { JobObject, JobObjectDataBindings, JobObjectFormat, JobObjectStoredValue } from '../types/jobObject';
5
- export declare const numberRe: RegExp;
6
5
  export declare function degToRad(angle: number): number;
7
6
  export declare function radToDeg(angle: number): number;
8
7
  export declare function calcDistance(lngLat1: LngLat, lngLat2: LngLat): number;
@@ -0,0 +1,2 @@
1
+ import { JobObject } from '../types/jobObject';
2
+ export declare const upgradeJobObject: (jobObject: JobObject) => JobObject;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapcreator/sdk",
3
- "version": "3.1.2",
3
+ "version": "3.2.0",
4
4
  "engines": {
5
5
  "node": "^24.0.0",
6
6
  "npm": "^11.0.0"