@mappedin/react-native-sdk 3.4.4 → 4.0.4-alpha.8
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/README.md +12 -8
- package/dist/index.d.ts +5753 -0
- package/dist/index.js +3552 -0
- package/dist/index.js.map +7 -0
- package/package.json +26 -22
- package/CHANGELOG.md +0 -42
- package/dist/get-venue/package.json +0 -44
- package/dist/get-venue/src/Mappedin.API.types.d.ts +0 -203
- package/dist/get-venue/src/Mappedin.API.types.d.ts.map +0 -1
- package/dist/get-venue/src/Mappedin.API.types.js +0 -4
- package/dist/get-venue/src/Mappedin.d.ts +0 -256
- package/dist/get-venue/src/Mappedin.d.ts.map +0 -1
- package/dist/get-venue/src/Mappedin.js +0 -248
- package/dist/get-venue/src/Mappedin.types.d.ts +0 -30
- package/dist/get-venue/src/Mappedin.types.d.ts.map +0 -1
- package/dist/get-venue/src/Mappedin.types.js +0 -1
- package/dist/get-venue/src/MappedinCategory.d.ts +0 -48
- package/dist/get-venue/src/MappedinCategory.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinCategory.js +0 -87
- package/dist/get-venue/src/MappedinCoordinate.d.ts +0 -42
- package/dist/get-venue/src/MappedinCoordinate.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinCoordinate.js +0 -43
- package/dist/get-venue/src/MappedinCoordinate.test.d.ts +0 -2
- package/dist/get-venue/src/MappedinCoordinate.test.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinCoordinate.test.js +0 -19
- package/dist/get-venue/src/MappedinDestinationSet.d.ts +0 -8
- package/dist/get-venue/src/MappedinDestinationSet.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinDestinationSet.js +0 -6
- package/dist/get-venue/src/MappedinDirections.d.ts +0 -56
- package/dist/get-venue/src/MappedinDirections.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinDirections.js +0 -42
- package/dist/get-venue/src/MappedinEvent.d.ts +0 -30
- package/dist/get-venue/src/MappedinEvent.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinEvent.js +0 -67
- package/dist/get-venue/src/MappedinJSONScene.d.ts +0 -9
- package/dist/get-venue/src/MappedinJSONScene.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinJSONScene.js +0 -24
- package/dist/get-venue/src/MappedinLocation.d.ts +0 -89
- package/dist/get-venue/src/MappedinLocation.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinLocation.js +0 -223
- package/dist/get-venue/src/MappedinLocationRankings.d.ts +0 -12
- package/dist/get-venue/src/MappedinLocationRankings.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinLocationRankings.js +0 -26
- package/dist/get-venue/src/MappedinLocationState.d.ts +0 -14
- package/dist/get-venue/src/MappedinLocationState.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinLocationState.js +0 -33
- package/dist/get-venue/src/MappedinMap.d.ts +0 -64
- package/dist/get-venue/src/MappedinMap.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinMap.js +0 -215
- package/dist/get-venue/src/MappedinMapGroup.d.ts +0 -23
- package/dist/get-venue/src/MappedinMapGroup.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinMapGroup.js +0 -62
- package/dist/get-venue/src/MappedinNavigatable.d.ts +0 -38
- package/dist/get-venue/src/MappedinNavigatable.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinNavigatable.js +0 -82
- package/dist/get-venue/src/MappedinNode.d.ts +0 -65
- package/dist/get-venue/src/MappedinNode.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinNode.js +0 -153
- package/dist/get-venue/src/MappedinPolygon.d.ts +0 -60
- package/dist/get-venue/src/MappedinPolygon.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinPolygon.js +0 -164
- package/dist/get-venue/src/MappedinRankings.d.ts +0 -32
- package/dist/get-venue/src/MappedinRankings.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinRankings.js +0 -46
- package/dist/get-venue/src/MappedinTheme.d.ts +0 -15
- package/dist/get-venue/src/MappedinTheme.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinTheme.js +0 -41
- package/dist/get-venue/src/MappedinVenue.d.ts +0 -47
- package/dist/get-venue/src/MappedinVenue.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinVenue.js +0 -61
- package/dist/get-venue/src/MappedinVortex.d.ts +0 -26
- package/dist/get-venue/src/MappedinVortex.d.ts.map +0 -1
- package/dist/get-venue/src/MappedinVortex.js +0 -54
- package/dist/get-venue/src/default-things.d.ts +0 -14
- package/dist/get-venue/src/default-things.d.ts.map +0 -1
- package/dist/get-venue/src/default-things.js +0 -60
- package/dist/get-venue/src/fixtures/MappedinDemoMall.json +0 -1
- package/dist/get-venue/src/index.cjs.js +0 -16
- package/dist/get-venue/src/index.d.ts +0 -65
- package/dist/get-venue/src/index.d.ts.map +0 -1
- package/dist/get-venue/src/index.js +0 -16
- package/dist/get-venue/src/utils.d.ts +0 -15
- package/dist/get-venue/src/utils.d.ts.map +0 -1
- package/dist/get-venue/src/utils.js +0 -188
- package/dist/get-venue/tsconfig.docs.json +0 -7
- package/dist/get-venue/tsconfig.isomorphic.json +0 -20
- package/dist/get-venue/tsconfig.isomorphic.tsbuildinfo +0 -2262
- package/dist/get-venue/tsconfig.json +0 -19
- package/dist/get-venue/tsconfig.tsbuildinfo +0 -2758
- package/dist/sdk/src/MappedinController.d.ts +0 -45
- package/dist/sdk/src/MappedinController.d.ts.map +0 -1
- package/dist/sdk/src/MappedinController.js +0 -1
- package/dist/sdk/src/MiMapView.d.ts +0 -80
- package/dist/sdk/src/MiMapView.d.ts.map +0 -1
- package/dist/sdk/src/MiMapView.element.d.ts +0 -8
- package/dist/sdk/src/MiMapView.element.d.ts.map +0 -1
- package/dist/sdk/src/MiMapView.element.js +0 -5
- package/dist/sdk/src/MiMapView.element.web.d.ts +0 -6
- package/dist/sdk/src/MiMapView.element.web.d.ts.map +0 -1
- package/dist/sdk/src/MiMapView.element.web.js +0 -1
- package/dist/sdk/src/MiMapView.js +0 -1
- package/dist/sdk/src/MiMapView.store.d.ts +0 -197
- package/dist/sdk/src/MiMapView.store.d.ts.map +0 -1
- package/dist/sdk/src/MiMapView.store.js +0 -1
- package/dist/sdk/src/MiMapView.store.types.d.ts +0 -202
- package/dist/sdk/src/MiMapView.store.types.d.ts.map +0 -1
- package/dist/sdk/src/MiMapView.store.types.js +0 -1
- package/dist/sdk/src/MiMiniMap.d.ts +0 -31
- package/dist/sdk/src/MiMiniMap.d.ts.map +0 -1
- package/dist/sdk/src/MiMiniMap.js +0 -3
- package/dist/sdk/src/MiMiniMap.store.d.ts +0 -22
- package/dist/sdk/src/MiMiniMap.store.d.ts.map +0 -1
- package/dist/sdk/src/MiMiniMap.store.js +0 -1
- package/dist/sdk/src/assets/index.html.d.ts +0 -3
- package/dist/sdk/src/assets/index.html.d.ts.map +0 -1
- package/dist/sdk/src/assets/index.html.js +0 -1
- package/dist/sdk/src/index.d.ts +0 -186
- package/dist/sdk/src/index.d.ts.map +0 -1
- package/dist/sdk/src/index.js +0 -1
- package/dist/sdk/src/pub-sub.d.ts +0 -27
- package/dist/sdk/src/pub-sub.d.ts.map +0 -1
- package/dist/sdk/src/pub-sub.js +0 -1
- package/dist/sdk/src/utils.d.ts +0 -18
- package/dist/sdk/src/utils.d.ts.map +0 -1
- package/dist/sdk/src/utils.js +0 -1
- package/dist/sdk/tsconfig.build.tsbuildinfo +0 -6928
- package/dist/types/src/Mappedin.bridge.events.d.ts +0 -74
- package/dist/types/src/Mappedin.bridge.events.d.ts.map +0 -1
- package/dist/types/src/Mappedin.bridge.events.js +0 -1
- package/dist/types/src/index.d.ts +0 -4
- package/dist/types/src/index.d.ts.map +0 -1
- package/dist/types/src/index.js +0 -1
- package/dist/types/src/navigator.d.ts +0 -78
- package/dist/types/src/navigator.d.ts.map +0 -1
- package/dist/types/src/navigator.js +0 -1
- package/dist/types/tsconfig.tsbuildinfo +0 -1819
- package/dist/types_mappedin__mappedin-js/tsconfig.tsbuildinfo +0 -1781
- package/dist/types_mappedin__mappedin-js/types.d.ts +0 -205
- package/dist/types_mappedin__mappedin-js/types.d.ts.map +0 -1
- package/dist/types_mappedin__mappedin-js/types.js +0 -53
- package/docs/assets/css/main.css +0 -2660
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/mappedin.html +0 -560
- package/docs/classes/mappedincategory.html +0 -373
- package/docs/classes/mappedindestinationset.html +0 -184
- package/docs/classes/mappedindirections.html +0 -258
- package/docs/classes/mappedinevent.html +0 -387
- package/docs/classes/mappedinlocation.html +0 -942
- package/docs/classes/mappedinmap.html +0 -501
- package/docs/classes/mappedinmapgroup.html +0 -329
- package/docs/classes/mappedinnode.html +0 -717
- package/docs/classes/mappedinpolygon.html +0 -714
- package/docs/classes/mappedinrankings.html +0 -288
- package/docs/classes/mappedinvenue.html +0 -494
- package/docs/classes/mappedinvortex.html +0 -331
- package/docs/classes/mapviewstore.html +0 -1233
- package/docs/enums/action_type.html +0 -188
- package/docs/enums/bearing_type.html +0 -188
- package/docs/enums/collision_ranking_tiers.html +0 -177
- package/docs/enums/e_bluedot_state.html +0 -223
- package/docs/enums/e_bluedot_state_reason.html +0 -197
- package/docs/enums/e_marker_state.html +0 -204
- package/docs/enums/marker_anchor.html +0 -188
- package/docs/enums/state.html +0 -160
- package/docs/index.html +0 -1078
- package/docs/modules.html +0 -1898
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import WebView from 'react-native-webview';
|
|
2
|
-
import { WebViewMessage } from 'react-native-webview/lib/WebViewTypes';
|
|
3
|
-
import { EVENT, WAYFINDING_EVENT, BRIDGE_EVENT, MINIMAP_EVENT } from '../../types/src';
|
|
4
|
-
import { PubSubClass } from './pub-sub';
|
|
5
|
-
export declare function uuid(): string;
|
|
6
|
-
export declare class MappedinController extends PubSubClass<EVENT | WAYFINDING_EVENT | MINIMAP_EVENT> {
|
|
7
|
-
#private;
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
eventBus: PubSubClass<EVENT | WAYFINDING_EVENT | MINIMAP_EVENT>;
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
setWebView(wv: WebView): void;
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
_setiFrame(iframe: any): void;
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
_onMessageReceived(data: WebViewMessage['data']): void;
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
private handleResolution;
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
private handleRejection;
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
constructor();
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
protected emit: (eventName: EVENT | BRIDGE_EVENT | WAYFINDING_EVENT | MINIMAP_EVENT, payload?: any) => void;
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
protected emitAsync<T>(eventName: EVENT | BRIDGE_EVENT | WAYFINDING_EVENT | MINIMAP_EVENT, payload?: any): Promise<T>;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=MappedinController.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MappedinController.d.ts","sourceRoot":"","sources":["../../../src/MappedinController.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAEvE,OAAO,EACL,KAAK,EACL,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,wBAAgB,IAAI,WAKnB;AAKD,qBAAa,kBAAmB,SAAQ,WAAW,CACjD,KAAK,GAAG,gBAAgB,GAAG,aAAa,CACzC;;IAMC;;OAEG;IACH,QAAQ,EAAE,WAAW,CACnB,KAAK,GAAG,gBAAgB,GAAG,aAAa,CACzC,CAA+D;IAOhE;;OAEG;IACH,UAAU,CAAC,EAAE,EAAE,OAAO;IAMtB;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,GAAG;IAItB;;OAEG;IACH,kBAAkB,CAAC,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;IA8B/C;;OAEG;IACH,OAAO,CAAC,gBAAgB,CAUtB;IAEF;;OAEG;IACH,OAAO,CAAC,eAAe,CAWrB;IAEF;;OAEG;;IAKH;;OAEG;IACH,SAAS,CAAC,IAAI,cACD,KAAK,GAAG,YAAY,GAAG,gBAAgB,GAAG,aAAa,YACzD,GAAG,UAyBZ;IAEF;;OAEG;IACH,SAAS,CAAC,SAAS,CAAC,CAAC,EACnB,SAAS,EAAE,KAAK,GAAG,YAAY,GAAG,gBAAgB,GAAG,aAAa,EAClE,OAAO,GAAE,GAAQ,GAChB,OAAO,CAAC,CAAC,CAAC;CA+Bd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _classPrivateFieldGet(a,b){var c=_classExtractFieldDescriptor(a,b,"get");return _classApplyDescriptorGet(a,c)}function _classApplyDescriptorGet(a,b){return b.get?b.get.call(a):b.value}function _classPrivateFieldSet(a,b,c){var d=_classExtractFieldDescriptor(a,b,"set");return _classApplyDescriptorSet(a,d,c),c}function _classExtractFieldDescriptor(a,b,c){if(!b.has(a))throw new TypeError("attempted to "+c+" private field on non-instance");return b.get(a)}function _classApplyDescriptorSet(a,b,c){if(b.set)b.set.call(a,c);else{if(!b.writable)throw new TypeError("attempted to set read only private field");b.value=c}}import{Platform}from"react-native";import{BRIDGE_EVENT}from"../../types/src";import{PubSubClass}from"./pub-sub";export function uuid(){const a=function(){return(0|65536*(1+Math.random())).toString(16).substring(1)};return a()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a()}var _webViewRef=new WeakMap,_resolvers=new WeakMap,_iframe=new WeakMap;export class MappedinController extends PubSubClass{setWebView(a){_classPrivateFieldSet(this,_webViewRef,a)}_setiFrame(a){_classPrivateFieldSet(this,_iframe,a)}_onMessageReceived(a){if("undefined"!=a)try{let b;if(b="web"===Platform.OS&&null===process.env.REACT_APP_DEV_IP?a:JSON.parse(a),Array.isArray(b)){const[a,c]=b;a===BRIDGE_EVENT.RESOLVE?this.handleResolution(c):a===BRIDGE_EVENT.REJECT?this.handleRejection(c):this.eventBus.publish(a,c.payload)}}catch(b){console.error(b),console.warn("Unable to parse message",a)}}constructor(){super(),_webViewRef.set(this,{writable:!0,value:null}),_defineProperty(this,"eventBus",new PubSubClass),_resolvers.set(this,{writable:!0,value:new Map}),_iframe.set(this,{writable:!0,value:void 0}),_defineProperty(this,"handleResolution",({payload:a})=>{const{msgID:b}=a;if(_classPrivateFieldGet(this,_resolvers).has(b)){const c=_classPrivateFieldGet(this,_resolvers).get(b);if(null!=c){const[d]=c;d(a.payload),_classPrivateFieldGet(this,_resolvers).delete(b)}}}),_defineProperty(this,"handleRejection",({payload:a})=>{const{msgID:b}=a;if(_classPrivateFieldGet(this,_resolvers).has(b)){const c=_classPrivateFieldGet(this,_resolvers).get(b);if(null!=c){const[,d]=c;d(a.payload),_classPrivateFieldGet(this,_resolvers).delete(b)}}}),_defineProperty(this,"emit",(a,b={})=>{if(null!=_classPrivateFieldGet(this,_iframe)){const c=[a,{data:b}];_classPrivateFieldGet(this,_iframe).contentWindow.postMessage(null==process.env.REACT_APP_DEV_IP?c:JSON.stringify(c),"*")}else _classPrivateFieldGet(this,_webViewRef)?.injectJavaScript("\n if (window.EventBus != null) {\n\t window.EventBus.publish('"+a+"', "+JSON.stringify({data:b})+");\n }\n\t ")})}emitAsync(a,b={}){return new Promise((c,d)=>{const e=uuid();if(_classPrivateFieldGet(this,_resolvers).set(e,[c,d]),null!=_classPrivateFieldGet(this,_iframe)){const c=[a,{msgID:e,data:b}];_classPrivateFieldGet(this,_iframe).contentWindow.postMessage(null==process.env.REACT_APP_DEV_IP?c:JSON.stringify(c),"*")}else _classPrivateFieldGet(this,_webViewRef)?.injectJavaScript("\n if (window.EventBus != null) {\n window.EventBus.publish('"+a+"', "+JSON.stringify({msgID:e,data:b})+");\n }\n ")})}}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { STATE } from '.';
|
|
3
|
-
import { MapViewStore } from './MiMapView.store';
|
|
4
|
-
import type { TBlueDotUpdate, TMiMapViewOptions, TBlueDotPositionUpdate, TBlueDotStateChange } from './MiMapView.store.types';
|
|
5
|
-
import type { MappedinPolygon, MappedinMap, Mappedin } from '../../get-venue/src';
|
|
6
|
-
export declare type TMiMapViewProps = {
|
|
7
|
-
/**
|
|
8
|
-
* The MapViewStore instance will be returned here
|
|
9
|
-
*/
|
|
10
|
-
ref: React.ForwardedRef<MapViewStore>;
|
|
11
|
-
/**
|
|
12
|
-
* Options to initialze MiMapView with
|
|
13
|
-
*/
|
|
14
|
-
options: TMiMapViewOptions;
|
|
15
|
-
/**
|
|
16
|
-
* Venue Data to render inside the MapView. This is returned by {@link getVenue} or {@link getVenueBundle}
|
|
17
|
-
*/
|
|
18
|
-
venueData?: Mappedin;
|
|
19
|
-
style?: any;
|
|
20
|
-
/**
|
|
21
|
-
* Called when an interactive polygon is clicked
|
|
22
|
-
*/
|
|
23
|
-
onPolygonClicked?: (prop: {
|
|
24
|
-
polygon: MappedinPolygon;
|
|
25
|
-
}) => void;
|
|
26
|
-
/**
|
|
27
|
-
* Called when blue dot is updated
|
|
28
|
-
* @deprecated Use onBlueDotPositionUpdated and onBlueDotStateChanged instead
|
|
29
|
-
*/
|
|
30
|
-
onBlueDotUpdated?: (prop: {
|
|
31
|
-
update: TBlueDotUpdate;
|
|
32
|
-
}) => void;
|
|
33
|
-
/**
|
|
34
|
-
* Called when Blue Dot State is updated. This can be used to figure out why the Blue Dot is not visible
|
|
35
|
-
*/
|
|
36
|
-
onBlueDotStateChanged?: (prop: {
|
|
37
|
-
stateChange: TBlueDotStateChange;
|
|
38
|
-
}) => void;
|
|
39
|
-
/**
|
|
40
|
-
* Called when Blue Dot position is updated
|
|
41
|
-
*/
|
|
42
|
-
onBlueDotPositionUpdated?: (prop: {
|
|
43
|
-
update: TBlueDotPositionUpdate;
|
|
44
|
-
}) => void;
|
|
45
|
-
/**
|
|
46
|
-
* Called when data is loaded for this venue
|
|
47
|
-
*/
|
|
48
|
-
onDataLoaded?: (prop: {
|
|
49
|
-
venueData: Mappedin;
|
|
50
|
-
}) => void;
|
|
51
|
-
/**
|
|
52
|
-
* Called when clicking outside any interactive polygons
|
|
53
|
-
*/
|
|
54
|
-
onNothingClicked?: () => void;
|
|
55
|
-
/**
|
|
56
|
-
* Called when the map is ready for interaction
|
|
57
|
-
*/
|
|
58
|
-
onFirstMapLoaded?: () => void;
|
|
59
|
-
/**
|
|
60
|
-
* Called when the map changes
|
|
61
|
-
*/
|
|
62
|
-
onMapChanged?: (prop: {
|
|
63
|
-
map: MappedinMap;
|
|
64
|
-
}) => void;
|
|
65
|
-
/**
|
|
66
|
-
* Called when the SDK state changes
|
|
67
|
-
*/
|
|
68
|
-
onStateChanged?: (prop: {
|
|
69
|
-
state: STATE;
|
|
70
|
-
}) => void;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Mappedin MapView component
|
|
74
|
-
*/
|
|
75
|
-
export declare type MiMapView = (props: TMiMapViewProps) => React.ReactElement;
|
|
76
|
-
/**
|
|
77
|
-
* @category Component
|
|
78
|
-
*/
|
|
79
|
-
export declare const MiMapView: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<TMiMapViewProps, "style" | "options" | "venueData" | "onPolygonClicked" | "onBlueDotUpdated" | "onBlueDotStateChanged" | "onBlueDotPositionUpdated" | "onDataLoaded" | "onNothingClicked" | "onFirstMapLoaded" | "onMapChanged" | "onStateChanged"> & React.RefAttributes<MapViewStore>>>;
|
|
80
|
-
//# sourceMappingURL=MiMapView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MiMapView.d.ts","sourceRoot":"","sources":["../../../src/MiMapView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,QAAQ,EACT,MAAM,qBAAqB,CAAC;AAG7B,oBAAY,eAAe,GAAG;IAC5B;;OAEG;IACH,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IACtC;;OAEG;IACH,OAAO,EAAE,iBAAiB,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,eAAe,CAAA;KAAE,KAAK,IAAI,CAAC;IAChE;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,cAAc,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9D;;OAEG;IACH,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,WAAW,EAAE,mBAAmB,CAAA;KAAE,KAAK,IAAI,CAAC;IAC7E;;OAEG;IACH,wBAAwB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,sBAAsB,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9E;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,SAAS,EAAE,QAAQ,CAAA;KAAE,KAAK,IAAI,CAAC;IACvD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IACpD;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS,GAAG,CAAC,KAAK,EAAE,eAAe,KAAK,KAAK,CAAC,YAAY,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,SAAS,0VAmGrB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MapViewStore } from './MiMapView.store';
|
|
3
|
-
import { MiniMapViewStore } from './MiMiniMap.store';
|
|
4
|
-
export declare const MiMapViewElement: React.MemoExoticComponent<({ controller, style, }: {
|
|
5
|
-
controller: MapViewStore | MiniMapViewStore;
|
|
6
|
-
style: any;
|
|
7
|
-
}) => JSX.Element | null>;
|
|
8
|
-
//# sourceMappingURL=MiMapView.element.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MiMapView.element.d.ts","sourceRoot":"","sources":["../../../src/MiMapView.element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,gBAAgB;gBAKb,YAAY,GAAG,gBAAgB;WACpC,GAAG;yBA8Db,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from"react";import{View,Platform}from"react-native";import WebView from"react-native-webview";import html from"./assets/index.html.js";export const MiMapViewElement=React.memo(({controller:a,style:b})=>{null!=process.env.DEV_IP&&console.log("running in debug mode on "+process.env.DEV_IP);const c=null==process.env.DEV_IP?{html}:{uri:"http://"+process.env.DEV_IP+":9000"};return"android"===Platform.OS?<View style={{flex:1}}>
|
|
2
|
-
<WebView source={c}originWhitelist={["*"]}onMessage={b=>{a._onMessageReceived(b.nativeEvent.data)}}ref={b=>{null!=b&&a.setWebView(b)}}mixedContentMode="always"scalesPageToFit={!1}javaScriptEnabled domStorageEnabled cacheEnabled={"development"!==process.env.NODE_ENV}thirdPartyCookiesEnabled allowUniversalAccessFromFileURLs/>
|
|
3
|
-
</View>:"ios"===Platform.OS?<View style={b}>
|
|
4
|
-
<WebView ref={b=>{null!=b&&a.setWebView(b)}}cacheEnabled={"development"!==process.env.NODE_ENV}source={c}originWhitelist={["*"]}onMessage={b=>{a._onMessageReceived(b.nativeEvent.data)}}scrollEnabled={!1}/>
|
|
5
|
-
</View>:null});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MiMapView.element.web.d.ts","sourceRoot":"","sources":["../../../src/MiMapView.element.web.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,eAAO,MAAM,gBAAgB;gBAIf,YAAY;WACjB,GAAG;iBA2BX,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import React from"react";import html from"./assets/index.html.js";export const MiMapViewElement=({controller:a,style:b})=>{const c=null==process.env.REACT_APP_DEV_IP?{srcDoc:html}:{src:"http://"+process.env.REACT_APP_DEV_IP+":9000"},d=React.useCallback(({data:b})=>a._onMessageReceived(b),[]);return<iframe ref={b=>{null!=b&&(a._setiFrame(b),window.removeEventListener("message",d),window.addEventListener("message",d))}}{...c}style={{flex:1,...b}}/>};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import React from"react";import{EVENT}from"../../types/src";import{MapViewStore}from"./MiMapView.store";import{MiMapViewElement}from"./MiMapView.element";export const MiMapView=React.memo(React.forwardRef(function(a,b){const{style:e={},options:c,venueData:d,onFirstMapLoaded:f=()=>null,onPolygonClicked:g=()=>null,onDataLoaded:h=()=>null,onMapChanged:i=()=>null,onBlueDotUpdated:j=()=>null,onBlueDotPositionUpdated:k=()=>null,onBlueDotStateChanged:l=()=>null,onNothingClicked:m=()=>null,onStateChanged:n=()=>null}=a,[o]=React.useState(()=>new MapViewStore);React.useImperativeHandle(b,()=>o);const p=React.useCallback(async()=>{if("undefined"==typeof d)try{console.log("Loading from APIs"),await o.loadVenue(c,{backgroundColor:c.backgroundColor,backgroundAlpha:c.backgroundAlpha,firstMapId:c.firstMapId,labelAllLocationsOnInit:c.labelAllLocationsOnInit})}catch(a){console.error(a)}else q.current(d)},[d]),q=React.useRef(async a=>{if(null!=a)try{console.log("Loading from Bundle"),await o.showVenue(a,{backgroundColor:c.backgroundColor,backgroundAlpha:c.backgroundAlpha,firstMapId:c.firstMapId,labelAllLocationsOnInit:c.labelAllLocationsOnInit})}catch(a){console.error(a)}});return React.useEffect(()=>{q.current(d)},[d]),React.useEffect(()=>(o.on(EVENT.READY,p),()=>o.off(EVENT.READY,p)),[]),React.useEffect(()=>(o.on(EVENT.STATE_CHANGED,n),o.on(EVENT.FIRST_MAP_LOADED,f),o.on(EVENT.NOTHING_CLICKED,m),o.on(EVENT.DATA_LOADED,h),o.on(EVENT.POLYGON_CLICKED,g),o.on(EVENT.MAP_CHANGED,i),o.on(EVENT.BLUE_DOT_UPDATED,j),o.on(EVENT.BLUEDOT_POSITION_UPDATE,k),o.on(EVENT.BLUEDOT_STATE_CHANGE,l),()=>{o.off(EVENT.STATE_CHANGED,n),o.off(EVENT.FIRST_MAP_LOADED,f),o.off(EVENT.NOTHING_CLICKED,m),o.off(EVENT.DATA_LOADED,h),o.off(EVENT.POLYGON_CLICKED,g),o.off(EVENT.MAP_CHANGED,i),o.off(EVENT.BLUE_DOT_UPDATED,j),o.off(EVENT.BLUEDOT_POSITION_UPDATE,k),o.off(EVENT.BLUEDOT_STATE_CHANGE,l)}),[f,m,g,h,i,j]),<MiMapViewElement controller={o}style={e}/>}));
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import type { TFocusOptions, TSerializableJourneyOptions } from './MiMapView.store.types';
|
|
2
|
-
import { MappedinController } from './MappedinController';
|
|
3
|
-
import type { TGeolocationObject, TBlueDotOptions, TPathOptions, TLabelOptions, TLabelAllLocationsOptions } from '.';
|
|
4
|
-
import { STATE } from '.';
|
|
5
|
-
import { Mappedin, MappedinNode, MappedinMap, MappedinLocation, MappedinDirections, MappedinPolygon, TGetVenueOptions, TShowVenueOptions, MappedinCoordinate, MappedinDestinationSet } from '../../get-venue/src';
|
|
6
|
-
import { E_BLUEDOT_STATE, TCreateMarkerOptions } from './MiMapView.store.types';
|
|
7
|
-
export declare class MapViewStore extends MappedinController {
|
|
8
|
-
#private;
|
|
9
|
-
state: typeof STATE;
|
|
10
|
-
BlueDotState: typeof E_BLUEDOT_STATE;
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
constructor();
|
|
15
|
-
/**
|
|
16
|
-
* Venue Data
|
|
17
|
-
*/
|
|
18
|
-
venueData?: Mappedin;
|
|
19
|
-
/**
|
|
20
|
-
* Current map of Venue
|
|
21
|
-
*/
|
|
22
|
-
currentMap?: MappedinMap;
|
|
23
|
-
options?: TGetVenueOptions;
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
loadVenue(options: TGetVenueOptions, showVenueOptions: TShowVenueOptions): Promise<Mappedin | undefined>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
showVenue(venueData: Mappedin, showVenueOptions: TShowVenueOptions): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* Create a marker attached to a {@link MappedinNode}, with any abitrary HTML code inside.
|
|
35
|
-
* @returns markerId This marker id can later be used to remove the marker
|
|
36
|
-
*/
|
|
37
|
-
createMarker(nodeOrCoordinate: MappedinNode | MappedinCoordinate, contentHtml: string, options: TCreateMarkerOptions): string;
|
|
38
|
-
/**
|
|
39
|
-
* Remove marker by id
|
|
40
|
-
*/
|
|
41
|
-
removeMarker(markerId: string): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* @param focusOptions You should provide at least one Node or Polygon, but everything else is optional.
|
|
44
|
-
*/
|
|
45
|
-
focusOn(focusOptions: TFocusOptions): Promise<unknown>;
|
|
46
|
-
/**
|
|
47
|
-
* Visualize directions by drawing paths, and adding connection markers
|
|
48
|
-
* @deprecated Use {@link MapViewStore.Journey}'s draw method instead
|
|
49
|
-
*/
|
|
50
|
-
drawJourney(directions: MappedinDirections | MappedinDirections[], options?: TSerializableJourneyOptions): Promise<unknown>;
|
|
51
|
-
/**
|
|
52
|
-
* Set SDK state, which controls camera and other features geared towards a particular experience
|
|
53
|
-
*
|
|
54
|
-
* EXPLORE (default)
|
|
55
|
-
*
|
|
56
|
-
* FOLLOW - Lock Camera to the BlueDot so it follows it around the screen
|
|
57
|
-
*/
|
|
58
|
-
setState(state: STATE): Promise<undefined>;
|
|
59
|
-
/**
|
|
60
|
-
* Remove any paths and markers associated with journey
|
|
61
|
-
* @deprecated Use mapView.Journey.clear instead
|
|
62
|
-
*/
|
|
63
|
-
clearJourney(): Promise<unknown>;
|
|
64
|
-
/**
|
|
65
|
-
* Set Polygon Color
|
|
66
|
-
*/
|
|
67
|
-
setPolygonColor(polygonId: MappedinPolygon['id'], color: string, opacity?: number, textColor?: string): Promise<null>;
|
|
68
|
-
setPolygonColor(polygon: MappedinPolygon, color: string, opacity?: number, textColor?: string): Promise<null>;
|
|
69
|
-
/**
|
|
70
|
-
* Clear Polygon Color
|
|
71
|
-
*/
|
|
72
|
-
clearPolygonColor(polygon: MappedinPolygon): Promise<null>;
|
|
73
|
-
clearPolygonColor(polygonId: MappedinPolygon['id']): Promise<null>;
|
|
74
|
-
/**
|
|
75
|
-
* Clear all polygon colors
|
|
76
|
-
*/
|
|
77
|
-
clearAllPolygonColors(): Promise<unknown>;
|
|
78
|
-
/**
|
|
79
|
-
* Make polygons clickable
|
|
80
|
-
*/
|
|
81
|
-
addInteractivePolygon(polygonId: MappedinPolygon['id']): Promise<null>;
|
|
82
|
-
addInteractivePolygon(polygon: MappedinPolygon): Promise<null>;
|
|
83
|
-
/**
|
|
84
|
-
* Remove all interactive polygons
|
|
85
|
-
*/
|
|
86
|
-
removeAllInteractivePolygons(): Promise<void>;
|
|
87
|
-
/**
|
|
88
|
-
* Remove all paths
|
|
89
|
-
*/
|
|
90
|
-
removeAllPaths(): Promise<unknown>;
|
|
91
|
-
/**
|
|
92
|
-
* Padding - this is so that the map can be positioned on a portion of the screen
|
|
93
|
-
*/
|
|
94
|
-
setSafeArea(padding: {
|
|
95
|
-
top: number;
|
|
96
|
-
bottom: number;
|
|
97
|
-
left: number;
|
|
98
|
-
right: number;
|
|
99
|
-
}): void;
|
|
100
|
-
/**
|
|
101
|
-
* Change Map/Level
|
|
102
|
-
*/
|
|
103
|
-
setMap(map: MappedinMap): Promise<null>;
|
|
104
|
-
setMap(mapId: MappedinMap['id']): Promise<null>;
|
|
105
|
-
/**
|
|
106
|
-
* Gets the nearest node by screen coordinate
|
|
107
|
-
*/
|
|
108
|
-
getNearestNodeByScreenCoordinates(x: number, y: number, map?: MappedinMap): Promise<MappedinNode | null>;
|
|
109
|
-
getNearestNodeByScreenCoordinates(x: number, y: number, mapId?: MappedinMap['id']): Promise<MappedinNode | null>;
|
|
110
|
-
/**
|
|
111
|
-
* Label all polygons with locations either loaded via the API or passed in
|
|
112
|
-
*/
|
|
113
|
-
labelAllLocations(options?: TLabelAllLocationsOptions): Promise<unknown>;
|
|
114
|
-
labelPolygon(polygon: MappedinPolygon, options?: TLabelOptions): Promise<null>;
|
|
115
|
-
labelPolygon(polygonId: MappedinPolygon['id'], options?: TLabelOptions): Promise<null>;
|
|
116
|
-
/**
|
|
117
|
-
Camera controls interface
|
|
118
|
-
*/
|
|
119
|
-
CameraControls: {
|
|
120
|
-
/**
|
|
121
|
-
* The current tilt in radians from top-down view.
|
|
122
|
-
*/
|
|
123
|
-
tilt: number;
|
|
124
|
-
/**
|
|
125
|
-
* @param tilt The new value to set the tilt to, in radians from top-down view.
|
|
126
|
-
*/
|
|
127
|
-
setTilt: (tilt: number) => Promise<undefined>;
|
|
128
|
-
/**
|
|
129
|
-
* The current rotation in degrees from north.
|
|
130
|
-
*/
|
|
131
|
-
rotation: number;
|
|
132
|
-
/**
|
|
133
|
-
* @param rotation The new value to set the rotation to, in degrees from north..
|
|
134
|
-
*/
|
|
135
|
-
setRotation: (rotation: number) => Promise<undefined>;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Journey management interface
|
|
139
|
-
*/
|
|
140
|
-
Journey: {
|
|
141
|
-
/**
|
|
142
|
-
* Visualize directions by drawing paths, and adding connection markers
|
|
143
|
-
*/
|
|
144
|
-
draw: (directions: MappedinDirections | MappedinDirections[], options?: TSerializableJourneyOptions) => Promise<undefined>;
|
|
145
|
-
/**
|
|
146
|
-
* Remove any paths and markers associated with journey
|
|
147
|
-
*/
|
|
148
|
-
clear: () => Promise<undefined>;
|
|
149
|
-
/**
|
|
150
|
-
* Set the current step of a multi-part journey
|
|
151
|
-
*/
|
|
152
|
-
setStep: (step: number) => Promise<undefined>;
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* BlueDot control interface
|
|
156
|
-
*/
|
|
157
|
-
BlueDot: {
|
|
158
|
-
/**
|
|
159
|
-
* Enable BlueDot
|
|
160
|
-
*/
|
|
161
|
-
enable: (options?: TBlueDotOptions | undefined) => Promise<undefined>;
|
|
162
|
-
/**
|
|
163
|
-
* Disable BlueDot
|
|
164
|
-
*/
|
|
165
|
-
disable: () => Promise<undefined>;
|
|
166
|
-
};
|
|
167
|
-
/**
|
|
168
|
-
* Enable Blue Dot (use mapView.BlueDot.enable() instead)
|
|
169
|
-
* @deprecated
|
|
170
|
-
*/
|
|
171
|
-
enableBlueDot(options?: TBlueDotOptions): Promise<unknown>;
|
|
172
|
-
/**
|
|
173
|
-
* Disable Blue Dot (use mapView.BlueDot.disable() instead)
|
|
174
|
-
* @deprecated
|
|
175
|
-
*/
|
|
176
|
-
disableBlueDot(): Promise<unknown>;
|
|
177
|
-
/**
|
|
178
|
-
* Override BlueDot location data. This can be used to pass native location data
|
|
179
|
-
* @hidden
|
|
180
|
-
*/
|
|
181
|
-
overrideLocation(location: TGeolocationObject): void;
|
|
182
|
-
/**
|
|
183
|
-
* Get Directions
|
|
184
|
-
*/
|
|
185
|
-
getDirections(props: {
|
|
186
|
-
from: MappedinNode | MappedinLocation | MappedinPolygon;
|
|
187
|
-
to: MappedinNode | MappedinLocation | MappedinPolygon | MappedinDestinationSet;
|
|
188
|
-
accessible?: boolean;
|
|
189
|
-
}): Promise<MappedinDirections | MappedinDirections[]>;
|
|
190
|
-
/**
|
|
191
|
-
*
|
|
192
|
-
* Draw a path based on a list of Nodes
|
|
193
|
-
*/
|
|
194
|
-
drawPath(path: MappedinNode['id'][], pathOptions: TPathOptions): Promise<null>;
|
|
195
|
-
drawPath(path: MappedinNode[], pathOptions: TPathOptions): Promise<null>;
|
|
196
|
-
}
|
|
197
|
-
//# sourceMappingURL=MiMapView.store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MiMapView.store.d.ts","sourceRoot":"","sources":["../../../src/MiMapView.store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,a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E,EACE,YAAY,GACZ,gBAAgB,GAChB,eAAe,GACf,sBAAsB,CAAC;QAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,GAAG,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,EAAE,CAAC;IA+BtD;;;OAGG;IACG,QAAQ,CACZ,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE,EAC1B,WAAW,EAAE,YAAY,GACxB,OAAO,CAAC,IAAI,CAAC;IACV,QAAQ,CACZ,IAAI,EAAE,YAAY,EAAE,EACpB,WAAW,EAAE,YAAY,GACxB,OAAO,CAAC,IAAI,CAAC;CAUjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _classPrivateFieldGet(a,b){var c=_classExtractFieldDescriptor(a,b,"get");return _classApplyDescriptorGet(a,c)}function _classExtractFieldDescriptor(a,b,c){if(!b.has(a))throw new TypeError("attempted to "+c+" private field on non-instance");return b.get(a)}function _classApplyDescriptorGet(a,b){return b.get?b.get.call(a):b.value}import{MappedinController,uuid}from"./MappedinController";import{EVENT}from"../../types/src";import{STATE}from".";import{JSONifyNodeLocationPolygon}from"./utils";import{Mappedin,MappedinNode,MappedinDirections,MappedinDestinationSet}from"../../get-venue/src";import{E_BLUEDOT_STATE}from"./MiMapView.store.types";var _markers=new WeakMap;export class MapViewStore extends MappedinController{constructor(){super(),_markers.set(this,{writable:!0,value:new Set}),_defineProperty(this,"state",STATE),_defineProperty(this,"BlueDotState",E_BLUEDOT_STATE),_defineProperty(this,"venueData",void 0),_defineProperty(this,"currentMap",void 0),_defineProperty(this,"options",void 0),_defineProperty(this,"CameraControls",{tilt:0,setTilt:a=>this.emitAsync(EVENT.SET_TILT,{tilt:a}),rotation:0,setRotation:a=>this.emitAsync(EVENT.SET_ROTATION,{rotation:a})}),_defineProperty(this,"Journey",{draw:(a,b={})=>{let c;return c=Array.isArray(a)?a.map(a=>a.toJSON()):a.toJSON(),this.emitAsync(EVENT.DRAW_JOURNEY,{directions:c,options:b})},clear:()=>this.emitAsync(EVENT.CLEAR_JOURNEY,{}),setStep:a=>this.emitAsync(EVENT.SET_JOURNEY_STEP,{step:a})}),_defineProperty(this,"BlueDot",{enable:a=>this.emitAsync(EVENT.ENABLE_BLUE_DOT,{options:a}),disable:()=>this.emitAsync(EVENT.DISABLE_BLUE_DOT,{})}),this.eventBus.on(EVENT.MAP_CHANGED,({mapId:a})=>{null!=this.venueData&&(this.currentMap=this.venueData._mapsById?.[a]),this.publish(EVENT.MAP_CHANGED,{map:this.currentMap})}),this.eventBus.on(EVENT.ROTATION_CHANGED,({rotation:a})=>{this.CameraControls.rotation=a}),this.eventBus.on(EVENT.TILT_CHANGED,({tilt:a})=>{this.CameraControls.tilt=a}),this.eventBus.on(EVENT.STATE_CHANGED,({state:a})=>{this.state=a,this.publish(EVENT.STATE_CHANGED,{state:a})}),this.eventBus.on(EVENT.POLYGON_CLICKED,({polygonId:a})=>{this.publish(EVENT.POLYGON_CLICKED,{polygon:this.venueData?._polygonsById[a]})}),this.eventBus.on(EVENT.READY,()=>this.publish(EVENT.READY,{})),this.eventBus.on(EVENT.FIRST_MAP_LOADED,()=>this.publish(EVENT.FIRST_MAP_LOADED,{})),this.eventBus.on(EVENT.DATA_LOADED,async({venueData:a})=>{null==this.venueData&&(this.venueData=new Mappedin(this.options),await this.venueData.hydrate(a),this.currentMap=this.venueData._mapsById?.[this.venueData.venue.defaultMap]),this.publish(EVENT.DATA_LOADED,{venueData:this.venueData})}),this.eventBus.on(EVENT.BLUE_DOT_UPDATED,({update:a})=>{const b={...a,map:null==a.map?null:this.venueData?._mapsById?.[a.map],nearestNode:null==a.nearestNode?null:this.venueData?._nodesById?.[a.nearestNode]};this.publish(EVENT.BLUE_DOT_UPDATED,{update:b})}),this.eventBus.on(EVENT.NOTHING_CLICKED,()=>this.publish(EVENT.NOTHING_CLICKED,{})),this.eventBus.on(EVENT.BLUEDOT_POSITION_UPDATE,({update:a})=>{const b={...a,map:null==a.map?null:this.venueData?._mapsById?.[a.map],nearestNode:null==a.nearestNode?null:this.venueData?._nodesById?.[a.nearestNode]};this.publish(EVENT.BLUEDOT_POSITION_UPDATE,{update:b})}),this.eventBus.on(EVENT.BLUEDOT_STATE_CHANGE,({stateChange:a})=>{this.BlueDotState=a,this.publish(EVENT.BLUEDOT_STATE_CHANGE,{stateChange:a})})}async loadVenue(a,b){return this.options=a,await this.emitAsync(EVENT.LOAD_VENUE,{options:a,showVenueOptions:b}),this.venueData}async showVenue(a,b){if(!(a instanceof Mappedin))throw new Error("venueData must be an instance of the Mappedin object. Please create and hydrate an instance first");this.venueData=a,await this.emitAsync(EVENT.SHOW_VENUE,{format:"jsonstring",venueData:a.toString(),showVenueOptions:b})}createMarker(a,b,c){const d=uuid();return _classPrivateFieldGet(this,_markers).add(d),this.emitAsync(EVENT.CREATE_MARKER,{options:{...c,id:d},contentHtml:b,nodeIdOrCoordinate:a instanceof MappedinNode?a.id:a}),d}async removeMarker(a){try{await this.emitAsync(EVENT.REMOVE_MARKER,{markerId:a}),_classPrivateFieldGet(this,_markers).delete(a)}catch(a){throw new Error(a)}}async focusOn(a){const b={...a};return Array.isArray(a.nodes)&&(b.nodes=a.nodes?.map(a=>"string"==typeof a?a:a.id)),Array.isArray(a.polygons)&&(b.polygons=a.polygons?.map(a=>"string"==typeof a?a:a.id)),this.emitAsync(EVENT.FOCUS_ON,{focusOptions:b})}async drawJourney(a,b={}){let c;return c=Array.isArray(a)?a.map(a=>a.toJSON()):a.toJSON(),this.emitAsync(EVENT.DRAW_JOURNEY,{directions:c,options:b})}async setState(a){return this.emitAsync(EVENT.SET_STATE,{state:a})}async clearJourney(){return this.emitAsync(EVENT.CLEAR_JOURNEY,{})}async setPolygonColor(a,b,c=1,d){return this.emitAsync(EVENT.SET_POLYGON_COLOR,{polygonId:"string"==typeof a?a:a.id,color:b,textColor:d,opacity:c})}async clearPolygonColor(a){return this.emitAsync(EVENT.CLEAR_POLYGON_COLOR,{polygonId:"string"==typeof a?a:a.id})}async clearAllPolygonColors(){return this.emitAsync(EVENT.CLEAR_ALL_POLYGON_COLORS,{})}async addInteractivePolygon(a){return this.emitAsync(EVENT.ADD_INTERACTIVE_POLYGON,{polygonId:"string"==typeof a?a:a.id})}async removeAllInteractivePolygons(){return this.emit(EVENT.REMOVE_INTERACTIVE_POLYGONS,{})}async removeAllPaths(){return this.emitAsync(EVENT.REMOVE_ALL_PATHS,{})}setSafeArea(a){this.emit(EVENT.SET_SAFE_AREA,{padding:a})}async setMap(a){return this.emitAsync(EVENT.SET_MAP,{mapId:"string"==typeof a?a:a.id})}async getNearestNodeByScreenCoordinates(a,b,c){const d=await this.emitAsync(EVENT.GET_NEAREST_NODE_BY_SCREEN_COORDINATES,{x:a,y:b,map:"string"==typeof c?c:c?.id});return null==d?null:this.venueData?.nodes.find(a=>a.id===d?.id)}async labelAllLocations(a){let b;return Array.isArray(a?.locations)&&(b=a?.locations?.map(a=>"string"==typeof a?a:a.id)),this.emitAsync(EVENT.LABEL_ALL_LOCATIONS,{options:{...a,locations:b}})}async labelPolygon(a,b){return this.emitAsync(EVENT.LABEL_POLYGON,{polygonId:"string"==typeof a?a:a.id,options:b})}async enableBlueDot(a){return this.emitAsync(EVENT.ENABLE_BLUE_DOT,{options:a})}async disableBlueDot(){return this.emitAsync(EVENT.DISABLE_BLUE_DOT,{})}overrideLocation(a){this.emit(EVENT.OVERRIDE_LOCATION,{location:a})}async getDirections(a){const{to:b,from:c,accessible:d}=a,e=JSONifyNodeLocationPolygon(c);let f=b instanceof MappedinDestinationSet?b.destinations.map(JSONifyNodeLocationPolygon):JSONifyNodeLocationPolygon(b);const g=await this.emitAsync(EVENT.GET_DIRECTIONS,{from:e,to:f,accessible:d});let h;return h=Array.isArray(g)?g.map(a=>new MappedinDirections(this.venueData,a)):new MappedinDirections(this.venueData,g),h}async drawPath(a,b){return this.emitAsync(EVENT.DRAW_PATH,{path:a.map(a=>"string"==typeof a?a:a.id),pathOptions:b})}}
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
/// <reference types="mappedin__mappedin-js" />
|
|
2
|
-
import type { TJourneyOptions } from '@mappedin/mappedin-js/modules/Mappedin.MapView3D.bundle';
|
|
3
|
-
import type { MappedinPolygon, MappedinMap, MappedinNode, TShowVenueOptions } from '../../get-venue/src';
|
|
4
|
-
import { TGeolocationObject } from '.';
|
|
5
|
-
export declare type TMiMapViewOptions = TShowVenueOptions & {
|
|
6
|
-
/**
|
|
7
|
-
* Client ID
|
|
8
|
-
*/
|
|
9
|
-
clientId?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Client Secret
|
|
12
|
-
*/
|
|
13
|
-
clientSecret?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Venue Slug
|
|
16
|
-
*/
|
|
17
|
-
venue: string;
|
|
18
|
-
/**
|
|
19
|
-
* Venue Perspective
|
|
20
|
-
*/
|
|
21
|
-
perspective?: string;
|
|
22
|
-
baseUrl?: string;
|
|
23
|
-
noAuth?: boolean;
|
|
24
|
-
language?: string;
|
|
25
|
-
};
|
|
26
|
-
export declare type TFocusOptions = {
|
|
27
|
-
/**
|
|
28
|
-
* Camera tilt
|
|
29
|
-
*/
|
|
30
|
-
tilt?: number;
|
|
31
|
-
/**
|
|
32
|
-
* An array of Nodes to focus in on
|
|
33
|
-
*/
|
|
34
|
-
nodes?: (MappedinNode['id'] | MappedinNode)[];
|
|
35
|
-
/**
|
|
36
|
-
* An array of Polygons to focus on. It's the center of the bounds of all Polygons, designed to fit everything into view.
|
|
37
|
-
*/
|
|
38
|
-
polygons?: (MappedinPolygon['id'] | MappedinPolygon)[];
|
|
39
|
-
/**
|
|
40
|
-
* The duration the focus animation should last for.
|
|
41
|
-
* @defaultValue `100`
|
|
42
|
-
*/
|
|
43
|
-
duration?: number;
|
|
44
|
-
/**
|
|
45
|
-
* Whether to zoom the camera in or out, or just pan it.
|
|
46
|
-
* @defaultValue `true`
|
|
47
|
-
*/
|
|
48
|
-
changeZoom?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* The animation curve to use for zooming in. Uses the animateCamera one by default.
|
|
51
|
-
*/
|
|
52
|
-
curve?: any;
|
|
53
|
-
/**
|
|
54
|
-
* You can overide the {{#crossLink "MapView/focusZoomFactor:property"}}{{/crossLink}} for a specific {{#crossLink "MapView/focusOn:method"}}{{/crossLink}} call, rather than globally, if you like.
|
|
55
|
-
*/
|
|
56
|
-
focusZoomFactor?: number;
|
|
57
|
-
/**
|
|
58
|
-
* Sets a floor for how close you can zoom in on the scene. If it's lower than mapView.controls.minZoom, it's ignored.
|
|
59
|
-
* @defaultValue: 0
|
|
60
|
-
*/
|
|
61
|
-
minZoom?: number;
|
|
62
|
-
padding?: {
|
|
63
|
-
top: number;
|
|
64
|
-
right: number;
|
|
65
|
-
bottom: number;
|
|
66
|
-
left: number;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
export declare type TPolygonColorOptions = {
|
|
70
|
-
color: string;
|
|
71
|
-
opacity?: number;
|
|
72
|
-
textColor?: string;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* @deprecated
|
|
76
|
-
*/
|
|
77
|
-
export declare type TBlueDotUpdate = {
|
|
78
|
-
state: any;
|
|
79
|
-
position: TGeolocationObject;
|
|
80
|
-
map: MappedinMap;
|
|
81
|
-
bearing: any;
|
|
82
|
-
nearestNode: MappedinNode;
|
|
83
|
-
error: string;
|
|
84
|
-
};
|
|
85
|
-
export declare type TBlueDotPositionUpdate = {
|
|
86
|
-
map: MappedinMap;
|
|
87
|
-
nearestNode: MappedinNode;
|
|
88
|
-
position: TGeolocationObject;
|
|
89
|
-
bearing: number;
|
|
90
|
-
};
|
|
91
|
-
export declare enum E_BLUEDOT_STATE_REASON {
|
|
92
|
-
/**
|
|
93
|
-
* Positions we are receiving indicate we are outside the venue
|
|
94
|
-
*/
|
|
95
|
-
OUTSIDE_MAP = 0,
|
|
96
|
-
/**
|
|
97
|
-
* BlueDot is enabled, but we haven't received any positions
|
|
98
|
-
*/
|
|
99
|
-
NO_POSITIONS_PROVIDED = 1,
|
|
100
|
-
/**
|
|
101
|
-
* Web Only: Error returned by geolocation provider
|
|
102
|
-
*/
|
|
103
|
-
GEOLOCATION_PROVIDER_ERROR = 2,
|
|
104
|
-
/**
|
|
105
|
-
* Errors provided by custom location providers
|
|
106
|
-
*/
|
|
107
|
-
CUSTOM_GEOLOCATION_PROVIDER_ERROR = 3
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Visual States of the BlueDot
|
|
111
|
-
*/
|
|
112
|
-
export declare enum E_MARKER_STATE {
|
|
113
|
-
/**
|
|
114
|
-
* BlueDot is hidden
|
|
115
|
-
*/
|
|
116
|
-
HIDDEN = 0,
|
|
117
|
-
/**
|
|
118
|
-
* BlueDot is transparent
|
|
119
|
-
*/
|
|
120
|
-
GHOST = 1,
|
|
121
|
-
/**
|
|
122
|
-
* BlueDot is visible and opaque
|
|
123
|
-
*/
|
|
124
|
-
NORMAL = 2,
|
|
125
|
-
/**
|
|
126
|
-
* BlueDot is grayed out
|
|
127
|
-
*/
|
|
128
|
-
UNCERTAIN = 3
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
What we currently know about the user's position, and how confident we are.
|
|
132
|
-
*/
|
|
133
|
-
export declare enum E_BLUEDOT_STATE {
|
|
134
|
-
/**
|
|
135
|
-
* We haven't started listening to position updates
|
|
136
|
-
*/
|
|
137
|
-
NOT_LISTENING = 0,
|
|
138
|
-
/**
|
|
139
|
-
* We have started listening to position updates
|
|
140
|
-
*/
|
|
141
|
-
LISTENING = 1,
|
|
142
|
-
/**
|
|
143
|
-
* We've received relevant positions, and user is inside the venue
|
|
144
|
-
*/
|
|
145
|
-
HAS_POSITION = 2,
|
|
146
|
-
/**
|
|
147
|
-
* We've received a relevant position, and we have enough information to determine
|
|
148
|
-
* which floor the user is on - either because we received a floor level, the venue
|
|
149
|
-
* only has one floor, or we're allowing implicit floor level.
|
|
150
|
-
*/
|
|
151
|
-
HAS_INDOOR_POSITION = 3,
|
|
152
|
-
/**
|
|
153
|
-
* We are uncertain about the user's position, likely because we haven't received
|
|
154
|
-
* a relevant position in a while
|
|
155
|
-
*/
|
|
156
|
-
LOCATION_UNCERTAIN = 4
|
|
157
|
-
}
|
|
158
|
-
export declare type TBlueDotStateChange = {
|
|
159
|
-
/**
|
|
160
|
-
* What we currently know about the user's position, and how confident we are.
|
|
161
|
-
*/
|
|
162
|
-
name: E_BLUEDOT_STATE;
|
|
163
|
-
/**
|
|
164
|
-
* Visiblity State of the BlueDot marker
|
|
165
|
-
*/
|
|
166
|
-
markerVisibility?: E_MARKER_STATE;
|
|
167
|
-
/**
|
|
168
|
-
* Reason why BlueDot may be in the current state
|
|
169
|
-
*/
|
|
170
|
-
reason?: E_BLUEDOT_STATE_REASON;
|
|
171
|
-
/**
|
|
172
|
-
* Additional message to complement the reason
|
|
173
|
-
*/
|
|
174
|
-
message?: GeolocationPositionError | string;
|
|
175
|
-
};
|
|
176
|
-
export declare enum COLLISION_RANKING_TIERS {
|
|
177
|
-
OPTIONAL_MINIMUM = 0,
|
|
178
|
-
OPTIONAL_MAXIMUM = 1,
|
|
179
|
-
MEDIUM = 2,
|
|
180
|
-
HIGH = 3
|
|
181
|
-
}
|
|
182
|
-
export declare enum MARKER_ANCHOR {
|
|
183
|
-
CENTER = 0,
|
|
184
|
-
TOP = 1,
|
|
185
|
-
LEFT = 2,
|
|
186
|
-
BOTTOM = 3,
|
|
187
|
-
RIGHT = 4
|
|
188
|
-
}
|
|
189
|
-
export declare type TCreateMarkerOptions = {
|
|
190
|
-
/**
|
|
191
|
-
* Which edge/point of marker to use as anchor point
|
|
192
|
-
*/
|
|
193
|
-
anchor?: MARKER_ANCHOR;
|
|
194
|
-
rank?: COLLISION_RANKING_TIERS;
|
|
195
|
-
};
|
|
196
|
-
export declare type TSerializableJourneyOptions = TJourneyOptions & Omit<TJourneyOptions, 'connectionTemplate' | 'color' | 'destinationMarkerTemplate' | 'departureMarkerTemplate'> & {
|
|
197
|
-
connectionTemplateString?: string;
|
|
198
|
-
destinationMarkerTemplateString?: string;
|
|
199
|
-
departureMarkerTemplateString?: string;
|
|
200
|
-
color?: string;
|
|
201
|
-
};
|
|
202
|
-
//# sourceMappingURL=MiMapView.store.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MiMapView.store.types.d.ts","sourceRoot":"","sources":["../../../src/MiMapView.store.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yDAAyD,CAAC;AAC/F,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,YAAY,EACZ,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAEvC,oBAAY,iBAAiB,GAAG,iBAAiB,GAAG;IAClD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,EAAE,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,EAAE,CAAC;IACvD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG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ERROR",a[a.CUSTOM_GEOLOCATION_PROVIDER_ERROR=3]="CUSTOM_GEOLOCATION_PROVIDER_ERROR"})(E_BLUEDOT_STATE_REASON||(E_BLUEDOT_STATE_REASON={}));export let E_MARKER_STATE;(function(a){a[a.HIDDEN=0]="HIDDEN",a[a.GHOST=1]="GHOST",a[a.NORMAL=2]="NORMAL",a[a.UNCERTAIN=3]="UNCERTAIN"})(E_MARKER_STATE||(E_MARKER_STATE={}));export let E_BLUEDOT_STATE;(function(a){a[a.NOT_LISTENING=0]="NOT_LISTENING",a[a.LISTENING=1]="LISTENING",a[a.HAS_POSITION=2]="HAS_POSITION",a[a.HAS_INDOOR_POSITION=3]="HAS_INDOOR_POSITION",a[a.LOCATION_UNCERTAIN=4]="LOCATION_UNCERTAIN"})(E_BLUEDOT_STATE||(E_BLUEDOT_STATE={}));export let COLLISION_RANKING_TIERS;(function(a){a[a.OPTIONAL_MINIMUM=0]="OPTIONAL_MINIMUM",a[a.OPTIONAL_MAXIMUM=1]="OPTIONAL_MAXIMUM",a[a.MEDIUM=2]="MEDIUM",a[a.HIGH=3]="HIGH"})(COLLISION_RANKING_TIERS||(COLLISION_RANKING_TIERS={}));export let MARKER_ANCHOR;(function(a){a[a.CENTER=0]="CENTER",a[a.TOP=1]="TOP",a[a.LEFT=2]="LEFT",a[a.BOTTOM=3]="BOTTOM",a[a.RIGHT=4]="RIGHT"})(MARKER_ANCHOR||(MARKER_ANCHOR={}));
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TMiMapViewOptions, TFocusOptions } from './MiMapView.store.types';
|
|
3
|
-
import type { MappedinLocation, Mappedin } from '../../get-venue/src';
|
|
4
|
-
export declare type TMiMiniMapProps = {
|
|
5
|
-
/**
|
|
6
|
-
* Options to initialze MiMapView with
|
|
7
|
-
*/
|
|
8
|
-
options: TMiMapViewOptions;
|
|
9
|
-
style?: any;
|
|
10
|
-
polygonHighlightColor?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Called when minimap is rendereed
|
|
13
|
-
*/
|
|
14
|
-
onLoad?: () => void;
|
|
15
|
-
/**
|
|
16
|
-
* Venue Data to render inside the MapView. This is returned by {@link getVenue}
|
|
17
|
-
*/
|
|
18
|
-
venueData?: Mappedin;
|
|
19
|
-
location: MappedinLocation['id'] | MappedinLocation;
|
|
20
|
-
focusOptions?: (props: TFocusOptions) => void;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Mappedin MiniMap component
|
|
24
|
-
*/
|
|
25
|
-
export declare type MiMiniMap = (props: TMiMiniMapProps) => React.ReactElement;
|
|
26
|
-
/**
|
|
27
|
-
* Mappedin MiniMap component
|
|
28
|
-
* @category Component
|
|
29
|
-
*/
|
|
30
|
-
export declare const MiMiniMap: React.NamedExoticComponent<TMiMiniMapProps>;
|
|
31
|
-
//# sourceMappingURL=MiMiniMap.d.ts.map
|