@mappedin/mappedin-js 6.0.1-beta.45 → 6.0.1-beta.47
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.
- package/THIRD_PARTY_LICENSES.txt +2169 -27784
- package/lib/esm/GLTFExporter-TZEIALSW.js +1 -0
- package/lib/esm/GLTFLoader-YCEKYYW3.js +1 -0
- package/lib/esm/{browser-IE62BVYL.js → browser-6R2QCUOI.js} +1 -1
- package/lib/esm/chunk-DNBHISVY.js +1 -0
- package/lib/esm/{chunk-7QYC6UYU.js → chunk-KR33DBLD.js} +1 -1
- package/lib/esm/chunk-KVKD4E33.js +1 -0
- package/lib/esm/chunk-MENDLOSO.js +1 -0
- package/lib/esm/chunk-QRWMPXER.js +1 -0
- package/lib/esm/chunk-TVALVOG4.js +1 -0
- package/lib/esm/chunk-UIDBSU4C.js +1 -0
- package/lib/esm/index.css +1 -1
- package/lib/esm/index.d.ts +338 -129
- package/lib/esm/index.js +1 -1
- package/lib/esm/inspector-CV34C4XG.js +1 -0
- package/lib/esm/inspector-WWR77OPX.css +1 -0
- package/lib/esm/internal-M7DPGYMI.css +1 -0
- package/lib/esm/internal-YXEVD377.js +1 -0
- package/lib/esm/outdoor-context-v4-IEFB4X2Q.js +1 -0
- package/lib/esm/{roboto-regular-E2V4PXOH.js → roboto-regular-JRVF4TIR.js} +1 -1
- package/lib/esm/text3d-RZEC5VQO.js +1 -0
- package/lib/esm/workers/maplibre-worker.csp.js +1 -1
- package/lib/index.css +1 -1
- package/package.json +12 -12
- package/lib/esm/GLTFExporter-33O74ZRA.js +0 -1
- package/lib/esm/GLTFLoader-TFEUICFY.js +0 -1
- package/lib/esm/chunk-AGPZKMLJ.js +0 -1
- package/lib/esm/chunk-HALSTKAB.js +0 -1
- package/lib/esm/chunk-HTXG2WUL.js +0 -1
- package/lib/esm/chunk-L5IJY45Y.js +0 -1
- package/lib/esm/chunk-N5U7Y27D.js +0 -1
- package/lib/esm/chunk-O57EU3PO.js +0 -1
- package/lib/esm/inspector-CC3UZQDZ.js +0 -1
- package/lib/esm/inspector-GOK26VAV.css +0 -1
- package/lib/esm/internal-7A3UJNAV.css +0 -1
- package/lib/esm/internal-MEGLEQC5.js +0 -1
- package/lib/esm/outdoor-context-v4-5DHMHSDP.js +0 -1
- package/lib/esm/text3d-3PC3DCSJ.js +0 -1
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle v0.7.3
|
|
2
2
|
// Dependencies for this module:
|
|
3
3
|
// ../mappedin-js/@packages/internal/mvf-utils
|
|
4
|
-
// ../mappedin-js/@mappedin/mvf
|
|
4
|
+
// ../mappedin-js/@mappedin/mvf-v2
|
|
5
5
|
// ../mappedin-js/@packages/internal/common/pubsub
|
|
6
6
|
// ../mappedin-js/@packages/internal/common/Mappedin.Logger
|
|
7
7
|
// ../mappedin-js/geojson
|
|
@@ -12,14 +12,11 @@
|
|
|
12
12
|
// ../mappedin-js/@tweenjs/tween.js
|
|
13
13
|
// ../mappedin-js/@packages/internal/outdoor-context-v4
|
|
14
14
|
// ../mappedin-js/@packages/internal/geojson-navigator
|
|
15
|
-
// ../mappedin-js/@mappedin/mvf-core
|
|
16
15
|
// ../mappedin-js/three
|
|
17
16
|
// ../mappedin-js/zod
|
|
18
17
|
// ../mappedin-js/@packages/internal/shave-text/shave-text
|
|
19
|
-
// ../mappedin-js/@turf/turf
|
|
20
18
|
// ../mappedin-js/troika-three-text
|
|
21
19
|
// ../mappedin-js/@packages/internal/quad-tree
|
|
22
|
-
// ../mappedin-js/@mappedin/core-sdk/src/components/text3d
|
|
23
20
|
// ../mappedin-js/minisearch
|
|
24
21
|
// ../mappedin-js/three/examples/jsm/loaders/GLTFLoader.js
|
|
25
22
|
// ../mappedin-js/@mapbox/point-geometry
|
|
@@ -38,7 +35,7 @@ declare module '@mappedin/mappedin-js' {
|
|
|
38
35
|
import type { TGetMapDataOptions, TGetMapDataWithAccessTokenOptions, TGetMapDataWithCredentialsOptions, TGetMapDataSharedOptions, Environment } from '@mappedin/mappedin-js/packages/mvf-utils';
|
|
39
36
|
import { parseMVF, unzipMVF } from '@packages/internal/mvf-utils';
|
|
40
37
|
import type { Floor } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
41
|
-
import type { ParsedMVF as TMVF, StyleCollection as TMVFStyleCollection, Style as TMVFStyle, LineStringStyle as TMVFLineStringStyle, PolygonStyle as TMVFPolygonStyle, PointStyle as TMVFPointStyle, ParsedMVFLocalePack, OperationHours, SiblingGroup, LocationState } from '@mappedin/mvf';
|
|
38
|
+
import type { ParsedMVF as TMVF, StyleCollection as TMVFStyleCollection, Style as TMVFStyle, LineStringStyle as TMVFLineStringStyle, PolygonStyle as TMVFPolygonStyle, PointStyle as TMVFPointStyle, ParsedMVFLocalePack, OperationHours, SiblingGroup, LocationState } from '@mappedin/mvf-v2';
|
|
42
39
|
import { MapView } from '@mappedin/mappedin-js/mappedin-js/src/map-view';
|
|
43
40
|
export type { Text3D as Text3DApi } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/text3d';
|
|
44
41
|
export { disableText3DWorker } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/text3d';
|
|
@@ -295,6 +292,22 @@ declare module '@mappedin/mappedin-js' {
|
|
|
295
292
|
* @internal
|
|
296
293
|
*/
|
|
297
294
|
onWebGLRendererError?: (error: Error) => void;
|
|
295
|
+
/**
|
|
296
|
+
* @experimental
|
|
297
|
+
* @internal
|
|
298
|
+
*
|
|
299
|
+
* If true, the map will use a standalone camera for rendering instead of syncing with MapLibre's camera.
|
|
300
|
+
* This enables environment map reflections to update with camera movement in interleaved and overlay modes.
|
|
301
|
+
* Note: This disables building occlusion since the depth buffer is no longer synchronized with MapLibre.
|
|
302
|
+
*
|
|
303
|
+
* @default false
|
|
304
|
+
*/
|
|
305
|
+
useStandaloneCamera?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* Preload floors for the map. Allows floors to appear faster but requires more time and memory up front.
|
|
309
|
+
*/
|
|
310
|
+
preloadFloors?: Floor[];
|
|
298
311
|
};
|
|
299
312
|
/**
|
|
300
313
|
* @internal
|
|
@@ -313,6 +326,7 @@ declare module '@mappedin/mappedin-js' {
|
|
|
313
326
|
export type THydrateMapDataBundle = {
|
|
314
327
|
type: 'binary';
|
|
315
328
|
options?: {
|
|
329
|
+
version?: '2.0.0' | '3.0.0';
|
|
316
330
|
enterprise?: boolean;
|
|
317
331
|
};
|
|
318
332
|
languagePacks?: {
|
|
@@ -326,6 +340,7 @@ declare module '@mappedin/mappedin-js' {
|
|
|
326
340
|
} | {
|
|
327
341
|
type: 'json';
|
|
328
342
|
options?: {
|
|
343
|
+
version?: '2.0.0' | '3.0.0';
|
|
329
344
|
enterprise?: boolean;
|
|
330
345
|
};
|
|
331
346
|
languagePacks?: {
|
|
@@ -637,7 +652,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
|
|
|
637
652
|
/**
|
|
638
653
|
* @internal
|
|
639
654
|
*/
|
|
640
|
-
get currentLanguage(): import("@mappedin/mvf").Language | undefined;
|
|
655
|
+
get currentLanguage(): import("@mappedin/mvf-v2").Language | undefined;
|
|
641
656
|
/**
|
|
642
657
|
* Retrieves the natural bearing of the map, which is the angle, in degrees, the map is considered to be "naturally oriented" towards.
|
|
643
658
|
* Typically the angle perpendicular to the street the map is facing, or the main entrance. Other print maps inside the map may have this direction be up.
|
|
@@ -902,7 +917,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
902
917
|
import FloorStack from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor-stack';
|
|
903
918
|
import Facade from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/facade';
|
|
904
919
|
import type { MapDataRecords, EnterpriseMapDataRecords } from '@mappedin/mappedin-js/mappedin-js/src/utils/data-creation';
|
|
905
|
-
import type { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, FloorProperties as MVFFloor, FloorStack as MVFFloorStack, Language, AreaCollection, TilesetStyle } from '@mappedin/mvf';
|
|
920
|
+
import type { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, FloorProperties as MVFFloor, FloorStack as MVFFloorStack, Language, AreaCollection, TilesetStyle } from '@mappedin/mvf-v2';
|
|
906
921
|
import { AnalyticsInternal } from '@mappedin/mappedin-js/mappedin-js/src/analytics';
|
|
907
922
|
import EnterpriseLocation from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location';
|
|
908
923
|
import EnterpriseCategory from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category';
|
|
@@ -1365,6 +1380,12 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view' {
|
|
|
1365
1380
|
* @param floorStack The floor stack or floor stack ID to set.
|
|
1366
1381
|
*/
|
|
1367
1382
|
setFloorStack(floorStack: FloorStack | string, options?: TSetFloorOptions): void;
|
|
1383
|
+
/**
|
|
1384
|
+
* Preload floor geometry and outlines for the map at runtime. Can be used when anticipating a large number of floors will be visible at once to
|
|
1385
|
+
* keep the map responsive.
|
|
1386
|
+
* @param floors The floors to preload.
|
|
1387
|
+
*/
|
|
1388
|
+
preloadFloors(floors: Floor[]): void;
|
|
1368
1389
|
/**
|
|
1369
1390
|
* Create a tween object that will be updated on every render frame.
|
|
1370
1391
|
* See https://tweenjs.github.io/tween.js/docs/user_guide.html for more information.
|
|
@@ -1810,7 +1831,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
|
|
|
1810
1831
|
import type { Feature, MultiPolygon, Polygon } from 'geojson';
|
|
1811
1832
|
import type { Coordinate, Floor, Door, Space, MapObject, PointOfInterest, Connection, EnterpriseLocation, Node, Area, Facade, FloorStack, Annotation, EnterpriseCategory, EnterpriseVenue, LocationCategory, LocationProfile } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
1812
1833
|
import type { Label, Marker, Model, Image, Shape, Text3D, Path } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
|
|
1813
|
-
import type { Language, ParsedMVFLocalePack } from '@mappedin/mvf';
|
|
1834
|
+
import type { Language, ParsedMVFLocalePack } from '@mappedin/mvf-v2';
|
|
1814
1835
|
import type { InsetPaddingOption, UpdatableText3DState, Text3DState, AddText3DOptions, EnvMapOptions, InitializeModelState, ModelState, UpdateModelState as GeoJsonUpdateModelState, ImagePlacementOptions, LabelAppearance } from '@mappedin/mappedin-js/geojson/src';
|
|
1815
1836
|
import type { PathSegment } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/path';
|
|
1816
1837
|
import type { TFloorChangeReason } from '@mappedin/mappedin-js/mappedin-js/src/events';
|
|
@@ -2003,10 +2024,6 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
|
|
|
2003
2024
|
* The color of the path.
|
|
2004
2025
|
*/
|
|
2005
2026
|
color: string;
|
|
2006
|
-
/**
|
|
2007
|
-
* The complete fraction of the path.
|
|
2008
|
-
*/
|
|
2009
|
-
completeFraction: number;
|
|
2010
2027
|
/**
|
|
2011
2028
|
* The near radius of the path.
|
|
2012
2029
|
*/
|
|
@@ -2015,6 +2032,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
|
|
|
2015
2032
|
* The far radius of the path.
|
|
2016
2033
|
*/
|
|
2017
2034
|
farRadius: number;
|
|
2035
|
+
/**
|
|
2036
|
+
* The fraction of the path that should be complete. This can be used to animate the path.
|
|
2037
|
+
*/
|
|
2038
|
+
completeFraction: number;
|
|
2018
2039
|
/**
|
|
2019
2040
|
* Whether the path is visible.
|
|
2020
2041
|
*/
|
|
@@ -2441,6 +2462,26 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
|
|
|
2441
2462
|
* @defaultValue -Infinite
|
|
2442
2463
|
*/
|
|
2443
2464
|
minAdjustedAltitude?: number;
|
|
2465
|
+
/**
|
|
2466
|
+
* Whether the path should be dashed.
|
|
2467
|
+
*
|
|
2468
|
+
* @defaultValue false
|
|
2469
|
+
*/
|
|
2470
|
+
dashed?: boolean;
|
|
2471
|
+
/**
|
|
2472
|
+
* Whether the path should be visible.
|
|
2473
|
+
*
|
|
2474
|
+
* @defaultValue true
|
|
2475
|
+
*/
|
|
2476
|
+
visible?: boolean;
|
|
2477
|
+
/**
|
|
2478
|
+
* @internal
|
|
2479
|
+
*
|
|
2480
|
+
* Whether the path should be visible through geometry. Can be used to create paths that are visible through walls and floors.
|
|
2481
|
+
*
|
|
2482
|
+
* @defaultValue false
|
|
2483
|
+
*/
|
|
2484
|
+
visibleThroughGeometry?: boolean;
|
|
2444
2485
|
};
|
|
2445
2486
|
/**
|
|
2446
2487
|
* Control how a {@link Label} looks
|
|
@@ -2538,6 +2579,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
|
|
|
2538
2579
|
* If there is no path that does not include the these connections, the directions will be undefined.
|
|
2539
2580
|
*/
|
|
2540
2581
|
excludedConnections?: Connection[];
|
|
2582
|
+
/**
|
|
2583
|
+
* Override the default weights for specific connection ids.
|
|
2584
|
+
*/
|
|
2585
|
+
connectionIdWeightMap?: Record<string, number>;
|
|
2541
2586
|
};
|
|
2542
2587
|
/**
|
|
2543
2588
|
* The target for the add model operation.
|
|
@@ -3622,6 +3667,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api' {
|
|
|
3622
3667
|
Images: Images;
|
|
3623
3668
|
get StackedMaps(): import("..").StackedMaps;
|
|
3624
3669
|
constructor(rendererCore: RendererCore, mapView: MapView);
|
|
3670
|
+
preloadFloors(floors: Floor[]): void;
|
|
3625
3671
|
updateState<T extends Space | Text3DView | MapObject | Label | Shape | Marker | Model | Door | Facade | Floor | WALLS | DOORS | Path | PathSegment | (string & NonNullable<unknown>)>(target: T, state: TUpdateState<T>): void;
|
|
3626
3672
|
update: () => void;
|
|
3627
3673
|
getMapDataInternal(): MapDataInternal | undefined;
|
|
@@ -3732,7 +3778,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/analytics' {
|
|
|
3732
3778
|
}
|
|
3733
3779
|
|
|
3734
3780
|
declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions' {
|
|
3735
|
-
import type { ParsedMVF } from '@mappedin/mvf';
|
|
3781
|
+
import type { ParsedMVF } from '@mappedin/mvf-v2';
|
|
3736
3782
|
import type { DirectionsCollection } from '@packages/internal/geojson-navigator';
|
|
3737
3783
|
import { Navigator } from '@packages/internal/geojson-navigator';
|
|
3738
3784
|
import { Connection, Coordinate, Node, type MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
@@ -3803,6 +3849,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions' {
|
|
|
3803
3849
|
};
|
|
3804
3850
|
zones: TDirectionZone[];
|
|
3805
3851
|
excludedConnections: Connection[];
|
|
3852
|
+
connectionIdWeightMap: Record<string, number>;
|
|
3806
3853
|
}, mapData: MapDataInternal) => Directions | undefined;
|
|
3807
3854
|
/**
|
|
3808
3855
|
* Get the node IDs that should be excluded from the navigation graph.
|
|
@@ -3840,12 +3887,12 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types' {
|
|
|
3840
3887
|
import type Annotation from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/annotation';
|
|
3841
3888
|
import type Connection from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/connection';
|
|
3842
3889
|
import type MapObject from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/object';
|
|
3843
|
-
import type { EnterpriseLocation as MvfEnterpriseLocation, EnterpriseCategory as MvfEnterpriseCategory, ParsedMVFLocalePack, Feature, FloorStack as MvfFloorStack, FloorProperties as MvfFloor } from '@mappedin/mvf';
|
|
3844
|
-
import type { PartialExcept } from '@mappedin/
|
|
3890
|
+
import type { EnterpriseLocation as MvfEnterpriseLocation, EnterpriseCategory as MvfEnterpriseCategory, ParsedMVFLocalePack, Feature, FloorStack as MvfFloorStack, FloorProperties as MvfFloor } from '@mappedin/mvf-v2';
|
|
3891
|
+
import type { PartialExcept } from '@mappedin/mappedin-js/packages/common/types';
|
|
3845
3892
|
import type { LocalePackUrls } from '@packages/internal/mvf-utils';
|
|
3846
3893
|
import type { LanguagePackHydrationItem } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
3847
3894
|
import type { EnvControl, TGetMapDataOptions } from '@packages/internal/mvf-utils/mvf-utils';
|
|
3848
|
-
import { TokenManager } from '@packages/internal/mvf-utils/tokens/token-manager';
|
|
3895
|
+
import type { TokenManager } from '@packages/internal/mvf-utils/tokens/token-manager';
|
|
3849
3896
|
/**
|
|
3850
3897
|
* Places are the main objects that can be searched for.
|
|
3851
3898
|
*/
|
|
@@ -3938,7 +3985,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
|
|
|
3938
3985
|
import type { TGetMapDataOptions, TGetMapDataWithAccessTokenOptions, TGetMapDataWithCredentialsOptions, TGetMapDataSharedOptions, Environment } from '@mappedin/mappedin-js/packages/mvf-utils';
|
|
3939
3986
|
import { parseMVF, unzipMVF } from '@packages/internal/mvf-utils';
|
|
3940
3987
|
import type { Floor } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
3941
|
-
import type { ParsedMVF as TMVF, StyleCollection as TMVFStyleCollection, Style as TMVFStyle, LineStringStyle as TMVFLineStringStyle, PolygonStyle as TMVFPolygonStyle, PointStyle as TMVFPointStyle, ParsedMVFLocalePack, OperationHours, SiblingGroup, LocationState } from '@mappedin/mvf';
|
|
3988
|
+
import type { ParsedMVF as TMVF, StyleCollection as TMVFStyleCollection, Style as TMVFStyle, LineStringStyle as TMVFLineStringStyle, PolygonStyle as TMVFPolygonStyle, PointStyle as TMVFPointStyle, ParsedMVFLocalePack, OperationHours, SiblingGroup, LocationState } from '@mappedin/mvf-v2';
|
|
3942
3989
|
import { MapView } from '@mappedin/mappedin-js/mappedin-js/src/map-view';
|
|
3943
3990
|
export type { Text3D as Text3DApi } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/text3d';
|
|
3944
3991
|
export { disableText3DWorker } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/text3d';
|
|
@@ -4195,6 +4242,22 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
|
|
|
4195
4242
|
* @internal
|
|
4196
4243
|
*/
|
|
4197
4244
|
onWebGLRendererError?: (error: Error) => void;
|
|
4245
|
+
/**
|
|
4246
|
+
* @experimental
|
|
4247
|
+
* @internal
|
|
4248
|
+
*
|
|
4249
|
+
* If true, the map will use a standalone camera for rendering instead of syncing with MapLibre's camera.
|
|
4250
|
+
* This enables environment map reflections to update with camera movement in interleaved and overlay modes.
|
|
4251
|
+
* Note: This disables building occlusion since the depth buffer is no longer synchronized with MapLibre.
|
|
4252
|
+
*
|
|
4253
|
+
* @default false
|
|
4254
|
+
*/
|
|
4255
|
+
useStandaloneCamera?: boolean;
|
|
4256
|
+
/**
|
|
4257
|
+
*
|
|
4258
|
+
* Preload floors for the map. Allows floors to appear faster but requires more time and memory up front.
|
|
4259
|
+
*/
|
|
4260
|
+
preloadFloors?: Floor[];
|
|
4198
4261
|
};
|
|
4199
4262
|
/**
|
|
4200
4263
|
* @internal
|
|
@@ -4213,6 +4276,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
|
|
|
4213
4276
|
export type THydrateMapDataBundle = {
|
|
4214
4277
|
type: 'binary';
|
|
4215
4278
|
options?: {
|
|
4279
|
+
version?: '2.0.0' | '3.0.0';
|
|
4216
4280
|
enterprise?: boolean;
|
|
4217
4281
|
};
|
|
4218
4282
|
languagePacks?: {
|
|
@@ -4226,6 +4290,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
|
|
|
4226
4290
|
} | {
|
|
4227
4291
|
type: 'json';
|
|
4228
4292
|
options?: {
|
|
4293
|
+
version?: '2.0.0' | '3.0.0';
|
|
4229
4294
|
enterprise?: boolean;
|
|
4230
4295
|
};
|
|
4231
4296
|
languagePacks?: {
|
|
@@ -4503,7 +4568,7 @@ declare module '@mappedin/mappedin-js/packages/mvf-utils/api-types' {
|
|
|
4503
4568
|
}
|
|
4504
4569
|
|
|
4505
4570
|
declare module '@mappedin/mappedin-js/packages/mvf-utils/mvf-types' {
|
|
4506
|
-
import type { MapId, Style, Feature, LineString, ObstructionProperties, EntranceProperties, SpaceProperties, ObstructionCollection, EntranceCollection, SpaceCollection, FloorImageProperties, BaseTextAreaProperties, EnterpriseTexture } from '@mappedin/mvf';
|
|
4571
|
+
import type { MapId, Style, Feature, LineString, ObstructionProperties, EntranceProperties, SpaceProperties, ObstructionCollection, EntranceCollection, SpaceCollection, FloorImageProperties, BaseTextAreaProperties, EnterpriseTexture } from '@mappedin/mvf-v2';
|
|
4507
4572
|
import type { FeatureCollection, MultiPolygon, Point, Polygon } from 'geojson';
|
|
4508
4573
|
import type { TImage, TMap, TNode, TOpeningHours, TPhone, TSiblingGroup, TSocial } from '@mappedin/mappedin-js/packages/mvf-utils/api-types';
|
|
4509
4574
|
export type WithIDs<T> = Map<string, T>;
|
|
@@ -4746,7 +4811,7 @@ declare module '@mappedin/mappedin-js/packages/mvf-utils/mvf-types' {
|
|
|
4746
4811
|
}
|
|
4747
4812
|
|
|
4748
4813
|
declare module '@mappedin/mappedin-js/packages/mvf-utils/mvf-utils' {
|
|
4749
|
-
import { type ParsedMVF, type ParsedMVFLocalePack, type RawMVF } from '@mappedin/mvf';
|
|
4814
|
+
import { type ParsedMVF, type ParsedMVFLocalePack, type RawMVF } from '@mappedin/mvf-v2';
|
|
4750
4815
|
import type { ParsedMVFv1, RawMVFv1 } from '@mappedin/mappedin-js/packages/mvf-utils/mvf-types';
|
|
4751
4816
|
export * from '@mappedin/mappedin-js/packages/mvf-utils/tokens/access-token';
|
|
4752
4817
|
export * from '@mappedin/mappedin-js/packages/mvf-utils/tokens/sas-token';
|
|
@@ -4893,6 +4958,11 @@ declare module '@mappedin/mappedin-js/packages/mvf-utils/mvf-utils' {
|
|
|
4893
4958
|
* @internal
|
|
4894
4959
|
*/
|
|
4895
4960
|
layoutId?: 'draft';
|
|
4961
|
+
/**
|
|
4962
|
+
* @hidden
|
|
4963
|
+
* @internal
|
|
4964
|
+
*/
|
|
4965
|
+
mvfVersion?: '2.0.0' | '3.0.0';
|
|
4896
4966
|
};
|
|
4897
4967
|
/**
|
|
4898
4968
|
* @interface
|
|
@@ -5066,6 +5136,7 @@ declare module '@mappedin/mappedin-js/packages/mvf-utils/mvf-utils' {
|
|
|
5066
5136
|
* outdoor map. If a map is not a multi-building map, an empty array is returned.
|
|
5067
5137
|
*/
|
|
5068
5138
|
export const getBuildingIds: (mvf: ParsedMVF) => string[];
|
|
5139
|
+
export function unzipAndParseMVFv2(data: Uint8Array, inputVersion?: '2.0.0' | '3.0.0'): Promise<ParsedMVF>;
|
|
5069
5140
|
}
|
|
5070
5141
|
|
|
5071
5142
|
declare module '@mappedin/mappedin-js/packages/mvf-utils/geometry' {
|
|
@@ -5077,7 +5148,7 @@ declare module '@mappedin/mappedin-js/packages/mvf-utils/geometry' {
|
|
|
5077
5148
|
}
|
|
5078
5149
|
|
|
5079
5150
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/node' {
|
|
5080
|
-
import type { NodeCollection } from '@mappedin/mvf';
|
|
5151
|
+
import type { NodeCollection } from '@mappedin/mvf-v2';
|
|
5081
5152
|
import Coordinate from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/coordinate';
|
|
5082
5153
|
import type { EnterpriseLocation, MapDataInternal, Space } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
5083
5154
|
import type Floor from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor';
|
|
@@ -5150,8 +5221,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/node' {
|
|
|
5150
5221
|
*/
|
|
5151
5222
|
get geoJSON(): {
|
|
5152
5223
|
properties: null;
|
|
5153
|
-
type: import("@mappedin/mvf").FeatureType;
|
|
5154
|
-
geometry: import("@mappedin/mvf").Point;
|
|
5224
|
+
type: import("@mappedin/mvf-v2").FeatureType;
|
|
5225
|
+
geometry: import("@mappedin/mvf-v2").Point;
|
|
5155
5226
|
};
|
|
5156
5227
|
/** @internal */
|
|
5157
5228
|
get focusTarget(): Coordinate;
|
|
@@ -5184,7 +5255,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/node' {
|
|
|
5184
5255
|
}
|
|
5185
5256
|
|
|
5186
5257
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/area' {
|
|
5187
|
-
import type { AreaCollection } from '@mappedin/mvf';
|
|
5258
|
+
import type { AreaCollection } from '@mappedin/mvf-v2';
|
|
5188
5259
|
import { Coordinate, type MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
5189
5260
|
import type Floor from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor';
|
|
5190
5261
|
import type { IGeoJSONData } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types';
|
|
@@ -5239,8 +5310,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/area' {
|
|
|
5239
5310
|
*/
|
|
5240
5311
|
get geoJSON(): {
|
|
5241
5312
|
properties: null;
|
|
5242
|
-
type: import("@mappedin/mvf").FeatureType;
|
|
5243
|
-
geometry: import("@mappedin/mvf").Polygon;
|
|
5313
|
+
type: import("@mappedin/mvf-v2").FeatureType;
|
|
5314
|
+
geometry: import("@mappedin/mvf-v2").Polygon;
|
|
5244
5315
|
};
|
|
5245
5316
|
/** @internal */
|
|
5246
5317
|
get focusTarget(): this;
|
|
@@ -5267,7 +5338,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/area' {
|
|
|
5267
5338
|
}
|
|
5268
5339
|
|
|
5269
5340
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/door' {
|
|
5270
|
-
import type { EntranceCollection } from '@mappedin/mvf';
|
|
5341
|
+
import type { EntranceCollection } from '@mappedin/mvf-v2';
|
|
5271
5342
|
import Coordinate from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/coordinate';
|
|
5272
5343
|
import type Floor from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor';
|
|
5273
5344
|
import type { MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
@@ -5348,8 +5419,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/door' {
|
|
|
5348
5419
|
*/
|
|
5349
5420
|
get geoJSON(): {
|
|
5350
5421
|
properties: null;
|
|
5351
|
-
type: import("@mappedin/mvf").FeatureType;
|
|
5352
|
-
geometry: import("@mappedin/mvf").LineString;
|
|
5422
|
+
type: import("@mappedin/mvf-v2").FeatureType;
|
|
5423
|
+
geometry: import("@mappedin/mvf-v2").LineString;
|
|
5353
5424
|
};
|
|
5354
5425
|
/** @internal */
|
|
5355
5426
|
get focusTarget(): Coordinate;
|
|
@@ -5382,7 +5453,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/door' {
|
|
|
5382
5453
|
}
|
|
5383
5454
|
|
|
5384
5455
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space' {
|
|
5385
|
-
import type { SpaceCollection } from '@mappedin/mvf';
|
|
5456
|
+
import type { SpaceCollection } from '@mappedin/mvf-v2';
|
|
5386
5457
|
import Coordinate from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/coordinate';
|
|
5387
5458
|
import type { EnterpriseLocation, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
5388
5459
|
import type Floor from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor';
|
|
@@ -5421,7 +5492,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space' {
|
|
|
5421
5492
|
* @internal
|
|
5422
5493
|
* @hidden
|
|
5423
5494
|
*/
|
|
5424
|
-
getMvfData(): import("@mappedin/mvf").Feature<import("@mappedin/mvf").Polygon | import("@mappedin/mvf").LineString | import("@mappedin/mvf").Point, import("@mappedin/mvf").SpaceProperties>;
|
|
5495
|
+
getMvfData(): import("@mappedin/mvf-v2").Feature<import("@mappedin/mvf-v2").Polygon | import("@mappedin/mvf-v2").LineString | import("@mappedin/mvf-v2").Point, import("@mappedin/mvf-v2").SpaceProperties>;
|
|
5425
5496
|
/**
|
|
5426
5497
|
* Checks if the provided instance is of type Space.
|
|
5427
5498
|
*
|
|
@@ -5470,8 +5541,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space' {
|
|
|
5470
5541
|
*/
|
|
5471
5542
|
get geoJSON(): {
|
|
5472
5543
|
properties: null;
|
|
5473
|
-
type: import("@mappedin/mvf").FeatureType;
|
|
5474
|
-
geometry: import("@mappedin/mvf").Polygon | import("@mappedin/mvf").LineString | import("@mappedin/mvf").Point;
|
|
5544
|
+
type: import("@mappedin/mvf-v2").FeatureType;
|
|
5545
|
+
geometry: import("@mappedin/mvf-v2").Polygon | import("@mappedin/mvf-v2").LineString | import("@mappedin/mvf-v2").Point;
|
|
5475
5546
|
};
|
|
5476
5547
|
/** @internal */
|
|
5477
5548
|
get focusTarget(): Coordinate | this;
|
|
@@ -5510,7 +5581,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space' {
|
|
|
5510
5581
|
}
|
|
5511
5582
|
|
|
5512
5583
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor' {
|
|
5513
|
-
import type { Feature, FloorCollection, MultiPolygon, Polygon } from '@mappedin/mvf';
|
|
5584
|
+
import type { Feature, FloorCollection, MultiPolygon, Polygon } from '@mappedin/mvf-v2';
|
|
5514
5585
|
import type { Annotation, Connection, Door, MapDataInternal, PointOfInterest, Space, MapObject, FloorStack } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
5515
5586
|
import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
|
|
5516
5587
|
import type { IFocusable } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
@@ -5643,7 +5714,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor' {
|
|
|
5643
5714
|
}
|
|
5644
5715
|
|
|
5645
5716
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/connection' {
|
|
5646
|
-
import type { Feature, FeatureCollection, Point, SpaceProperties, Connection as MVFConnection } from '@mappedin/mvf';
|
|
5717
|
+
import type { Feature, FeatureCollection, Point, SpaceProperties, Connection as MVFConnection } from '@mappedin/mvf-v2';
|
|
5647
5718
|
import Coordinate from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/coordinate';
|
|
5648
5719
|
import type Node from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/node';
|
|
5649
5720
|
import type { Floor, LocationProfile, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
@@ -5748,7 +5819,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/connectio
|
|
|
5748
5819
|
}
|
|
5749
5820
|
|
|
5750
5821
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/object' {
|
|
5751
|
-
import type { ObstructionCollection } from '@mappedin/mvf';
|
|
5822
|
+
import type { ObstructionCollection } from '@mappedin/mvf-v2';
|
|
5752
5823
|
import Coordinate from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/coordinate';
|
|
5753
5824
|
import type { MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
5754
5825
|
import type Floor from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor';
|
|
@@ -5811,8 +5882,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/object' {
|
|
|
5811
5882
|
*/
|
|
5812
5883
|
get geoJSON(): {
|
|
5813
5884
|
properties: null;
|
|
5814
|
-
type: import("@mappedin/mvf").FeatureType;
|
|
5815
|
-
geometry: import("@mappedin/mvf").Polygon | import("@mappedin/mvf").LineString;
|
|
5885
|
+
type: import("@mappedin/mvf-v2").FeatureType;
|
|
5886
|
+
geometry: import("@mappedin/mvf-v2").Polygon | import("@mappedin/mvf-v2").LineString;
|
|
5816
5887
|
};
|
|
5817
5888
|
/** @internal */
|
|
5818
5889
|
get anchorTarget(): Coordinate;
|
|
@@ -5959,7 +6030,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/coordinat
|
|
|
5959
6030
|
}
|
|
5960
6031
|
|
|
5961
6032
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/poi' {
|
|
5962
|
-
import type { FeatureCollection, Point, SpaceProperties } from '@mappedin/mvf';
|
|
6033
|
+
import type { FeatureCollection, Point, SpaceProperties } from '@mappedin/mvf-v2';
|
|
5963
6034
|
import type { Floor, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
5964
6035
|
import Coordinate from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/coordinate';
|
|
5965
6036
|
import type { IGeoJSONData } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types';
|
|
@@ -6013,7 +6084,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/poi' {
|
|
|
6013
6084
|
*/
|
|
6014
6085
|
get geoJSON(): {
|
|
6015
6086
|
properties: null;
|
|
6016
|
-
type: import("@mappedin/mvf").FeatureType;
|
|
6087
|
+
type: import("@mappedin/mvf-v2").FeatureType;
|
|
6017
6088
|
geometry: Point;
|
|
6018
6089
|
};
|
|
6019
6090
|
/** @internal */
|
|
@@ -6047,7 +6118,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/poi' {
|
|
|
6047
6118
|
}
|
|
6048
6119
|
|
|
6049
6120
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/annotation' {
|
|
6050
|
-
import type { AnnotationCollection } from '@mappedin/mvf';
|
|
6121
|
+
import type { AnnotationCollection } from '@mappedin/mvf-v2';
|
|
6051
6122
|
import type { Floor, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
6052
6123
|
import Coordinate from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/coordinate';
|
|
6053
6124
|
import type { IGeoJSONData } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types';
|
|
@@ -6114,8 +6185,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/annotatio
|
|
|
6114
6185
|
*/
|
|
6115
6186
|
get geoJSON(): {
|
|
6116
6187
|
properties: null;
|
|
6117
|
-
type: import("@mappedin/mvf").FeatureType;
|
|
6118
|
-
geometry: import("@mappedin/mvf").Point;
|
|
6188
|
+
type: import("@mappedin/mvf-v2").FeatureType;
|
|
6189
|
+
geometry: import("@mappedin/mvf-v2").Point;
|
|
6119
6190
|
};
|
|
6120
6191
|
/** @internal */
|
|
6121
6192
|
get focusTarget(): Coordinate;
|
|
@@ -6148,7 +6219,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/annotatio
|
|
|
6148
6219
|
}
|
|
6149
6220
|
|
|
6150
6221
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink' {
|
|
6151
|
-
import type { LocationLink, Hyperlink as MVFHyperlink } from '@mappedin/mvf';
|
|
6222
|
+
import type { LocationLink, Hyperlink as MVFHyperlink } from '@mappedin/mvf-v2';
|
|
6152
6223
|
import BaseMetaData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-metadata-object';
|
|
6153
6224
|
/**
|
|
6154
6225
|
* A class representing hyperlink link data within the map.
|
|
@@ -6205,7 +6276,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink
|
|
|
6205
6276
|
}
|
|
6206
6277
|
|
|
6207
6278
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image' {
|
|
6208
|
-
import type { Image as MVFImage } from '@mappedin/mvf';
|
|
6279
|
+
import type { Image as MVFImage } from '@mappedin/mvf-v2';
|
|
6209
6280
|
import BaseMetaData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-metadata-object';
|
|
6210
6281
|
import type { MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
6211
6282
|
/**
|
|
@@ -6272,7 +6343,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image' {
|
|
|
6272
6343
|
}
|
|
6273
6344
|
|
|
6274
6345
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor-stack' {
|
|
6275
|
-
import type { FloorStack as MVFFloorStack } from '@mappedin/mvf';
|
|
6346
|
+
import type { FloorStack as MVFFloorStack } from '@mappedin/mvf-v2';
|
|
6276
6347
|
import type { MapDataInternal, Floor, Facade } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
6277
6348
|
import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
|
|
6278
6349
|
/**
|
|
@@ -6364,7 +6435,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/facade' {
|
|
|
6364
6435
|
import type { Space, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
6365
6436
|
import { Coordinate } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
6366
6437
|
import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
|
|
6367
|
-
import type { Facade as MVFFacade } from '@mappedin/mvf';
|
|
6438
|
+
import type { Facade as MVFFacade } from '@mappedin/mvf-v2';
|
|
6368
6439
|
import type { IAnchorable, IFocusable } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
6369
6440
|
/**
|
|
6370
6441
|
* A Facade is a collection of spaces that make up the exterior representation of a Floor Stack ({@link FloorStack}).
|
|
@@ -6406,7 +6477,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/facade' {
|
|
|
6406
6477
|
}
|
|
6407
6478
|
|
|
6408
6479
|
declare module '@mappedin/mappedin-js/mappedin-js/src/utils/data-creation' {
|
|
6409
|
-
import type { AnnotationCollection, EntranceCollection, FeatureCollection, Connection as MVFConnection, EnterpriseCategory as MVFEnterpriseCategory, EnterpriseCategoryId as MVFEnterpriseCategoryId, EnterpriseLocation as MVFEnterpriseLocation, EnterpriseLocationId as MVFEnterpriseLocationId, EnterpriseVenue as MVFEnterpriseVenue, FloorProperties as MVFFloor, FloorStack as MVFFloorStack, NodeCollection, ObstructionCollection, ParsedMVF, Point, SpaceCollection, SpaceProperties, AreaCollection, AreaId, EnterpriseLocationInstance, SpaceId } from '@mappedin/mvf';
|
|
6480
|
+
import type { AnnotationCollection, EntranceCollection, FeatureCollection, Connection as MVFConnection, EnterpriseCategory as MVFEnterpriseCategory, EnterpriseCategoryId as MVFEnterpriseCategoryId, EnterpriseLocation as MVFEnterpriseLocation, EnterpriseLocationId as MVFEnterpriseLocationId, EnterpriseVenue as MVFEnterpriseVenue, FloorProperties as MVFFloor, FloorStack as MVFFloorStack, NodeCollection, ObstructionCollection, ParsedMVF, Point, SpaceCollection, SpaceProperties, AreaCollection, AreaId, EnterpriseLocationInstance, SpaceId } from '@mappedin/mvf-v2';
|
|
6410
6481
|
import { Annotation, Area, Connection, Door, EnterpriseCategory, EnterpriseLocation, Facade, Floor, FloorStack, MapObject, Node, PointOfInterest, Space, LocationCategory, LocationProfile, type MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
6411
6482
|
export type MapDataRecords = {
|
|
6412
6483
|
spacesById: Record<string, Space>;
|
|
@@ -6510,7 +6581,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/utils/data-creation' {
|
|
|
6510
6581
|
}
|
|
6511
6582
|
|
|
6512
6583
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location' {
|
|
6513
|
-
import type { EnterpriseLocation as MVFEnterpriseLocation, LocationState, OperationHours, SiblingGroup } from '@mappedin/mvf';
|
|
6584
|
+
import type { EnterpriseLocation as MVFEnterpriseLocation, LocationState, OperationHours, SiblingGroup } from '@mappedin/mvf-v2';
|
|
6514
6585
|
import type { Coordinate, EnterpriseCategory, MapDataInternal, Space } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
6515
6586
|
import type Node from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/node';
|
|
6516
6587
|
import BaseMetaData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-metadata-object';
|
|
@@ -6669,6 +6740,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location'
|
|
|
6669
6740
|
* The type of the location.
|
|
6670
6741
|
*/
|
|
6671
6742
|
type: string;
|
|
6743
|
+
/**
|
|
6744
|
+
* Whether the location has been marked as hidden.
|
|
6745
|
+
*/
|
|
6746
|
+
hidden: boolean;
|
|
6672
6747
|
/**
|
|
6673
6748
|
* Checks if the provided instance is of type EnterpriseLocation.
|
|
6674
6749
|
*
|
|
@@ -6711,7 +6786,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location'
|
|
|
6711
6786
|
}
|
|
6712
6787
|
|
|
6713
6788
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category' {
|
|
6714
|
-
import type { EnterpriseCategory as MVFEnterpriseCategory } from '@mappedin/mvf';
|
|
6789
|
+
import type { EnterpriseCategory as MVFEnterpriseCategory } from '@mappedin/mvf-v2';
|
|
6715
6790
|
import type { MapDataInternal, EnterpriseLocation } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
6716
6791
|
import BaseMetaData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-metadata-object';
|
|
6717
6792
|
/**
|
|
@@ -6807,7 +6882,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category'
|
|
|
6807
6882
|
}
|
|
6808
6883
|
|
|
6809
6884
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/venue' {
|
|
6810
|
-
import type { EnterpriseVenue as MVFEnterpriseVenue, Language } from '@mappedin/mvf';
|
|
6885
|
+
import type { EnterpriseVenue as MVFEnterpriseVenue, Language } from '@mappedin/mvf-v2';
|
|
6811
6886
|
import type { Hyperlink, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
6812
6887
|
import BaseMetaData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-metadata-object';
|
|
6813
6888
|
/**
|
|
@@ -6921,7 +6996,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/venue' {
|
|
|
6921
6996
|
}
|
|
6922
6997
|
|
|
6923
6998
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-profile' {
|
|
6924
|
-
import type { LocationId, LocationSocial, Location as MVFLocation } from '@mappedin/mvf';
|
|
6999
|
+
import type { LocationId, LocationSocial, Location as MVFLocation } from '@mappedin/mvf-v2';
|
|
6925
7000
|
import BaseMetaData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-metadata-object';
|
|
6926
7001
|
import type { Annotation, Connection, Door, LocationCategory, MapDataInternal, Space, MapObject, PointOfInterest, Area } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
6927
7002
|
import type { TFocusTarget, TNavigationTarget, IFocusable, INavigatable } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
@@ -7055,7 +7130,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-
|
|
|
7055
7130
|
}
|
|
7056
7131
|
|
|
7057
7132
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-category' {
|
|
7058
|
-
import type { CategoryId, Category as MVFCategory } from '@mappedin/mvf';
|
|
7133
|
+
import type { CategoryId, Category as MVFCategory } from '@mappedin/mvf-v2';
|
|
7059
7134
|
import BaseMetaData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-metadata-object';
|
|
7060
7135
|
import type { LocationProfile, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
7061
7136
|
class LocationCategory extends BaseMetaData implements Omit<MVFCategory, 'parent'> {
|
|
@@ -7669,6 +7744,14 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
7669
7744
|
* Arrows on path should animate to indicate direction
|
|
7670
7745
|
*/
|
|
7671
7746
|
animateArrowsOnPath?: boolean;
|
|
7747
|
+
/**
|
|
7748
|
+
* Whether the path should be visible through geometry.
|
|
7749
|
+
*/
|
|
7750
|
+
visibleThroughGeometry?: boolean;
|
|
7751
|
+
/**
|
|
7752
|
+
* Whether the path should be dashed.
|
|
7753
|
+
*/
|
|
7754
|
+
dashed?: boolean;
|
|
7672
7755
|
};
|
|
7673
7756
|
export const addPathOptionsSchema: z.ZodObject<{
|
|
7674
7757
|
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -7680,6 +7763,8 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
7680
7763
|
animateArrowsOnPath: z.ZodOptional<z.ZodBoolean>;
|
|
7681
7764
|
nearZoomLevel: z.ZodOptional<z.ZodNumber>;
|
|
7682
7765
|
farZoomLevel: z.ZodOptional<z.ZodNumber>;
|
|
7766
|
+
visibleThroughGeometry: z.ZodOptional<z.ZodBoolean>;
|
|
7767
|
+
dashed: z.ZodOptional<z.ZodBoolean>;
|
|
7683
7768
|
}, "strip", z.ZodTypeAny, {
|
|
7684
7769
|
id?: string | undefined;
|
|
7685
7770
|
interactive?: boolean | undefined;
|
|
@@ -7690,6 +7775,8 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
7690
7775
|
nearZoomLevel?: number | undefined;
|
|
7691
7776
|
farRadius?: number | undefined;
|
|
7692
7777
|
farZoomLevel?: number | undefined;
|
|
7778
|
+
visibleThroughGeometry?: boolean | undefined;
|
|
7779
|
+
dashed?: boolean | undefined;
|
|
7693
7780
|
}, {
|
|
7694
7781
|
id?: string | undefined;
|
|
7695
7782
|
interactive?: boolean | undefined;
|
|
@@ -7700,6 +7787,8 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
7700
7787
|
nearZoomLevel?: number | undefined;
|
|
7701
7788
|
farRadius?: number | undefined;
|
|
7702
7789
|
farZoomLevel?: number | undefined;
|
|
7790
|
+
visibleThroughGeometry?: boolean | undefined;
|
|
7791
|
+
dashed?: boolean | undefined;
|
|
7703
7792
|
}>;
|
|
7704
7793
|
export const featureSchema: z.ZodObject<{
|
|
7705
7794
|
type: z.ZodEnum<["Feature"]>;
|
|
@@ -7760,6 +7849,8 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
7760
7849
|
altitudeAdjustment: number;
|
|
7761
7850
|
displayArrowsOnPath: boolean;
|
|
7762
7851
|
animateArrowsOnPath: boolean;
|
|
7852
|
+
visibleThroughGeometry: boolean;
|
|
7853
|
+
dashed: boolean;
|
|
7763
7854
|
/**
|
|
7764
7855
|
* If the path is vertical it will be rebuilt whenever altitudeDirty = true. This will be set during the first render of the path.
|
|
7765
7856
|
*/
|
|
@@ -7836,6 +7927,22 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
7836
7927
|
active?: string | undefined;
|
|
7837
7928
|
inactive?: string | undefined;
|
|
7838
7929
|
}>>;
|
|
7930
|
+
iconSizeInterpolation: z.ZodOptional<z.ZodObject<{
|
|
7931
|
+
nearZoomLevel: z.ZodOptional<z.ZodNumber>;
|
|
7932
|
+
farZoomLevel: z.ZodOptional<z.ZodNumber>;
|
|
7933
|
+
nearScale: z.ZodOptional<z.ZodNumber>;
|
|
7934
|
+
farScale: z.ZodOptional<z.ZodNumber>;
|
|
7935
|
+
}, "strip", z.ZodTypeAny, {
|
|
7936
|
+
nearZoomLevel?: number | undefined;
|
|
7937
|
+
farZoomLevel?: number | undefined;
|
|
7938
|
+
nearScale?: number | undefined;
|
|
7939
|
+
farScale?: number | undefined;
|
|
7940
|
+
}, {
|
|
7941
|
+
nearZoomLevel?: number | undefined;
|
|
7942
|
+
farZoomLevel?: number | undefined;
|
|
7943
|
+
nearScale?: number | undefined;
|
|
7944
|
+
farScale?: number | undefined;
|
|
7945
|
+
}>>;
|
|
7839
7946
|
}, "strip", z.ZodTypeAny, {
|
|
7840
7947
|
size?: number | undefined;
|
|
7841
7948
|
backgroundColor?: {
|
|
@@ -7846,6 +7953,12 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
7846
7953
|
active?: string | undefined;
|
|
7847
7954
|
inactive?: string | undefined;
|
|
7848
7955
|
} | undefined;
|
|
7956
|
+
iconSizeInterpolation?: {
|
|
7957
|
+
nearZoomLevel?: number | undefined;
|
|
7958
|
+
farZoomLevel?: number | undefined;
|
|
7959
|
+
nearScale?: number | undefined;
|
|
7960
|
+
farScale?: number | undefined;
|
|
7961
|
+
} | undefined;
|
|
7849
7962
|
}, {
|
|
7850
7963
|
size?: number | undefined;
|
|
7851
7964
|
backgroundColor?: {
|
|
@@ -7856,6 +7969,12 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
7856
7969
|
active?: string | undefined;
|
|
7857
7970
|
inactive?: string | undefined;
|
|
7858
7971
|
} | undefined;
|
|
7972
|
+
iconSizeInterpolation?: {
|
|
7973
|
+
nearZoomLevel?: number | undefined;
|
|
7974
|
+
farZoomLevel?: number | undefined;
|
|
7975
|
+
nearScale?: number | undefined;
|
|
7976
|
+
farScale?: number | undefined;
|
|
7977
|
+
} | undefined;
|
|
7859
7978
|
}>>;
|
|
7860
7979
|
}, "strip", z.ZodTypeAny, {
|
|
7861
7980
|
text?: {
|
|
@@ -7877,6 +7996,12 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
7877
7996
|
active?: string | undefined;
|
|
7878
7997
|
inactive?: string | undefined;
|
|
7879
7998
|
} | undefined;
|
|
7999
|
+
iconSizeInterpolation?: {
|
|
8000
|
+
nearZoomLevel?: number | undefined;
|
|
8001
|
+
farZoomLevel?: number | undefined;
|
|
8002
|
+
nearScale?: number | undefined;
|
|
8003
|
+
farScale?: number | undefined;
|
|
8004
|
+
} | undefined;
|
|
7880
8005
|
} | undefined;
|
|
7881
8006
|
}, {
|
|
7882
8007
|
text?: {
|
|
@@ -7898,6 +8023,12 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
7898
8023
|
active?: string | undefined;
|
|
7899
8024
|
inactive?: string | undefined;
|
|
7900
8025
|
} | undefined;
|
|
8026
|
+
iconSizeInterpolation?: {
|
|
8027
|
+
nearZoomLevel?: number | undefined;
|
|
8028
|
+
farZoomLevel?: number | undefined;
|
|
8029
|
+
nearScale?: number | undefined;
|
|
8030
|
+
farScale?: number | undefined;
|
|
8031
|
+
} | undefined;
|
|
7901
8032
|
} | undefined;
|
|
7902
8033
|
}>>;
|
|
7903
8034
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7923,6 +8054,12 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
7923
8054
|
active?: string | undefined;
|
|
7924
8055
|
inactive?: string | undefined;
|
|
7925
8056
|
} | undefined;
|
|
8057
|
+
iconSizeInterpolation?: {
|
|
8058
|
+
nearZoomLevel?: number | undefined;
|
|
8059
|
+
farZoomLevel?: number | undefined;
|
|
8060
|
+
nearScale?: number | undefined;
|
|
8061
|
+
farScale?: number | undefined;
|
|
8062
|
+
} | undefined;
|
|
7926
8063
|
} | undefined;
|
|
7927
8064
|
} | undefined;
|
|
7928
8065
|
}, {
|
|
@@ -7948,6 +8085,12 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
7948
8085
|
active?: string | undefined;
|
|
7949
8086
|
inactive?: string | undefined;
|
|
7950
8087
|
} | undefined;
|
|
8088
|
+
iconSizeInterpolation?: {
|
|
8089
|
+
nearZoomLevel?: number | undefined;
|
|
8090
|
+
farZoomLevel?: number | undefined;
|
|
8091
|
+
nearScale?: number | undefined;
|
|
8092
|
+
farScale?: number | undefined;
|
|
8093
|
+
} | undefined;
|
|
7951
8094
|
} | undefined;
|
|
7952
8095
|
} | undefined;
|
|
7953
8096
|
}>;
|
|
@@ -8114,6 +8257,27 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
8114
8257
|
* @default -Infinity
|
|
8115
8258
|
*/
|
|
8116
8259
|
iconVisibleAtZoomLevel?: number;
|
|
8260
|
+
/**
|
|
8261
|
+
* Interpolates the icon size based on the zoom level.
|
|
8262
|
+
*/
|
|
8263
|
+
iconSizeInterpolation?: {
|
|
8264
|
+
/**
|
|
8265
|
+
* The zoom level closest to the ground, where the icon is at "maxScale"
|
|
8266
|
+
*/
|
|
8267
|
+
maxZoomLevel: number;
|
|
8268
|
+
/**
|
|
8269
|
+
* The zoom level farthest from the ground, where the icon is at "minScale"
|
|
8270
|
+
*/
|
|
8271
|
+
minZoomLevel: number;
|
|
8272
|
+
/**
|
|
8273
|
+
* The scale of the icon at "maxZoomLevel"
|
|
8274
|
+
*/
|
|
8275
|
+
maxScale: number;
|
|
8276
|
+
/**
|
|
8277
|
+
* The scale of the icon at "minZoomLevel"
|
|
8278
|
+
*/
|
|
8279
|
+
minScale: number;
|
|
8280
|
+
};
|
|
8117
8281
|
};
|
|
8118
8282
|
};
|
|
8119
8283
|
/**
|
|
@@ -8153,6 +8317,7 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
8153
8317
|
*/
|
|
8154
8318
|
attachTo?: EntityId<GeometryState> | string | null;
|
|
8155
8319
|
};
|
|
8320
|
+
export const DEFAULT_ICON_PADDING = 2;
|
|
8156
8321
|
type TStyle = {
|
|
8157
8322
|
top?: number;
|
|
8158
8323
|
left?: number;
|
|
@@ -8161,6 +8326,8 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
8161
8326
|
textAlign?: TEXTALIGN;
|
|
8162
8327
|
cachedSymbol?: HTMLCanvasElement;
|
|
8163
8328
|
};
|
|
8329
|
+
export const isOneOfTextDirtyOptions: (currentAppearance: LabelAppearance, newAppearance: LabelAppearance) => boolean;
|
|
8330
|
+
export const isOneOfMarkerDirtyOptions: (currentAppearance: LabelAppearance, newAppearance: LabelAppearance) => boolean;
|
|
8164
8331
|
type LabelAppearanceFillenIn = {
|
|
8165
8332
|
margin: number;
|
|
8166
8333
|
text: {
|
|
@@ -8186,6 +8353,12 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
8186
8353
|
iconOverflow: 'visible' | 'hidden';
|
|
8187
8354
|
icon?: string;
|
|
8188
8355
|
iconVisibleAtZoomLevel?: number;
|
|
8356
|
+
iconSizeInterpolation?: {
|
|
8357
|
+
maxZoomLevel: number;
|
|
8358
|
+
minZoomLevel: number;
|
|
8359
|
+
maxScale: number;
|
|
8360
|
+
minScale: number;
|
|
8361
|
+
};
|
|
8189
8362
|
};
|
|
8190
8363
|
};
|
|
8191
8364
|
export type LabelOptions = {
|
|
@@ -8251,6 +8424,7 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
8251
8424
|
verticalOffset: number;
|
|
8252
8425
|
};
|
|
8253
8426
|
export class LabelComponent {
|
|
8427
|
+
#private;
|
|
8254
8428
|
lines: number;
|
|
8255
8429
|
id: string;
|
|
8256
8430
|
rank: number;
|
|
@@ -8291,8 +8465,14 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
8291
8465
|
height: number;
|
|
8292
8466
|
};
|
|
8293
8467
|
currentStrategyIndex: number;
|
|
8294
|
-
|
|
8468
|
+
iconScale: number;
|
|
8469
|
+
get totalMarkerSize(): number;
|
|
8470
|
+
set totalMarkerSize(size: number);
|
|
8471
|
+
get scaledIconPadding(): number;
|
|
8472
|
+
set scaledIconPadding(padding: number);
|
|
8295
8473
|
dirty: boolean;
|
|
8474
|
+
textDirty: boolean;
|
|
8475
|
+
markerDirty: boolean;
|
|
8296
8476
|
/** Flag used in 2d-projection system to determine if the parent has changed */
|
|
8297
8477
|
attachedDirty: boolean;
|
|
8298
8478
|
collisionDirty: boolean;
|
|
@@ -8307,6 +8487,7 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
|
|
|
8307
8487
|
get lowPriorityStrategyIndex(): 3 | -1;
|
|
8308
8488
|
get strategies(): any[];
|
|
8309
8489
|
animate: boolean;
|
|
8490
|
+
recomputeCurrentStrategy(scale?: number): void;
|
|
8310
8491
|
onStrategySelected: (strategyIndex: any) => void;
|
|
8311
8492
|
updatePosition(): void;
|
|
8312
8493
|
disable(): void;
|
|
@@ -8368,6 +8549,10 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/group-container' {
|
|
|
8368
8549
|
* The opacity of the group container, which sets the opacity of all its children
|
|
8369
8550
|
*/
|
|
8370
8551
|
opacity: number;
|
|
8552
|
+
/**
|
|
8553
|
+
* If true, the group container will preload geometry for its children even when invisible.
|
|
8554
|
+
*/
|
|
8555
|
+
readonly preloadGeometry: boolean;
|
|
8371
8556
|
};
|
|
8372
8557
|
export class GroupContainerObject3D extends Object3D {
|
|
8373
8558
|
childrenIds: Set<string | number>;
|
|
@@ -8383,6 +8568,10 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/group-container' {
|
|
|
8383
8568
|
opacity: number;
|
|
8384
8569
|
/** The effective opacity of the entity after all parent containers have been considered. */
|
|
8385
8570
|
computedOpacity: number;
|
|
8571
|
+
/**
|
|
8572
|
+
* If true, the group container will preload geometry for its children even when invisible.
|
|
8573
|
+
*/
|
|
8574
|
+
preloadGeometry: boolean;
|
|
8386
8575
|
};
|
|
8387
8576
|
components: [StackComponent?, InteractionComponent?, FocusableComponent?];
|
|
8388
8577
|
constructor(id: string);
|
|
@@ -8391,6 +8580,7 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/group-container' {
|
|
|
8391
8580
|
removeEntity(entityGroupOrContainer: EntityTypes): void;
|
|
8392
8581
|
setVisible(visible: boolean): void;
|
|
8393
8582
|
setAltitude(altitude: number): void;
|
|
8583
|
+
set2DGeometryChildrenPositionDirty(): void;
|
|
8394
8584
|
get altitude(): number;
|
|
8395
8585
|
setOpacity(opacity: number): void;
|
|
8396
8586
|
get opacity(): number;
|
|
@@ -8840,6 +9030,7 @@ declare module '@mappedin/mappedin-js/geojson/src/types' {
|
|
|
8840
9030
|
cameraObject: Camera;
|
|
8841
9031
|
naturalBearing: number;
|
|
8842
9032
|
containerOffset: [number, number];
|
|
9033
|
+
useStandaloneCamera: boolean;
|
|
8843
9034
|
};
|
|
8844
9035
|
/**
|
|
8845
9036
|
* All of the entities in the scene
|
|
@@ -8903,10 +9094,9 @@ declare module '@mappedin/mappedin-js/geojson/src/components/mesh' {
|
|
|
8903
9094
|
import { BatchedMesh, Color, Vector3 } from 'three';
|
|
8904
9095
|
import type { BatchedStandardMaterial } from '@mappedin/mappedin-js/geojson/src/systems/mesh-creation-and-optimization/batched-material';
|
|
8905
9096
|
import type { EntityId, Position } from '@mappedin/mappedin-js/geojson/src/types';
|
|
8906
|
-
import type { Feature, LineString, MultiLineString, MultiPolygon, Polygon, Position as GeoJsonPosition } from 'geojson';
|
|
8907
|
-
import type { BBox } from '@turf/turf';
|
|
9097
|
+
import type { Feature, LineString, MultiLineString, MultiPolygon, Polygon, Position as GeoJsonPosition, BBox } from 'geojson';
|
|
8908
9098
|
import { type ImageProperties } from '@mappedin/mappedin-js/geojson/src/components/image';
|
|
8909
|
-
import { type BaseTextAreaProperties, type EnterpriseTexture } from '@mappedin/mvf';
|
|
9099
|
+
import { type BaseTextAreaProperties, type EnterpriseTexture } from '@mappedin/mvf-v2';
|
|
8910
9100
|
import type { Text } from 'troika-three-text';
|
|
8911
9101
|
import type { GeometryGroupState } from '@mappedin/mappedin-js/geojson/src/entities/geometry-group';
|
|
8912
9102
|
export class EntityBatchedMesh extends BatchedMesh {
|
|
@@ -9136,15 +9326,15 @@ declare module '@mappedin/mappedin-js/geojson/src/components/custom' {
|
|
|
9136
9326
|
constructor(feature: Feature<Point>, builder: CustomGeometryBuilder);
|
|
9137
9327
|
get visible(): boolean;
|
|
9138
9328
|
set visible(value: boolean);
|
|
9139
|
-
set opacity(
|
|
9329
|
+
set opacity(value: number);
|
|
9140
9330
|
get opacity(): number;
|
|
9141
9331
|
color: Color;
|
|
9142
|
-
setColor(): void;
|
|
9332
|
+
setColor(color: string): void;
|
|
9143
9333
|
get position(): import("three").Vector3;
|
|
9144
9334
|
get altitude(): number;
|
|
9145
9335
|
set altitude(value: number);
|
|
9146
9336
|
get renderOrder(): number;
|
|
9147
|
-
set renderOrder(
|
|
9337
|
+
set renderOrder(value: number);
|
|
9148
9338
|
}
|
|
9149
9339
|
}
|
|
9150
9340
|
|
|
@@ -9483,7 +9673,7 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
|
|
|
9483
9673
|
import { Group as TweenGroup } from '@tweenjs/tween.js';
|
|
9484
9674
|
import { Debug } from '@mappedin/mappedin-js/geojson/src/utils/debug';
|
|
9485
9675
|
import { Occlusion2DSystem } from '@mappedin/mappedin-js/geojson/src/systems/2d-occlusion/system';
|
|
9486
|
-
import type { FloatingFloorTextProperties } from '@mappedin/mvf';
|
|
9676
|
+
import type { FloatingFloorTextProperties } from '@mappedin/mvf-v2';
|
|
9487
9677
|
export type * from '@mappedin/mappedin-js/geojson/src/types';
|
|
9488
9678
|
export const raycaster: Raycaster;
|
|
9489
9679
|
/**
|
|
@@ -9567,6 +9757,7 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
|
|
|
9567
9757
|
altitude?: number;
|
|
9568
9758
|
interactive?: boolean;
|
|
9569
9759
|
focusable?: boolean;
|
|
9760
|
+
preloadGeometry?: boolean;
|
|
9570
9761
|
}, parent?: EntityId<GroupContainerState> | string | number | null): EntityId<GroupContainerState>;
|
|
9571
9762
|
addStackContainer(id: string, style?: {
|
|
9572
9763
|
visible?: true;
|
|
@@ -10071,7 +10262,7 @@ declare module '@mappedin/mappedin-js/geojson/src/components/text3d' {
|
|
|
10071
10262
|
import type { Text3DStyle } from '@mappedin/mappedin-js/geojson/src/components/styles';
|
|
10072
10263
|
import type { MeshComponentProperties } from '@mappedin/mappedin-js/geojson/src/components/mesh';
|
|
10073
10264
|
import type { GroupContainerObject3D } from '@mappedin/mappedin-js/geojson/src/entities/group-container';
|
|
10074
|
-
import { type FloorTextCommonProperties } from '@mappedin/mvf';
|
|
10265
|
+
import { type FloorTextCommonProperties } from '@mappedin/mvf-v2';
|
|
10075
10266
|
/**
|
|
10076
10267
|
* State representing an Text3D
|
|
10077
10268
|
*/
|
|
@@ -10612,10 +10803,13 @@ declare module '@mappedin/mappedin-js/geojson/src/utils/constants' {
|
|
|
10612
10803
|
import type { InsetPadding } from '@mappedin/mappedin-js/geojson/src/types';
|
|
10613
10804
|
export const DEFAULT_INSET_PADDING: InsetPadding;
|
|
10614
10805
|
export const MAPPEDIN_LAYER_ID = "mappedin";
|
|
10615
|
-
export enum
|
|
10806
|
+
export enum RAYCAST_LAYERS {
|
|
10616
10807
|
DEFAULT = 0,
|
|
10617
10808
|
OUTLINES = 1
|
|
10618
10809
|
}
|
|
10810
|
+
export const RENDER_LAYERS: {
|
|
10811
|
+
ALWAYS_ON_TOP: number;
|
|
10812
|
+
};
|
|
10619
10813
|
/**
|
|
10620
10814
|
* Duration of zoom in/out animation when double tapping with one finger or single tapping with two fingers.
|
|
10621
10815
|
*/
|
|
@@ -10768,8 +10962,8 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/watermark/system' {
|
|
|
10768
10962
|
visible?: boolean;
|
|
10769
10963
|
};
|
|
10770
10964
|
export type WatermarkUpdateOptions = Omit<WatermarkOptions, 'onClick' | 'visible'> & {
|
|
10771
|
-
/** Show the Mappedin watermark.
|
|
10772
|
-
visible?:
|
|
10965
|
+
/** Show the Mappedin watermark. */
|
|
10966
|
+
visible?: boolean;
|
|
10773
10967
|
/** Set the interactivity of the watermark. */
|
|
10774
10968
|
interactive?: boolean;
|
|
10775
10969
|
};
|
|
@@ -10999,10 +11193,10 @@ declare module '@mappedin/mappedin-js/geojson/src/components/styles' {
|
|
|
10999
11193
|
}
|
|
11000
11194
|
|
|
11001
11195
|
declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/map-object' {
|
|
11002
|
-
import type { ParsedMVF } from '@mappedin/mvf';
|
|
11196
|
+
import type { ParsedMVF } from '@mappedin/mvf-v2';
|
|
11003
11197
|
import type { FeatureCollection, LineString, MultiPolygon, Polygon } from 'geojson';
|
|
11004
11198
|
import { PubSub } from '@packages/internal/common';
|
|
11005
|
-
import type { Position, AddLabelOptions, RendererCore, PathState, MarkerState, LineStyle, PaintStyle, EntityId } from '@mappedin/core-sdk';
|
|
11199
|
+
import type { Position, AddLabelOptions, RendererCore, PathState, MarkerState, LineStyle, PaintStyle, EntityId, Text3DState } from '@mappedin/core-sdk';
|
|
11006
11200
|
import { FloorObject } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object';
|
|
11007
11201
|
import type { Directions, Floor, TAddMarkerOptions, TAddPathOptions, TShow3DMapOptions } from '@mappedin/mappedin-js/mappedin-js/src';
|
|
11008
11202
|
import type { GLTFExportOptions, TAnimationOptions, TAddModelOptions, TAddImageOptions, TDirectionInstruction, TAddText3DOptions, IAnchorable, TAddLabelOptions } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
@@ -11014,7 +11208,6 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/map-object' {
|
|
|
11014
11208
|
import { Space, Coordinate } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
11015
11209
|
import { type GeoJsonApi } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api';
|
|
11016
11210
|
import { FloorStackObject } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-stack-object';
|
|
11017
|
-
import type { Text3DState } from '@mappedin/core-sdk/src/components/text3d';
|
|
11018
11211
|
export class GeojsonApiMapObject extends PubSub<{
|
|
11019
11212
|
'floor-change': {
|
|
11020
11213
|
reason?: TFloorChangeReason;
|
|
@@ -11066,7 +11259,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/map-object' {
|
|
|
11066
11259
|
Images: {
|
|
11067
11260
|
add: (target: Position, url: string, opts: TAddImageOptions & {
|
|
11068
11261
|
floorId?: string;
|
|
11069
|
-
}) => EntityId<import("
|
|
11262
|
+
}) => EntityId<import("../../../geojson/src/components/image").ImageState> | undefined;
|
|
11070
11263
|
remove: (id: string) => void;
|
|
11071
11264
|
removeAll: () => void;
|
|
11072
11265
|
};
|
|
@@ -11980,7 +12173,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/paths' {
|
|
|
11980
12173
|
}
|
|
11981
12174
|
|
|
11982
12175
|
declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/style' {
|
|
11983
|
-
import type { StyleCollection } from '@mappedin/mvf';
|
|
12176
|
+
import type { StyleCollection } from '@mappedin/mvf-v2';
|
|
11984
12177
|
import type { GeojsonApiMapObject } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/map-object';
|
|
11985
12178
|
export class Style {
|
|
11986
12179
|
#private;
|
|
@@ -12907,6 +13100,16 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/analytics/customer' {
|
|
|
12907
13100
|
export {};
|
|
12908
13101
|
}
|
|
12909
13102
|
|
|
13103
|
+
declare module '@mappedin/mappedin-js/packages/common/types' {
|
|
13104
|
+
type Primitive = string | number | boolean | null | undefined;
|
|
13105
|
+
export type PartialExcept<T, K extends string> = {
|
|
13106
|
+
[P in keyof T as P extends K ? P : never]: T[P];
|
|
13107
|
+
} & {
|
|
13108
|
+
[P in keyof T as P extends K ? never : P]?: T[P] extends Primitive ? T[P] : T[P] extends (infer U)[] ? PartialExcept<U, K>[] : PartialExcept<T[P], K>;
|
|
13109
|
+
};
|
|
13110
|
+
export {};
|
|
13111
|
+
}
|
|
13112
|
+
|
|
12910
13113
|
declare module '@mappedin/mappedin-js/packages/mvf-utils/tokens/access-token' {
|
|
12911
13114
|
import { type TGetMapDataWithCredentialsOptions } from '@mappedin/mappedin-js/packages/mvf-utils/mvf-utils';
|
|
12912
13115
|
export const ACCESS_TOKEN_REFRESH_BUFFER_MINUTES = 60;
|
|
@@ -12972,7 +13175,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-meta
|
|
|
12972
13175
|
}
|
|
12973
13176
|
|
|
12974
13177
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/detailed-map-data' {
|
|
12975
|
-
import type { Details, Feature as MVFFeature, Geometry } from '@mappedin/mvf';
|
|
13178
|
+
import type { Details, Feature as MVFFeature, Geometry } from '@mappedin/mvf-v2';
|
|
12976
13179
|
import type LocationProfile from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-profile';
|
|
12977
13180
|
import Hyperlink from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink';
|
|
12978
13181
|
import type { MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
@@ -13047,7 +13250,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-obje
|
|
|
13047
13250
|
}
|
|
13048
13251
|
|
|
13049
13252
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/opening-hours' {
|
|
13050
|
-
import type { OpeningHoursSpecification } from '@mappedin/mvf';
|
|
13253
|
+
import type { OpeningHoursSpecification } from '@mappedin/mvf-v2';
|
|
13051
13254
|
/**
|
|
13052
13255
|
* Represents the opening hours of a location.
|
|
13053
13256
|
*/
|
|
@@ -13199,10 +13402,6 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/geometry3d' {
|
|
|
13199
13402
|
type: 'b';
|
|
13200
13403
|
value: boolean;
|
|
13201
13404
|
};
|
|
13202
|
-
flattenFactor: {
|
|
13203
|
-
type: 'f';
|
|
13204
|
-
value: number;
|
|
13205
|
-
};
|
|
13206
13405
|
showPulse: {
|
|
13207
13406
|
type: 'b';
|
|
13208
13407
|
value: boolean;
|
|
@@ -13211,6 +13410,10 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/geometry3d' {
|
|
|
13211
13410
|
type: 'f';
|
|
13212
13411
|
value: number;
|
|
13213
13412
|
};
|
|
13413
|
+
dashed: {
|
|
13414
|
+
type: 'b';
|
|
13415
|
+
value: boolean;
|
|
13416
|
+
};
|
|
13214
13417
|
}
|
|
13215
13418
|
export {};
|
|
13216
13419
|
}
|
|
@@ -13235,16 +13438,18 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/geometry2d' {
|
|
|
13235
13438
|
/** The geometry3D that this 2D entity is attached to */
|
|
13236
13439
|
get attachedTo(): string | number | undefined;
|
|
13237
13440
|
verticalOffset: number;
|
|
13238
|
-
/**
|
|
13239
|
-
* When the position of the entity changes, this should be set to true, so that systems like pan bounds can update
|
|
13240
|
-
*/
|
|
13241
|
-
positionDirty: boolean;
|
|
13242
13441
|
occluderId?: number;
|
|
13243
13442
|
object3d: Geometry2DObject3D;
|
|
13244
13443
|
components: [MarkerComponent | LabelComponent, InteractionComponent?];
|
|
13245
13444
|
disposed: boolean;
|
|
13246
13445
|
constructor(ui: MarkerComponent | LabelComponent, position: Vector3, verticalOffset?: number);
|
|
13247
13446
|
get position(): Vector3;
|
|
13447
|
+
/**
|
|
13448
|
+
* When the position of the entity changes, this should be set to true, so that systems like pan bounds can update
|
|
13449
|
+
*/
|
|
13450
|
+
get positionDirty(): boolean;
|
|
13451
|
+
set positionDirty(value: boolean);
|
|
13452
|
+
updatePosition(position: Vector3): void;
|
|
13248
13453
|
setAltitude(z: number): void;
|
|
13249
13454
|
}
|
|
13250
13455
|
}
|
|
@@ -13504,6 +13709,7 @@ declare module '@mappedin/mappedin-js/geojson/src/types/options' {
|
|
|
13504
13709
|
map?: MapLibreMap;
|
|
13505
13710
|
mode?: 'standalone' | 'outdoors-interleaved' | 'outdoors-overlay';
|
|
13506
13711
|
antialias?: boolean;
|
|
13712
|
+
useStandaloneCamera?: boolean;
|
|
13507
13713
|
onWebGLRendererError?: (error: Error) => void;
|
|
13508
13714
|
onWebGLContextCreationError?: (event: Event) => void;
|
|
13509
13715
|
onWebGLContextLost?: (event: Event) => void;
|
|
@@ -13793,9 +13999,9 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/2d-draw/system' {
|
|
|
13793
13999
|
};
|
|
13794
14000
|
textToCanvas: (textDrawFn: (ctx: CanvasRenderingContext2D, x: number, y: number) => void, size: number, textAlign: TEXTALIGN, width: number, height: number, foregroundColor: string, backgroundColor: string) => any;
|
|
13795
14001
|
cacheImage: (label: LabelComponent) => void;
|
|
13796
|
-
createPinCanvas: (label: LabelComponent, markerSize: number, backgroundColor: string, foregroundColor: string) => HTMLCanvasElement | OffscreenCanvas;
|
|
14002
|
+
createPinCanvas: (label: LabelComponent, markerSize: number, backgroundColor: string, foregroundColor: string, maxIconScale?: number) => HTMLCanvasElement | OffscreenCanvas;
|
|
13797
14003
|
prepare: (label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D) => void;
|
|
13798
|
-
draw(label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D): void;
|
|
14004
|
+
draw(label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D, zoomLevel: number): void;
|
|
13799
14005
|
}
|
|
13800
14006
|
export {};
|
|
13801
14007
|
}
|
|
@@ -14117,7 +14323,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/outline-interpolation/
|
|
|
14117
14323
|
* @param zoomLevel - The current zoom level.
|
|
14118
14324
|
* @param isCameraZoomDirty - Whether the zoom level has changed since the last update. If this is true, the system will update if zoomLevel falls between range.
|
|
14119
14325
|
*/
|
|
14120
|
-
update(zoomLevel: number, isCameraZoomDirty?: boolean):
|
|
14326
|
+
update(zoomLevel: number, isCameraZoomDirty?: boolean): void;
|
|
14121
14327
|
destroy(): void;
|
|
14122
14328
|
}
|
|
14123
14329
|
}
|
|
@@ -14704,7 +14910,7 @@ declare module '@mappedin/mappedin-js/geojson/src/components/styles/constants' {
|
|
|
14704
14910
|
}
|
|
14705
14911
|
|
|
14706
14912
|
declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object' {
|
|
14707
|
-
import type { Polygon, MultiPolygon, FloorProperties as MVFFloor, ParsedMVF, Feature } from '@mappedin/mvf';
|
|
14913
|
+
import type { Polygon, MultiPolygon, FloorProperties as MVFFloor, ParsedMVF, Feature } from '@mappedin/mvf-v2';
|
|
14708
14914
|
import type { RendererCore, BBox } from '@mappedin/core-sdk';
|
|
14709
14915
|
import type { AggregatedStyleMap } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils';
|
|
14710
14916
|
import type { TShow3DMapOptions } from '@mappedin/mappedin-js/mappedin-js/src';
|
|
@@ -14744,7 +14950,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object'
|
|
|
14744
14950
|
|
|
14745
14951
|
declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
|
|
14746
14952
|
import { Coordinate, MapObject, Space, type Floor, type Facade } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
14747
|
-
import type { EntranceCollection, LineString, Polygon, Point, SpaceProperties, ObstructionProperties, StyleCollection, PolygonStyle, LineStringStyle, Feature, ObstructionCollection, PointStyle } from '@mappedin/mvf';
|
|
14953
|
+
import type { EntranceCollection, LineString, Polygon, Point, SpaceProperties, ObstructionProperties, StyleCollection, PolygonStyle, LineStringStyle, Feature, ObstructionCollection, PointStyle } from '@mappedin/mvf-v2';
|
|
14748
14954
|
import type { PolygonFeatureProperties } from '@packages/internal/mvf-utils';
|
|
14749
14955
|
import type { BBox, FeatureCollection, MultiLineString } from 'geojson';
|
|
14750
14956
|
import type { LabelState, MarkerState, GeometryState, CollisionRankingTier, LineStyle, PaintStyle, Position, EntityId, PathState } from '@mappedin/core-sdk';
|
|
@@ -14796,7 +15002,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
|
|
|
14796
15002
|
|
|
14797
15003
|
declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-stack-object' {
|
|
14798
15004
|
import type { RendererCore } from '@mappedin/core-sdk';
|
|
14799
|
-
import type { FloorId, FloorStack as MVFFloorStack, Facade as MVFFacade } from '@mappedin/mvf';
|
|
15005
|
+
import type { FloorId, FloorStack as MVFFloorStack, Facade as MVFFacade } from '@mappedin/mvf-v2';
|
|
14800
15006
|
import type { FloorObject } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object';
|
|
14801
15007
|
export class FloorStackObject implements Omit<MVFFloorStack, 'maps' | 'floors' | 'defaultFloor' | 'footprint'> {
|
|
14802
15008
|
#private;
|
|
@@ -23485,6 +23691,7 @@ declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/navigator'
|
|
|
23485
23691
|
|
|
23486
23692
|
declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/navigator/navigator' {
|
|
23487
23693
|
import type { Position, Feature, MultiPolygon, Polygon } from 'geojson';
|
|
23694
|
+
import { Edge } from '@mappedin/mappedin-js/packages/geojson-navigator/src/edge';
|
|
23488
23695
|
import { NavigationGraph } from '@mappedin/mappedin-js/packages/geojson-navigator/src/navigation-graph';
|
|
23489
23696
|
import type { NodeCollection } from '@mappedin/mappedin-js/packages/geojson-navigator/src/types/node';
|
|
23490
23697
|
import type { ObstructionCollection } from '@mappedin/mappedin-js/packages/geojson-navigator/src/types/obstruction';
|
|
@@ -23546,7 +23753,7 @@ declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/navigator/n
|
|
|
23546
23753
|
* @param {SimplifyDirectionsOptions} [simplify] - Options to simplify the pathfinding result.
|
|
23547
23754
|
* @returns {DirectionsCollection} A collection of directional features representing the path.
|
|
23548
23755
|
*/
|
|
23549
|
-
getDirections({ zones: directionsZones, originIds, destinationNodeIds, excludedNodeIds, disabledConnectionNodeIds, simplify, multiplicativeDistanceWeightScaling, }: {
|
|
23756
|
+
getDirections({ zones: directionsZones, originIds, destinationNodeIds, excludedNodeIds, disabledConnectionNodeIds, simplify, multiplicativeDistanceWeightScaling, overrideEdgeWeights, }: {
|
|
23550
23757
|
originIds: string[];
|
|
23551
23758
|
destinationNodeIds: string[];
|
|
23552
23759
|
zones?: DirectionsZone[];
|
|
@@ -23554,6 +23761,7 @@ declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/navigator/n
|
|
|
23554
23761
|
disabledConnectionNodeIds?: string[];
|
|
23555
23762
|
simplify?: SimplifyDirectionsOptions;
|
|
23556
23763
|
multiplicativeDistanceWeightScaling?: boolean;
|
|
23764
|
+
overrideEdgeWeights?: Map<Edge, number>;
|
|
23557
23765
|
}): DirectionsCollection;
|
|
23558
23766
|
/**
|
|
23559
23767
|
* Calculates the approximate distance between two geographic coordinates on Earth's surface.
|
|
@@ -23623,7 +23831,7 @@ declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/types/node'
|
|
|
23623
23831
|
|
|
23624
23832
|
declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/types/obstruction' {
|
|
23625
23833
|
import type { LineString, Polygon, Feature } from 'geojson';
|
|
23626
|
-
import type { ObstructionProperties, ObstructionCollection } from '@mappedin/mvf';
|
|
23834
|
+
import type { ObstructionProperties, ObstructionCollection } from '@mappedin/mvf-v2';
|
|
23627
23835
|
/**
|
|
23628
23836
|
* A GeoJSON feature representing an obstruction, which can be either a line string or a polygon.
|
|
23629
23837
|
* This type is crucial for mapping and managing areas that impede or restrict movement, such as barriers or restricted zones.
|
|
@@ -27268,13 +27476,17 @@ declare module '@mappedin/mappedin-js/packages/outdoor-context-v4/ui/handler/tap
|
|
|
27268
27476
|
}
|
|
27269
27477
|
}
|
|
27270
27478
|
|
|
27479
|
+
declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/edge' {
|
|
27480
|
+
export * from '@mappedin/mappedin-js/packages/geojson-navigator/src/edge/edge';
|
|
27481
|
+
}
|
|
27482
|
+
|
|
27271
27483
|
declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/navigation-graph' {
|
|
27272
27484
|
export * from '@mappedin/mappedin-js/packages/geojson-navigator/src/navigation-graph/navigation-graph';
|
|
27273
27485
|
}
|
|
27274
27486
|
|
|
27275
27487
|
declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/types/space' {
|
|
27276
27488
|
import type { LineString, Polygon, Point, Feature } from 'geojson';
|
|
27277
|
-
import type { SpaceProperties, SpaceCollection } from '@mappedin/mvf';
|
|
27489
|
+
import type { SpaceProperties, SpaceCollection } from '@mappedin/mvf-v2';
|
|
27278
27490
|
/**
|
|
27279
27491
|
* A GeoJSON feature representing a space, which can be either a line string or a polygon.
|
|
27280
27492
|
* This type is crucial for mapping and managing areas that impede or restrict movement, such as barriers or restricted zones.
|
|
@@ -27284,10 +27496,6 @@ declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/types/space
|
|
|
27284
27496
|
export { SpaceCollection, SpaceProperties };
|
|
27285
27497
|
}
|
|
27286
27498
|
|
|
27287
|
-
declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/edge' {
|
|
27288
|
-
export * from '@mappedin/mappedin-js/packages/geojson-navigator/src/edge/edge';
|
|
27289
|
-
}
|
|
27290
|
-
|
|
27291
27499
|
declare module '@mappedin/mappedin-js/geojson/src/systems/camera/helpers/input-set' {
|
|
27292
27500
|
import type { Vector2 } from 'three';
|
|
27293
27501
|
class InputSet {
|
|
@@ -29948,6 +30156,42 @@ declare module '@mappedin/mappedin-js/packages/outdoor-context-v4/source/terrain
|
|
|
29948
30156
|
}
|
|
29949
30157
|
}
|
|
29950
30158
|
|
|
30159
|
+
declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/edge/edge' {
|
|
30160
|
+
import type { NodeFeature } from '@mappedin/mappedin-js/packages/geojson-navigator/src/types/node';
|
|
30161
|
+
/**
|
|
30162
|
+
* Represents an edge in a graph, containing data about its endpoints and metrics like distance and angle.
|
|
30163
|
+
* @hidden
|
|
30164
|
+
*/
|
|
30165
|
+
export class Edge {
|
|
30166
|
+
/** The originating node of the edge */
|
|
30167
|
+
origin: NodeFeature;
|
|
30168
|
+
/** The destination node of the edge */
|
|
30169
|
+
destination: NodeFeature;
|
|
30170
|
+
/** The distance between the origin and the destination nodes */
|
|
30171
|
+
distance: number;
|
|
30172
|
+
/** The angle of the edge with respect to some reference, in degrees */
|
|
30173
|
+
angle: number;
|
|
30174
|
+
/** A composite weight of the edge, combining distance and a custom path weight */
|
|
30175
|
+
weight: number;
|
|
30176
|
+
/**
|
|
30177
|
+
* Constructs a new Edge instance.
|
|
30178
|
+
* @param {NodeFeature} origin - The originating node of the edge.
|
|
30179
|
+
* @param {NodeFeature} destination - The destination node of the edge.
|
|
30180
|
+
* @param {number} [distance=0] - The physical distance between the origin and destination.
|
|
30181
|
+
* @param {number} [angle=0] - The angle of the edge in degrees.
|
|
30182
|
+
* @param {number} [pathWeight=0] - An additional weight factor for the path.
|
|
30183
|
+
*/
|
|
30184
|
+
constructor({ origin, destination, distance, angle, pathWeight, multiplicativeDistanceWeightScaling, }: {
|
|
30185
|
+
origin: NodeFeature;
|
|
30186
|
+
destination: NodeFeature;
|
|
30187
|
+
distance?: number;
|
|
30188
|
+
angle?: number;
|
|
30189
|
+
pathWeight?: number;
|
|
30190
|
+
multiplicativeDistanceWeightScaling?: boolean;
|
|
30191
|
+
});
|
|
30192
|
+
}
|
|
30193
|
+
}
|
|
30194
|
+
|
|
29951
30195
|
declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/navigation-graph/navigation-graph' {
|
|
29952
30196
|
import { Edge } from '@mappedin/mappedin-js/packages/geojson-navigator/src/edge';
|
|
29953
30197
|
import type { NodeCollection, NodeFeature } from '@mappedin/mappedin-js/packages/geojson-navigator/src/types/node';
|
|
@@ -29988,52 +30232,17 @@ declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/navigation-
|
|
|
29988
30232
|
* @param {Set<string>} [disabledConnectionNodeIds] - Optional set of connection node IDs that are disabled (ie. act as regular nodes).
|
|
29989
30233
|
* @returns {Edge[]} An array of edges representing the shortest path, or an empty array if no path is found.
|
|
29990
30234
|
*/
|
|
29991
|
-
aStar({ originIds, destinationNodeIds, excludedNodeIds, disabledConnectionNodeIds, zones, }: {
|
|
30235
|
+
aStar({ originIds, destinationNodeIds, excludedNodeIds, disabledConnectionNodeIds, zones, overrideEdgeWeights, }: {
|
|
29992
30236
|
originIds: string[];
|
|
29993
30237
|
destinationNodeIds: string[];
|
|
29994
30238
|
zones: DirectionsZone[];
|
|
29995
30239
|
excludedNodeIds?: Set<string>;
|
|
29996
30240
|
disabledConnectionNodeIds?: Set<string>;
|
|
30241
|
+
overrideEdgeWeights?: Map<Edge, number>;
|
|
29997
30242
|
}): Edge[];
|
|
29998
30243
|
}
|
|
29999
30244
|
}
|
|
30000
30245
|
|
|
30001
|
-
declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/edge/edge' {
|
|
30002
|
-
import type { NodeFeature } from '@mappedin/mappedin-js/packages/geojson-navigator/src/types/node';
|
|
30003
|
-
/**
|
|
30004
|
-
* Represents an edge in a graph, containing data about its endpoints and metrics like distance and angle.
|
|
30005
|
-
* @hidden
|
|
30006
|
-
*/
|
|
30007
|
-
export class Edge {
|
|
30008
|
-
/** The originating node of the edge */
|
|
30009
|
-
origin: NodeFeature;
|
|
30010
|
-
/** The destination node of the edge */
|
|
30011
|
-
destination: NodeFeature;
|
|
30012
|
-
/** The distance between the origin and the destination nodes */
|
|
30013
|
-
distance: number;
|
|
30014
|
-
/** The angle of the edge with respect to some reference, in degrees */
|
|
30015
|
-
angle: number;
|
|
30016
|
-
/** A composite weight of the edge, combining distance and a custom path weight */
|
|
30017
|
-
weight: number;
|
|
30018
|
-
/**
|
|
30019
|
-
* Constructs a new Edge instance.
|
|
30020
|
-
* @param {NodeFeature} origin - The originating node of the edge.
|
|
30021
|
-
* @param {NodeFeature} destination - The destination node of the edge.
|
|
30022
|
-
* @param {number} [distance=0] - The physical distance between the origin and destination.
|
|
30023
|
-
* @param {number} [angle=0] - The angle of the edge in degrees.
|
|
30024
|
-
* @param {number} [pathWeight=0] - An additional weight factor for the path.
|
|
30025
|
-
*/
|
|
30026
|
-
constructor({ origin, destination, distance, angle, pathWeight, multiplicativeDistanceWeightScaling, }: {
|
|
30027
|
-
origin: NodeFeature;
|
|
30028
|
-
destination: NodeFeature;
|
|
30029
|
-
distance?: number;
|
|
30030
|
-
angle?: number;
|
|
30031
|
-
pathWeight?: number;
|
|
30032
|
-
multiplicativeDistanceWeightScaling?: boolean;
|
|
30033
|
-
});
|
|
30034
|
-
}
|
|
30035
|
-
}
|
|
30036
|
-
|
|
30037
30246
|
declare module '@mappedin/mappedin-js/packages/outdoor-context-v4/data/feature_position_map' {
|
|
30038
30247
|
type SerializedFeaturePositionMap = {
|
|
30039
30248
|
ids: Float64Array;
|