@mappedin/mappedin-js 6.0.1-alpha.21 → 6.0.1-alpha.23
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-CJKR5WGG.js → GLTFExporter-MOPEBCUE.js} +1 -1
- package/lib/esm/{GLTFLoader-H7ZE3A4X.js → GLTFLoader-52WDRLU7.js} +1 -1
- package/lib/esm/{PerformanceController-WFRTDYOP.js → PerformanceController-P6CJGERT.js} +1 -1
- package/lib/esm/{browser-7NYRKP6F.js → browser-CBJCYDFJ.js} +1 -1
- package/lib/esm/{chunk-IKFT423T.js → chunk-4VYL3RX6.js} +1 -1
- package/lib/esm/{chunk-AIIHKMIL.js → chunk-KLGSAXAT.js} +1 -1
- package/lib/esm/{chunk-2X6TZZIR.js → chunk-MRSP36FH.js} +1 -1
- package/lib/esm/{chunk-ZIBVJYLJ.js → chunk-S3TAPQAW.js} +1 -1
- package/lib/esm/index.css +1 -1
- package/lib/esm/index.d.ts +145 -51
- package/lib/esm/index.js +1 -1
- package/lib/esm/{outdoor-context-OKBFJPVG.js → outdoor-context-XXDY5UXR.js} +1 -1
- package/lib/esm/{outdoor-context-v4-SVGMPV2P.js → outdoor-context-v4-U3C3EMIH.js} +1 -1
- package/lib/index.css +1 -1
- package/package.json +1 -1
package/lib/esm/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.mMapviewHoverLabel{background:rgba(255,255,255,.9);color:#333;padding:10px;font-size:14px;font-weight:700;transition:opacity .3s;font-family:sans-serif}.mappedin-map{position:relative;overflow:hidden}.mappedin__floating-label{position:absolute;top:0;left:0;opacity:0;width:200px;height:200px;will-change:transform;transition:opacity .3s linear}.mappedin__floating-label__icon{position:absolute;top:0;left:0;width:16px;height:16px}.mappedin__floating-label__icon>svg{position:absolute;top:-50%;left:-50%}.mappedin__floating-label__text_holder{font-family:InterUI-Regular,Helvetica,Arial,sans-serif;font-weight:400;font-weight:500;position:absolute;pointer-events:none;word-break:keep-all}.mappedin__floating-label__text_legacy{text-shadow:1px 1px 0px #ffffff,-1px -1px 0px #ffffff,1px -1px 0px #ffffff,-1px 1px 0px #ffffff}.mappedin__floating-label__text_back{-webkit-text-stroke:4px white;color:#fff}.mappedin__floating-label__text_front{color:#000;position:absolute;display:block;width:100%;height:100%;top:0;left:0}.mappedin-tooltip__wrapper{display:flex;width:1px;height:1px;align-items:center;justify-content:center;z-index:1}.mappedin-tooltip{font-family:InterUI-Regular,Helvetica,Arial,sans-serif;font-weight:400;top:0;transition:transform .3s linear;font-weight:700;color:#000;position:absolute;z-index:1;transition:opacity .3s;display:flex;flex-direction:row;will-change:transform,opacity;justify-content:center}.mappedin-tooltip>div{z-index:2;flex-shrink:0;max-width:500px;background:white;border-radius:20px;box-shadow:0 2px 11px #0003}.mappedin-tooltip:before{content:"";width:0;height:0;top:calc(50% - 10px);left:-10px;z-index:1;position:absolute;border-bottom:10px solid transparent;border-top:10px solid transparent}.mappedin-tooltip.tooltip--anchor-top{left:0;top:0}.mappedin-tooltip.tooltip--anchor-top:before{left:calc(50% - 10px);top:calc(100% - 5px);right:auto;border-bottom:10px solid transparent;border-top:10px solid white;border-left:10px solid transparent;border-right:10px solid transparent}.mappedin-tooltip.tooltip--anchor-bottom{left:0;top:0}.mappedin-tooltip.tooltip--anchor-bottom:before{left:calc(50% - 10px);top:-15px;right:auto;border-bottom:10px solid white;border-top:10px solid transparent;border-left:10px solid transparent;border-right:10px solid transparent}.mappedin-tooltip.tooltip--anchor-right{justify-content:flex-start;left:0;top:0}.mappedin-tooltip.tooltip--anchor-right:before{left:-5px;right:auto;border-right:10px solid white}.mappedin-tooltip.tooltip--anchor-left{left:0;top:0}.mappedin-tooltip.tooltip--anchor-left:before{left:auto;right:-5px;border-left:10px solid white}.mappedin-tooltip.tooltip--anchor-top-left{left:7px;top:7px}.mappedin-tooltip.tooltip--anchor-top-left:before{left:auto;right:-7px;top:calc(100% - 13px);border-bottom:10px solid transparent;border-top:10px solid white;border-left:10px solid transparent;border-right:10px solid transparent;transform:rotate(-45deg)}.mappedin-tooltip.tooltip--anchor-top-right{left:-6px;top:7px}.mappedin-tooltip.tooltip--anchor-top-right:before{left:-7px;right:auto;top:calc(100% - 13px);border-bottom:10px solid transparent;border-top:10px solid white;border-left:10px solid transparent;border-right:10px solid transparent;transform:rotate(45deg)}.mappedin-tooltip.tooltip--anchor-bottom-left{left:7px;top:-6px}.mappedin-tooltip.tooltip--anchor-bottom-left:before{left:auto;right:-7px;top:-7px;border-bottom:10px solid white;border-top:10px solid transparent;border-left:10px solid transparent;border-right:10px solid transparent;transform:rotate(45deg)}.mappedin-tooltip.tooltip--anchor-bottom-right{left:-6px;top:-6px}.mappedin-tooltip.tooltip--anchor-bottom-right:before{left:-7px;right:auto;top:-7px;border-bottom:10px solid white;border-top:10px solid transparent;border-left:10px solid transparent;border-right:10px solid transparent;transform:rotate(-45deg)}.mappedin-tooltip.tooltip--visible{opacity:1}.mappedin-tooltip.pointer-events-none{pointer-events:none}.mappedin-tooltip.pointer-events-auto{pointer-events:auto}.outdoor-ctrl-attrib{display:block;position:absolute;visibility:visible;pointer-events:auto;font:9px/11px InterUI-Regular,Helvetica,Arial,sans-serif;transform:translate(0);padding:3px 20px 1px 5px;background-color:#ffffff80;margin:0;min-width:11px;min-height:11px}.outdoor-ctrl-attrib.outdoor-ctrl-attrib-hide{display:none}.outdoor-ctrl-attrib-top-left{top:0;left:1px;float:left;border-bottom-right-radius:4px}.outdoor-ctrl-attrib-top-right{top:0;right:1px;float:right;border-bottom-left-radius:4px}.outdoor-ctrl-attrib-bottom-left{bottom:0;left:1px;float:left;border-top-right-radius:4px}.outdoor-ctrl-attrib-bottom-right{right:0;bottom:1px;float:right;border-top-left-radius:4px}.outdoor-ctrl-attrib-bottom-left,.outdoor-ctrl-attrib-top-left{padding:3px 5px 1px 20px}.outdoor-ctrl-attrib.outdoor-compact{background-color:transparent}.outdoor-ctrl-attrib.outdoor-compact-show{min-width:15px;min-height:15px;box-sizing:border-box;background-color:#ffffff80}.outdoor-ctrl-attrib-inner,.outdoor-ctrl-attrib-inner a{color:#000000bf;text-decoration:none}.outdoor-ctrl-attrib-inner a:hover{color:#017ef1;text-decoration:underline;cursor:pointer}.outdoor-ctrl-attrib.outdoor-compact .outdoor-ctrl-attrib-inner{display:none}.outdoor-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'><circle cx='10' cy='10' r='5.9' style='fill:rgba(255,255,255,1);'/><path style='fill:rgba(0,0,0,0.7);' d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/></svg>");background-size:15px;width:15px;height:15px;box-sizing:border-box;border-radius:50%;outline:none;top:0;right:2px;border:1px}.outdoor-ctrl-attrib summary.outdoor-ctrl-attrib-button{-webkit-appearance:none;appearance:none;list-style:none}.outdoor-ctrl-attrib summary.outdoor-ctrl-attrib-button::-webkit-details-marker{display:none}.outdoor-ctrl-attrib-top-left .outdoor-ctrl-attrib-button,.outdoor-ctrl-attrib-bottom-left .outdoor-ctrl-attrib-button{left:2px}.outdoor-ctrl-attrib.outdoor-compact .outdoor-ctrl-attrib-button,.outdoor-ctrl-attrib.outdoor-compact-show .outdoor-ctrl-attrib-inner{display:block}:root{--pin-shadow-hover-scale: .9;--pin-shadow-width: 12px;--pin-shadow-height: 5px;--pin-shadow-opacity: .35;--pin-drop-animation-duration-ms: .25s}@keyframes drop-pin{0%{transform:translateY(-200%)}to{transform:translateY(0)}}@keyframes pin-shadow{0%{transform:scale(var(--pin-shadow-hover-scale))}to{transform:scale(1)}}.mappedin-dropped-pin-wrapper{position:relative;width:fit-content;height:fit-content;width:36px;height:42px}.mappedin-dropped-pin-wrapper svg{position:absolute;left:calc(50% - var(--pin-shadow-width));animation:drop-pin var(--pin-drop-animation-duration-ms) ease-in}.mappedin-dropped-pin-wrapper>.pin-shadow{position:absolute;left:calc(50% - (var(--pin-shadow-width) / 2));bottom:0;height:var(--pin-shadow-height);width:var(--pin-shadow-width);border-radius:100%;opacity:var(--pin-shadow-opacity);animation:pin-shadow .25s ease-in}@keyframes bounce{0%{transform:translateY(-10px);opacity:0}12.5%{transform:translateY(0);opacity:1}25%{transform:translateY(0)}37.5%{transform:translateY(-10px)}50%{transform:translateY(0)}62.5%{transform:translateY(-10px)}75%{transform:translateY(0)}87.5%{transform:translateY(-10px)}to{transform:translateY(0)}}.mappedin-connection-marker .bouncey{animation:bounce 2.5s linear}.mappedin-connection-marker .arrow--down{transform:rotate(180deg)}.mappedin-connection-marker .connection-circle{display:flex;justify-content:center;align-items:center;border-radius:50%;border:2px solid white;box-shadow:0 2px 8px #00000026}
|
|
1
|
+
.mMapviewHoverLabel{background:rgba(255,255,255,.9);color:#333;padding:10px;font-size:14px;font-weight:700;transition:opacity .3s;font-family:sans-serif}.mappedin-map{position:relative;overflow:hidden}.mappedin__floating-label{position:absolute;top:0;left:0;opacity:0;width:200px;height:200px;will-change:transform;transition:opacity .3s linear}.mappedin__floating-label__icon{position:absolute;top:0;left:0;width:16px;height:16px}.mappedin__floating-label__icon>svg{position:absolute;top:-50%;left:-50%}.mappedin__floating-label__text_holder{font-family:InterUI-Regular,Helvetica,Arial,sans-serif;font-weight:400;font-weight:500;position:absolute;pointer-events:none;word-break:keep-all}.mappedin__floating-label__text_legacy{text-shadow:1px 1px 0px #ffffff,-1px -1px 0px #ffffff,1px -1px 0px #ffffff,-1px 1px 0px #ffffff}.mappedin__floating-label__text_back{-webkit-text-stroke:4px white;color:#fff}.mappedin__floating-label__text_front{color:#000;position:absolute;display:block;width:100%;height:100%;top:0;left:0}.mappedin-tooltip__wrapper{display:flex;width:1px;height:1px;align-items:center;justify-content:center;z-index:1}.mappedin-tooltip{font-family:InterUI-Regular,Helvetica,Arial,sans-serif;font-weight:400;top:0;transition:transform .3s linear;font-weight:700;color:#000;position:absolute;z-index:1;transition:opacity .3s;display:flex;flex-direction:row;will-change:transform,opacity;justify-content:center}.mappedin-tooltip>div{z-index:2;flex-shrink:0;max-width:500px;background:white;border-radius:20px;box-shadow:0 2px 11px #0003}.mappedin-tooltip:before{content:"";width:0;height:0;top:calc(50% - 10px);left:-10px;z-index:1;position:absolute;border-bottom:10px solid transparent;border-top:10px solid transparent}.mappedin-tooltip.tooltip--anchor-top{left:0;top:0}.mappedin-tooltip.tooltip--anchor-top:before{left:calc(50% - 10px);top:calc(100% - 5px);right:auto;border-bottom:10px solid transparent;border-top:10px solid white;border-left:10px solid transparent;border-right:10px solid transparent}.mappedin-tooltip.tooltip--anchor-bottom{left:0;top:0}.mappedin-tooltip.tooltip--anchor-bottom:before{left:calc(50% - 10px);top:-15px;right:auto;border-bottom:10px solid white;border-top:10px solid transparent;border-left:10px solid transparent;border-right:10px solid transparent}.mappedin-tooltip.tooltip--anchor-right{justify-content:flex-start;left:0;top:0}.mappedin-tooltip.tooltip--anchor-right:before{left:-5px;right:auto;border-right:10px solid white}.mappedin-tooltip.tooltip--anchor-left{left:0;top:0}.mappedin-tooltip.tooltip--anchor-left:before{left:auto;right:-5px;border-left:10px solid white}.mappedin-tooltip.tooltip--anchor-top-left{left:7px;top:7px}.mappedin-tooltip.tooltip--anchor-top-left:before{left:auto;right:-7px;top:calc(100% - 13px);border-bottom:10px solid transparent;border-top:10px solid white;border-left:10px solid transparent;border-right:10px solid transparent;transform:rotate(-45deg)}.mappedin-tooltip.tooltip--anchor-top-right{left:-6px;top:7px}.mappedin-tooltip.tooltip--anchor-top-right:before{left:-7px;right:auto;top:calc(100% - 13px);border-bottom:10px solid transparent;border-top:10px solid white;border-left:10px solid transparent;border-right:10px solid transparent;transform:rotate(45deg)}.mappedin-tooltip.tooltip--anchor-bottom-left{left:7px;top:-6px}.mappedin-tooltip.tooltip--anchor-bottom-left:before{left:auto;right:-7px;top:-7px;border-bottom:10px solid white;border-top:10px solid transparent;border-left:10px solid transparent;border-right:10px solid transparent;transform:rotate(45deg)}.mappedin-tooltip.tooltip--anchor-bottom-right{left:-6px;top:-6px}.mappedin-tooltip.tooltip--anchor-bottom-right:before{left:-7px;right:auto;top:-7px;border-bottom:10px solid white;border-top:10px solid transparent;border-left:10px solid transparent;border-right:10px solid transparent;transform:rotate(-45deg)}.mappedin-tooltip.tooltip--visible{opacity:1}.mappedin-tooltip.pointer-events-none{pointer-events:none}.mappedin-tooltip.pointer-events-auto{pointer-events:auto}.outdoor-ctrl-attrib{display:block;position:absolute;visibility:visible;pointer-events:auto;font:9px/11px InterUI-Regular,Helvetica,Arial,sans-serif;transform:translate(0);padding:3px 20px 1px 5px;background-color:#ffffff80;margin:0;min-width:11px;min-height:11px}.outdoor-ctrl-attrib.outdoor-ctrl-attrib-hide{display:none}.outdoor-ctrl-attrib-top-left{top:0;left:1px;float:left;border-bottom-right-radius:4px}.outdoor-ctrl-attrib-top-right{top:0;right:1px;float:right;border-bottom-left-radius:4px}.outdoor-ctrl-attrib-bottom-left{bottom:0;left:1px;float:left;border-top-right-radius:4px}.outdoor-ctrl-attrib-bottom-right{right:0;bottom:1px;float:right;border-top-left-radius:4px}.outdoor-ctrl-attrib-bottom-left,.outdoor-ctrl-attrib-top-left{padding:3px 5px 1px 20px}.outdoor-ctrl-attrib.outdoor-compact{background-color:transparent}.outdoor-ctrl-attrib.outdoor-compact-show{min-width:15px;min-height:15px;box-sizing:border-box;background-color:#ffffff80}.outdoor-ctrl-attrib-inner,.outdoor-ctrl-attrib-inner a{color:#000000bf;text-decoration:none}.outdoor-ctrl-attrib-inner a:hover{color:#017ef1;text-decoration:underline;cursor:pointer}.outdoor-ctrl-attrib.outdoor-compact .outdoor-ctrl-attrib-inner{display:none}.outdoor-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'><circle cx='10' cy='10' r='5.9' style='fill:rgba(255,255,255,1);'/><path style='fill:rgba(0,0,0,0.7);' d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/></svg>");background-size:15px;width:15px;height:15px;box-sizing:border-box;border-radius:50%;outline:none;top:0;right:2px;border:1px}.outdoor-ctrl-attrib summary.outdoor-ctrl-attrib-button{-webkit-appearance:none;appearance:none;list-style:none}.outdoor-ctrl-attrib summary.outdoor-ctrl-attrib-button::-webkit-details-marker{display:none}.outdoor-ctrl-attrib-top-left .outdoor-ctrl-attrib-button,.outdoor-ctrl-attrib-bottom-left .outdoor-ctrl-attrib-button{left:2px}.outdoor-ctrl-attrib.outdoor-compact .outdoor-ctrl-attrib-button,.outdoor-ctrl-attrib.outdoor-compact-show .outdoor-ctrl-attrib-inner{display:block}.mappedin__smart-collision-engine__container{position:absolute;left:0;top:0;bottom:0;right:0;pointer-events:none;transform-style:preserve-3d;z-index:1;font-family:InterUI-Regular,Helvetica,Arial,sans-serif}.mappedin__smart-collision-engine-debug__container{position:absolute;left:0;top:0;bottom:0;right:0;transition:opacity .3s ease-in-out;pointer-events:none;will-change:opacity}.mappedin__smart-collision-engine-debug__container.interacting{opacity:.2}.mappedin-marker{font-family:InterUI-Regular,Helvetica,Arial,sans-serif;font-weight:400;pointer-events:none;top:0;transition:transform .3s linear;position:absolute;font-weight:700;color:#000;z-index:1;transition:opacity .3s;display:flex;flex-direction:row;will-change:opacity;justify-content:center}:root{--pin-shadow-hover-scale: .9;--pin-shadow-width: 12px;--pin-shadow-height: 5px;--pin-shadow-opacity: .35;--pin-drop-animation-duration-ms: .25s}@keyframes drop-pin{0%{transform:translateY(-200%)}to{transform:translateY(0)}}@keyframes pin-shadow{0%{transform:scale(var(--pin-shadow-hover-scale))}to{transform:scale(1)}}.mappedin-dropped-pin-wrapper{position:relative;width:fit-content;height:fit-content;width:36px;height:42px}.mappedin-dropped-pin-wrapper svg{position:absolute;left:calc(50% - var(--pin-shadow-width));animation:drop-pin var(--pin-drop-animation-duration-ms) ease-in}.mappedin-dropped-pin-wrapper>.pin-shadow{position:absolute;left:calc(50% - (var(--pin-shadow-width) / 2));bottom:0;height:var(--pin-shadow-height);width:var(--pin-shadow-width);border-radius:100%;opacity:var(--pin-shadow-opacity);animation:pin-shadow .25s ease-in}@keyframes bounce{0%{transform:translateY(-10px);opacity:0}12.5%{transform:translateY(0);opacity:1}25%{transform:translateY(0)}37.5%{transform:translateY(-10px)}50%{transform:translateY(0)}62.5%{transform:translateY(-10px)}75%{transform:translateY(0)}87.5%{transform:translateY(-10px)}to{transform:translateY(0)}}.mappedin-connection-marker .bouncey{animation:bounce 2.5s linear}.mappedin-connection-marker .arrow--down{transform:rotate(180deg)}.mappedin-connection-marker .connection-circle{display:flex;justify-content:center;align-items:center;border-radius:50%;border:2px solid white;box-shadow:0 2px 8px #00000026}p{color:red}.list-items{max-height:600px;overflow-y:scroll;scroll-behavior:smooth}.children:focus{border:1px solid blue}#interactionPanel{position:absolute;right:0}#mainPanel{position:absolute;left:0}.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Dependencies for this module:
|
|
3
3
|
// ../maker/@mappedin/mvf
|
|
4
4
|
// ../maker/geojson
|
|
5
|
-
// ../maker/three
|
|
6
5
|
// ../maker/@mappedin/core-sdk
|
|
6
|
+
// ../maker/@mappedin/core-sdk/src/camera
|
|
7
|
+
// ../maker/three
|
|
7
8
|
// ../maker/minisearch
|
|
8
9
|
// ../maker/@turf/turf
|
|
9
10
|
// ../maker/@tweenjs/tween.js
|
|
@@ -135,6 +136,10 @@ declare module '@mappedin/mappedin-js' {
|
|
|
135
136
|
* The token is used to fetch outdoor tiles, which will then be rendered.
|
|
136
137
|
*/
|
|
137
138
|
outdoorViewToken?: string;
|
|
139
|
+
/**
|
|
140
|
+
* A url to a style specification conforming to the [Maplibre Style Spec](https://maplibre.org/maplibre-style-spec/).
|
|
141
|
+
*/
|
|
142
|
+
outdoorViewStyle?: string;
|
|
138
143
|
/**
|
|
139
144
|
* Whether or not to automatically add labels and interactivity to the map. Set to
|
|
140
145
|
* false if you need finer control over what is labelled or interactive.
|
|
@@ -966,7 +971,6 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects' {
|
|
|
966
971
|
|
|
967
972
|
declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controllers/WatermarkController' {
|
|
968
973
|
import { ICore } from '@mappedin/mappedin-js/packages/legacy-renderer/private/Core.interface';
|
|
969
|
-
import { Sprite } from 'three';
|
|
970
974
|
type TPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center' | 'top' | 'bottom' | 'left' | 'right';
|
|
971
975
|
export type TShowWatermarkOptions = {
|
|
972
976
|
/**
|
|
@@ -1022,7 +1026,16 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
1022
1026
|
#private;
|
|
1023
1027
|
static ENABLED: boolean;
|
|
1024
1028
|
static OPTIONS: Required<TShowWatermarkOptions>;
|
|
1025
|
-
|
|
1029
|
+
/**
|
|
1030
|
+
* The current calculated position and size of the watermark on the screen. It is updated every resize.
|
|
1031
|
+
* This is public so it can be used in event system.
|
|
1032
|
+
*/
|
|
1033
|
+
position: {
|
|
1034
|
+
x: number;
|
|
1035
|
+
y: number;
|
|
1036
|
+
width: number;
|
|
1037
|
+
height: number;
|
|
1038
|
+
};
|
|
1026
1039
|
constructor(core: ICore);
|
|
1027
1040
|
show: () => void;
|
|
1028
1041
|
hide: () => void;
|
|
@@ -1036,8 +1049,8 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-geojson' {
|
|
|
1036
1049
|
import { GeoJSONTEvents as TEvents } from '@mappedin/mappedin-js/maker/src/events';
|
|
1037
1050
|
import { Floor, MapObject, Space } from '@mappedin/mappedin-js/maker/src/map-data-objects';
|
|
1038
1051
|
import MapData from '@mappedin/mappedin-js/maker/src/map-data';
|
|
1039
|
-
import { ICamera, IMapView, IMarkers, IPaths, TUpdateState, INavigation, TNavigationTarget, TGetDirectionsOptions, TGeometryState, TLabelState } from '@mappedin/mappedin-js/maker/src/map-view-interface';
|
|
1040
|
-
import { Directions, Label } from '@mappedin/mappedin-js/maker/src/map-view-objects';
|
|
1052
|
+
import { ICamera, IMapView, IMarkers, IPaths, TUpdateState, INavigation, TNavigationTarget, TGetDirectionsOptions, TGeometryState, TLabelState, TMarkerState } from '@mappedin/mappedin-js/maker/src/map-view-interface';
|
|
1053
|
+
import { Directions, Label, Marker } from '@mappedin/mappedin-js/maker/src/map-view-objects';
|
|
1041
1054
|
import type { RendererCore } from '@mappedin/core-sdk';
|
|
1042
1055
|
import { LabelsApi } from '@mappedin/mappedin-js/maker/src/api-geojson/labels';
|
|
1043
1056
|
import { Inspector } from '@mappedin/mappedin-js/maker/src/api-geojson';
|
|
@@ -1079,6 +1092,11 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-geojson' {
|
|
|
1079
1092
|
* @internal
|
|
1080
1093
|
*/
|
|
1081
1094
|
constructor(rendererCore: RendererCore);
|
|
1095
|
+
/**
|
|
1096
|
+
* @internal
|
|
1097
|
+
* TODO: revive core
|
|
1098
|
+
*/
|
|
1099
|
+
auto: () => void;
|
|
1082
1100
|
/**
|
|
1083
1101
|
* @internal - unused until we use GeoJSON API underneath
|
|
1084
1102
|
*/
|
|
@@ -1100,11 +1118,11 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-geojson' {
|
|
|
1100
1118
|
* // Update the color of a space to red.
|
|
1101
1119
|
* map.updateState(space, { color: 'red' });
|
|
1102
1120
|
*/
|
|
1103
|
-
updateState<T extends Space | MapObject | Label | string>(target: T, state: TUpdateState<T>): void;
|
|
1121
|
+
updateState<T extends Space | MapObject | Label | Marker | string>(target: T, state: TUpdateState<T>): void;
|
|
1104
1122
|
setHoverColor(c: string): void;
|
|
1105
|
-
getHoverColor():
|
|
1123
|
+
getHoverColor(): any;
|
|
1106
1124
|
getState(id: string): TGeometryState | TLabelState | undefined;
|
|
1107
|
-
getState(target: Space | Label | MapObject): TGeometryState | TLabelState;
|
|
1125
|
+
getState(target: Space | Label | Marker | MapObject): TGeometryState | TLabelState | TMarkerState;
|
|
1108
1126
|
/**
|
|
1109
1127
|
* Retrieves the current floor of the map.
|
|
1110
1128
|
*
|
|
@@ -1144,6 +1162,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1144
1162
|
import type { Coordinate, Floor, Door, Space, MapObject, PointOfInterest, Connection } from '@mappedin/mappedin-js/maker/src/map-data-objects';
|
|
1145
1163
|
import { Label, Marker, Path, Directions } from '@mappedin/mappedin-js/maker/src/map-view-objects';
|
|
1146
1164
|
import type { MapData, TNavigationOptions } from '@mappedin/mappedin-js/maker/src';
|
|
1165
|
+
import { EasingCurve } from '@mappedin/core-sdk/src/camera';
|
|
1147
1166
|
/**
|
|
1148
1167
|
* Interface defining the controls and actions for a label on the map.
|
|
1149
1168
|
*/
|
|
@@ -1158,6 +1177,20 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1158
1177
|
*/
|
|
1159
1178
|
readonly __type: 'Label';
|
|
1160
1179
|
}
|
|
1180
|
+
/**
|
|
1181
|
+
* Interface defining the controls and actions for a label on the map.
|
|
1182
|
+
*/
|
|
1183
|
+
export interface IMarker {
|
|
1184
|
+
/**
|
|
1185
|
+
* Label's id
|
|
1186
|
+
*/
|
|
1187
|
+
id: string;
|
|
1188
|
+
/**
|
|
1189
|
+
* Label's internal type
|
|
1190
|
+
* @internal
|
|
1191
|
+
*/
|
|
1192
|
+
readonly __type: 'Marker';
|
|
1193
|
+
}
|
|
1161
1194
|
/**
|
|
1162
1195
|
* Interface defining the controls and actions for labels ({@link Label}) on the map.
|
|
1163
1196
|
*/
|
|
@@ -1230,7 +1263,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1230
1263
|
* @example
|
|
1231
1264
|
* map.Markers.removeAll();
|
|
1232
1265
|
*/
|
|
1233
|
-
removeAll: () =>
|
|
1266
|
+
removeAll: () => Marker[];
|
|
1234
1267
|
}
|
|
1235
1268
|
/**
|
|
1236
1269
|
* Interface defining the controls and actions for paths ({@link Path}) on the map.
|
|
@@ -1290,6 +1323,18 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1290
1323
|
priority: number | 'initial';
|
|
1291
1324
|
interactive: boolean;
|
|
1292
1325
|
};
|
|
1326
|
+
export type TMarkerState = {
|
|
1327
|
+
type: 'marker';
|
|
1328
|
+
/**
|
|
1329
|
+
* HTML element for the marker.
|
|
1330
|
+
*/
|
|
1331
|
+
element: HTMLElement;
|
|
1332
|
+
/**
|
|
1333
|
+
* Priority level of the marker, used for determining display order.
|
|
1334
|
+
*/
|
|
1335
|
+
priority: number | 'initial';
|
|
1336
|
+
interactive: boolean;
|
|
1337
|
+
};
|
|
1293
1338
|
/**
|
|
1294
1339
|
* Defines the state for geometry elements like {@link Space} when updated.
|
|
1295
1340
|
*/
|
|
@@ -1311,8 +1356,8 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1311
1356
|
/**
|
|
1312
1357
|
* The type for updating the state of map elements (colors, texts, etc.).
|
|
1313
1358
|
*/
|
|
1314
|
-
export type TUpdateState<T> = T extends ILabel ? Partial<TLabelState> : T extends Space | MapObject ? Partial<TGeometryState> : T extends string ? Record<string, any> : never;
|
|
1315
|
-
export type TGetState<T> = T extends Label ? TLabelState : T extends Space | MapObject ? TGeometryState : T extends string ? TLabelState | TGeometryState | undefined : never;
|
|
1359
|
+
export type TUpdateState<T> = T extends IMarker ? Partial<TMarkerState> : T extends ILabel ? Partial<TLabelState> : T extends Space | MapObject ? Partial<TGeometryState> : T extends string ? Record<string, any> : never;
|
|
1360
|
+
export type TGetState<T> = T extends Marker ? TMarkerState : T extends Label ? TLabelState : T extends Space | MapObject ? TGeometryState : T extends string ? TLabelState | TGeometryState | TMarkerState | undefined : never;
|
|
1316
1361
|
/**
|
|
1317
1362
|
* Options for {@link ICamera} animations on the map.
|
|
1318
1363
|
*/
|
|
@@ -1324,7 +1369,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1324
1369
|
/**
|
|
1325
1370
|
* Easing function to use for the animation.
|
|
1326
1371
|
*/
|
|
1327
|
-
easing?:
|
|
1372
|
+
easing?: EasingCurve;
|
|
1328
1373
|
};
|
|
1329
1374
|
/**
|
|
1330
1375
|
* Types of easing for animations.
|
|
@@ -1984,8 +2029,9 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-objects' {
|
|
|
1984
2029
|
}
|
|
1985
2030
|
|
|
1986
2031
|
declare module '@mappedin/mappedin-js/maker/src/navigation' {
|
|
1987
|
-
import
|
|
2032
|
+
import { MapView, Directions } from '@mappedin/mappedin-js/maker/src';
|
|
1988
2033
|
import { INavigation } from '@mappedin/mappedin-js/maker/src/map-view-interface';
|
|
2034
|
+
import { MapViewGeoJson } from '@mappedin/mappedin-js/maker/src/map-view-geojson';
|
|
1989
2035
|
const defaultOptions: {
|
|
1990
2036
|
createMarkers: {
|
|
1991
2037
|
departure: boolean;
|
|
@@ -2026,7 +2072,7 @@ declare module '@mappedin/mappedin-js/maker/src/navigation' {
|
|
|
2026
2072
|
departure: string;
|
|
2027
2073
|
};
|
|
2028
2074
|
};
|
|
2029
|
-
constructor(mapView: MapView);
|
|
2075
|
+
constructor(mapView: MapView | MapViewGeoJson);
|
|
2030
2076
|
draw: INavigation['draw'];
|
|
2031
2077
|
clear: () => void;
|
|
2032
2078
|
}
|
|
@@ -2156,6 +2202,10 @@ declare module '@mappedin/mappedin-js/maker/src' {
|
|
|
2156
2202
|
* The token is used to fetch outdoor tiles, which will then be rendered.
|
|
2157
2203
|
*/
|
|
2158
2204
|
outdoorViewToken?: string;
|
|
2205
|
+
/**
|
|
2206
|
+
* A url to a style specification conforming to the [Maplibre Style Spec](https://maplibre.org/maplibre-style-spec/).
|
|
2207
|
+
*/
|
|
2208
|
+
outdoorViewStyle?: string;
|
|
2159
2209
|
/**
|
|
2160
2210
|
* Whether or not to automatically add labels and interactivity to the map. Set to
|
|
2161
2211
|
* false if you need finer control over what is labelled or interactive.
|
|
@@ -5340,7 +5390,11 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-objects/marker' {
|
|
|
5340
5390
|
/**
|
|
5341
5391
|
* @internal
|
|
5342
5392
|
*/
|
|
5343
|
-
readonly __type
|
|
5393
|
+
static readonly __type = "Marker";
|
|
5394
|
+
/**
|
|
5395
|
+
* @internal
|
|
5396
|
+
*/
|
|
5397
|
+
readonly __type = "Marker";
|
|
5344
5398
|
/**
|
|
5345
5399
|
* The HTML element that represents the marker.
|
|
5346
5400
|
*/
|
|
@@ -5349,6 +5403,13 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-objects/marker' {
|
|
|
5349
5403
|
* Updates the marker's position on the map.
|
|
5350
5404
|
*/
|
|
5351
5405
|
readonly update: () => void;
|
|
5406
|
+
/**
|
|
5407
|
+
* Checks if the provided instance is of type Label.
|
|
5408
|
+
*
|
|
5409
|
+
* @param instance The instance to check.
|
|
5410
|
+
* @returns {boolean} True if the instance is a Label, false otherwise.
|
|
5411
|
+
*/
|
|
5412
|
+
static is(instance: object): instance is Marker;
|
|
5352
5413
|
/**
|
|
5353
5414
|
* @internal
|
|
5354
5415
|
*/
|
|
@@ -9542,7 +9603,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9542
9603
|
touchCount: number;
|
|
9543
9604
|
zoomOut(): void;
|
|
9544
9605
|
zoomIn(event: any): void;
|
|
9545
|
-
onPointerMove: (event:
|
|
9606
|
+
onPointerMove: (event: PointerEvent) => void;
|
|
9546
9607
|
onPointerUp: (event: any) => void;
|
|
9547
9608
|
/**
|
|
9548
9609
|
* We've confirmed that a map click has occured, so handle that here
|
|
@@ -9583,7 +9644,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9583
9644
|
detectCollidersUnderMouse: () => Collider[];
|
|
9584
9645
|
detectPolygonsUnderMouse: () => string[];
|
|
9585
9646
|
detectPathsUnderMouse: () => Path[];
|
|
9586
|
-
detectWatermarkUnderMouse: () => boolean;
|
|
9647
|
+
detectWatermarkUnderMouse: (event: PointerEvent) => boolean;
|
|
9587
9648
|
detectMapsUnderMouse: () => (import("../../internal").MappedinMap | null)[];
|
|
9588
9649
|
/**
|
|
9589
9650
|
* Gets mouse click position in x y map coordinates
|
|
@@ -9593,7 +9654,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9593
9654
|
y: number;
|
|
9594
9655
|
};
|
|
9595
9656
|
checkMouseIntersectsBlueDot: () => boolean;
|
|
9596
|
-
doHoverEffect: () => void;
|
|
9657
|
+
doHoverEffect: (event: PointerEvent) => void;
|
|
9597
9658
|
onPolygonHoverOut: (polygonId: string) => false | undefined;
|
|
9598
9659
|
onPolygonHoverOver: (polygon: MappedinPolygon | string) => false | undefined;
|
|
9599
9660
|
setHoverColor: (color: string) => void;
|
|
@@ -9736,7 +9797,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9736
9797
|
declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controllers/StackedMapsController' {
|
|
9737
9798
|
import { MappedinDirections, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/packages/get-venue';
|
|
9738
9799
|
import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
9739
|
-
import type { ICore, TCameraTransform } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
9800
|
+
import type { ICore, TCameraTransform, TCameraAnimationOptions } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
9740
9801
|
import { TStackedMapsOptions } from '@mappedin/mappedin-js/packages/legacy-renderer/MapView.types';
|
|
9741
9802
|
enum ACTION {
|
|
9742
9803
|
enable = "enable",
|
|
@@ -9755,18 +9816,24 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9755
9816
|
stackScene: MapViewStackScene;
|
|
9756
9817
|
directions: MappedinDirections | MappedinDirections[];
|
|
9757
9818
|
verticalDistanceBetweenMaps?: number;
|
|
9819
|
+
animationOptions?: TCameraAnimationOptions;
|
|
9758
9820
|
} | {
|
|
9759
9821
|
stackScene: MapViewStackScene;
|
|
9760
9822
|
verticalDistanceBetweenMaps?: number;
|
|
9761
9823
|
map: MappedinMap;
|
|
9762
9824
|
nodes: MappedinNode[];
|
|
9825
|
+
cameraOptions?: TCameraTransform & TCameraAnimationOptions;
|
|
9826
|
+
duration?: number;
|
|
9827
|
+
animationOptions?: TCameraAnimationOptions;
|
|
9763
9828
|
} | {
|
|
9764
9829
|
stackScene: MapViewStackScene;
|
|
9765
9830
|
map: MappedinMap;
|
|
9766
9831
|
nodes: MappedinNode[];
|
|
9767
9832
|
rotation: number;
|
|
9768
|
-
|
|
9833
|
+
cameraOptions?: TCameraTransform & TCameraAnimationOptions;
|
|
9769
9834
|
verticalDistanceBetweenMaps?: number;
|
|
9835
|
+
duration?: number;
|
|
9836
|
+
animationOptions?: TCameraAnimationOptions;
|
|
9770
9837
|
};
|
|
9771
9838
|
type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
|
|
9772
9839
|
type TState = {
|
|
@@ -9799,6 +9866,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9799
9866
|
tilt: number;
|
|
9800
9867
|
rotation: number;
|
|
9801
9868
|
position?: MappedinNode | import("../../internal").MappedinCoordinate | undefined;
|
|
9869
|
+
duration?: number | undefined;
|
|
9802
9870
|
easing: CAMERA_EASING_MODE;
|
|
9803
9871
|
};
|
|
9804
9872
|
};
|
|
@@ -9810,8 +9878,9 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9810
9878
|
activeMap: MappedinMap;
|
|
9811
9879
|
focusOn: {
|
|
9812
9880
|
options: {
|
|
9813
|
-
tilt: number;
|
|
9814
9881
|
duration: number;
|
|
9882
|
+
easing?: CAMERA_EASING_MODE | undefined;
|
|
9883
|
+
tilt: number;
|
|
9815
9884
|
};
|
|
9816
9885
|
};
|
|
9817
9886
|
verticalDistanceBetweenMaps: number | undefined;
|
|
@@ -9827,6 +9896,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9827
9896
|
};
|
|
9828
9897
|
};
|
|
9829
9898
|
activeMap: MappedinMap;
|
|
9899
|
+
duration: number | undefined;
|
|
9830
9900
|
})[] | undefined;
|
|
9831
9901
|
getRestackOptions: (params: TParams) => (MapViewStackScene | {
|
|
9832
9902
|
activeMap: MappedinMap;
|
|
@@ -9852,10 +9922,10 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9852
9922
|
disable: () => Promise<void>;
|
|
9853
9923
|
enable: (opts?: TStackedMapsOptions) => Promise<void>;
|
|
9854
9924
|
get nodesInJourneyOrMap(): any[];
|
|
9855
|
-
showOverview: () => Promise<void>;
|
|
9856
|
-
scrollToMap: (map: MappedinMap) => Promise<void>;
|
|
9925
|
+
showOverview: (animationOptions?: TCameraAnimationOptions) => Promise<void>;
|
|
9926
|
+
scrollToMap: (map: MappedinMap, duration?: number) => Promise<void>;
|
|
9857
9927
|
restack: (options?: TStackedMapsOptions) => Promise<void>;
|
|
9858
|
-
zoomInToMap: (map: MappedinMap,
|
|
9928
|
+
zoomInToMap: (map: MappedinMap, cameraOptions?: TCameraTransform & TCameraAnimationOptions) => Promise<void>;
|
|
9859
9929
|
get currentMap(): MappedinMap;
|
|
9860
9930
|
}
|
|
9861
9931
|
export default StackedMapsController;
|
|
@@ -13030,10 +13100,10 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/base-metadata-o
|
|
|
13030
13100
|
declare module '@mappedin/mappedin-js/maker/src/api-geojson/map-object' {
|
|
13031
13101
|
import { ParsedMVF } from '@mappedin/mvf';
|
|
13032
13102
|
import { FloorObject } from '@mappedin/mappedin-js/maker/src/api-geojson/floor-object';
|
|
13033
|
-
import { AddLabelOptions } from '@mappedin/core-sdk';
|
|
13034
13103
|
import { Position } from '@mappedin/core-sdk';
|
|
13035
|
-
import { TAddMarkerOptions } from '@mappedin/mappedin-js/maker/src';
|
|
13036
|
-
import { Geometry2D, RendererCore } from '@mappedin/core-sdk';
|
|
13104
|
+
import { Coordinate, TAddMarkerOptions } from '@mappedin/mappedin-js/maker/src';
|
|
13105
|
+
import { AddLabelOptions, Geometry2D, RendererCore } from '@mappedin/core-sdk';
|
|
13106
|
+
import { Path } from '@mappedin/core-sdk';
|
|
13037
13107
|
export class GeojsonApiMapObject {
|
|
13038
13108
|
floors: FloorObject[];
|
|
13039
13109
|
currentFloorId: string;
|
|
@@ -13046,7 +13116,7 @@ declare module '@mappedin/mappedin-js/maker/src/api-geojson/map-object' {
|
|
|
13046
13116
|
floorId?: string;
|
|
13047
13117
|
}) => import("@mappedin/core-sdk").Marker;
|
|
13048
13118
|
remove: (_id: string) => void;
|
|
13049
|
-
getContentEl: (id: string) =>
|
|
13119
|
+
getContentEl: (id: string) => any;
|
|
13050
13120
|
removeAll: () => void;
|
|
13051
13121
|
all({ onCreate }: {
|
|
13052
13122
|
onCreate: (entity: Geometry2D) => void;
|
|
@@ -13066,11 +13136,8 @@ declare module '@mappedin/mappedin-js/maker/src/api-geojson/map-object' {
|
|
|
13066
13136
|
removeAll: () => void;
|
|
13067
13137
|
};
|
|
13068
13138
|
Paths: {
|
|
13069
|
-
add: (coordinates:
|
|
13070
|
-
|
|
13071
|
-
longitude: number;
|
|
13072
|
-
latitude: number;
|
|
13073
|
-
}[]) => void;
|
|
13139
|
+
add: (coordinates: Coordinate[]) => Path[];
|
|
13140
|
+
remove: (entityIds: string[]) => void;
|
|
13074
13141
|
};
|
|
13075
13142
|
constructor(id: string, mvf: any, renderer: RendererCore);
|
|
13076
13143
|
}
|
|
@@ -13085,13 +13152,15 @@ declare module '@mappedin/mappedin-js/maker/src/api-geojson/api' {
|
|
|
13085
13152
|
import MapData from '@mappedin/mappedin-js/maker/src/map-data';
|
|
13086
13153
|
import { Coordinate, Floor, MapDataInternal, Space, MapObject } from '@mappedin/mappedin-js/maker/src/map-data-objects';
|
|
13087
13154
|
import { ICamera, IMapView, INavigation, TGetState, TUpdateState } from '@mappedin/mappedin-js/maker/src/map-view-interface';
|
|
13088
|
-
import { CameraTransform, Label,
|
|
13155
|
+
import { CameraTransform, Label, Marker } from '@mappedin/mappedin-js/maker/src/map-view-objects';
|
|
13089
13156
|
import { RendererCore, InteractionPayload } from '@mappedin/core-sdk';
|
|
13090
13157
|
import { GeojsonApiMapObject } from '@mappedin/mappedin-js/maker/src/api-geojson/map-object';
|
|
13091
13158
|
import GUI from 'lil-gui';
|
|
13092
13159
|
import { PubSub } from '@packages/internal/common';
|
|
13093
13160
|
import { LabelsApi } from '@mappedin/mappedin-js/maker/src/api-geojson/labels';
|
|
13094
13161
|
import { MarkersApi } from '@mappedin/mappedin-js/maker/src/api-geojson/markers';
|
|
13162
|
+
import { PathsApi } from '@mappedin/mappedin-js/maker/src/api-geojson/paths';
|
|
13163
|
+
import { MapViewGeoJson } from '@mappedin/mappedin-js/maker/src/map-view-geojson';
|
|
13095
13164
|
export class GeoJsonApi extends PubSub<{
|
|
13096
13165
|
'camera-change': CameraTransform;
|
|
13097
13166
|
hover: InteractionPayload;
|
|
@@ -13107,22 +13176,18 @@ declare module '@mappedin/mappedin-js/maker/src/api-geojson/api' {
|
|
|
13107
13176
|
Camera: ICamera;
|
|
13108
13177
|
Labels: LabelsApi;
|
|
13109
13178
|
Markers: MarkersApi;
|
|
13110
|
-
|
|
13179
|
+
Paths: PathsApi;
|
|
13180
|
+
constructor(rendererCore: RendererCore, mapView: MapViewGeoJson, _options?: any);
|
|
13111
13181
|
updateStackState: RendererCore['updateStackState'];
|
|
13112
|
-
updateState<T extends Space | MapObject | Label | string>(target: T, state: TUpdateState<T>): void;
|
|
13182
|
+
updateState<T extends Space | MapObject | Label | Marker | string>(target: T, state: TUpdateState<T>): void;
|
|
13113
13183
|
update: () => void;
|
|
13114
13184
|
getMapData(): MapDataInternal | undefined;
|
|
13115
13185
|
addMap(mapData: MapData): Promise<MapData>;
|
|
13116
13186
|
setFloor(floor: Floor | string): void;
|
|
13117
13187
|
get currentFloor(): Floor;
|
|
13118
|
-
|
|
13119
|
-
add: (_coordinates: Coordinate[]) => Path;
|
|
13120
|
-
remove: (_label: any) => void;
|
|
13121
|
-
removeAll: () => void;
|
|
13122
|
-
};
|
|
13123
|
-
getState<T extends Space | MapObject | Label | string>(target: T): TGetState<T> | undefined;
|
|
13188
|
+
getState<T extends Space | MapObject | Label | Marker | string>(target: T): TGetState<T> | undefined;
|
|
13124
13189
|
setHoverColor(c: string): void;
|
|
13125
|
-
getHoverColor():
|
|
13190
|
+
getHoverColor(): any;
|
|
13126
13191
|
getDirections: IMapView['getDirections'];
|
|
13127
13192
|
Navigation: INavigation;
|
|
13128
13193
|
createCoordinate(latitude: number, longitude: number, floor?: Floor): Coordinate;
|
|
@@ -13144,14 +13209,16 @@ declare module '@mappedin/mappedin-js/maker/src/api-geojson/utils' {
|
|
|
13144
13209
|
import type { Position, EntranceCollection, LineString, ObstructionProperties } from '@mappedin/mvf';
|
|
13145
13210
|
import { FeatureCollection } from '@turf/turf';
|
|
13146
13211
|
import { Feature, MultiLineString } from 'geojson';
|
|
13147
|
-
import { CollisionRankingTier, LabelState } from '@mappedin/core-sdk';
|
|
13212
|
+
import { CollisionRankingTier, LabelState, MarkerState } from '@mappedin/core-sdk';
|
|
13148
13213
|
import { TGeometryState, TLabelState } from '@mappedin/mappedin-js/maker/src';
|
|
13149
13214
|
import { GeometryState } from '@mappedin/core-sdk';
|
|
13215
|
+
import { TMarkerState } from '@mappedin/mappedin-js/maker/src/map-view-interface';
|
|
13150
13216
|
export function convertCoordinateToPosition(coord: Coordinate): Position;
|
|
13151
13217
|
export function convertPositionToCoordinate(coord: Position): Coordinate;
|
|
13152
13218
|
export const cutEntracesFromLineStrings: (lineStrings: FeatureCollection<LineString, ObstructionProperties>['features'], entranceCollection: EntranceCollection['features']) => Feature<MultiLineString, any>;
|
|
13153
13219
|
export function convertPriorityToCollisionTier(priority: TLabelState['priority']): CollisionRankingTier;
|
|
13154
13220
|
export function translateLabelStateToGeojsonCore(state: Partial<TLabelState>): Partial<LabelState>;
|
|
13221
|
+
export function translateMarkerStateToGeojsonCore(state: Partial<TMarkerState>): Partial<MarkerState>;
|
|
13155
13222
|
export function translateSpaceStateToGeojsonCore(state: Partial<TGeometryState>): Partial<GeometryState>;
|
|
13156
13223
|
}
|
|
13157
13224
|
|
|
@@ -14622,7 +14689,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Camera
|
|
|
14622
14689
|
declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/StackedMaps' {
|
|
14623
14690
|
import { MappedinMap } from '@mappedin/mappedin-js/packages/get-venue';
|
|
14624
14691
|
import { TStackedMapsOptions } from '@mappedin/mappedin-js/packages/legacy-renderer/MapView.types';
|
|
14625
|
-
import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
14692
|
+
import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform, TCameraAnimationOptions } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
14626
14693
|
/**
|
|
14627
14694
|
* @experimental
|
|
14628
14695
|
* API for showing multiple maps involved in a {@link Journey} as a vertical stack.
|
|
@@ -14686,7 +14753,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Stacke
|
|
|
14686
14753
|
*
|
|
14687
14754
|
* @returns Promise when all animations are complete.
|
|
14688
14755
|
*/
|
|
14689
|
-
showOverview: () => Promise<void>;
|
|
14756
|
+
showOverview: (animationOptions?: TCameraAnimationOptions) => Promise<void>;
|
|
14690
14757
|
/**
|
|
14691
14758
|
* @experimental
|
|
14692
14759
|
*
|
|
@@ -14694,7 +14761,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Stacke
|
|
|
14694
14761
|
*
|
|
14695
14762
|
* @example
|
|
14696
14763
|
* ```ts
|
|
14697
|
-
* //
|
|
14764
|
+
* // Scroll the camera to a specific map if Stacked Maps is in Overview state
|
|
14698
14765
|
* mapView.on(E_SDK_EVENT.CLICK, ({ maps }) => {
|
|
14699
14766
|
* if (maps.length <= 0) return;
|
|
14700
14767
|
* if (mapView.StackedMaps.state === STACKED_MAPS_STATE.OVERVIEW) {
|
|
@@ -14705,7 +14772,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Stacke
|
|
|
14705
14772
|
*
|
|
14706
14773
|
* @returns Promise when all animations are complete.
|
|
14707
14774
|
*/
|
|
14708
|
-
scrollToMap: (map: MappedinMap) => Promise<void>;
|
|
14775
|
+
scrollToMap: (map: MappedinMap, duration?: number) => Promise<void>;
|
|
14709
14776
|
/**
|
|
14710
14777
|
* @experimental
|
|
14711
14778
|
*
|
|
@@ -14724,7 +14791,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Stacke
|
|
|
14724
14791
|
*
|
|
14725
14792
|
* @returns Promise when all animations are complete.
|
|
14726
14793
|
*/
|
|
14727
|
-
zoomInToMap: (map: MappedinMap,
|
|
14794
|
+
zoomInToMap: (map: MappedinMap, cameraOptions?: TCameraTransform & TCameraAnimationOptions) => Promise<void>;
|
|
14728
14795
|
/**
|
|
14729
14796
|
* @experimental
|
|
14730
14797
|
*
|
|
@@ -15269,6 +15336,31 @@ declare module '@mappedin/mappedin-js/maker/src/api-geojson/markers' {
|
|
|
15269
15336
|
export {};
|
|
15270
15337
|
}
|
|
15271
15338
|
|
|
15339
|
+
declare module '@mappedin/mappedin-js/maker/src/api-geojson/paths' {
|
|
15340
|
+
import { GeojsonApiMapObject } from '@mappedin/mappedin-js/maker/src/api-geojson/map-object';
|
|
15341
|
+
import { IPaths } from '@mappedin/mappedin-js/maker/src';
|
|
15342
|
+
import { Path } from '@mappedin/mappedin-js/maker/src/map-view-objects';
|
|
15343
|
+
import { Coordinate } from '@mappedin/mappedin-js/maker/src/map-data-objects';
|
|
15344
|
+
export class PathsApi implements IPaths {
|
|
15345
|
+
get currentMap(): GeojsonApiMapObject | undefined;
|
|
15346
|
+
constructor({ currentMapGetter }: {
|
|
15347
|
+
currentMapGetter: CurremtMapGetter;
|
|
15348
|
+
});
|
|
15349
|
+
/**
|
|
15350
|
+
* internal
|
|
15351
|
+
*/
|
|
15352
|
+
getById(id: string): {
|
|
15353
|
+
path: Path;
|
|
15354
|
+
entityIds: string[];
|
|
15355
|
+
} | undefined;
|
|
15356
|
+
add(coords: Coordinate[]): Path;
|
|
15357
|
+
remove(target: Path): void;
|
|
15358
|
+
removeAll(): Path[];
|
|
15359
|
+
}
|
|
15360
|
+
type CurremtMapGetter = () => GeojsonApiMapObject | undefined;
|
|
15361
|
+
export {};
|
|
15362
|
+
}
|
|
15363
|
+
|
|
15272
15364
|
declare module '@mappedin/mappedin-js/maker/src/api-geojson/inspector/debug' {
|
|
15273
15365
|
import MapData from '@mappedin/mappedin-js/maker/src/map-data';
|
|
15274
15366
|
import { MapViewGeoJson } from '@mappedin/mappedin-js/maker/src/map-view-geojson';
|
|
@@ -15385,10 +15477,11 @@ declare module '@mappedin/mappedin-js/cms/src' {
|
|
|
15385
15477
|
|
|
15386
15478
|
declare module '@mappedin/mappedin-js/maker/src/themes/default' {
|
|
15387
15479
|
import type { MapData, MapView } from '@mappedin/mappedin-js/maker/src';
|
|
15480
|
+
import { MapViewGeoJson } from '@mappedin/mappedin-js/maker/src/map-view-geojson';
|
|
15388
15481
|
import { Labels } from '@mappedin/mappedin-js/maker/src/themes/default/labels';
|
|
15389
15482
|
export class DefaultTheme {
|
|
15390
15483
|
Labels: Labels;
|
|
15391
|
-
constructor(mapView: MapView, mapData: {
|
|
15484
|
+
constructor(mapView: MapView | MapViewGeoJson, mapData: {
|
|
15392
15485
|
[key in string]: MapData;
|
|
15393
15486
|
});
|
|
15394
15487
|
auto: () => void;
|
|
@@ -15397,6 +15490,7 @@ declare module '@mappedin/mappedin-js/maker/src/themes/default' {
|
|
|
15397
15490
|
|
|
15398
15491
|
declare module '@mappedin/mappedin-js/maker/src/themes/default/labels' {
|
|
15399
15492
|
import type { MapData, MapView } from '@mappedin/mappedin-js/maker/src';
|
|
15493
|
+
import { MapViewGeoJson } from '@mappedin/mappedin-js/maker/src/map-view-geojson';
|
|
15400
15494
|
export class Labels {
|
|
15401
15495
|
#private;
|
|
15402
15496
|
colors: {
|
|
@@ -15405,7 +15499,7 @@ declare module '@mappedin/mappedin-js/maker/src/themes/default/labels' {
|
|
|
15405
15499
|
washroom: string;
|
|
15406
15500
|
point: string;
|
|
15407
15501
|
};
|
|
15408
|
-
constructor(mapView: MapView, mapData: {
|
|
15502
|
+
constructor(mapView: MapView | MapViewGeoJson, mapData: {
|
|
15409
15503
|
[key in string]: MapData;
|
|
15410
15504
|
});
|
|
15411
15505
|
auto(): void;
|