@mappedin/react-native-sdk 5.0.0 → 5.0.2
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 +1 -2
- package/dist/index.d.ts +112 -90
- package/dist/index.js +191 -191
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -38,14 +38,13 @@ const MiMapView = (props: TMapViewProps) => React.ReactElement;
|
|
|
38
38
|
| ----------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | -------- |
|
|
39
39
|
| options | Options to initialize MapView with | <a href="modules.html#tmimapviewoptions">`TMiMapViewOptions`<a> | Yes |
|
|
40
40
|
| ref | Exposes Imperative API <a href="classes/mapviewstore.html">`MapViewStore`</a> | React.MutableRefObject<<a href="classes/mapviewstore.html">`MapViewStore`</a>\> | No |
|
|
41
|
-
| onPolygonClicked | Gets called when clicking interactive polygon | ({ polygon: <a href="classes/mappedinpolygon.html">`MappedinPolygon`</a> }) => void | No |
|
|
42
41
|
| onDataLoaded | Fired when <a href="classes/mappedin.html">`Mappedin`</a> data is loaded | ({ venueData: <a href="classes/mappedin.html">`Mappedin`</a> }) => void | No |
|
|
43
42
|
| onFirstMapLoaded | Fires when map can first be interacted with | () => void | No |
|
|
44
43
|
| onBlueDotStateChanged | Fires when BlueDot state changes | ({ stateChange: <a href="modules.html#tbluedotstatechange">`TBlueDotStateChange`</a> }) => void | No |
|
|
45
44
|
| onBlueDotPositionUpdated | Fires when BlueDot position changes | ({ update: <a href="modules.html#tbluedotpositionupdate">`TBlueDotPositionUpdate`</a> }) => void | No |
|
|
46
45
|
| onCameraChanged | Fires when Camera position, tilt, zoom or rotation changes | ({ change: <a href="modules.html#TCameraChange">`TCameraChange`</a> }) => void | No |
|
|
47
46
|
| onStateChanged | Fires when SDK State changes | ({ state: <a href="enums/state.html">`STATE`</a> }) => void | No |
|
|
48
|
-
|
|
47
|
+
| onClick | Fires when clicking within the mapView | (prop: <a href="modules.html#TMapClickEvent">TMapClickEvent</a> ) => void
|
|
49
48
|
### Imperative API
|
|
50
49
|
|
|
51
50
|
<a href="classes/mapviewstore.html">Documented in Detail here: MapViewStore</a>
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare module '@mappedin/react-native-sdk' {
|
|
|
15
15
|
export type { TMiMiniMapProps } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniMap';
|
|
16
16
|
export type { MapViewStore } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store';
|
|
17
17
|
export { getVenue, getVenueBundle } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
18
|
-
export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
18
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
19
19
|
export { STATE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
20
20
|
export { COLLISION_RANKING_TIERS, MARKER_ANCHOR, E_BLUEDOT_STATE, MappedinCoordinate, labelThemes, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_STATE_REASON, MAP_RENDER_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
21
21
|
export type { TSerializableJourneyOptions, TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
@@ -37,7 +37,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
37
37
|
import { TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
38
38
|
import { STATE } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src';
|
|
39
39
|
import { MapViewStore } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store';
|
|
40
|
-
import type { TBlueDotPositionUpdate, TBlueDotStateChange, MappedinPolygon, MappedinMap, Mappedin } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
40
|
+
import type { TBlueDotPositionUpdate, TBlueDotStateChange, TMapClickEvent, MappedinPolygon, MappedinMap, Mappedin } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
41
41
|
import { ERROR, ERROR_MESSAGES } from '@mappedin/react-native-sdk/wrappers/common/errors';
|
|
42
42
|
import { TCameraChange, TMapViewRNOptions } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
43
43
|
export type TMiMapViewProps = {
|
|
@@ -93,14 +93,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
93
93
|
/**
|
|
94
94
|
* Called when the map is clicked. Payload contains the lat-lon of the click event, an array of interactive polygons that were clicked, and a flag indicating whether the click is likely above the blue dot.
|
|
95
95
|
*/
|
|
96
|
-
onClick?: (prop:
|
|
97
|
-
position: {
|
|
98
|
-
latitude: number;
|
|
99
|
-
longitude: number;
|
|
100
|
-
};
|
|
101
|
-
polygons: MappedinPolygon[];
|
|
102
|
-
nearBlueDot: boolean;
|
|
103
|
-
}) => void;
|
|
96
|
+
onClick?: (prop: TMapClickEvent) => void;
|
|
104
97
|
/**
|
|
105
98
|
* Called when the map is ready for interaction
|
|
106
99
|
*/
|
|
@@ -403,12 +396,16 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/index.rn' {
|
|
|
403
396
|
import { getVenue, getVenueBundle, Mappedin, MappedinDestinationSet } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
404
397
|
import { randomId } from '@mappedin/react-native-sdk/core/common/random-id';
|
|
405
398
|
export * from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
406
|
-
export { getVenue,
|
|
399
|
+
export { getVenue,
|
|
400
|
+
/**
|
|
401
|
+
* @deprecated
|
|
402
|
+
*/
|
|
403
|
+
getVenueBundle, MappedinDestinationSet, Mappedin, randomId };
|
|
407
404
|
export { GEOLOCATION_STATUS, COLLISION_RANKING_TIERS, E_BLUEDOT_STATE_REASON, E_BLUEDOT_STATE, E_BLUEDOT_MARKER_STATE, STATE, MARKER_ANCHOR, E_SDK_EVENT, E_BLUEDOT_EVENT, E_CAMERA_EVENT, E_CAMERA_DIRECTION, SAFE_AREA_INSET_TYPE, ANIMATION_TWEENS, CAMERA_EASING_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
408
405
|
export { labelThemes } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
409
406
|
export type { IFlatLabels } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.FlatLabels';
|
|
410
407
|
export type { IFloatingLabels } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.FloatingLabels';
|
|
411
|
-
export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TFlatLabelOptions, TAddFloatingLabelOptions, TAddFlatLabelOptions, TLabelAllLocationCommonOptions, TFloatingLabelAllLocationsOptions, TFlatLabelAllLocationsOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance, CAMERA_EVENT_PAYLOAD, TGetPolygonsAtCoordinateOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
408
|
+
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 } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
412
409
|
export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
413
410
|
export type { IDirectionsResult, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
414
411
|
export type { TGetVenueBundleOptions, TGetVenueOptions, TMappedinDirective, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
@@ -515,7 +512,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src' {
|
|
|
515
512
|
export type { TMiMiniMapProps } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniMap';
|
|
516
513
|
export type { MapViewStore } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store';
|
|
517
514
|
export { getVenue, getVenueBundle } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
518
|
-
export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
515
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
519
516
|
export { STATE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
520
517
|
export { COLLISION_RANKING_TIERS, MARKER_ANCHOR, E_BLUEDOT_STATE, MappedinCoordinate, labelThemes, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_STATE_REASON, MAP_RENDER_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
521
518
|
export type { TSerializableJourneyOptions, TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
@@ -1164,8 +1161,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1164
1161
|
};
|
|
1165
1162
|
export type { default as BlueDotLayer } from '@mappedin/react-native-sdk/core/packages/renderer/layers/BlueDot';
|
|
1166
1163
|
export type { default as JourneyLayer } from '@mappedin/react-native-sdk/core/packages/renderer/layers/Journey';
|
|
1167
|
-
export type { FlatLabel as TFlatLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.LabelAtlas';
|
|
1168
|
-
export type { default as TFloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.FloatingLabel';
|
|
1169
1164
|
}
|
|
1170
1165
|
|
|
1171
1166
|
declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
@@ -1262,7 +1257,8 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1262
1257
|
shouldPopulateBundledImagesAsBlobs?: boolean;
|
|
1263
1258
|
};
|
|
1264
1259
|
/**
|
|
1265
|
-
*
|
|
1260
|
+
* @deprecated
|
|
1261
|
+
* Fetching an offline Venue bundle
|
|
1266
1262
|
* It is possible to download the venue bundle with all assets built in, which allows for caching/offline solutions.
|
|
1267
1263
|
* Note 1: This requires enabling from Mappedin's Customer Solutions team.
|
|
1268
1264
|
* Note 2: This may behave a lot slower for large venues, especially those with many images. We are actively working on improving load times.
|
|
@@ -1316,10 +1312,15 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums'
|
|
|
1316
1312
|
SUCCESS = 0
|
|
1317
1313
|
}
|
|
1318
1314
|
export enum COLLISION_RANKING_TIERS {
|
|
1315
|
+
/** @internal */
|
|
1319
1316
|
OPTIONAL_MINIMUM = 0,
|
|
1317
|
+
/** @internal */
|
|
1320
1318
|
OPTIONAL_MAXIMUM = 1,
|
|
1321
1319
|
MEDIUM = 2,
|
|
1322
1320
|
HIGH = 3,
|
|
1321
|
+
/**
|
|
1322
|
+
* Always display collider, regardless of collisions
|
|
1323
|
+
*/
|
|
1323
1324
|
ALWAYS_VISIBLE = 4
|
|
1324
1325
|
}
|
|
1325
1326
|
export enum E_BLUEDOT_STATE_REASON {
|
|
@@ -1434,7 +1435,13 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums'
|
|
|
1434
1435
|
MAP_CHANGED = "MAP_CHANGED"
|
|
1435
1436
|
}
|
|
1436
1437
|
export enum E_BLUEDOT_EVENT {
|
|
1438
|
+
/**
|
|
1439
|
+
* Emitted when the BlueDot position changes
|
|
1440
|
+
*/
|
|
1437
1441
|
POSITION_UPDATE = "POSITION_UPDATE",
|
|
1442
|
+
/**
|
|
1443
|
+
* Emitted when the BlueDot state changes
|
|
1444
|
+
*/
|
|
1438
1445
|
STATE_CHANGE = "STATE_CHANGE"
|
|
1439
1446
|
}
|
|
1440
1447
|
export enum E_CAMERA_EVENT {
|
|
@@ -1617,8 +1624,17 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/Camera' {
|
|
|
1617
1624
|
safeAreaInsets?: TSafeAreaInsets;
|
|
1618
1625
|
};
|
|
1619
1626
|
export type TCameraTransform = {
|
|
1627
|
+
/**
|
|
1628
|
+
* Zoom = distance in meters from Camera to target
|
|
1629
|
+
*/
|
|
1620
1630
|
zoom?: number;
|
|
1631
|
+
/**
|
|
1632
|
+
* Tilt in radians
|
|
1633
|
+
*/
|
|
1621
1634
|
tilt?: number;
|
|
1635
|
+
/**
|
|
1636
|
+
* Rotation in radians from north
|
|
1637
|
+
*/
|
|
1622
1638
|
rotation?: number;
|
|
1623
1639
|
position?: MappedinCoordinate | MappedinNode;
|
|
1624
1640
|
};
|
|
@@ -3551,76 +3567,6 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/layers/Journey
|
|
|
3551
3567
|
export default JourneyLayer;
|
|
3552
3568
|
}
|
|
3553
3569
|
|
|
3554
|
-
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.LabelAtlas' {
|
|
3555
|
-
export namespace DEFAULT_LABEL_SIZING {
|
|
3556
|
-
const MARGIN: number;
|
|
3557
|
-
const HEIGHT_MARGIN: number;
|
|
3558
|
-
const SIZE: number;
|
|
3559
|
-
}
|
|
3560
|
-
export class Atlas {
|
|
3561
|
-
layers: any[];
|
|
3562
|
-
canvas: HTMLCanvasElement;
|
|
3563
|
-
context: CanvasRenderingContext2D | null;
|
|
3564
|
-
addLabel(map: any, lines: any, font: any, size: any, scope: any, pixelsPerScale: any): Label | undefined;
|
|
3565
|
-
removeLayer(layer: any): void;
|
|
3566
|
-
measure(text: any, font: any, size: any): TextMetrics;
|
|
3567
|
-
onWebGLContextRestored(): void;
|
|
3568
|
-
dispose(): void;
|
|
3569
|
-
}
|
|
3570
|
-
export class FlatLabel {
|
|
3571
|
-
constructor(options: any, venue: any, mapObject: any, DEFAULT_FONT: any, polygonMeshesById: any, textLabelsByPolygonId: any, mapView: any, scope: any, atlas: any);
|
|
3572
|
-
id: any;
|
|
3573
|
-
text: any;
|
|
3574
|
-
stateText: string;
|
|
3575
|
-
fullText: any;
|
|
3576
|
-
font: any;
|
|
3577
|
-
atlas: any;
|
|
3578
|
-
canvasBounds: any;
|
|
3579
|
-
mapScale: any;
|
|
3580
|
-
margin: number;
|
|
3581
|
-
heightMargin: number;
|
|
3582
|
-
scaleMin: any;
|
|
3583
|
-
scaleStep: any;
|
|
3584
|
-
multiline: any;
|
|
3585
|
-
height: number | null;
|
|
3586
|
-
polygonMeshesById: any;
|
|
3587
|
-
polyId: any;
|
|
3588
|
-
map: any;
|
|
3589
|
-
color: any;
|
|
3590
|
-
baseColor: any;
|
|
3591
|
-
hideOnCreate: boolean;
|
|
3592
|
-
hoverLabelText: any;
|
|
3593
|
-
fontSize: number;
|
|
3594
|
-
hoverLabelMode: any;
|
|
3595
|
-
hoverLabelClass: any;
|
|
3596
|
-
showHoverLabel: boolean;
|
|
3597
|
-
hoverIfLabelFails: boolean;
|
|
3598
|
-
textLabelsByPolygonId: any;
|
|
3599
|
-
create(): void;
|
|
3600
|
-
invalid: boolean | undefined;
|
|
3601
|
-
label: any;
|
|
3602
|
-
created: boolean | undefined;
|
|
3603
|
-
flipIfNeeded(cameraAngle: any): void;
|
|
3604
|
-
removeSelf(bulk: any): void;
|
|
3605
|
-
doNotCreate: boolean | undefined;
|
|
3606
|
-
setColor(textColor: any): void;
|
|
3607
|
-
clearColor(): void;
|
|
3608
|
-
hide(): void;
|
|
3609
|
-
show(): void;
|
|
3610
|
-
toString(): any;
|
|
3611
|
-
}
|
|
3612
|
-
class Label {
|
|
3613
|
-
x: number;
|
|
3614
|
-
y: number;
|
|
3615
|
-
width: number;
|
|
3616
|
-
height: number;
|
|
3617
|
-
layer: any;
|
|
3618
|
-
index: any;
|
|
3619
|
-
layout(map: any, origin: any, size: any, rotation: any, uv: any, color: any): void;
|
|
3620
|
-
}
|
|
3621
|
-
export {};
|
|
3622
|
-
}
|
|
3623
|
-
|
|
3624
3570
|
declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.types' {
|
|
3625
3571
|
export type TGetVenueOptions = {
|
|
3626
3572
|
accessToken?: string;
|
|
@@ -5405,7 +5351,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-s
|
|
|
5405
5351
|
on<EVENT_NAME extends EVENT>(eventName: EVENT_NAME, fn: (payload: EVENT_PAYLOAD[EVENT_NAME] extends {
|
|
5406
5352
|
data: null;
|
|
5407
5353
|
} ? EVENT_PAYLOAD[EVENT_NAME]['data'] : EVENT_PAYLOAD[EVENT_NAME]) => void): void;
|
|
5408
|
-
off<EVENT_NAME extends
|
|
5354
|
+
off<EVENT_NAME extends EVENT>(eventName: EVENT_NAME, fn: (payload: EVENT_PAYLOAD[EVENT_NAME]) => void): void;
|
|
5409
5355
|
/**
|
|
5410
5356
|
* @private
|
|
5411
5357
|
*/
|
|
@@ -5450,16 +5396,22 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
5450
5396
|
export { COLLISION_RANKING_TIERS, STATE, E_SDK_EVENT, E_BLUEDOT_STATE_REASON, E_BLUEDOT_MARKER_STATE, E_BLUEDOT_EVENT, E_BLUEDOT_STATE, E_CAMERA_EVENT, E_CAMERA_DIRECTION, SAFE_AREA_INSET_TYPE, ANIMATION_TWEENS, CAMERA_EASING_MODE } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
5451
5397
|
export { getVenue, getVenueBundle, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, PositionUpdater, MappedinDestinationSet, MARKER_ANCHOR, labelThemes };
|
|
5452
5398
|
import DefaultAssetManager from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.AssetManager';
|
|
5399
|
+
/**
|
|
5400
|
+
* @internal
|
|
5401
|
+
*/
|
|
5453
5402
|
const setAssetManager: <T extends DefaultAssetManager>(am: T) => void;
|
|
5403
|
+
export {
|
|
5454
5404
|
/**
|
|
5455
5405
|
* @internal
|
|
5456
5406
|
*/
|
|
5457
|
-
|
|
5407
|
+
setAssetManager,
|
|
5408
|
+
/**
|
|
5409
|
+
* @internal
|
|
5410
|
+
*/
|
|
5411
|
+
DefaultAssetManager as AssetManager };
|
|
5458
5412
|
export type { TMappedinDirective } from '@mappedin/react-native-sdk/core/packages/get-venue/MappedinDirections';
|
|
5459
5413
|
export type { TMapViewOptions, TMappedinInitializeOptions, TJourneyOptions };
|
|
5460
5414
|
export type { TBlueDotPositionUpdate, TBlueDotStateChange, TEnableBlueDotOptions } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
5461
|
-
import FloatingLabel from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.FloatingLabel';
|
|
5462
|
-
export type { FloatingLabel };
|
|
5463
5415
|
export * from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
5464
5416
|
export type { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/MapView';
|
|
5465
5417
|
export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraAnimationOptions, default as Camera } from '@mappedin/react-native-sdk/core/packages/renderer/Camera';
|
|
@@ -6596,6 +6548,76 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.Anal
|
|
|
6596
6548
|
export default Analytics;
|
|
6597
6549
|
}
|
|
6598
6550
|
|
|
6551
|
+
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.LabelAtlas' {
|
|
6552
|
+
export namespace DEFAULT_LABEL_SIZING {
|
|
6553
|
+
const MARGIN: number;
|
|
6554
|
+
const HEIGHT_MARGIN: number;
|
|
6555
|
+
const SIZE: number;
|
|
6556
|
+
}
|
|
6557
|
+
export class Atlas {
|
|
6558
|
+
layers: any[];
|
|
6559
|
+
canvas: HTMLCanvasElement;
|
|
6560
|
+
context: CanvasRenderingContext2D | null;
|
|
6561
|
+
addLabel(map: any, lines: any, font: any, size: any, scope: any, pixelsPerScale: any): Label | undefined;
|
|
6562
|
+
removeLayer(layer: any): void;
|
|
6563
|
+
measure(text: any, font: any, size: any): TextMetrics;
|
|
6564
|
+
onWebGLContextRestored(): void;
|
|
6565
|
+
dispose(): void;
|
|
6566
|
+
}
|
|
6567
|
+
export class FlatLabel {
|
|
6568
|
+
constructor(options: any, venue: any, mapObject: any, DEFAULT_FONT: any, polygonMeshesById: any, textLabelsByPolygonId: any, mapView: any, scope: any, atlas: any);
|
|
6569
|
+
id: any;
|
|
6570
|
+
text: any;
|
|
6571
|
+
stateText: string;
|
|
6572
|
+
fullText: any;
|
|
6573
|
+
font: any;
|
|
6574
|
+
atlas: any;
|
|
6575
|
+
canvasBounds: any;
|
|
6576
|
+
mapScale: any;
|
|
6577
|
+
margin: number;
|
|
6578
|
+
heightMargin: number;
|
|
6579
|
+
scaleMin: any;
|
|
6580
|
+
scaleStep: any;
|
|
6581
|
+
multiline: any;
|
|
6582
|
+
height: number | null;
|
|
6583
|
+
polygonMeshesById: any;
|
|
6584
|
+
polyId: any;
|
|
6585
|
+
map: any;
|
|
6586
|
+
color: any;
|
|
6587
|
+
baseColor: any;
|
|
6588
|
+
hideOnCreate: boolean;
|
|
6589
|
+
hoverLabelText: any;
|
|
6590
|
+
fontSize: number;
|
|
6591
|
+
hoverLabelMode: any;
|
|
6592
|
+
hoverLabelClass: any;
|
|
6593
|
+
showHoverLabel: boolean;
|
|
6594
|
+
hoverIfLabelFails: boolean;
|
|
6595
|
+
textLabelsByPolygonId: any;
|
|
6596
|
+
create(): void;
|
|
6597
|
+
invalid: boolean | undefined;
|
|
6598
|
+
label: any;
|
|
6599
|
+
created: boolean | undefined;
|
|
6600
|
+
flipIfNeeded(cameraAngle: any): void;
|
|
6601
|
+
removeSelf(bulk: any): void;
|
|
6602
|
+
doNotCreate: boolean | undefined;
|
|
6603
|
+
setColor(textColor: any): void;
|
|
6604
|
+
clearColor(): void;
|
|
6605
|
+
hide(): void;
|
|
6606
|
+
show(): void;
|
|
6607
|
+
toString(): any;
|
|
6608
|
+
}
|
|
6609
|
+
class Label {
|
|
6610
|
+
x: number;
|
|
6611
|
+
y: number;
|
|
6612
|
+
width: number;
|
|
6613
|
+
height: number;
|
|
6614
|
+
layer: any;
|
|
6615
|
+
index: any;
|
|
6616
|
+
layout(map: any, origin: any, size: any, rotation: any, uv: any, color: any): void;
|
|
6617
|
+
}
|
|
6618
|
+
export {};
|
|
6619
|
+
}
|
|
6620
|
+
|
|
6599
6621
|
declare module '@mappedin/react-native-sdk/core/packages/navigator/Edge' {
|
|
6600
6622
|
import INode from '@mappedin/react-native-sdk/core/packages/navigator/interfaces/INode';
|
|
6601
6623
|
import IVortex from '@mappedin/react-native-sdk/core/packages/navigator/interfaces/IVortex';
|