@twinmatrix/spatialverse-sdk-web 0.1.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.
Files changed (112) hide show
  1. package/README.md +4 -0
  2. package/lib/cjs/index.js +642 -0
  3. package/lib/cjs/react/index.js +642 -0
  4. package/lib/esm/index.js +642 -0
  5. package/lib/esm/react/index.js +642 -0
  6. package/lib/types/index.d.ts +17 -0
  7. package/lib/types/index.d.ts.map +1 -0
  8. package/lib/types/index.spec.d.ts +1 -0
  9. package/lib/types/index.spec.d.ts.map +1 -0
  10. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/CustomThreeJsWrapper.d.ts +32 -0
  11. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/CustomThreeJsWrapper.d.ts.map +1 -0
  12. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.d.ts +30 -0
  13. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.d.ts.map +1 -0
  14. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.d.ts +5 -0
  15. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.d.ts.map +1 -0
  16. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.d.ts +21 -0
  17. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.d.ts.map +1 -0
  18. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.d.ts +27 -0
  19. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.d.ts.map +1 -0
  20. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/utils.d.ts +13 -0
  21. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/utils.d.ts.map +1 -0
  22. package/lib/types/meta-atlas-sdk/3DMap/MainMap.d.ts +28 -0
  23. package/lib/types/meta-atlas-sdk/3DMap/MainMap.d.ts.map +1 -0
  24. package/lib/types/meta-atlas-sdk/MetaAtlasCore/fetch-published-json.d.ts +26 -0
  25. package/lib/types/meta-atlas-sdk/MetaAtlasCore/fetch-published-json.d.ts.map +1 -0
  26. package/lib/types/meta-atlas-sdk/MetaAtlasCore/fetchMapObjectsData.d.ts +13 -0
  27. package/lib/types/meta-atlas-sdk/MetaAtlasCore/fetchMapObjectsData.d.ts.map +1 -0
  28. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focustree.d.ts +406 -0
  29. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focustree.d.ts.map +1 -0
  30. package/lib/types/meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core.d.ts +573 -0
  31. package/lib/types/meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core.d.ts.map +1 -0
  32. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/index.d.ts +6 -0
  33. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/index.d.ts.map +1 -0
  34. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/interfaces.d.ts +142 -0
  35. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/interfaces.d.ts.map +1 -0
  36. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/mapObjectsHelper.d.ts +13 -0
  37. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/mapObjectsHelper.d.ts.map +1 -0
  38. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/routeLayers.d.ts +171 -0
  39. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/routeLayers.d.ts.map +1 -0
  40. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/routing-helpers.d.ts +73 -0
  41. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/routing-helpers.d.ts.map +1 -0
  42. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/utils.d.ts +31 -0
  43. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/utils.d.ts.map +1 -0
  44. package/lib/types/meta-atlas-sdk/MetaAtlasCore/whatTaxonomies.d.ts +59 -0
  45. package/lib/types/meta-atlas-sdk/MetaAtlasCore/whatTaxonomies.d.ts.map +1 -0
  46. package/lib/types/meta-atlas-sdk/customStyles.d.ts +243 -0
  47. package/lib/types/meta-atlas-sdk/customStyles.d.ts.map +1 -0
  48. package/lib/types/meta-atlas-sdk/customerLayer.d.ts +6385 -0
  49. package/lib/types/meta-atlas-sdk/customerLayer.d.ts.map +1 -0
  50. package/lib/types/meta-atlas-sdk/customerLayerVariant.d.ts +5156 -0
  51. package/lib/types/meta-atlas-sdk/customerLayerVariant.d.ts.map +1 -0
  52. package/lib/types/meta-atlas-sdk/mapbox_draw_custom_modes/draw_marker.d.ts +18 -0
  53. package/lib/types/meta-atlas-sdk/mapbox_draw_custom_modes/draw_marker.d.ts.map +1 -0
  54. package/lib/types/meta-atlas-sdk/mapbox_draw_custom_modes/marker_select.d.ts +37 -0
  55. package/lib/types/meta-atlas-sdk/mapbox_draw_custom_modes/marker_select.d.ts.map +1 -0
  56. package/lib/types/meta-atlas-sdk/meta-atlas-sdk.d.ts +548 -0
  57. package/lib/types/meta-atlas-sdk/meta-atlas-sdk.d.ts.map +1 -0
  58. package/lib/types/meta-atlas-sdk/utils/helpers.d.ts +4 -0
  59. package/lib/types/meta-atlas-sdk/utils/helpers.d.ts.map +1 -0
  60. package/lib/types/meta-atlas-sdk/utils/local-storage.d.ts +8 -0
  61. package/lib/types/meta-atlas-sdk/utils/local-storage.d.ts.map +1 -0
  62. package/lib/types/meta-atlas-sdk/utils/mapobjects-store.d.ts +6 -0
  63. package/lib/types/meta-atlas-sdk/utils/mapobjects-store.d.ts.map +1 -0
  64. package/lib/types/meta-atlas-sdk/utils/routing-store.d.ts +6 -0
  65. package/lib/types/meta-atlas-sdk/utils/routing-store.d.ts.map +1 -0
  66. package/lib/types/meta-atlas-sdk/utils/routing-visualizer/index.d.ts +42 -0
  67. package/lib/types/meta-atlas-sdk/utils/routing-visualizer/index.d.ts.map +1 -0
  68. package/lib/types/react/MetaAtlasMap.d.ts +4 -0
  69. package/lib/types/react/MetaAtlasMap.d.ts.map +1 -0
  70. package/lib/types/react/hooks/useDrawing/index.d.ts +3 -0
  71. package/lib/types/react/hooks/useDrawing/index.d.ts.map +1 -0
  72. package/lib/types/react/hooks/useDrawing/types.d.ts +5 -0
  73. package/lib/types/react/hooks/useDrawing/types.d.ts.map +1 -0
  74. package/lib/types/react/hooks/useFocus/index.d.ts +3 -0
  75. package/lib/types/react/hooks/useFocus/index.d.ts.map +1 -0
  76. package/lib/types/react/hooks/useFocus/types.d.ts +28 -0
  77. package/lib/types/react/hooks/useFocus/types.d.ts.map +1 -0
  78. package/lib/types/react/hooks/useMapEvents/index.d.ts +3 -0
  79. package/lib/types/react/hooks/useMapEvents/index.d.ts.map +1 -0
  80. package/lib/types/react/hooks/useMapEvents/types.d.ts +28 -0
  81. package/lib/types/react/hooks/useMapEvents/types.d.ts.map +1 -0
  82. package/lib/types/react/hooks/useMapOverlays/index.d.ts +8 -0
  83. package/lib/types/react/hooks/useMapOverlays/index.d.ts.map +1 -0
  84. package/lib/types/react/hooks/useMapOverlays/types.d.ts +80 -0
  85. package/lib/types/react/hooks/useMapOverlays/types.d.ts.map +1 -0
  86. package/lib/types/react/hooks/useMetaAtlas/index.d.ts +3 -0
  87. package/lib/types/react/hooks/useMetaAtlas/index.d.ts.map +1 -0
  88. package/lib/types/react/hooks/useMetaAtlas/types.d.ts +2 -0
  89. package/lib/types/react/hooks/useMetaAtlas/types.d.ts.map +1 -0
  90. package/lib/types/react/hooks/useRouting/index.d.ts +3 -0
  91. package/lib/types/react/hooks/useRouting/index.d.ts.map +1 -0
  92. package/lib/types/react/hooks/useRouting/types.d.ts +5 -0
  93. package/lib/types/react/hooks/useRouting/types.d.ts.map +1 -0
  94. package/lib/types/react/hooks/useSearch/index.d.ts +3 -0
  95. package/lib/types/react/hooks/useSearch/index.d.ts.map +1 -0
  96. package/lib/types/react/hooks/useSearch/types.d.ts +7 -0
  97. package/lib/types/react/hooks/useSearch/types.d.ts.map +1 -0
  98. package/lib/types/react/hooks/useStampRally/index.d.ts +3 -0
  99. package/lib/types/react/hooks/useStampRally/index.d.ts.map +1 -0
  100. package/lib/types/react/hooks/useStampRally/types.d.ts +24 -0
  101. package/lib/types/react/hooks/useStampRally/types.d.ts.map +1 -0
  102. package/lib/types/react/hooks/useStampRally/utils.d.ts +3 -0
  103. package/lib/types/react/hooks/useStampRally/utils.d.ts.map +1 -0
  104. package/lib/types/react/index.d.ts +21 -0
  105. package/lib/types/react/index.d.ts.map +1 -0
  106. package/lib/types/react/stores/useMapDataStore.d.ts +35 -0
  107. package/lib/types/react/stores/useMapDataStore.d.ts.map +1 -0
  108. package/lib/types/react/stores/useMetaAtlasStore.d.ts +25 -0
  109. package/lib/types/react/stores/useMetaAtlasStore.d.ts.map +1 -0
  110. package/lib/types/react/types/index.d.ts +80 -0
  111. package/lib/types/react/types/index.d.ts.map +1 -0
  112. package/package.json +121 -0
