@mappedin/react-native-sdk 3.5.0 → 4.0.4-alpha.10
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 -247
- 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/index.test.d.ts +0 -2
- package/dist/get-venue/src/index.test.d.ts.map +0 -1
- package/dist/get-venue/src/index.test.js +0 -46
- 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 -2264
- package/dist/get-venue/tsconfig.json +0 -19
- package/dist/get-venue/tsconfig.tsbuildinfo +0 -2770
- 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 -199
- 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 -231
- 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 -6930
- 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 -1821
- package/dist/types_mappedin__mappedin-js/tsconfig.tsbuildinfo +0 -1783
- 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 -1240
- 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 -1087
- package/docs/modules.html +0 -2005
package/dist/sdk/src/index.d.ts
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import type { MappedinLocation } from '../../get-venue/src';
|
|
2
|
-
export { BEARING_TYPE, ACTION_TYPE } from '../../types/src';
|
|
3
|
-
export { MiMapView } from './MiMapView';
|
|
4
|
-
export type { TMiMapViewProps } from './MiMapView';
|
|
5
|
-
export { MiMiniMap } from './MiMiniMap';
|
|
6
|
-
export type { TMiMiniMapProps } from './MiMiniMap';
|
|
7
|
-
export type { MapViewStore } from './MiMapView.store';
|
|
8
|
-
export { getVenue, getVenueBundle } from '../../get-venue/src';
|
|
9
|
-
export type { TGetVenueOptions, TGetVenueBundleOptions, } from '../../get-venue/src';
|
|
10
|
-
export { STATE } from '../../types_mappedin__mappedin-js/types';
|
|
11
|
-
export { COLLISION_RANKING_TIERS, MARKER_ANCHOR, E_BLUEDOT_STATE, E_MARKER_STATE, E_BLUEDOT_STATE_REASON, } from './MiMapView.store.types';
|
|
12
|
-
export type { TGeolocationObject, TPathOptions, TJourneyOptions, } from '../../types_mappedin__mappedin-js/types';
|
|
13
|
-
export type { TMiMapViewOptions, TFocusOptions, TBlueDotUpdate, TCreateMarkerOptions, TBlueDotPositionUpdate, TBlueDotStateChange, } from './MiMapView.store.types';
|
|
14
|
-
export type { MappedinDirections, TMappedinDirective, } from '../../get-venue/src';
|
|
15
|
-
export declare type TLabelOptions = {
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated. Use appearance instead
|
|
18
|
-
*/
|
|
19
|
-
activeColor?: string;
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated. Use appearance instead
|
|
22
|
-
*/
|
|
23
|
-
inactiveColor?: string;
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated. Use appearance instead
|
|
26
|
-
*/
|
|
27
|
-
maxTextDivWidth?: number;
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated. Use appearance instead
|
|
30
|
-
*/
|
|
31
|
-
markerSize?: number;
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated. Use appearance instead
|
|
34
|
-
*/
|
|
35
|
-
textSize?: number;
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated. Use appearance instead
|
|
38
|
-
*/
|
|
39
|
-
color?: string;
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated. Use appearance instead
|
|
42
|
-
*/
|
|
43
|
-
textLines?: number;
|
|
44
|
-
text: string;
|
|
45
|
-
shortText?: string;
|
|
46
|
-
stateText?: string;
|
|
47
|
-
rank?: number;
|
|
48
|
-
appearance?: TLabelAppearance;
|
|
49
|
-
};
|
|
50
|
-
export declare type TLabelAppearance = {
|
|
51
|
-
/**
|
|
52
|
-
* Margin around the label and marker. This will affect label density
|
|
53
|
-
*/
|
|
54
|
-
margin?: number;
|
|
55
|
-
text?: {
|
|
56
|
-
/**
|
|
57
|
-
* Number of lines to display when text spans multiple lines
|
|
58
|
-
*/
|
|
59
|
-
numLines?: number;
|
|
60
|
-
/**
|
|
61
|
-
* Text size in pixels
|
|
62
|
-
*/
|
|
63
|
-
size?: number;
|
|
64
|
-
/**
|
|
65
|
-
* Maxiumum width of text in pixels
|
|
66
|
-
*/
|
|
67
|
-
maxWidth?: number;
|
|
68
|
-
/**
|
|
69
|
-
* Text foreground color
|
|
70
|
-
*/
|
|
71
|
-
foregroundColor?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Text background color
|
|
74
|
-
*/
|
|
75
|
-
backgroundColor?: string;
|
|
76
|
-
};
|
|
77
|
-
marker?: {
|
|
78
|
-
/**
|
|
79
|
-
* Size of the marker in pixels
|
|
80
|
-
*/
|
|
81
|
-
size?: number;
|
|
82
|
-
foregroundColor?: {
|
|
83
|
-
/**
|
|
84
|
-
* Foreground color of the marker when it is active
|
|
85
|
-
*/
|
|
86
|
-
active?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Foreground color of the marker when it is inactive (grayed out due to being outranked by other labels around)
|
|
89
|
-
*/
|
|
90
|
-
inactive?: string;
|
|
91
|
-
};
|
|
92
|
-
backgroundColor?: {
|
|
93
|
-
/**
|
|
94
|
-
* Foreground color of the marker when it is active
|
|
95
|
-
*/
|
|
96
|
-
active?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Foreground color of the marker when it is inactive (grayed out due to being outranked by other labels around)
|
|
99
|
-
*/
|
|
100
|
-
inactive?: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
export declare const labelThemes: {
|
|
105
|
-
lightOnDark: {
|
|
106
|
-
text: {
|
|
107
|
-
foregroundColor: string;
|
|
108
|
-
backgroundColor: string;
|
|
109
|
-
numLines: number;
|
|
110
|
-
size: number;
|
|
111
|
-
maxWidth: number;
|
|
112
|
-
};
|
|
113
|
-
marker: {
|
|
114
|
-
foregroundColor: {
|
|
115
|
-
active: string;
|
|
116
|
-
inactive: undefined;
|
|
117
|
-
};
|
|
118
|
-
backgroundColor: {
|
|
119
|
-
active: string;
|
|
120
|
-
inactive: undefined;
|
|
121
|
-
};
|
|
122
|
-
size: number;
|
|
123
|
-
};
|
|
124
|
-
margin: number;
|
|
125
|
-
};
|
|
126
|
-
darkOnLight: {
|
|
127
|
-
text: {
|
|
128
|
-
foregroundColor: string;
|
|
129
|
-
backgroundColor: string;
|
|
130
|
-
numLines: number;
|
|
131
|
-
size: number;
|
|
132
|
-
maxWidth: number;
|
|
133
|
-
};
|
|
134
|
-
marker: {
|
|
135
|
-
foregroundColor: {
|
|
136
|
-
active: string;
|
|
137
|
-
inactive: undefined;
|
|
138
|
-
};
|
|
139
|
-
backgroundColor: {
|
|
140
|
-
active: string;
|
|
141
|
-
inactive: undefined;
|
|
142
|
-
};
|
|
143
|
-
size: number;
|
|
144
|
-
};
|
|
145
|
-
margin: number;
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
export declare type TLegacyLabelOptions = {
|
|
149
|
-
/**
|
|
150
|
-
* Label text
|
|
151
|
-
*/
|
|
152
|
-
text: string;
|
|
153
|
-
/**
|
|
154
|
-
* By default this is the upper bounds of the Polygon. If you don't have a Polygon, or want a custom height for some reason, you can set this.
|
|
155
|
-
*/
|
|
156
|
-
height?: number;
|
|
157
|
-
/**
|
|
158
|
-
* The amount of space to leave before starting the text
|
|
159
|
-
* @default 5
|
|
160
|
-
*/
|
|
161
|
-
margin?: number;
|
|
162
|
-
/**
|
|
163
|
-
* Text Color
|
|
164
|
-
*/
|
|
165
|
-
color?: string;
|
|
166
|
-
/**
|
|
167
|
-
* How big to make the font. Defaults to 12
|
|
168
|
-
* @default 12
|
|
169
|
-
*/
|
|
170
|
-
fontSize?: number;
|
|
171
|
-
/**
|
|
172
|
-
* The minimum percentage we can shrink the label to if it won't fit within the bounds at 100%. If it doesn't fit at that level, it won't be created.
|
|
173
|
-
* @default 0.25
|
|
174
|
-
*/
|
|
175
|
-
scaleMin?: number;
|
|
176
|
-
/**
|
|
177
|
-
* How much to decrement the scale each time it doesn't fit, so we don't end up with too many different font sizes on screen at once. If * you are only labeling a few Polygons rather than everything,
|
|
178
|
-
* you can set this and and scaleMin to 0.1 to fit everything except really long names perfectly.
|
|
179
|
-
* @default 0.25
|
|
180
|
-
*/
|
|
181
|
-
scaleStep?: number;
|
|
182
|
-
};
|
|
183
|
-
export declare type TCommonLabelAllLocationOptions = {
|
|
184
|
-
/**
|
|
185
|
-
* Control the locations at which the smart labels appearance will be changed
|
|
186
|
-
*/
|
|
187
|
-
locations?: (MappedinLocation | MappedinLocation['id'])[];
|
|
188
|
-
};
|
|
189
|
-
export declare type TLegacyLabelAllLocationsOptions = TCommonLabelAllLocationOptions & {
|
|
190
|
-
legacyLabels: true;
|
|
191
|
-
/**
|
|
192
|
-
* Control the appearance of legacy labels
|
|
193
|
-
*/
|
|
194
|
-
appearance?: Omit<TLegacyLabelOptions, 'text'>;
|
|
195
|
-
};
|
|
196
|
-
export declare type TLabelAllLocationsOptions = TCommonLabelAllLocationOptions & {
|
|
197
|
-
legacyLabels?: false | undefined;
|
|
198
|
-
/**
|
|
199
|
-
* Control the appearance of smart labels
|
|
200
|
-
*/
|
|
201
|
-
appearance?: TLabelAppearance;
|
|
202
|
-
};
|
|
203
|
-
export declare type TBlueDotOptions = {
|
|
204
|
-
/**
|
|
205
|
-
* Show Bearing
|
|
206
|
-
* @defaultValue false
|
|
207
|
-
*/
|
|
208
|
-
showBearing?: boolean;
|
|
209
|
-
/**
|
|
210
|
-
* For venues that do not provide level updates, assume the user is always on the default map
|
|
211
|
-
* If this is false, and no level information is found from position updates, blueDotUpdate events will
|
|
212
|
-
* not include the nearest node
|
|
213
|
-
* This should probably be set true for single floor venues that have no level information in position updates
|
|
214
|
-
*
|
|
215
|
-
* @defaultValue false
|
|
216
|
-
*/
|
|
217
|
-
allowImplicitFloorLevel?: boolean;
|
|
218
|
-
/**
|
|
219
|
-
* Smooth incoming position updates. Set to false if smoothing happens outside the SDK
|
|
220
|
-
* @defaultValue true
|
|
221
|
-
*/
|
|
222
|
-
smoothing?: boolean;
|
|
223
|
-
/**
|
|
224
|
-
* Override the default color of the Blue Dot. We interpolate other colors, (such as aura and bearing) from this base color
|
|
225
|
-
* @defaultValue 0x2266ff
|
|
226
|
-
*/
|
|
227
|
-
baseColor?: number | string;
|
|
228
|
-
};
|
|
229
|
-
export type { TShowVenueOptions } from '../../get-venue/src';
|
|
230
|
-
export { MappedinLocation, Mappedin, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinRankings, MappedinDestinationSet, } from '../../get-venue/src';
|
|
231
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,YAAY,EAAE,YAAY,EA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GAAG,8BAA8B,GAAG;IAC7E,YAAY,EAAE,IAAI,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;CAChD,CAAC;AAEF,oBAAY,yBAAyB,GAAG,8BAA8B,GAAG;IACvE,YAAY,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;OAOG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B,CAAC;AAEF,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC"}
|
package/dist/sdk/src/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{BEARING_TYPE,ACTION_TYPE}from"../../types/src";export{MiMapView}from"./MiMapView";export{MiMiniMap}from"./MiMiniMap";export{getVenue,getVenueBundle}from"../../get-venue/src";export{STATE}from"../../types_mappedin__mappedin-js/types";export{COLLISION_RANKING_TIERS,MARKER_ANCHOR,E_BLUEDOT_STATE,E_MARKER_STATE,E_BLUEDOT_STATE_REASON}from"./MiMapView.store.types";const defaultTheme={margin:0,text:{numLines:2,size:14,maxWidth:300,foregroundColor:"white",backgroundColor:"#333"},marker:{size:12,foregroundColor:{active:"white",inactive:void 0},backgroundColor:{active:"#333",inactive:void 0}}};export const labelThemes={lightOnDark:{...defaultTheme,text:{...defaultTheme.text,foregroundColor:"white",backgroundColor:"#333"},marker:{...defaultTheme.marker,foregroundColor:{active:"white",inactive:void 0},backgroundColor:{active:"#333",inactive:void 0}}},darkOnLight:{...defaultTheme,text:{...defaultTheme.text,foregroundColor:"#333",backgroundColor:"white"},marker:{...defaultTheme.marker,foregroundColor:{active:"#333",inactive:void 0},backgroundColor:{active:"white",inactive:void 0}}}};export{MappedinLocation,Mappedin,MappedinPolygon,MappedinNode,MappedinCategory,MappedinMap,MappedinEvent,MappedinMapGroup,MappedinVenue,MappedinVortex,MappedinRankings,MappedinDestinationSet}from"../../get-venue/src";
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare type TChangeEventData = any;
|
|
2
|
-
declare type TListenerFn = (data: TChangeEventData) => void;
|
|
3
|
-
export interface IPubSub {
|
|
4
|
-
publish: (eventName: any, data?: TChangeEventData) => void;
|
|
5
|
-
on: (eventName: any, listenerFn: TListenerFn) => void;
|
|
6
|
-
off: (eventName: any, listenerFn: TListenerFn) => void;
|
|
7
|
-
readonly _subscribers: {
|
|
8
|
-
[eventName in any]: TListenerFn[];
|
|
9
|
-
} | {};
|
|
10
|
-
}
|
|
11
|
-
export declare class PubSubClass<EEVENT extends string> {
|
|
12
|
-
#private;
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
publish: (eventName: EEVENT, data: any) => void;
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
on: (eventName: EEVENT, fn: TListenerFn) => void;
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
off: (eventName: EEVENT, fn: TListenerFn) => void;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=pub-sub.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pub-sub.d.ts","sourceRoot":"","sources":["../../../src/pub-sub.ts"],"names":[],"mappings":"AAAA,aAAK,gBAAgB,GAAG,GAAG,CAAC;AAC5B,aAAK,WAAW,GAAG,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;AAEpD,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3D,EAAE,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,WAAW,KAAK,IAAI,CAAC;IACtD,GAAG,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,WAAW,KAAK,IAAI,CAAC;IACvD,QAAQ,CAAC,YAAY,EACjB;SACG,SAAS,IAAI,GAAG,GAAG,WAAW,EAAE;KAClC,GACD,EAAE,CAAC;CACR;AAMD,qBAAa,WAAW,CAAC,MAAM,SAAS,MAAM;;IAM5C;;OAEG;IACH,OAAO,cAAe,MAAM,QAAQ,GAAG,UAUrC;IAEF;;OAEG;IACH,EAAE,cAAe,MAAM,MAAM,WAAW,UAGtC;IAEF;;OAEG;IACH,GAAG,cAAe,MAAM,MAAM,WAAW,UAQvC;CACH"}
|
package/dist/sdk/src/pub-sub.js
DELETED
|
@@ -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}var _subscribers=new WeakMap;export class PubSubClass{constructor(){_subscribers.set(this,{writable:!0,value:{}}),_defineProperty(this,"publish",(a,b)=>{_classPrivateFieldGet(this,_subscribers)[a]&&_classPrivateFieldGet(this,_subscribers)[a].forEach(a=>{"function"!=typeof a||a(b)})}),_defineProperty(this,"on",(a,b)=>{_classPrivateFieldGet(this,_subscribers)[a]=_classPrivateFieldGet(this,_subscribers)[a]||[],_classPrivateFieldGet(this,_subscribers)[a].push(b)}),_defineProperty(this,"off",(a,b)=>{if(_classPrivateFieldGet(this,_subscribers)[a]){const c=_classPrivateFieldGet(this,_subscribers)[a].indexOf(b);-1!==c&&_classPrivateFieldGet(this,_subscribers)[a].splice(c,1)}})}}
|
package/dist/sdk/src/utils.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Mappedin, MappedinLocation, MappedinNode, MappedinPolygon } from '../../get-venue/src';
|
|
2
|
-
export declare function JSONifyDirections(directionsObject: any): {
|
|
3
|
-
distance: any;
|
|
4
|
-
instructions: any;
|
|
5
|
-
directions: any;
|
|
6
|
-
path: any;
|
|
7
|
-
};
|
|
8
|
-
export declare function hydrateDirections(directionsObject: any, venueData: Mappedin): {
|
|
9
|
-
distance: any;
|
|
10
|
-
instructions: any;
|
|
11
|
-
directions: any;
|
|
12
|
-
path: any;
|
|
13
|
-
};
|
|
14
|
-
export declare function JSONifyNodeLocationPolygon(object: MappedinNode | MappedinLocation | MappedinPolygon): {
|
|
15
|
-
id: string;
|
|
16
|
-
type: string;
|
|
17
|
-
} | undefined;
|
|
18
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAE7B,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,GAAG;;;;;EAUtD;AAoED,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ;;;;;EAS3E;AAGD,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,YAAY,GAAG,gBAAgB,GAAG,eAAe;;;cAqB1D"}
|
package/dist/sdk/src/utils.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{MappedinLocation,MappedinNode,MappedinPolygon}from"../../get-venue/src";export function JSONifyDirections(a){const{directions:b,distance:c,instructions:d,path:e}=a;return console.log(b),{distance:c,instructions:d.map(JSONifyDirective),directions:b.map(JSONifyDirective),path:e.map(a=>a.id)}}function JSONifyDirective(a){const{action:b}=a;null!=b.fromMap&&(b.fromMapId=b.fromMap.id,delete b.fromMap),null!=b.toMap&&(b.toMapId=b.toMap.id,delete b.toMap);const c={action:b,atLocationId:a.atLocation?.id,nodeId:a.node?.id,instruction:a.instruction};return null==c.atLocationId&&delete c.atLocationId,null==c.atLocationId&&delete c.atLocationId,null==c.nodeId&&delete c.nodeId,null==c.instruction&&delete c.instruction,c}function hydrateDirectionDirective(a,b){const{action:c}=a;null!=c.fromMapId&&(c.fromMap=b._mapsById?.[c.fromMapId],delete c.fromMapId),null!=c.toMapId&&(c.toMap=b._mapsById?.[c.toMapId],delete c.toMapId);const d={action:c,atLocation:b._locationsById?.[a.atLocationId],node:b._nodesById?.[a.nodeId],instruction:a.instruction};return null==d.atLocation&&delete d.atLocation,null==d.atLocation&&delete d.atLocation,null==d.node&&delete d.node,null==d.instruction&&delete d.instruction,d}export function hydrateDirections(a,b){const{directions:c,distance:d,instructions:e,path:f}=a;return{distance:d,instructions:e.map(hydrateDirectionDirective),directions:c.map(hydrateDirectionDirective),path:f.map(a=>b._nodesById?.[a])}}export function JSONifyNodeLocationPolygon(a){return a instanceof MappedinNode?{id:a.id,type:"Node"}:a instanceof MappedinLocation?{id:a.id,type:"Location"}:a instanceof MappedinPolygon?{id:a.id,type:"Polygon"}:void 0}
|