@mappedin/mappedin-js 5.34.2 → 5.34.3
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/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/renderer/{GLTFExporter-BGQDB6TQ.js → GLTFExporter-3BNSLDCZ.js} +1 -1
- package/lib/esm/renderer/{PerformanceController-7X3JLJSZ.js → PerformanceController-O22OQNKV.js} +1 -1
- package/lib/esm/renderer/{browser-GGZDXMDE.js → browser-ZRTTSRW5.js} +1 -1
- package/lib/esm/renderer/{chunk-E5KHR27R.js → chunk-FE4M476A.js} +1 -1
- package/lib/esm/renderer/chunk-SAYKHSRQ.js +1 -0
- package/lib/esm/renderer/index.d.ts +151 -148
- package/lib/esm/renderer/index.js +1 -1
- package/lib/esm/renderer/{outdoor-context-ZBBDC4FA.js → outdoor-context-VXUSFZVE.js} +1 -1
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +2 -2
- package/lib/esm/renderer/chunk-LRA2EJYJ.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a}from"./chunk-ZRT45YCM.js";var e,c=a((()=>{e={env:{NODE_ENV:"production",npm_package_version:"5.34.3"}}}));export{c as a,e as b};
|
|
@@ -2357,6 +2357,23 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
2357
2357
|
export type { TOutdoorViewOptions, TOutdoorViewOptionsWithHeaders, TOutdoorViewOptionsWithAuthURL };
|
|
2358
2358
|
export type { default as BlueDotController } from '@mappedin/mappedin-js/renderer/private/controllers/BlueDotController';
|
|
2359
2359
|
export type { default as Journey } from '@mappedin/mappedin-js/renderer/public/api/Journey';
|
|
2360
|
+
export type TStackedMapsOptions = {
|
|
2361
|
+
/**
|
|
2362
|
+
* The vertical distance between maps in overview, in metres.
|
|
2363
|
+
* @default 50
|
|
2364
|
+
*/
|
|
2365
|
+
verticalDistanceBetweenMaps?: number;
|
|
2366
|
+
/**
|
|
2367
|
+
* Whether to show map level labels in overview.
|
|
2368
|
+
* @default true
|
|
2369
|
+
*/
|
|
2370
|
+
mapLabels?: boolean;
|
|
2371
|
+
/**
|
|
2372
|
+
* Whether to show only Journey maps in the stack if a Journey is active and the current map is part of the Journey.
|
|
2373
|
+
* @default true
|
|
2374
|
+
*/
|
|
2375
|
+
prioritizeJourneyMaps?: boolean;
|
|
2376
|
+
};
|
|
2360
2377
|
}
|
|
2361
2378
|
|
|
2362
2379
|
declare module '@mappedin/mappedin-js/common/Mappedin.Logger' {
|
|
@@ -3420,8 +3437,8 @@ declare module '@mappedin/mappedin-js/renderer/public/api/Paths' {
|
|
|
3420
3437
|
|
|
3421
3438
|
declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
|
|
3422
3439
|
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
3440
|
+
import { TStackedMapsOptions } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
3423
3441
|
import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
|
|
3424
|
-
import { TStackedMapsOptions } from '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsController';
|
|
3425
3442
|
/**
|
|
3426
3443
|
* @experimental
|
|
3427
3444
|
* API for showing multiple maps involved in a {@link Journey} as a vertical stack.
|
|
@@ -3434,7 +3451,8 @@ declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
|
|
|
3434
3451
|
constructor(markersController: StackedMapsController);
|
|
3435
3452
|
/**
|
|
3436
3453
|
* @experimental
|
|
3437
|
-
* Enable Stacked Maps.
|
|
3454
|
+
* Enable Stacked Maps. If a {@link Journey} is drawn beforehand the default behaviour is to only display the floors that are part of the journey.
|
|
3455
|
+
* {@link TStackedMapsOptions} can be used to enabling display of all maps including those that are not part of the journey.
|
|
3438
3456
|
* Use {@link showOverview} to expand the maps vertically after enabling.
|
|
3439
3457
|
*
|
|
3440
3458
|
* Upon enabling, map state will become {@link STATE.STACKED | STACKED} and Stacked Maps state will become {@link STACKED_MAPS_STATE.ACTIVE | ACTIVE}.
|
|
@@ -3472,7 +3490,7 @@ declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
|
|
|
3472
3490
|
/**
|
|
3473
3491
|
* @experimental
|
|
3474
3492
|
*
|
|
3475
|
-
* Expand
|
|
3493
|
+
* Expand and display all maps in the current {@link MapGroup}. If a {@link Journey} has been drawn, vertical paths between connections are displayed.
|
|
3476
3494
|
* Stacked Maps must be enabled beforehand and state will become {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW}.
|
|
3477
3495
|
*
|
|
3478
3496
|
* @example
|
|
@@ -3527,7 +3545,8 @@ declare module '@mappedin/mappedin-js/renderer/public/api/StackedMaps' {
|
|
|
3527
3545
|
* @experimental
|
|
3528
3546
|
*
|
|
3529
3547
|
* Used when in {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW} state to replace the maps in the
|
|
3530
|
-
* current stack
|
|
3548
|
+
* current stack after clearing or creating a {@link Journey}.
|
|
3549
|
+
* Use this to hide maps that are not part of the journey or to display all maps in the {@link MapGroup}.
|
|
3531
3550
|
*
|
|
3532
3551
|
* @param options - Options to adjust the overview. Each option defaults to the setting passed in {@link enable}, unless provided.
|
|
3533
3552
|
*
|
|
@@ -6642,150 +6661,6 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/FlatLabelsCon
|
|
|
6642
6661
|
export default FlatLabelsController;
|
|
6643
6662
|
}
|
|
6644
6663
|
|
|
6645
|
-
declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsController' {
|
|
6646
|
-
import { MappedinDirections, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/get-venue';
|
|
6647
|
-
import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/mappedin-js/renderer/internal';
|
|
6648
|
-
import type { ICore, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
|
|
6649
|
-
enum ACTION {
|
|
6650
|
-
enable = "enable",
|
|
6651
|
-
disable = "disable",
|
|
6652
|
-
showOverview = "showOverview",
|
|
6653
|
-
zoomInToMap = "zoomInToMap",
|
|
6654
|
-
scrollToMap = "scrollToMap",
|
|
6655
|
-
restack = "restack"
|
|
6656
|
-
}
|
|
6657
|
-
type TTargetTransitionFunction = ((options: TParams) => () => Promise<void>) | ((options: TParams) => void);
|
|
6658
|
-
type TParams = {
|
|
6659
|
-
map: MappedinMap;
|
|
6660
|
-
} | {
|
|
6661
|
-
directions: MappedinDirections | MappedinDirections[];
|
|
6662
|
-
} | {
|
|
6663
|
-
stackScene: MapViewStackScene;
|
|
6664
|
-
directions: MappedinDirections | MappedinDirections[];
|
|
6665
|
-
verticalDistanceBetweenMaps?: number;
|
|
6666
|
-
} | {
|
|
6667
|
-
stackScene: MapViewStackScene;
|
|
6668
|
-
verticalDistanceBetweenMaps?: number;
|
|
6669
|
-
map: MappedinMap;
|
|
6670
|
-
nodes: MappedinNode[];
|
|
6671
|
-
} | {
|
|
6672
|
-
stackScene: MapViewStackScene;
|
|
6673
|
-
map: MappedinMap;
|
|
6674
|
-
nodes: MappedinNode[];
|
|
6675
|
-
rotation: number;
|
|
6676
|
-
cameraTransform?: TCameraTransform;
|
|
6677
|
-
verticalDistanceBetweenMaps?: number;
|
|
6678
|
-
};
|
|
6679
|
-
type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
|
|
6680
|
-
type TState = {
|
|
6681
|
-
[stateName in STACKED_MAPS_STATE]?: {
|
|
6682
|
-
actions: {
|
|
6683
|
-
[actionName in ACTION]?: TActionFn;
|
|
6684
|
-
};
|
|
6685
|
-
};
|
|
6686
|
-
};
|
|
6687
|
-
export type TInternalTransitionOptions = {
|
|
6688
|
-
animate?: boolean;
|
|
6689
|
-
};
|
|
6690
|
-
export type TStackedMapsOptions = {
|
|
6691
|
-
/**
|
|
6692
|
-
* The vertical distance between maps in overview, in metres.
|
|
6693
|
-
* @default 50
|
|
6694
|
-
*/
|
|
6695
|
-
verticalDistanceBetweenMaps?: number;
|
|
6696
|
-
/**
|
|
6697
|
-
* Whether to show map level labels in overview.
|
|
6698
|
-
* @default true
|
|
6699
|
-
*/
|
|
6700
|
-
mapLabels?: boolean;
|
|
6701
|
-
/**
|
|
6702
|
-
* Whether to show only Journey maps in the stack if a Journey is active and the current map is part of the Journey.
|
|
6703
|
-
* @default true
|
|
6704
|
-
*/
|
|
6705
|
-
prioritizeJourneyMaps?: boolean;
|
|
6706
|
-
};
|
|
6707
|
-
class StackedMapsController {
|
|
6708
|
-
#private;
|
|
6709
|
-
options: TStackedMapsOptions;
|
|
6710
|
-
enabled: boolean;
|
|
6711
|
-
stackScene: MapViewStackScene;
|
|
6712
|
-
constructor(core: ICore);
|
|
6713
|
-
needsUpdate: boolean;
|
|
6714
|
-
currentState: STACKED_MAPS_STATE;
|
|
6715
|
-
mapsInStack: MappedinMap[];
|
|
6716
|
-
getZoomIntoMapOptions: (params: TParams) => (MapViewScene | {
|
|
6717
|
-
activeMap: MappedinMap;
|
|
6718
|
-
focusOn: {
|
|
6719
|
-
targets: {
|
|
6720
|
-
nodes: MappedinNode[];
|
|
6721
|
-
};
|
|
6722
|
-
options: {
|
|
6723
|
-
zoom?: number | undefined;
|
|
6724
|
-
tilt: number;
|
|
6725
|
-
rotation: number;
|
|
6726
|
-
position?: MappedinNode | import("../../internal").MappedinCoordinate | undefined;
|
|
6727
|
-
easing: CAMERA_EASING_MODE;
|
|
6728
|
-
};
|
|
6729
|
-
};
|
|
6730
|
-
})[] | undefined;
|
|
6731
|
-
getDisableOptions: (params: TParams) => (MapViewScene | {
|
|
6732
|
-
activeMap: MappedinMap;
|
|
6733
|
-
})[] | undefined;
|
|
6734
|
-
getShowOverviewOptions: (params: TParams) => (MapViewStackScene | {
|
|
6735
|
-
activeMap: MappedinMap;
|
|
6736
|
-
focusOn: {
|
|
6737
|
-
options: {
|
|
6738
|
-
tilt: number;
|
|
6739
|
-
duration: number;
|
|
6740
|
-
};
|
|
6741
|
-
};
|
|
6742
|
-
verticalDistanceBetweenMaps: number | undefined;
|
|
6743
|
-
})[] | undefined;
|
|
6744
|
-
getScrollToMapOptions: (params: TParams) => (MapViewStackScene | {
|
|
6745
|
-
focusOn: {
|
|
6746
|
-
targets: {
|
|
6747
|
-
nodes: MappedinNode[];
|
|
6748
|
-
};
|
|
6749
|
-
options: {
|
|
6750
|
-
tilt: number;
|
|
6751
|
-
easing: CAMERA_EASING_MODE;
|
|
6752
|
-
};
|
|
6753
|
-
};
|
|
6754
|
-
activeMap: MappedinMap;
|
|
6755
|
-
})[] | undefined;
|
|
6756
|
-
getRestackOptions: (params: TParams) => (MapViewStackScene | {
|
|
6757
|
-
activeMap: MappedinMap;
|
|
6758
|
-
focusOn: {
|
|
6759
|
-
options: {
|
|
6760
|
-
tilt: number;
|
|
6761
|
-
duration: number;
|
|
6762
|
-
};
|
|
6763
|
-
};
|
|
6764
|
-
verticalDistanceBetweenMaps: number | undefined;
|
|
6765
|
-
})[] | undefined;
|
|
6766
|
-
getEnableOptions: () => void;
|
|
6767
|
-
getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
6768
|
-
getZoomInToMapTransition: (options: any) => () => Promise<void>;
|
|
6769
|
-
getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
6770
|
-
getRestackTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
6771
|
-
getDisableTransition: (options: any) => () => Promise<void>;
|
|
6772
|
-
getEnableTransition: () => () => void;
|
|
6773
|
-
states: TState;
|
|
6774
|
-
get determineMapStack(): MappedinMap[];
|
|
6775
|
-
transition(currentState: STACKED_MAPS_STATE, actionName: ACTION): TTargetTransitionFunction[] | void;
|
|
6776
|
-
exec(transitions: TTargetTransitionFunction[] | void, params: TParams): Promise<void>;
|
|
6777
|
-
disable: () => Promise<void>;
|
|
6778
|
-
enable: (opts?: TStackedMapsOptions) => Promise<void>;
|
|
6779
|
-
get nodesInJourneyOrMap(): any[];
|
|
6780
|
-
showOverview: () => Promise<void>;
|
|
6781
|
-
scrollToMap: (map: MappedinMap) => Promise<void>;
|
|
6782
|
-
restack: (options?: TStackedMapsOptions) => Promise<void>;
|
|
6783
|
-
zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
|
|
6784
|
-
get currentMap(): MappedinMap;
|
|
6785
|
-
}
|
|
6786
|
-
export default StackedMapsController;
|
|
6787
|
-
}
|
|
6788
|
-
|
|
6789
6664
|
declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.Tile' {
|
|
6790
6665
|
import { Texture, Mesh, MeshBasicMaterial } from 'three';
|
|
6791
6666
|
import type { ICore } from '@mappedin/mappedin-js/renderer/internal';
|
|
@@ -8992,6 +8867,134 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/BillboardMana
|
|
|
8992
8867
|
export default BillboardManager;
|
|
8993
8868
|
}
|
|
8994
8869
|
|
|
8870
|
+
declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsController' {
|
|
8871
|
+
import { MappedinDirections, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/get-venue';
|
|
8872
|
+
import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/mappedin-js/renderer/internal';
|
|
8873
|
+
import type { ICore, TCameraTransform } from '@mappedin/mappedin-js/renderer/internal';
|
|
8874
|
+
import { TStackedMapsOptions } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
8875
|
+
enum ACTION {
|
|
8876
|
+
enable = "enable",
|
|
8877
|
+
disable = "disable",
|
|
8878
|
+
showOverview = "showOverview",
|
|
8879
|
+
zoomInToMap = "zoomInToMap",
|
|
8880
|
+
scrollToMap = "scrollToMap",
|
|
8881
|
+
restack = "restack"
|
|
8882
|
+
}
|
|
8883
|
+
type TTargetTransitionFunction = ((options: TParams) => () => Promise<void>) | ((options: TParams) => void);
|
|
8884
|
+
type TParams = {
|
|
8885
|
+
map: MappedinMap;
|
|
8886
|
+
} | {
|
|
8887
|
+
directions: MappedinDirections | MappedinDirections[];
|
|
8888
|
+
} | {
|
|
8889
|
+
stackScene: MapViewStackScene;
|
|
8890
|
+
directions: MappedinDirections | MappedinDirections[];
|
|
8891
|
+
verticalDistanceBetweenMaps?: number;
|
|
8892
|
+
} | {
|
|
8893
|
+
stackScene: MapViewStackScene;
|
|
8894
|
+
verticalDistanceBetweenMaps?: number;
|
|
8895
|
+
map: MappedinMap;
|
|
8896
|
+
nodes: MappedinNode[];
|
|
8897
|
+
} | {
|
|
8898
|
+
stackScene: MapViewStackScene;
|
|
8899
|
+
map: MappedinMap;
|
|
8900
|
+
nodes: MappedinNode[];
|
|
8901
|
+
rotation: number;
|
|
8902
|
+
cameraTransform?: TCameraTransform;
|
|
8903
|
+
verticalDistanceBetweenMaps?: number;
|
|
8904
|
+
};
|
|
8905
|
+
type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
|
|
8906
|
+
type TState = {
|
|
8907
|
+
[stateName in STACKED_MAPS_STATE]?: {
|
|
8908
|
+
actions: {
|
|
8909
|
+
[actionName in ACTION]?: TActionFn;
|
|
8910
|
+
};
|
|
8911
|
+
};
|
|
8912
|
+
};
|
|
8913
|
+
export type TInternalTransitionOptions = {
|
|
8914
|
+
animate?: boolean;
|
|
8915
|
+
};
|
|
8916
|
+
class StackedMapsController {
|
|
8917
|
+
#private;
|
|
8918
|
+
options: TStackedMapsOptions;
|
|
8919
|
+
enabled: boolean;
|
|
8920
|
+
stackScene: MapViewStackScene;
|
|
8921
|
+
constructor(core: ICore);
|
|
8922
|
+
needsUpdate: boolean;
|
|
8923
|
+
currentState: STACKED_MAPS_STATE;
|
|
8924
|
+
mapsInStack: MappedinMap[];
|
|
8925
|
+
getZoomIntoMapOptions: (params: TParams) => (MapViewScene | {
|
|
8926
|
+
activeMap: MappedinMap;
|
|
8927
|
+
focusOn: {
|
|
8928
|
+
targets: {
|
|
8929
|
+
nodes: MappedinNode[];
|
|
8930
|
+
};
|
|
8931
|
+
options: {
|
|
8932
|
+
zoom?: number | undefined;
|
|
8933
|
+
tilt: number;
|
|
8934
|
+
rotation: number;
|
|
8935
|
+
position?: MappedinNode | import("../../internal").MappedinCoordinate | undefined;
|
|
8936
|
+
easing: CAMERA_EASING_MODE;
|
|
8937
|
+
};
|
|
8938
|
+
};
|
|
8939
|
+
})[] | undefined;
|
|
8940
|
+
getDisableOptions: (params: TParams) => (MapViewScene | {
|
|
8941
|
+
activeMap: MappedinMap;
|
|
8942
|
+
})[] | undefined;
|
|
8943
|
+
getShowOverviewOptions: (params: TParams) => (MapViewStackScene | {
|
|
8944
|
+
activeMap: MappedinMap;
|
|
8945
|
+
focusOn: {
|
|
8946
|
+
options: {
|
|
8947
|
+
tilt: number;
|
|
8948
|
+
duration: number;
|
|
8949
|
+
};
|
|
8950
|
+
};
|
|
8951
|
+
verticalDistanceBetweenMaps: number | undefined;
|
|
8952
|
+
})[] | undefined;
|
|
8953
|
+
getScrollToMapOptions: (params: TParams) => (MapViewStackScene | {
|
|
8954
|
+
focusOn: {
|
|
8955
|
+
targets: {
|
|
8956
|
+
nodes: MappedinNode[];
|
|
8957
|
+
};
|
|
8958
|
+
options: {
|
|
8959
|
+
tilt: number;
|
|
8960
|
+
easing: CAMERA_EASING_MODE;
|
|
8961
|
+
};
|
|
8962
|
+
};
|
|
8963
|
+
activeMap: MappedinMap;
|
|
8964
|
+
})[] | undefined;
|
|
8965
|
+
getRestackOptions: (params: TParams) => (MapViewStackScene | {
|
|
8966
|
+
activeMap: MappedinMap;
|
|
8967
|
+
focusOn: {
|
|
8968
|
+
options: {
|
|
8969
|
+
tilt: number;
|
|
8970
|
+
duration: number;
|
|
8971
|
+
};
|
|
8972
|
+
};
|
|
8973
|
+
verticalDistanceBetweenMaps: number | undefined;
|
|
8974
|
+
})[] | undefined;
|
|
8975
|
+
getEnableOptions: () => void;
|
|
8976
|
+
getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
8977
|
+
getZoomInToMapTransition: (options: any) => () => Promise<void>;
|
|
8978
|
+
getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
8979
|
+
getRestackTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
8980
|
+
getDisableTransition: (options: any) => () => Promise<void>;
|
|
8981
|
+
getEnableTransition: () => () => void;
|
|
8982
|
+
states: TState;
|
|
8983
|
+
get determineMapStack(): MappedinMap[];
|
|
8984
|
+
transition(currentState: STACKED_MAPS_STATE, actionName: ACTION): TTargetTransitionFunction[] | void;
|
|
8985
|
+
exec(transitions: TTargetTransitionFunction[] | void, params: TParams): Promise<void>;
|
|
8986
|
+
disable: () => Promise<void>;
|
|
8987
|
+
enable: (opts?: TStackedMapsOptions) => Promise<void>;
|
|
8988
|
+
get nodesInJourneyOrMap(): any[];
|
|
8989
|
+
showOverview: () => Promise<void>;
|
|
8990
|
+
scrollToMap: (map: MappedinMap) => Promise<void>;
|
|
8991
|
+
restack: (options?: TStackedMapsOptions) => Promise<void>;
|
|
8992
|
+
zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
|
|
8993
|
+
get currentMap(): MappedinMap;
|
|
8994
|
+
}
|
|
8995
|
+
export default StackedMapsController;
|
|
8996
|
+
}
|
|
8997
|
+
|
|
8995
8998
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
8996
8999
|
/**
|
|
8997
9000
|
* A class that controls the rendering resources for a canvas output.
|