@@ -0,0 +1,17 @@
1
+ /**
2
+ * `js` appendix has been added as the typesciript compilation does add it
3
+ * when transpilling to JavaScript
4
+ *
5
+ * See https://stackoverflow.com/questions/44979976/typescript-compiler-is-forgetting-to-add-file-extensions-to-es6-module-imports
6
+ * and https://github.com/microsoft/TypeScript/issues/40878
7
+ *
8
+ * Rollup
9
+ * https://www.mixmax.com/engineering/rollup-externals
10
+ * https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
11
+ */
12
+ export * from './meta-atlas-sdk/meta-atlas-sdk';
13
+ export type { metaFeature, clickedMetaFeature, MetaFeatureProperties } from './meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core';
14
+ export { ManeuverType } from './meta-atlas-sdk/MetaAtlasCore/routing-core/routing-helpers';
15
+ export type { Route, RouteSegment } from './meta-atlas-sdk/MetaAtlasCore/routing-core/routing-helpers';
16
+ export * from './react';
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,cAAc,iCAAiC,CAAC;AAGhD,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAGjI,OAAO,EAAE,YAAY,EAAE,MAAM,6DAA6D,CAAC;AAC3F,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,6DAA6D,CAAC;AAGvG,cAAc,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../src/index.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import { Mesh, Object3D, Shape, ExtrudeGeometry } from 'three';
2
+ declare class CustomThreeJSWrapper {
3
+ map: any;
4
+ scene: any;
5
+ camera: any;
6
+ renderer: any;
7
+ cameraSync: any;
8
+ fov: any;
9
+ constructor(map: any);
10
+ resize(): void;
11
+ isWebglSupported(): boolean;
12
+ repaint(): void;
13
+ clear(layerId?: any): Promise<unknown>;
14
+ clearMeshes(): Promise<unknown>;
15
+ filter3DObjects(whatTaxonomies: string[]): void;
16
+ add(object: any): void;
17
+ setEnvironment(): void;
18
+ buildPoints(coords: any, initCoords: any): any[];
19
+ buildGeometry(shape: any, settings: any): ExtrudeGeometry;
20
+ buildShape(coords: any): Shape;
21
+ extrusion(opt: any): Mesh<ExtrudeGeometry, any, import("three").Object3DEventMap>;
22
+ centerMesh(mesh: any): Object3D<import("three").Object3DEventMap>;
23
+ dispose(target: any): void;
24
+ disposeObject(object: any): void;
25
+ disposeMaterial(material: any): void;
26
+ disposeTexture(texture: any): void;
27
+ disposeGeometry(geometry: any): void;
28
+ remove(object: any): void;
29
+ update(): void;
30
+ }
31
+ export default CustomThreeJSWrapper;
32
+ //# sourceMappingURL=CustomThreeJsWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomThreeJsWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/CustomThreeJsWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAML,IAAI,EACJ,QAAQ,EAMR,KAAK,EAEL,eAAe,EAKhB,MAAM,OAAO,CAAC;AAKf,cAAM,oBAAoB;IACxB,GAAG,MAAC;IACJ,KAAK,MAAC;IACN,MAAM,MAAC;IACP,QAAQ,MAAC;IACT,UAAU,MAAC;IACX,GAAG,MAAC;gBAEQ,GAAG,KAAA;IAoCf,MAAM;IAQN,gBAAgB;IAqBhB,OAAO;IAID,KAAK,CAAC,OAAO,MAAO;IAkBpB,WAAW;IAejB,eAAe,CAAC,cAAc,EAAE,MAAM,EAAE;IAmBxC,GAAG,CAAC,MAAM,KAAA;IAIV,cAAc;IAWd,WAAW,CAAC,MAAM,KAAA,EAAE,UAAU,KAAA;IAU9B,aAAa,CAAC,KAAK,KAAA,EAAE,QAAQ,KAAA;IAM7B,UAAU,CAAC,MAAM,EAAE,GAAG;IAatB,SAAS,CAAC,GAAG,EAAE,GAAG;IAUlB,UAAU,CAAC,IAAI,KAAA;IA6Bf,OAAO,CAAC,MAAM,KAAA;IAyBd,aAAa,CAAC,MAAM,KAAA;IAyBpB,eAAe,CAAC,QAAQ,KAAA;IAOxB,cAAc,CAAC,OAAO,KAAA;IAOtB,eAAe,CAAC,QAAQ,KAAA;IAMxB,MAAM,CAAC,MAAM,KAAA;IAKb,MAAM;CAQP;AAED,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,30 @@
1
+ export default CameraSync;
2
+ declare class CameraSync {
3
+ constructor(map: any, camera: any, world: any);
4
+ map: any;
5
+ camera: any;
6
+ active: boolean;
7
+ world: any;
8
+ state: {
9
+ translateCenter: Matrix4;
10
+ worldSizeRatio: number;
11
+ worldSize: number;
12
+ };
13
+ setupCamera(): void;
14
+ halfFov: number;
15
+ cameraToCenterDistance: number;
16
+ acuteAngle: number;
17
+ updateCamera(ev: any): void;
18
+ cameraTranslateZ: Matrix4;
19
+ worldSize(): number;
20
+ worldSizeFromZoom(): number;
21
+ mercatorZfromAltitude(altitude: any, lat: any): number;
22
+ mercatorZfromZoom(): number;
23
+ circumferenceAtLatitude(latitude: any): number;
24
+ calcCameraMatrix(pitch: any, angle: any, trz: any): Matrix4;
25
+ updateCameraState(): number[];
26
+ getWorldToCamera(worldSize: any, pixelsPerMeter: any): Matrix4;
27
+ translate(out: any, a: any, v: any): any;
28
+ }
29
+ import { Matrix4 } from "three/src/math/Matrix4.js";
30
+ //# sourceMappingURL=CameraSync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CameraSync.d.ts","sourceRoot":"","sources":["../../../../../../src/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.js"],"names":[],"mappings":";AAWA;IACI,+CAgCC;IA/BG,SAAc;IACd,YAAoB;IACpB,gBAAkB;IAMlB,WAAiC;IAKjC;;;;MAIC;IAeL,oBAQC;IALG,gBAAyB;IACzB,+BAAqE;IAErE,mBAAwC;IAI5C,4BA0FC;IA/CG,0BAAwF;IAgD5F,oBAGC;IAED,4BAGC;IAED,uDAEC;IAED,4BAEC;IAED,+CAEC;IAED,4DAUC;IAED,8BAsBC;IAED,+DAwCC;IAED,yCAyCC;CACJ"}
@@ -0,0 +1,5 @@
1
+ export function makePerspectiveMatrix(fovy: any, aspect: any, near: any, far: any): Matrix4;
2
+ export function makeOrthographicMatrix(left: any, right: any, top: any, bottom: any, near: any, far: any): Matrix4;
3
+ export function clamp(n: any, min: any, max: any): number;
4
+ import { Matrix4 } from "three/src/math/Matrix4";
5
+ //# sourceMappingURL=CameraUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CameraUtils.d.ts","sourceRoot":"","sources":["../../../../../../src/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.js"],"names":[],"mappings":"AAGA,4FAeC;AAGD,mHAoBC;AAED,0DAEC"}
@@ -0,0 +1,21 @@
1
+ export default constants;
2
+ declare namespace constants {
3
+ export { WORLD_SIZE };
4
+ export const PROJECTION_WORLD_SIZE: number;
5
+ export { EARTH_RADIUS as MERCATOR_A };
6
+ export const DEG2RAD: number;
7
+ export const RAD2DEG: number;
8
+ export { EARTH_RADIUS };
9
+ export const EARTH_CIRCUMFERENCE: number;
10
+ export { EARTH_CIRCUMFERENCE_EQUATOR };
11
+ export { FOV_ORTHO };
12
+ export { FOV };
13
+ export const FOV_DEGREES: number;
14
+ export const TILE_SIZE: number;
15
+ }
16
+ declare const WORLD_SIZE: 1024000;
17
+ declare const EARTH_RADIUS: 6371008.8;
18
+ declare const EARTH_CIRCUMFERENCE_EQUATOR: 40075017;
19
+ declare const FOV_ORTHO: number;
20
+ declare const FOV: number;
21
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kCAA2B;AAI3B,sCAA+B;AAC/B,oDAA4C;AAH5C,gCAAsC;AACtC,0BAA6B"}
@@ -0,0 +1,27 @@
1
+ export function getPosition(date: any, lat: any, lng: any): {
2
+ azimuth: number;
3
+ altitude: number;
4
+ };
5
+ export function toJulian(date: any): number;
6
+ export const times: (string | number)[][];
7
+ export function addTime(angle: any, riseName: any, setName: any): void;
8
+ export function getTimes(date: any, lat: any, lng: any, height: any): {
9
+ solarNoon: Date;
10
+ nadir: Date;
11
+ };
12
+ export function getMoonPosition(date: any, lat: any, lng: any): {
13
+ azimuth: number;
14
+ altitude: number;
15
+ distance: number;
16
+ parallacticAngle: number;
17
+ };
18
+ export function getMoonIllumination(date: any): {
19
+ fraction: number;
20
+ phase: number;
21
+ angle: number;
22
+ };
23
+ export function getMoonTimes(date: any, lat: any, lng: any, inUTC: any): {
24
+ rise: Date;
25
+ set: Date;
26
+ };
27
+ //# sourceMappingURL=suncalc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suncalc.d.ts","sourceRoot":"","sources":["../../../../../../src/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.js"],"names":[],"mappings":"AAmFI;;;EAaC;AAED,4CAEC;;AAeD,uEAEC;AA2BD;;;EAuCC;AAsBD;;;;;EAoBC;AAOD;;;;EAkBC;AASD;;;EAoDC"}
@@ -0,0 +1,13 @@
1
+ import * as THREE from 'three';
2
+ import { Quaternion, Vector3 } from 'three';
3
+ import { LngLatLike } from 'maplibre-gl';
4
+ import { Position } from 'geojson';
5
+ export declare function projectToWorld(coords: Position): THREE.Vector3;
6
+ export declare function unprojectFromWorld(worldUnits: Vector3): LngLatLike;
7
+ export declare function toDecimal(n: any, d: any): number;
8
+ export declare function addModelsToMap(wrapper: any, map: any, models: any, modelMap: any, onModelsLoaded: any): Promise<unknown>;
9
+ export declare function toggleModelVisibility(modelMap: any, modelId: any, isVisible: any): void;
10
+ export declare function bearingToRotation(bearing: number): number;
11
+ export declare function rotationToBearing(quaternion: Quaternion): number;
12
+ export declare function objectDirectionToBearing(object: any): number;
13
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,UAAU,EAAS,OAAO,EAA0B,MAAM,OAAO,CAAC;AAG1E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAMnC,wBAAgB,cAAc,CAAC,MAAM,EAAE,QAAQ,iBAoB9C;AAUD,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,OAAO,cAwBrD;AAED,wBAAgB,SAAS,CAAE,CAAC,KAAA,EAAE,CAAC,KAAA,UAE9B;AAGD,wBAAgB,cAAc,CAAC,OAAO,KAAA,EAAE,GAAG,KAAA,EAAE,MAAM,KAAA,EAAE,QAAQ,KAAA,EAAE,cAAc,KAAA,oBAyD5E;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,KAAA,EAAE,OAAO,KAAA,EAAE,SAAS,KAAA,QA4BjE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,UAIhD;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,UAKvD;AAED,wBAAgB,wBAAwB,CAAC,MAAM,KAAA,UAQ9C"}
@@ -0,0 +1,28 @@
1
+ import { Map as MaplibreMap } from 'maplibre-gl';
2
+ import CustomThreeJSWrapper from './CustomThreeJsWrapper/CustomThreeJsWrapper';
3
+ import { MetaAtlasCore } from '../MetaAtlasCore/meta-atlas-sdk-core';
4
+ import * as THREE from 'three';
5
+ export default class MainMap {
6
+ static mainInstance: MainMap | null;
7
+ map: MaplibreMap;
8
+ threebox: CustomThreeJSWrapper;
9
+ metaAtlasCore: MetaAtlasCore;
10
+ constructor(metaAtlasCore: MetaAtlasCore);
11
+ init(map2D: MaplibreMap): void;
12
+ /**
13
+ * Creates a Threebox instance of the class.
14
+ * @param map Maplibre instance to initialize threebox
15
+ * @returns Threebox class instance created
16
+ */
17
+ private initThreebox;
18
+ /**
19
+ * Get the threebox instance for 3D model operations
20
+ */
21
+ getThreebox(): CustomThreeJSWrapper;
22
+ getAllPolygonCoordinates: () => any[];
23
+ addNewLine(input: string): string;
24
+ updatePolygons: (features: any[]) => void;
25
+ addLogo: (logo: string, position: THREE.Vector3) => THREE.Mesh<THREE.BoxGeometry, (THREE.MeshBasicMaterial | THREE.MeshStandardMaterial)[], THREE.Object3DEventMap>;
26
+ addTitle: (title: string, position: THREE.Vector3) => any;
27
+ }
28
+ //# sourceMappingURL=MainMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainMap.d.ts","sourceRoot":"","sources":["../../../../src/meta-atlas-sdk/3DMap/MainMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,WAAW,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAI/E,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAGrE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,CAAC,OAAO,OAAO,OAAO;IAC1B,OAAc,YAAY,EAAE,OAAO,GAAG,IAAI,CAAQ;IAC3C,GAAG,EAAG,WAAW,CAAC;IAClB,QAAQ,EAAG,oBAAoB,CAAC;IAChC,aAAa,EAAG,aAAa,CAAC;gBAEzB,aAAa,EAAE,aAAa;IAUjC,IAAI,CAAC,KAAK,EAAE,WAAW;IAK9B;;;;OAIG;IACH,OAAO,CAAC,YAAY;IA0BpB;;OAEG;IACH,WAAW;IAIX,wBAAwB,cAkCtB;IAEF,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIjC,cAAc,aAAc,GAAG,EAAE,UA0G/B;IAEF,OAAO,SAAU,MAAM,YAAY,MAAM,OAAO,qHAyC9C;IAGF,QAAQ,UAAW,MAAM,YAAY,MAAM,OAAO,SAuBhD;CACH"}
@@ -0,0 +1,26 @@
1
+ import { LocalStorage } from '../utils/local-storage';
2
+ export declare enum PublishedDataType {
3
+ Routing = "routing",
4
+ MapObjects = "mapObjects"
5
+ }
6
+ export declare enum Status {
7
+ Ready = "Ready",
8
+ Awaiting = "Awaiting",
9
+ DownloadingResources = "DownloadingResources",
10
+ Unavailable = "Unavailable"
11
+ }
12
+ export type StatusUpdateCallbackType = (loaded: boolean) => void;
13
+ export interface ServerAPIInfo {
14
+ URL: string;
15
+ accessToken: string;
16
+ secretKey: string;
17
+ publishedDataType: PublishedDataType;
18
+ }
19
+ export interface PublishedDataInfo {
20
+ currentVersion: string | undefined;
21
+ remoteVersion: string | undefined;
22
+ URL: string | undefined;
23
+ data: string | undefined;
24
+ }
25
+ export declare function getPublishedData(serverAPIInfo: ServerAPIInfo, localStorage: LocalStorage): Promise<Status.Ready | Status.Awaiting>;
26
+ //# sourceMappingURL=fetch-published-json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-published-json.d.ts","sourceRoot":"","sources":["../../../../src/meta-atlas-sdk/MetaAtlasCore/fetch-published-json.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAKtD,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B;AAED,oBAAY,MAAM;IAChB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,oBAAoB,yBAAyB;IAC7C,WAAW,gBAAgB;CAC5B;AAED,MAAM,MAAM,wBAAwB,GAAG,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;AAEjE,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;AAED,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AA8BD,wBAAsB,gBAAgB,CACpC,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,YAAY,2CAyM3B"}
@@ -0,0 +1,13 @@
1
+ import { UserPosition } from './routing-core/interfaces';
2
+ export declare function getEdgeData(mapObjectId: string | UserPosition): any;
3
+ export declare function getRouteNetworkData(whereDimension: string, includeChildren?: boolean): any;
4
+ export declare function getPortalLinks(whereDimension: string): any;
5
+ export declare function getPortalDataForIds(mapObjectIds: string[]): {
6
+ edgeData?: undefined;
7
+ lines?: undefined;
8
+ } | {
9
+ edgeData: any;
10
+ lines: any;
11
+ };
12
+ export declare function getImmigrationDataForTaxonomy1(taxonomy1Path: string): any;
13
+ //# sourceMappingURL=fetchMapObjectsData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchMapObjectsData.d.ts","sourceRoot":"","sources":["../../../../src/meta-atlas-sdk/MetaAtlasCore/fetchMapObjectsData.ts"],"names":[],"mappings":"AACA,OAAO,EAAsC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAO5F,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,YAAY,OAsD7D;AAGD,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,MAAM,EAAE,eAAe,UAAO,OAyBjF;AAGD,wBAAgB,cAAc,CAAC,cAAc,EAAE,MAAM,OAWpD;AAED,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE;;;;;;EAoBzD;AAED,wBAAgB,8BAA8B,CAAC,aAAa,EAAE,MAAM,OAUnE"}