@mappedin/mappedin-js 5.50.0 → 5.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/get-venue/index.d.ts +27 -3
- package/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/navigator/index.d.ts +2 -1
- package/lib/esm/navigator/index.js +1 -1
- package/lib/esm/renderer/{Arrival-KLIH5LTH.js → Arrival-UP4PJA4U.js} +1 -1
- package/lib/esm/renderer/{Chalet-ZU2FPU2K.js → Chalet-O3KLVJGV.js} +1 -1
- package/lib/esm/renderer/{GLTFExporter-AEQQSSOJ.js → GLTFExporter-TCED5YLG.js} +1 -1
- package/lib/esm/renderer/{HelveticaNeue-PHK3JE5I.js → HelveticaNeue-WLGRUQWN.js} +1 -1
- package/lib/esm/renderer/{Helvetiker-JVUX4WK7.js → Helvetiker-UU7LFERE.js} +1 -1
- package/lib/esm/renderer/{Lato-BX5JVWZI.js → Lato-2SXEYW4V.js} +1 -1
- package/lib/esm/renderer/{MyriadPro-3UATSCWU.js → MyriadPro-BSXPENY5.js} +1 -1
- package/lib/esm/renderer/{PerformanceController-I6QAT4EJ.js → PerformanceController-72JJ2M4J.js} +1 -1
- package/lib/esm/renderer/{ProximaNova-54WAWGUY.js → ProximaNova-H6MTSMLS.js} +1 -1
- package/lib/esm/renderer/{SimonCircular-ETZIFPSM.js → SimonCircular-TSBYW4PJ.js} +1 -1
- package/lib/esm/renderer/browser-T4GX5CT7.js +1 -0
- package/lib/esm/renderer/chunk-DCWRUQBL.js +1 -0
- package/lib/esm/renderer/chunk-GSLNUYA6.js +1 -0
- package/lib/esm/renderer/chunk-ORJYYHGW.js +1 -0
- package/lib/esm/renderer/index.css +1 -1
- package/lib/esm/renderer/index.d.ts +145 -83
- package/lib/esm/renderer/index.js +1 -1
- package/lib/esm/renderer/maplibre-worker.csp.js +1 -1
- package/lib/esm/renderer/outdoor-context-BSDLOTS5.js +1 -0
- package/lib/mappedin.css +1 -1
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +2 -2
- package/lib/esm/renderer/browser-327UAZTD.js +0 -1
- package/lib/esm/renderer/chunk-3XZX75KS.js +0 -1
- package/lib/esm/renderer/chunk-OHPDU25U.js +0 -1
- package/lib/esm/renderer/chunk-ZRT45YCM.js +0 -1
- package/lib/esm/renderer/outdoor-context-XOOYHZLY.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a}from"./chunk-ORJYYHGW.js";var e,c=a((()=>{e={env:{NODE_ENV:"production",npm_package_version:"5.52.0"}}}));export{c as a,e as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=Object.create,f=Object.defineProperty,j=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,l=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,h=e=>{throw TypeError(e)},n=(e,t,a)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,r=(e,t)=>f(e,"name",{value:t,configurable:!0}),s=(e,t)=>()=>(e&&(t=e(e=0)),t),t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),u=(e,t)=>{for(var a in t)f(e,a,{get:t[a],enumerable:!0})},o=(e,t,a,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of k(t))!m.call(e,o)&&o!==a&&f(e,o,{get:()=>t[o],enumerable:!(r=j(t,o))||r.enumerable});return e},v=(e,t,a)=>(a=null!=e?i(l(e)):{},o(!t&&e&&e.__esModule?a:f(a,"default",{value:e,enumerable:!0}),e)),w=(e,t,a)=>n(e,"symbol"!=typeof t?t+"":t,a),g=(e,t,a)=>t.has(e)||h("Cannot "+a),p=(e,t,a)=>(g(e,t,"read from private field"),a?a.call(e):t.get(e)),x=(e,t,a)=>t.has(e)?h("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),q=(e,t,a,r)=>(g(e,t,"write to private field"),r?r.call(e,a):t.set(e,a),a),y=(e,t,a)=>(g(e,t,"access private method"),a),z=(e,t,a,r)=>({set _(r){q(e,t,r,a)},get _(){return p(e,t,r)}});export{r as a,s as b,t as c,u as d,v as e,w as f,p as g,x as h,q as i,y as j,z as k};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mMapviewHoverLabel{background
|
|
1
|
+
.mMapviewHoverLabel{background:#ffffffe6;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:#fff;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 .mappedin-tooltip__dot{pointer-events:none;display:none;position:absolute;background-color:#585858;border-radius:50%;box-shadow:0 0 11px #0000004d;left:0;top:0}.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}.mappedin-tooltip.tooltip--anchor-dot{pointer-events:none}.mappedin-tooltip.tooltip--anchor-dot .mappedin-tooltip__dot{display:block}.mappedin-tooltip.tooltip--anchor-dot .mappedin-tooltip__content{visibility:hidden}.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}.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}.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}
|
|
@@ -12,7 +12,7 @@ declare module '@mappedin/mappedin-js' {
|
|
|
12
12
|
import { MapView } from '@mappedin/mappedin-js/renderer/public/MapView';
|
|
13
13
|
import type { Mappedin, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions } from '@mappedin/mappedin-js/get-venue';
|
|
14
14
|
import { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, hydrateVenue, GET_VENUE_EVENT } from '@mappedin/mappedin-js/get-venue';
|
|
15
|
-
import type { TMapViewOptions } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
15
|
+
import type { TMapViewOptions, TShowWatermarkOptions } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
16
16
|
export { E_SDK_LOG_LEVEL, setLoggerLevel } from '@mappedin/mappedin-js/common/Mappedin.Logger';
|
|
17
17
|
export type { Marker } from '@mappedin/mappedin-js/renderer/private/controllers/MarkersController';
|
|
18
18
|
export type { Path } from '@mappedin/mappedin-js/renderer/private/controllers/PathsController';
|
|
@@ -61,7 +61,6 @@ declare module '@mappedin/mappedin-js' {
|
|
|
61
61
|
export { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, hydrateVenue, MappedinDestinationSet, GET_VENUE_EVENT, };
|
|
62
62
|
import DefaultAssetManager from '@mappedin/mappedin-js/renderer/internal/Mappedin.AssetManager';
|
|
63
63
|
import type { TTileManagerOptions } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin.TileManager';
|
|
64
|
-
import type { TShowWatermarkOptions } from '@mappedin/mappedin-js/renderer/private/controllers/WatermarkController';
|
|
65
64
|
export { setAssetManager } from '@mappedin/mappedin-js/renderer/internal';
|
|
66
65
|
export { DefaultAssetManager as AssetManager };
|
|
67
66
|
export type { TMappedinDirective, IAction, IActionArrival, IActionDeparture, IActionExitVortex, IActionTakeVortex, IActionTurn, } from '@mappedin/mappedin-js/get-venue/MappedinDirections';
|
|
@@ -226,6 +225,21 @@ declare module '@mappedin/mappedin-js/renderer/public/MapView' {
|
|
|
226
225
|
* @param mapOrMapId The {@link MappedinMap} the node should belong to.
|
|
227
226
|
*/
|
|
228
227
|
getNearestNodeByScreenCoordinates(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
|
|
228
|
+
/**
|
|
229
|
+
* Get the nearest node by coordinate.
|
|
230
|
+
* If Dynamic Focus is enabled, the nearest node on the base map is returned if it is closer than the current map.
|
|
231
|
+
* @param coordinate - The {@link MappedinCoordinate} to get the nearest node for
|
|
232
|
+
*/
|
|
233
|
+
getNearestNodeByCoordinate(coordinate: MappedinCoordinate): MappedinNode;
|
|
234
|
+
/**
|
|
235
|
+
* Get the nearest node by latitude and longitude and map.
|
|
236
|
+
* If no map is provided, the current map is used.
|
|
237
|
+
* If Dynamic Focus is enabled, the nearest node on the base map is returned if it is closer than the current map.
|
|
238
|
+
* @param lat - Latitude
|
|
239
|
+
* @param lon - Longitude
|
|
240
|
+
* @param mapOrMapId The {@link MappedinMap} the node should belong to.
|
|
241
|
+
*/
|
|
242
|
+
getNearestNodeByLatLon(lat: number, lon: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
|
|
229
243
|
/**
|
|
230
244
|
* Subscribe a function to an {@link E_SDK_EVENT}.
|
|
231
245
|
*
|
|
@@ -800,7 +814,7 @@ declare module '@mappedin/mappedin-js/get-venue' {
|
|
|
800
814
|
*
|
|
801
815
|
* Export this only so our internal pre-built products can use it. We don't want to document it for external developers.
|
|
802
816
|
*/
|
|
803
|
-
export { default as CustomerAnalytics } from '@mappedin/mappedin-js/get-venue/Mappedin.CustomerAnalytics';
|
|
817
|
+
export { default as CustomerAnalytics, type IAnalytics } from '@mappedin/mappedin-js/get-venue/Mappedin.CustomerAnalytics';
|
|
804
818
|
export type { TMappedinDirective } from '@mappedin/mappedin-js/get-venue/MappedinDirections';
|
|
805
819
|
export type { IDirectionsResult } from '@mappedin/mappedin-js/navigator';
|
|
806
820
|
export type { TOperationHoursMap } from '@mappedin/mappedin-js/get-venue/MappedinLocation';
|
|
@@ -1112,6 +1126,11 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1112
1126
|
* The minimum altitude of the path in meters.
|
|
1113
1127
|
*/
|
|
1114
1128
|
minAdjustedAltitude?: number;
|
|
1129
|
+
/**
|
|
1130
|
+
* Whether the path should be dashed style or solid.
|
|
1131
|
+
* @defaultValue false
|
|
1132
|
+
*/
|
|
1133
|
+
dashed?: boolean;
|
|
1115
1134
|
};
|
|
1116
1135
|
export type TConnectionProps = {
|
|
1117
1136
|
/**
|
|
@@ -2262,6 +2281,57 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
2262
2281
|
update: (position: TGeolocationObject) => void;
|
|
2263
2282
|
throwError: (err: any) => void;
|
|
2264
2283
|
}
|
|
2284
|
+
export type TWatermarkPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center' | 'top' | 'bottom' | 'left' | 'right';
|
|
2285
|
+
export type TShowWatermarkOptions = {
|
|
2286
|
+
/**
|
|
2287
|
+
* Padding in pixels. Can be a number or an object with top, right, bottom, and left properties.
|
|
2288
|
+
* @default 16
|
|
2289
|
+
* @example
|
|
2290
|
+
* ```ts
|
|
2291
|
+
* // Watermark with 20 pixels of padding on all sides
|
|
2292
|
+
* __showWatermark({
|
|
2293
|
+
* padding: 20,
|
|
2294
|
+
* });
|
|
2295
|
+
* ```
|
|
2296
|
+
* @example
|
|
2297
|
+
* ```ts
|
|
2298
|
+
* // Watermark with unique top, right, bottom, left padding
|
|
2299
|
+
* __showWatermark({
|
|
2300
|
+
* padding: {
|
|
2301
|
+
* top: 10,
|
|
2302
|
+
* right: 20,
|
|
2303
|
+
* bottom: 30,
|
|
2304
|
+
* left: 40,
|
|
2305
|
+
* },
|
|
2306
|
+
* });
|
|
2307
|
+
* ```
|
|
2308
|
+
*/
|
|
2309
|
+
padding?: number | {
|
|
2310
|
+
top?: number;
|
|
2311
|
+
right?: number;
|
|
2312
|
+
bottom?: number;
|
|
2313
|
+
left?: number;
|
|
2314
|
+
};
|
|
2315
|
+
/**
|
|
2316
|
+
* Position of the watermark on the screen.
|
|
2317
|
+
* @default 'bottom-left'
|
|
2318
|
+
*/
|
|
2319
|
+
position?: TWatermarkPosition;
|
|
2320
|
+
/**
|
|
2321
|
+
* Show only the Mappedin icon without text.
|
|
2322
|
+
* @default false
|
|
2323
|
+
*/
|
|
2324
|
+
iconOnly?: boolean;
|
|
2325
|
+
/**
|
|
2326
|
+
* Scale of the watermark between 0.5 and 1.5.
|
|
2327
|
+
* @default 1
|
|
2328
|
+
*/
|
|
2329
|
+
scale?: number;
|
|
2330
|
+
/**
|
|
2331
|
+
* Callback when the watermark is clicked.
|
|
2332
|
+
*/
|
|
2333
|
+
onClick?: () => void;
|
|
2334
|
+
};
|
|
2265
2335
|
}
|
|
2266
2336
|
|
|
2267
2337
|
declare module '@mappedin/mappedin-js/common/Mappedin.Logger' {
|
|
@@ -4276,81 +4346,6 @@ declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin
|
|
|
4276
4346
|
}
|
|
4277
4347
|
}
|
|
4278
4348
|
|
|
4279
|
-
declare module '@mappedin/mappedin-js/renderer/private/controllers/WatermarkController' {
|
|
4280
|
-
import { ICore } from '@mappedin/mappedin-js/renderer/private/Core.interface';
|
|
4281
|
-
type TPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center' | 'top' | 'bottom' | 'left' | 'right';
|
|
4282
|
-
export type TShowWatermarkOptions = {
|
|
4283
|
-
/**
|
|
4284
|
-
* Padding in pixels. Can be a number or an object with top, right, bottom, and left properties.
|
|
4285
|
-
* @default 16
|
|
4286
|
-
* @example
|
|
4287
|
-
* ```ts
|
|
4288
|
-
* // Watermark with 20 pixels of padding on all sides
|
|
4289
|
-
* __showWatermark({
|
|
4290
|
-
* padding: 20,
|
|
4291
|
-
* });
|
|
4292
|
-
* ```
|
|
4293
|
-
* @example
|
|
4294
|
-
* ```ts
|
|
4295
|
-
* // Watermark with unique top, right, bottom, left padding
|
|
4296
|
-
* __showWatermark({
|
|
4297
|
-
* padding: {
|
|
4298
|
-
* top: 10,
|
|
4299
|
-
* right: 20,
|
|
4300
|
-
* bottom: 30,
|
|
4301
|
-
* left: 40,
|
|
4302
|
-
* },
|
|
4303
|
-
* });
|
|
4304
|
-
* ```
|
|
4305
|
-
*/
|
|
4306
|
-
padding?: number | {
|
|
4307
|
-
top?: number;
|
|
4308
|
-
right?: number;
|
|
4309
|
-
bottom?: number;
|
|
4310
|
-
left?: number;
|
|
4311
|
-
};
|
|
4312
|
-
/**
|
|
4313
|
-
* Position of the watermark on the screen.
|
|
4314
|
-
* @default 'bottom-left'
|
|
4315
|
-
*/
|
|
4316
|
-
position?: TPosition;
|
|
4317
|
-
/**
|
|
4318
|
-
* Show only the Mappedin icon without text.
|
|
4319
|
-
* @default false
|
|
4320
|
-
*/
|
|
4321
|
-
iconOnly?: boolean;
|
|
4322
|
-
/**
|
|
4323
|
-
* Scale of the watermark between 0.5 and 1.5.
|
|
4324
|
-
* @default 1
|
|
4325
|
-
*/
|
|
4326
|
-
scale?: number;
|
|
4327
|
-
/**
|
|
4328
|
-
* Callback when the watermark is clicked.
|
|
4329
|
-
*/
|
|
4330
|
-
onClick?: () => void;
|
|
4331
|
-
};
|
|
4332
|
-
class WatermarkController {
|
|
4333
|
-
#private;
|
|
4334
|
-
static ENABLED: boolean;
|
|
4335
|
-
static OPTIONS: Required<TShowWatermarkOptions>;
|
|
4336
|
-
/**
|
|
4337
|
-
* The current calculated position and size of the watermark on the screen. It is updated every resize.
|
|
4338
|
-
* This is public so it can be used in event system.
|
|
4339
|
-
*/
|
|
4340
|
-
position: {
|
|
4341
|
-
x: number;
|
|
4342
|
-
y: number;
|
|
4343
|
-
width: number;
|
|
4344
|
-
height: number;
|
|
4345
|
-
};
|
|
4346
|
-
constructor(core: ICore);
|
|
4347
|
-
show: () => void;
|
|
4348
|
-
hide: () => void;
|
|
4349
|
-
resize: () => void;
|
|
4350
|
-
}
|
|
4351
|
-
export default WatermarkController;
|
|
4352
|
-
}
|
|
4353
|
-
|
|
4354
4349
|
declare module '@mappedin/mappedin-js/get-venue/MappedinDirections' {
|
|
4355
4350
|
import { IDirectionsResult } from '@mappedin/mappedin-js/navigator';
|
|
4356
4351
|
import { ACTION_TYPE, BEARING_TYPE } from '@mappedin/mappedin-js/navigator/Directive';
|
|
@@ -4800,6 +4795,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.types' {
|
|
|
4800
4795
|
clientId?: string;
|
|
4801
4796
|
clientSecret?: string;
|
|
4802
4797
|
baseUrl?: string;
|
|
4798
|
+
baseUri?: string;
|
|
4803
4799
|
includeHidden?: boolean;
|
|
4804
4800
|
noAuth?: boolean;
|
|
4805
4801
|
perspective?: string;
|
|
@@ -6073,7 +6069,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.API.types' {
|
|
|
6073
6069
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.FloatingLabel' {
|
|
6074
6070
|
import './Mappedin.FloatingLabel.scss';
|
|
6075
6071
|
import { BaseCollider } from '@mappedin/mappedin-js/renderer/internal';
|
|
6076
|
-
import { TDrawFn } from '@mappedin/mappedin-js/renderer/internal/shave-text';
|
|
6072
|
+
import type { TDrawFn } from '@mappedin/mappedin-js/renderer/internal/shave-text';
|
|
6077
6073
|
import type { MappedinPolygon } from '@mappedin/mappedin-js/get-venue';
|
|
6078
6074
|
import type { ICore, ICollider, TColliderStrategy, TColliderPosition } from '@mappedin/mappedin-js/renderer/internal';
|
|
6079
6075
|
type TStyle = {
|
|
@@ -6368,6 +6364,11 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.BlueDot/Mappedi
|
|
|
6368
6364
|
* @defaultValue false
|
|
6369
6365
|
*/
|
|
6370
6366
|
useRotationMode?: boolean;
|
|
6367
|
+
/**
|
|
6368
|
+
* The maximum acceptable accuracy in meters. Position updates with accuracy exceeding this value will be dropped.
|
|
6369
|
+
* @default 50
|
|
6370
|
+
*/
|
|
6371
|
+
accuracyThreshold?: number;
|
|
6371
6372
|
};
|
|
6372
6373
|
export type TUserData = {
|
|
6373
6374
|
state: E_BLUEDOT_STATE;
|
|
@@ -6800,7 +6801,8 @@ declare module '@mappedin/mappedin-js/navigator/Directive' {
|
|
|
6800
6801
|
RIGHT = "Right",
|
|
6801
6802
|
SLIGHTRIGHT = "SlightRight",
|
|
6802
6803
|
LEFT = "Left",
|
|
6803
|
-
SLIGHTLEFT = "SlightLeft"
|
|
6804
|
+
SLIGHTLEFT = "SlightLeft",
|
|
6805
|
+
BACK = "Back"
|
|
6804
6806
|
}
|
|
6805
6807
|
export enum VORTEX_DIRECTION_TYPE {
|
|
6806
6808
|
UP = "up",
|
|
@@ -6893,7 +6895,7 @@ declare module '@mappedin/mappedin-js/renderer/index.rn' {
|
|
|
6893
6895
|
export type { ThingsOption } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
6894
6896
|
export type { IFlatLabels } from '@mappedin/mappedin-js/renderer/public/api/FlatLabels';
|
|
6895
6897
|
export type { IFloatingLabels } from '@mappedin/mappedin-js/renderer/public/api/FloatingLabels';
|
|
6896
|
-
export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TFlatLabelOptions, TAddFloatingLabelOptions, TAddFlatLabelOptions, TLabelAllLocationCommonOptions, TFloatingLabelAllLocationsOptions, TFlatLabelAllLocationsOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance, CAMERA_EVENT_PAYLOAD, TMapClickEvent, TGetPolygonsAtCoordinateOptions, TShowVenueOptions, TAnimationOptions, TCreateTooltipOptions, } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
6898
|
+
export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TFlatLabelOptions, TAddFloatingLabelOptions, TAddFlatLabelOptions, TLabelAllLocationCommonOptions, TFloatingLabelAllLocationsOptions, TFlatLabelAllLocationsOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance, CAMERA_EVENT_PAYLOAD, TMapClickEvent, TGetPolygonsAtCoordinateOptions, TShowVenueOptions, TAnimationOptions, TCreateTooltipOptions, TShowWatermarkOptions, } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
6897
6899
|
export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/mappedin-js/navigator';
|
|
6898
6900
|
export type { IDirectionsResult, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES } from '@mappedin/mappedin-js/navigator';
|
|
6899
6901
|
export type { TGetVenueBundleOptions, TGetVenueOptions, TGetVenueMakerOptions, TMappedinDirective, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TDirectionToOptions, } from '@mappedin/mappedin-js/get-venue';
|
|
@@ -8731,8 +8733,8 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.BinaryAssetMana
|
|
|
8731
8733
|
|
|
8732
8734
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.SmartCollisionEngine' {
|
|
8733
8735
|
import './Mappedin.SmartCollisionEngine.scss';
|
|
8734
|
-
import { TRange, TColliderPosition } from '@mappedin/mappedin-js/renderer/internal/Mappedin.SmartCollider';
|
|
8735
|
-
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
8736
|
+
import type { TRange, TColliderPosition } from '@mappedin/mappedin-js/renderer/internal/Mappedin.SmartCollider';
|
|
8737
|
+
import type { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
8736
8738
|
import type { ICore } from '@mappedin/mappedin-js/renderer/internal';
|
|
8737
8739
|
import { Rectangle, QuadTree } from '@mappedin/mappedin-js/renderer/internal/quad-tree';
|
|
8738
8740
|
import { InternalFloatingLabel, InternalMarker, SmartTooltip } from '@mappedin/mappedin-js/renderer/internal';
|
|
@@ -9356,6 +9358,31 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/ExportControl
|
|
|
9356
9358
|
}
|
|
9357
9359
|
}
|
|
9358
9360
|
|
|
9361
|
+
declare module '@mappedin/mappedin-js/renderer/private/controllers/WatermarkController' {
|
|
9362
|
+
import { ICore } from '@mappedin/mappedin-js/renderer/private/Core.interface';
|
|
9363
|
+
import type { TShowWatermarkOptions } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
9364
|
+
class WatermarkController {
|
|
9365
|
+
#private;
|
|
9366
|
+
static ENABLED: boolean;
|
|
9367
|
+
static OPTIONS: Required<TShowWatermarkOptions>;
|
|
9368
|
+
/**
|
|
9369
|
+
* The current calculated position and size of the watermark on the screen. It is updated every resize.
|
|
9370
|
+
* This is public so it can be used in event system.
|
|
9371
|
+
*/
|
|
9372
|
+
position: {
|
|
9373
|
+
x: number;
|
|
9374
|
+
y: number;
|
|
9375
|
+
width: number;
|
|
9376
|
+
height: number;
|
|
9377
|
+
};
|
|
9378
|
+
constructor(core: ICore);
|
|
9379
|
+
show: () => void;
|
|
9380
|
+
hide: () => void;
|
|
9381
|
+
resize: () => void;
|
|
9382
|
+
}
|
|
9383
|
+
export default WatermarkController;
|
|
9384
|
+
}
|
|
9385
|
+
|
|
9359
9386
|
declare module '@mappedin/mappedin-js/renderer/private/controllers/LayerController' {
|
|
9360
9387
|
import type { ICore } from '@mappedin/mappedin-js/renderer/private/Core.interface';
|
|
9361
9388
|
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
@@ -10140,6 +10167,8 @@ declare module '@mappedin/mappedin-js/renderer/private/Core.interface' {
|
|
|
10140
10167
|
canvasHeight: number;
|
|
10141
10168
|
setState(state: STATE): Promise<void>;
|
|
10142
10169
|
getNearestNodeByScreenCoordinate(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
|
|
10170
|
+
getNearestNodeByCoordinate(coordinate: MappedinCoordinate): MappedinNode;
|
|
10171
|
+
getNearestNodeByLatLon(lat: number, lon: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
|
|
10143
10172
|
destroy(): void;
|
|
10144
10173
|
}
|
|
10145
10174
|
}
|
|
@@ -10332,6 +10361,17 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
|
10332
10361
|
getPolygonsAtScreenCoordinate: (x: number, y: number, options?: TGetPolygonsAtCoordinateOptions) => MappedinPolygon[];
|
|
10333
10362
|
getPolygonsAtCoordinate: (coordinate: MappedinCoordinate, options?: TGetPolygonsAtCoordinateOptions) => MappedinPolygon[];
|
|
10334
10363
|
getNearestNodeByScreenCoordinate(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
|
|
10364
|
+
/**
|
|
10365
|
+
* Get the nearest node by coordinate.
|
|
10366
|
+
* If Dynamic Focus is enabled, the nearest node on the base map is returned if it is closer than the current map.
|
|
10367
|
+
*/
|
|
10368
|
+
getNearestNodeByCoordinate: (coordinate: MappedinCoordinate) => MappedinNode;
|
|
10369
|
+
/**
|
|
10370
|
+
* Get the nearest node by latitude and longitude and map.
|
|
10371
|
+
* If no map is provided, the current map is used.
|
|
10372
|
+
* If Dynamic Focus is enabled, the nearest node on the base map is returned if it is closer than the current map.
|
|
10373
|
+
*/
|
|
10374
|
+
getNearestNodeByLatLon: (lat: number, lon: number, mapOrMapId?: MappedinMap | MappedinMap['id']) => MappedinNode;
|
|
10335
10375
|
/**
|
|
10336
10376
|
* Destroys instance and frees resources
|
|
10337
10377
|
*
|
|
@@ -10679,6 +10719,11 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinNode' {
|
|
|
10679
10719
|
*/
|
|
10680
10720
|
operationHours?: TOpeningHours[];
|
|
10681
10721
|
externalId?: string;
|
|
10722
|
+
/**
|
|
10723
|
+
* @internal
|
|
10724
|
+
* Label identifier for this node. For grouping and filtering nodes.
|
|
10725
|
+
*/
|
|
10726
|
+
label: string;
|
|
10682
10727
|
constructor(mappedin: Mappedin, data: any);
|
|
10683
10728
|
/**
|
|
10684
10729
|
* Map Object that this Node is located on.
|
|
@@ -10721,6 +10766,11 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinNode' {
|
|
|
10721
10766
|
*/
|
|
10722
10767
|
directionsTo(destination: MappedinNode | MappedinLocation | MappedinPolygon, options?: TDirectionToOptions): MappedinDirections;
|
|
10723
10768
|
directionsTo(destination: MappedinDestinationSet, options?: TDirectionToOptions): MappedinDirections[];
|
|
10769
|
+
/**
|
|
10770
|
+
* @internal
|
|
10771
|
+
* Whether the node is part of a shuttle route.
|
|
10772
|
+
*/
|
|
10773
|
+
get isShuttleNode(): boolean;
|
|
10724
10774
|
/**
|
|
10725
10775
|
*
|
|
10726
10776
|
* Calculate walking distance in meters between 2 nodes, polygons or locations
|
|
@@ -10940,9 +10990,20 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinCategory' {
|
|
|
10940
10990
|
get children(): MappedinCategory[];
|
|
10941
10991
|
static hydrate(categories: any, mappedin: Mappedin): MappedinCategory[];
|
|
10942
10992
|
static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
|
|
10993
|
+
static defaultLanguageCategoryControl: {
|
|
10994
|
+
fetchDefaultLanguageCategories(mappedin: Mappedin): Promise<void>;
|
|
10995
|
+
getDefaultLanguageCategory(mappedin: Mappedin, id: string): CategoryFromCMSAPI | undefined;
|
|
10996
|
+
};
|
|
10943
10997
|
static fetch(mappedin: Mappedin): Promise<MappedinCategory[]>;
|
|
10944
10998
|
toJSON(): any;
|
|
10945
10999
|
}
|
|
11000
|
+
type CategoryFromCMSAPI = {
|
|
11001
|
+
id: string;
|
|
11002
|
+
icon: Record<string, never> | {
|
|
11003
|
+
original: string;
|
|
11004
|
+
};
|
|
11005
|
+
};
|
|
11006
|
+
export {};
|
|
10946
11007
|
}
|
|
10947
11008
|
|
|
10948
11009
|
declare module '@mappedin/mappedin-js/get-venue/MappedinDestinationSet' {
|
|
@@ -11408,6 +11469,7 @@ declare module '@mappedin/mappedin-js/get-venue/utils' {
|
|
|
11408
11469
|
*/
|
|
11409
11470
|
export const getPrimaryLocationForPolygon: (polygon: MappedinPolygon | string | undefined, venue: Mappedin) => MappedinLocation | null;
|
|
11410
11471
|
export function mergeThings(thingsOption: ThingsOption | undefined): MergedThings;
|
|
11472
|
+
export function isMappedinUsingDefaultLanguage(mappedin: Mappedin): boolean;
|
|
11411
11473
|
}
|
|
11412
11474
|
|
|
11413
11475
|
declare module '@mappedin/mappedin-js/get-venue/Mappedin.cache' {
|