@mappedin/mappedin-js 6.0.1-alpha.18 → 6.0.1-alpha.19
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/{GLTFExporter-I6YR6IGO.js → GLTFExporter-RLXMZK2L.js} +1 -1
- package/lib/esm/{GLTFLoader-AQCBRQVI.js → GLTFLoader-TQXF5ANN.js} +1 -1
- package/lib/esm/{PerformanceController-EI3YXZK7.js → PerformanceController-7OSGV6SY.js} +1 -1
- package/lib/esm/{browser-6M6M3NCC.js → browser-ZAZDCYHK.js} +1 -1
- package/lib/esm/{chunk-ZGIDYLQQ.js → chunk-6OGQ6HQQ.js} +1 -1
- package/lib/esm/{chunk-WDQO5KEC.js → chunk-HYVKGWKX.js} +1 -1
- package/lib/esm/{chunk-3M7WWPKE.js → chunk-SAP6RMXA.js} +1 -1
- package/lib/esm/index.d.ts +153 -128
- package/lib/esm/index.js +1 -1
- package/lib/esm/{outdoor-context-WK5B56PD.js → outdoor-context-5YGSTVGH.js} +1 -1
- package/package.json +1 -1
package/lib/esm/index.d.ts
CHANGED
|
@@ -1051,10 +1051,16 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-geojson' {
|
|
|
1051
1051
|
updateState<T extends Space | MapObject | Label>(target: T, state: TUpdateState<T>): void;
|
|
1052
1052
|
setHoverColor(c: string): void;
|
|
1053
1053
|
getHoverColor(): string | undefined;
|
|
1054
|
-
getState(target: Space | Label | MapObject):
|
|
1054
|
+
getState(target: Space | Label | MapObject): {
|
|
1055
1055
|
appearance: import("../../geojson/src/components/label").LabelAppearance | undefined;
|
|
1056
|
-
interactive: boolean;
|
|
1056
|
+
interactive: boolean | undefined;
|
|
1057
1057
|
opacity: number;
|
|
1058
|
+
color?: undefined;
|
|
1059
|
+
} | {
|
|
1060
|
+
interactive: boolean | undefined;
|
|
1061
|
+
color: string;
|
|
1062
|
+
opacity: number;
|
|
1063
|
+
appearance?: undefined;
|
|
1058
1064
|
} | undefined;
|
|
1059
1065
|
/**
|
|
1060
1066
|
* Retrieves the current floor of the map.
|
|
@@ -1732,11 +1738,27 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1732
1738
|
*/
|
|
1733
1739
|
accessible?: boolean;
|
|
1734
1740
|
/**
|
|
1735
|
-
* Enable or disable
|
|
1741
|
+
* Enable or disable line-of-sight directions smoothing.
|
|
1742
|
+
* With this option enabled, the directions will be simplified to provide a more visually appealing path and shorter instructions.
|
|
1743
|
+
*
|
|
1744
|
+
* Can be a boolean to enable or disable smoothing, or an object with a radius property to specify the line of sight radius in metres.
|
|
1736
1745
|
*
|
|
1737
1746
|
* @default true
|
|
1747
|
+
*
|
|
1748
|
+
* @example
|
|
1749
|
+
* ```ts
|
|
1750
|
+
* // Enable smoothing with a radius of 3 metres
|
|
1751
|
+
* mapView.getDirections(firstSpace, secondSpace, {
|
|
1752
|
+
* smoothing: {
|
|
1753
|
+
* radius: 3,
|
|
1754
|
+
* }
|
|
1755
|
+
* })
|
|
1756
|
+
* ```
|
|
1738
1757
|
*/
|
|
1739
|
-
smoothing?: boolean
|
|
1758
|
+
smoothing?: boolean | {
|
|
1759
|
+
enabled?: boolean;
|
|
1760
|
+
radius: number;
|
|
1761
|
+
};
|
|
1740
1762
|
};
|
|
1741
1763
|
/**
|
|
1742
1764
|
* Options for controlling the behavior of a {@link Marker}.
|
|
@@ -6798,6 +6820,23 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/MapView.types' {
|
|
|
6798
6820
|
export type { TOutdoorViewOptions, TOutdoorViewOptionsWithHeaders, TOutdoorViewOptionsWithAuthURL };
|
|
6799
6821
|
export type { default as BlueDotController } from '@mappedin/mappedin-js/packages/legacy-renderer/private/controllers/BlueDotController';
|
|
6800
6822
|
export type { default as Journey } from '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Journey';
|
|
6823
|
+
export type TStackedMapsOptions = {
|
|
6824
|
+
/**
|
|
6825
|
+
* The vertical distance between maps in overview, in metres.
|
|
6826
|
+
* @default 50
|
|
6827
|
+
*/
|
|
6828
|
+
verticalDistanceBetweenMaps?: number;
|
|
6829
|
+
/**
|
|
6830
|
+
* Whether to show map level labels in overview.
|
|
6831
|
+
* @default true
|
|
6832
|
+
*/
|
|
6833
|
+
mapLabels?: boolean;
|
|
6834
|
+
/**
|
|
6835
|
+
* Whether to show only Journey maps in the stack if a Journey is active and the current map is part of the Journey.
|
|
6836
|
+
* @default true
|
|
6837
|
+
*/
|
|
6838
|
+
prioritizeJourneyMaps?: boolean;
|
|
6839
|
+
};
|
|
6801
6840
|
}
|
|
6802
6841
|
|
|
6803
6842
|
declare module '@mappedin/mappedin-js/packages/legacy-renderer/internal/json-scene-loader' {
|
|
@@ -9534,142 +9573,126 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9534
9573
|
import { MappedinDirections, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/packages/get-venue';
|
|
9535
9574
|
import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
9536
9575
|
import type { ICore, TCameraTransform } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
9576
|
+
import { TStackedMapsOptions } from '@mappedin/mappedin-js/packages/legacy-renderer/MapView.types';
|
|
9537
9577
|
enum ACTION {
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9578
|
+
enable = "enable",
|
|
9579
|
+
disable = "disable",
|
|
9580
|
+
showOverview = "showOverview",
|
|
9581
|
+
zoomInToMap = "zoomInToMap",
|
|
9582
|
+
scrollToMap = "scrollToMap",
|
|
9583
|
+
restack = "restack"
|
|
9544
9584
|
}
|
|
9545
9585
|
type TTargetTransitionFunction = ((options: TParams) => () => Promise<void>) | ((options: TParams) => void);
|
|
9546
9586
|
type TParams = {
|
|
9547
|
-
|
|
9587
|
+
map: MappedinMap;
|
|
9548
9588
|
} | {
|
|
9549
|
-
|
|
9589
|
+
directions: MappedinDirections | MappedinDirections[];
|
|
9550
9590
|
} | {
|
|
9551
|
-
|
|
9552
|
-
|
|
9553
|
-
|
|
9591
|
+
stackScene: MapViewStackScene;
|
|
9592
|
+
directions: MappedinDirections | MappedinDirections[];
|
|
9593
|
+
verticalDistanceBetweenMaps?: number;
|
|
9554
9594
|
} | {
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
|
|
9595
|
+
stackScene: MapViewStackScene;
|
|
9596
|
+
verticalDistanceBetweenMaps?: number;
|
|
9597
|
+
map: MappedinMap;
|
|
9598
|
+
nodes: MappedinNode[];
|
|
9559
9599
|
} | {
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
|
-
|
|
9564
|
-
|
|
9565
|
-
|
|
9600
|
+
stackScene: MapViewStackScene;
|
|
9601
|
+
map: MappedinMap;
|
|
9602
|
+
nodes: MappedinNode[];
|
|
9603
|
+
rotation: number;
|
|
9604
|
+
cameraTransform?: TCameraTransform;
|
|
9605
|
+
verticalDistanceBetweenMaps?: number;
|
|
9566
9606
|
};
|
|
9567
9607
|
type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
|
|
9568
9608
|
type TState = {
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
};
|
|
9609
|
+
[stateName in STACKED_MAPS_STATE]?: {
|
|
9610
|
+
actions: {
|
|
9611
|
+
[actionName in ACTION]?: TActionFn;
|
|
9573
9612
|
};
|
|
9613
|
+
};
|
|
9574
9614
|
};
|
|
9575
9615
|
export type TInternalTransitionOptions = {
|
|
9576
|
-
|
|
9577
|
-
};
|
|
9578
|
-
export type TStackedMapsOptions = {
|
|
9579
|
-
/**
|
|
9580
|
-
* The vertical distance between maps in overview, in metres.
|
|
9581
|
-
* @default 50
|
|
9582
|
-
*/
|
|
9583
|
-
verticalDistanceBetweenMaps?: number;
|
|
9584
|
-
/**
|
|
9585
|
-
* Whether to show map level labels in overview.
|
|
9586
|
-
* @default true
|
|
9587
|
-
*/
|
|
9588
|
-
mapLabels?: boolean;
|
|
9589
|
-
/**
|
|
9590
|
-
* Whether to show only Journey maps in the stack if a Journey is active and the current map is part of the Journey.
|
|
9591
|
-
* @default true
|
|
9592
|
-
*/
|
|
9593
|
-
prioritizeJourneyMaps?: boolean;
|
|
9616
|
+
animate?: boolean;
|
|
9594
9617
|
};
|
|
9595
9618
|
class StackedMapsController {
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9619
|
+
#private;
|
|
9620
|
+
options: TStackedMapsOptions;
|
|
9621
|
+
enabled: boolean;
|
|
9622
|
+
stackScene: MapViewStackScene;
|
|
9623
|
+
constructor(core: ICore);
|
|
9624
|
+
needsUpdate: boolean;
|
|
9625
|
+
currentState: STACKED_MAPS_STATE;
|
|
9626
|
+
mapsInStack: MappedinMap[];
|
|
9627
|
+
getZoomIntoMapOptions: (params: TParams) => (MapViewScene | {
|
|
9628
|
+
activeMap: MappedinMap;
|
|
9629
|
+
focusOn: {
|
|
9630
|
+
targets: {
|
|
9631
|
+
nodes: MappedinNode[];
|
|
9632
|
+
};
|
|
9633
|
+
options: {
|
|
9634
|
+
zoom?: number | undefined;
|
|
9635
|
+
tilt: number;
|
|
9636
|
+
rotation: number;
|
|
9637
|
+
position?: MappedinNode | import("../../internal").MappedinCoordinate | undefined;
|
|
9638
|
+
easing: CAMERA_EASING_MODE;
|
|
9639
|
+
};
|
|
9640
|
+
};
|
|
9641
|
+
})[] | undefined;
|
|
9642
|
+
getDisableOptions: (params: TParams) => (MapViewScene | {
|
|
9643
|
+
activeMap: MappedinMap;
|
|
9644
|
+
})[] | undefined;
|
|
9645
|
+
getShowOverviewOptions: (params: TParams) => (MapViewStackScene | {
|
|
9646
|
+
activeMap: MappedinMap;
|
|
9647
|
+
focusOn: {
|
|
9648
|
+
options: {
|
|
9649
|
+
tilt: number;
|
|
9650
|
+
duration: number;
|
|
9651
|
+
};
|
|
9652
|
+
};
|
|
9653
|
+
verticalDistanceBetweenMaps: number | undefined;
|
|
9654
|
+
})[] | undefined;
|
|
9655
|
+
getScrollToMapOptions: (params: TParams) => (MapViewStackScene | {
|
|
9656
|
+
focusOn: {
|
|
9657
|
+
targets: {
|
|
9658
|
+
nodes: MappedinNode[];
|
|
9659
|
+
};
|
|
9660
|
+
options: {
|
|
9661
|
+
tilt: number;
|
|
9662
|
+
easing: CAMERA_EASING_MODE;
|
|
9663
|
+
};
|
|
9664
|
+
};
|
|
9665
|
+
activeMap: MappedinMap;
|
|
9666
|
+
})[] | undefined;
|
|
9667
|
+
getRestackOptions: (params: TParams) => (MapViewStackScene | {
|
|
9668
|
+
activeMap: MappedinMap;
|
|
9669
|
+
focusOn: {
|
|
9670
|
+
options: {
|
|
9671
|
+
tilt: number;
|
|
9672
|
+
duration: number;
|
|
9673
|
+
};
|
|
9674
|
+
};
|
|
9675
|
+
verticalDistanceBetweenMaps: number | undefined;
|
|
9676
|
+
})[] | undefined;
|
|
9677
|
+
getEnableOptions: () => void;
|
|
9678
|
+
getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
9679
|
+
getZoomInToMapTransition: (options: any) => () => Promise<void>;
|
|
9680
|
+
getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
9681
|
+
getRestackTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
9682
|
+
getDisableTransition: (options: any) => () => Promise<void>;
|
|
9683
|
+
getEnableTransition: () => () => void;
|
|
9684
|
+
states: TState;
|
|
9685
|
+
get determineMapStack(): MappedinMap[];
|
|
9686
|
+
transition(currentState: STACKED_MAPS_STATE, actionName: ACTION): TTargetTransitionFunction[] | void;
|
|
9687
|
+
exec(transitions: TTargetTransitionFunction[] | void, params: TParams): Promise<void>;
|
|
9688
|
+
disable: () => Promise<void>;
|
|
9689
|
+
enable: (opts?: TStackedMapsOptions) => Promise<void>;
|
|
9690
|
+
get nodesInJourneyOrMap(): any[];
|
|
9691
|
+
showOverview: () => Promise<void>;
|
|
9692
|
+
scrollToMap: (map: MappedinMap) => Promise<void>;
|
|
9693
|
+
restack: (options?: TStackedMapsOptions) => Promise<void>;
|
|
9694
|
+
zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
|
|
9695
|
+
get currentMap(): MappedinMap;
|
|
9673
9696
|
}
|
|
9674
9697
|
export default StackedMapsController;
|
|
9675
9698
|
}
|
|
@@ -14300,8 +14323,8 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Camera
|
|
|
14300
14323
|
|
|
14301
14324
|
declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/StackedMaps' {
|
|
14302
14325
|
import { MappedinMap } from '@mappedin/mappedin-js/packages/get-venue';
|
|
14326
|
+
import { TStackedMapsOptions } from '@mappedin/mappedin-js/packages/legacy-renderer/MapView.types';
|
|
14303
14327
|
import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
14304
|
-
import { TStackedMapsOptions } from '@mappedin/mappedin-js/packages/legacy-renderer/private/controllers/StackedMapsController';
|
|
14305
14328
|
/**
|
|
14306
14329
|
* @experimental
|
|
14307
14330
|
* API for showing multiple maps involved in a {@link Journey} as a vertical stack.
|
|
@@ -14314,7 +14337,8 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Stacke
|
|
|
14314
14337
|
constructor(markersController: StackedMapsController);
|
|
14315
14338
|
/**
|
|
14316
14339
|
* @experimental
|
|
14317
|
-
* Enable Stacked Maps.
|
|
14340
|
+
* 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.
|
|
14341
|
+
* {@link TStackedMapsOptions} can be used to enabling display of all maps including those that are not part of the journey.
|
|
14318
14342
|
* Use {@link showOverview} to expand the maps vertically after enabling.
|
|
14319
14343
|
*
|
|
14320
14344
|
* Upon enabling, map state will become {@link STATE.STACKED | STACKED} and Stacked Maps state will become {@link STACKED_MAPS_STATE.ACTIVE | ACTIVE}.
|
|
@@ -14352,7 +14376,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Stacke
|
|
|
14352
14376
|
/**
|
|
14353
14377
|
* @experimental
|
|
14354
14378
|
*
|
|
14355
|
-
* Expand
|
|
14379
|
+
* Expand and display all maps in the current {@link MapGroup}. If a {@link Journey} has been drawn, vertical paths between connections are displayed.
|
|
14356
14380
|
* Stacked Maps must be enabled beforehand and state will become {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW}.
|
|
14357
14381
|
*
|
|
14358
14382
|
* @example
|
|
@@ -14407,7 +14431,8 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Stacke
|
|
|
14407
14431
|
* @experimental
|
|
14408
14432
|
*
|
|
14409
14433
|
* Used when in {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW} state to replace the maps in the
|
|
14410
|
-
* current stack
|
|
14434
|
+
* current stack after clearing or creating a {@link Journey}.
|
|
14435
|
+
* Use this to hide maps that are not part of the journey or to display all maps in the {@link MapGroup}.
|
|
14411
14436
|
*
|
|
14412
14437
|
* @param options - Options to adjust the overview. Each option defaults to the setting passed in {@link enable}, unless provided.
|
|
14413
14438
|
*
|