@mappedin/react-native-sdk 5.24.0 → 5.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -187
- package/dist/{browser-TSV5BUWB.js → browser-XWV4W4OF.js} +1 -1
- package/dist/{chunk-RF7B7NAI.js → chunk-6BQ6SPET.js} +1 -1
- package/dist/index.d.ts +346 -179
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
// ../@tweenjs/tween.js
|
|
9
9
|
// ../minisearch
|
|
10
10
|
// ../geojson
|
|
11
|
-
// ../n8ao
|
|
12
|
-
// ../postprocessing
|
|
13
11
|
|
|
14
12
|
declare module '@mappedin/react-native-sdk' {
|
|
15
13
|
export { MiMapView } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView';
|
|
@@ -18,7 +16,7 @@ declare module '@mappedin/react-native-sdk' {
|
|
|
18
16
|
export type { TMiMiniMapProps } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniMap';
|
|
19
17
|
export type { MapViewStore } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store';
|
|
20
18
|
export { getVenue, getVenueBundle } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
21
|
-
export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
19
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TGetVenueMakerOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
22
20
|
export { STATE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
23
21
|
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';
|
|
24
22
|
export type { TSerializableJourneyOptions, TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
@@ -28,7 +26,7 @@ declare module '@mappedin/react-native-sdk' {
|
|
|
28
26
|
export type TEnableBlueDotOptions = Omit<TEnableBlueDotOptionsBase, 'positionUpdater'>;
|
|
29
27
|
export type TLabelAllLocationCommonOptions = Omit<TLabelAllLocationCommonOptionsBase, 'sortFunction' | 'translationMap'>;
|
|
30
28
|
export type { TMapViewRNOptions, TCameraChange } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
31
|
-
export type { TMiMapViewVenueOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
29
|
+
export type { TMiMapViewVenueOptions, TMiMapViewVenueMakerOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
32
30
|
export type { IDirectionsResult, MappedinDirections, TMappedinDirective, IFlatLabels, TFlatLabelAllLocationsOptions, IFloatingLabels, TFloatingLabelAllLocationsOptions, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
33
31
|
export type { TShowVenueOptions, E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
34
32
|
export { ERROR, ERROR_MESSAGES } from '@mappedin/react-native-sdk/wrappers/common/errors';
|
|
@@ -180,7 +178,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
180
178
|
import { IFlatLabels, IFloatingLabels, TGetPolygonsAtCoordinateOptions, STATE, Mappedin, MappedinNode, MappedinMap, MappedinLocation, MappedinDirections, MappedinCategory, MappedinPolygon, TGetVenueOptions, TShowVenueOptions, MappedinCoordinate, MappedinDestinationSet, TCreateMarkerOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
181
179
|
import { RNMappedinController } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MappedinController';
|
|
182
180
|
import { TReactNativeFlatLabelAllLocations, TReactNativeFlatLabelAllLocationsLegacy, TSerializableJourneyOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
183
|
-
import type { TGeolocationObject, TEnableBlueDotOptions, TPathOptions, TLabelAllLocationFloatingLabelOptions, TMappedinOfflineSearchOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
181
|
+
import type { TGeolocationObject, TEnableBlueDotOptions, TPathOptions, TLabelAllLocationFloatingLabelOptions, TMappedinOfflineSearchOptions, TGetVenueMakerOptions } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
184
182
|
import { TCameraManager } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
185
183
|
import { TAnimationOptions, TCreateTooltipCommonOptions, TCreateTooltipOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
186
184
|
export class MapViewStore extends RNMappedinController {
|
|
@@ -198,7 +196,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapVi
|
|
|
198
196
|
/**
|
|
199
197
|
* @hidden
|
|
200
198
|
*/
|
|
201
|
-
loadVenue(options: TGetVenueOptions, showVenueOptions: TShowVenueOptions & {
|
|
199
|
+
loadVenue(options: TGetVenueOptions | TGetVenueMakerOptions, showVenueOptions: TShowVenueOptions & {
|
|
202
200
|
prepareSearch?: boolean;
|
|
203
201
|
searchOptions?: TMappedinOfflineSearchOptions;
|
|
204
202
|
}): Promise<unknown>;
|
|
@@ -456,7 +454,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/index.rn' {
|
|
|
456
454
|
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';
|
|
457
455
|
export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
458
456
|
export type { IDirectionsResult, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
459
|
-
export type { TGetVenueBundleOptions, TGetVenueOptions, TMappedinDirective, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
457
|
+
export type { TGetVenueBundleOptions, TGetVenueOptions, TGetVenueMakerOptions, TMappedinDirective, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
460
458
|
export { MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinDirections, MappedinNavigatable, MappedinCoordinate, MappedinRankings, OfflineSearch, MappedinCollectionType, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
461
459
|
export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraAnimationOptions, } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/CameraController';
|
|
462
460
|
}
|
|
@@ -560,7 +558,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src' {
|
|
|
560
558
|
export type { TMiMiniMapProps } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMiniMap';
|
|
561
559
|
export type { MapViewStore } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store';
|
|
562
560
|
export { getVenue, getVenueBundle } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
563
|
-
export type { TGetVenueOptions, TGetVenueBundleOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
561
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TGetVenueMakerOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TMapClickEvent, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
564
562
|
export { STATE } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
565
563
|
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';
|
|
566
564
|
export type { TSerializableJourneyOptions, TMiMapViewOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
@@ -570,7 +568,7 @@ declare module '@mappedin/react-native-sdk/wrappers/react-native-sdk/src' {
|
|
|
570
568
|
export type TEnableBlueDotOptions = Omit<TEnableBlueDotOptionsBase, 'positionUpdater'>;
|
|
571
569
|
export type TLabelAllLocationCommonOptions = Omit<TLabelAllLocationCommonOptionsBase, 'sortFunction' | 'translationMap'>;
|
|
572
570
|
export type { TMapViewRNOptions, TCameraChange } from '@mappedin/react-native-sdk/wrappers/react-native-sdk/src/MiMapView.store.types';
|
|
573
|
-
export type { TMiMapViewVenueOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
571
|
+
export type { TMiMapViewVenueOptions, TMiMapViewVenueMakerOptions } from '@mappedin/react-native-sdk/wrappers/common';
|
|
574
572
|
export type { IDirectionsResult, MappedinDirections, TMappedinDirective, IFlatLabels, TFlatLabelAllLocationsOptions, IFloatingLabels, TFloatingLabelAllLocationsOptions, } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
575
573
|
export type { TShowVenueOptions, E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
576
574
|
export { ERROR, ERROR_MESSAGES } from '@mappedin/react-native-sdk/wrappers/common/errors';
|
|
@@ -651,6 +649,10 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
651
649
|
accuracy: number;
|
|
652
650
|
floorLevel?: number;
|
|
653
651
|
};
|
|
652
|
+
/**
|
|
653
|
+
* override bluedot bearing
|
|
654
|
+
*/
|
|
655
|
+
bearing?: number;
|
|
654
656
|
};
|
|
655
657
|
export type { TBlueDotPositionUpdate, TBlueDotStateChange };
|
|
656
658
|
export type TPathOptions = {
|
|
@@ -1018,14 +1020,14 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1018
1020
|
* Enable ambient occlusion. Only works in single buffer mode and when device supports WebGL2.
|
|
1019
1021
|
* @default false
|
|
1020
1022
|
*/
|
|
1021
|
-
aoEnabled?:
|
|
1023
|
+
aoEnabled?: TAOConfiguration['aoEnabled'];
|
|
1022
1024
|
/**
|
|
1023
1025
|
* @experimental
|
|
1024
1026
|
*
|
|
1025
1027
|
* Change the quality of ambient occlusion in the scene. Greater quality means less noise, but worse performance.
|
|
1026
1028
|
* @default 'medium'
|
|
1027
1029
|
*/
|
|
1028
|
-
aoQuality?: '
|
|
1030
|
+
aoQuality?: TAOConfiguration['aoQuality'];
|
|
1029
1031
|
/**
|
|
1030
1032
|
* @experimental
|
|
1031
1033
|
*
|
|
@@ -1033,7 +1035,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1033
1035
|
* of visual artifacting.
|
|
1034
1036
|
* @default 'half'
|
|
1035
1037
|
*/
|
|
1036
|
-
aoResolution?: '
|
|
1038
|
+
aoResolution?: TAOConfiguration['aoResolution'];
|
|
1037
1039
|
/**
|
|
1038
1040
|
* Background color of the map as a string e.g. `#2e2e2e`.
|
|
1039
1041
|
*/
|
|
@@ -1046,7 +1048,14 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1046
1048
|
* Controls whether antialiasing is on. Defaults to `true`, as long as devicePixelRatio is 1. This is very expensive on high resolution screens.
|
|
1047
1049
|
* @default true
|
|
1048
1050
|
*/
|
|
1049
|
-
antialias?:
|
|
1051
|
+
antialias?: TAntialiasConfiguration['antialias'];
|
|
1052
|
+
/**
|
|
1053
|
+
* @experimental
|
|
1054
|
+
*
|
|
1055
|
+
* Controls the antialiasing quality. Greater quality means less artifacts(less aliasing), but worse performance.
|
|
1056
|
+
* @default 'medium'
|
|
1057
|
+
*/
|
|
1058
|
+
antialiasQuality?: TAntialiasConfiguration['antialiasQuality'];
|
|
1050
1059
|
disableHover?: boolean;
|
|
1051
1060
|
disableZoomOnMapSizeChange?: boolean;
|
|
1052
1061
|
loadOptions?: {
|
|
@@ -1487,6 +1496,28 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/MapView.types'
|
|
|
1487
1496
|
export type FloatingLabelClickEventPayload = {
|
|
1488
1497
|
text?: string;
|
|
1489
1498
|
} & Omit<ClickEventPayload, 'coordinate'>;
|
|
1499
|
+
export type TAntialiasConfiguration = {
|
|
1500
|
+
antialias?: boolean;
|
|
1501
|
+
antialiasQuality?: 'low' | 'medium' | 'high' | 'ultra';
|
|
1502
|
+
};
|
|
1503
|
+
export type TAOConfiguration = {
|
|
1504
|
+
aoEnabled?: boolean;
|
|
1505
|
+
aoQuality?: string;
|
|
1506
|
+
aoSamples?: number;
|
|
1507
|
+
aoRadius?: number;
|
|
1508
|
+
denoiseSamples?: number;
|
|
1509
|
+
denoiseRadius?: number;
|
|
1510
|
+
intensity?: number;
|
|
1511
|
+
denoiseIterations?: number;
|
|
1512
|
+
renderMode?: number;
|
|
1513
|
+
color?: string;
|
|
1514
|
+
gammaCorrection?: boolean;
|
|
1515
|
+
logarithmicDepthBuffer?: boolean;
|
|
1516
|
+
screenSpaceRadius?: boolean;
|
|
1517
|
+
aoResolution?: 'half' | 'full';
|
|
1518
|
+
depthAwareUpsampling?: boolean;
|
|
1519
|
+
autoRenderBeauty?: boolean;
|
|
1520
|
+
};
|
|
1490
1521
|
export type TMapClickEvent = {
|
|
1491
1522
|
/**
|
|
1492
1523
|
* The latitude / longitude of where the user clicked the map.
|
|
@@ -1695,6 +1726,21 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1695
1726
|
* @internal
|
|
1696
1727
|
*/
|
|
1697
1728
|
export function getVenueMVF(userOptions: TGetVenueMVFOptions): Promise<Mappedin>;
|
|
1729
|
+
/**
|
|
1730
|
+
* @experimental
|
|
1731
|
+
* Get venue data for a map created in Mappedin Maker.
|
|
1732
|
+
* @param userOptions
|
|
1733
|
+
* @example
|
|
1734
|
+
* ```ts
|
|
1735
|
+
* const mappedin = await getVenueMaker({
|
|
1736
|
+
* key: '<Your Maker Key>',
|
|
1737
|
+
* secret: '<Your Maker Secret>',
|
|
1738
|
+
* mapId: '<Your Maker Map ID>',
|
|
1739
|
+
* });
|
|
1740
|
+
* ```
|
|
1741
|
+
* @returns {@link Mappedin} object with data from the Maker map.
|
|
1742
|
+
*/
|
|
1743
|
+
export function getVenueMaker(userOptions: TGetVenueMakerOptions): Promise<Mappedin>;
|
|
1698
1744
|
/**
|
|
1699
1745
|
* Get Venue Data for a Mappedin Venue
|
|
1700
1746
|
*/
|
|
@@ -1713,6 +1759,7 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1713
1759
|
*/
|
|
1714
1760
|
shouldPopulateBundledImagesAsBlobs?: boolean;
|
|
1715
1761
|
};
|
|
1762
|
+
/** @internal */
|
|
1716
1763
|
export type TGetVenueMVFOptions = TGetVenueBundleOptions & {
|
|
1717
1764
|
onMVFParsed?: (mvf: ParsedMVF) => void;
|
|
1718
1765
|
/**
|
|
@@ -1720,6 +1767,42 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1720
1767
|
*/
|
|
1721
1768
|
override?: Partial<Pick<ParsedMVF, 'styles.json'>>;
|
|
1722
1769
|
};
|
|
1770
|
+
/**
|
|
1771
|
+
* @experimental
|
|
1772
|
+
* Options for {@link getVenueMaker}.
|
|
1773
|
+
*/
|
|
1774
|
+
export type TGetVenueMakerOptions = {
|
|
1775
|
+
/**
|
|
1776
|
+
* Maker auth key.
|
|
1777
|
+
*/
|
|
1778
|
+
key: string;
|
|
1779
|
+
/**
|
|
1780
|
+
* Maker auth secret.
|
|
1781
|
+
*/
|
|
1782
|
+
secret: string;
|
|
1783
|
+
/**
|
|
1784
|
+
* Maker map ID.
|
|
1785
|
+
*/
|
|
1786
|
+
mapId: string;
|
|
1787
|
+
/**
|
|
1788
|
+
* Optionally provide a custom base URL for the Maker map API request.
|
|
1789
|
+
*/
|
|
1790
|
+
bundleBaseUri?: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* Optionally provide a custom base URL for the Maker auth token request.
|
|
1793
|
+
*/
|
|
1794
|
+
authBaseUri?: string;
|
|
1795
|
+
/**
|
|
1796
|
+
* Whether or not to emit analytics events.
|
|
1797
|
+
* @default true
|
|
1798
|
+
*/
|
|
1799
|
+
emitAnalyticsEvents?: boolean;
|
|
1800
|
+
/**
|
|
1801
|
+
* Callback for when the Maker map data has been fetched and parsed as Mappedin Venue Format (MVF) data. This occurs before the {@link Mappedin} object is hydrated.
|
|
1802
|
+
* @param mvf Parsed MVF data.
|
|
1803
|
+
*/
|
|
1804
|
+
onMVFParsed?: (mvf: ParsedMVF) => void;
|
|
1805
|
+
};
|
|
1723
1806
|
/**
|
|
1724
1807
|
* @deprecated
|
|
1725
1808
|
* Fetching an offline Venue bundle
|
|
@@ -1756,6 +1839,15 @@ declare module '@mappedin/react-native-sdk/core/packages/get-venue' {
|
|
|
1756
1839
|
* @internal
|
|
1757
1840
|
*/
|
|
1758
1841
|
export function downloadVenueBundleMVF(options: TGetVenueBundleOptions): Promise<Uint8Array>;
|
|
1842
|
+
export function getMakerAccessToken(userOptions: TGetVenueMakerOptions): Promise<{
|
|
1843
|
+
access_token: string;
|
|
1844
|
+
expires_in: number;
|
|
1845
|
+
}>;
|
|
1846
|
+
export function getMakerBundleURL(userOptions: TGetVenueMakerOptions, token: string): Promise<{
|
|
1847
|
+
url: string;
|
|
1848
|
+
updated_at: string;
|
|
1849
|
+
}>;
|
|
1850
|
+
export function downloadMakerMVF(userOptions: TGetVenueMakerOptions): Promise<Uint8Array>;
|
|
1759
1851
|
/**
|
|
1760
1852
|
* Returns a {@link Mappedin} object hydrated with JSON data.
|
|
1761
1853
|
* @param {string|Object} mappedinSerializableData A JSON string or object representing a venue.
|
|
@@ -2137,11 +2229,33 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Fla
|
|
|
2137
2229
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/FloatingLabels' {
|
|
2138
2230
|
import { MappedinCoordinate, MappedinNode, MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
2139
2231
|
import { TAddFloatingLabelOptions, TFloatingLabelAllLocationsOptions, TFloatingLabelAppearance } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
2140
|
-
import FloatingLabelsController from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/FloatingLabelsController';
|
|
2232
|
+
import FloatingLabelsController, { type FloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/FloatingLabelsController';
|
|
2233
|
+
/**
|
|
2234
|
+
* Helper for handling a generic when the type could be either an array or promise.
|
|
2235
|
+
*
|
|
2236
|
+
* 1. If the type is an array, return the array.
|
|
2237
|
+
*
|
|
2238
|
+
* ```ts
|
|
2239
|
+
* type A = ArrayablePromise<string[]> // string[]\
|
|
2240
|
+
* ```
|
|
2241
|
+
*
|
|
2242
|
+
* 2. If the type is a void promise, return the void promise.
|
|
2243
|
+
*
|
|
2244
|
+
* ```ts
|
|
2245
|
+
* type B = ArrayablePromise<Promise<void>> // Promise<void>
|
|
2246
|
+
* ```
|
|
2247
|
+
*
|
|
2248
|
+
* 3. If the type is a non void promise, return the promise's resolved type wrapped in an array.
|
|
2249
|
+
*
|
|
2250
|
+
* ```ts
|
|
2251
|
+
* type C = ArrayablePromise<Promise<string>> // Promise<string[]>
|
|
2252
|
+
* ```
|
|
2253
|
+
*/
|
|
2254
|
+
type PromisableArray<T> = T extends Promise<infer G> ? Promise<G extends void ? void : G[]> : T[];
|
|
2141
2255
|
/**
|
|
2142
2256
|
* API to add and remove floating labels on the map.
|
|
2143
2257
|
*/
|
|
2144
|
-
export interface IFloatingLabels<T =
|
|
2258
|
+
export interface IFloatingLabels<T = FloatingLabel> {
|
|
2145
2259
|
/**
|
|
2146
2260
|
* Add a floating label to one entrance node of each polygons associated with all
|
|
2147
2261
|
* locations on the venue. The text is automatically determined based on location data.
|
|
@@ -2159,7 +2273,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2159
2273
|
* ```
|
|
2160
2274
|
* @param options
|
|
2161
2275
|
*/
|
|
2162
|
-
labelAllLocations(options?: TFloatingLabelAllLocationsOptions): T
|
|
2276
|
+
labelAllLocations(options?: TFloatingLabelAllLocationsOptions): PromisableArray<T>;
|
|
2163
2277
|
/**
|
|
2164
2278
|
* Add a floating label to a single polygon or node. When labelling a polygon,
|
|
2165
2279
|
* all entrance nodes of that polygon receive a label.
|
|
@@ -2174,7 +2288,9 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2174
2288
|
* @param text The text to display on the label.
|
|
2175
2289
|
* @param options
|
|
2176
2290
|
*/
|
|
2177
|
-
add(polygonOrNode: MappedinPolygon
|
|
2291
|
+
add(polygonOrNode: MappedinPolygon, text: string, options?: TAddFloatingLabelOptions): PromisableArray<T>;
|
|
2292
|
+
add(polygonOrNode: MappedinNode | MappedinCoordinate, text: string, options?: TAddFloatingLabelOptions): T;
|
|
2293
|
+
add(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, text: string, options?: TAddFloatingLabelOptions): PromisableArray<T> | T;
|
|
2178
2294
|
/**
|
|
2179
2295
|
* Update the appearance attributes of an already-existing label. If the
|
|
2180
2296
|
* provided polygon or node does not have a label already, this is a no-op.
|
|
@@ -2190,7 +2306,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2190
2306
|
* @param polygonOrNode The {@link MappedinPolygon} or {@link MappedinNode} or {@link MappedinCoordinate} with a label to update.
|
|
2191
2307
|
* @param appearance The new {@link TFlatLabelAppearance} settings to apply to the polygon's label.
|
|
2192
2308
|
*/
|
|
2193
|
-
setAppearance(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, appearance: TFloatingLabelAppearance):
|
|
2309
|
+
setAppearance(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, appearance: TFloatingLabelAppearance): void;
|
|
2194
2310
|
/**
|
|
2195
2311
|
* Remove a floating label from a single polygon or node.
|
|
2196
2312
|
*
|
|
@@ -2205,7 +2321,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2205
2321
|
*
|
|
2206
2322
|
* @param polygonOrNode The {@link MappedinPolygon} or {@link MappedinNode} or {@link MappedinCoordinate} with a label to remove.
|
|
2207
2323
|
*/
|
|
2208
|
-
remove(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate):
|
|
2324
|
+
remove(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
2209
2325
|
/**
|
|
2210
2326
|
* Remove all floating labels from the venue.
|
|
2211
2327
|
*
|
|
@@ -2219,7 +2335,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2219
2335
|
* mapView.FloatingLabels.removeAll();
|
|
2220
2336
|
* ```
|
|
2221
2337
|
*/
|
|
2222
|
-
removeAll():
|
|
2338
|
+
removeAll(): void;
|
|
2223
2339
|
/**
|
|
2224
2340
|
* Updates the priority of an existing floating label (or labels, in the case
|
|
2225
2341
|
* of a polygon). This controls whether it is preferred over other labels
|
|
@@ -2233,7 +2349,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2233
2349
|
*
|
|
2234
2350
|
* @param polygonOrNode The {@link MappedinPolygon} or {@link MappedinNode} or {@link MappedinCoordinate} with a label to update.
|
|
2235
2351
|
*/
|
|
2236
|
-
setPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, priority: number):
|
|
2352
|
+
setPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, priority: number): void;
|
|
2237
2353
|
/**
|
|
2238
2354
|
* Resets the priority of an existing floating label (or labels, in the case
|
|
2239
2355
|
* of a polygon)
|
|
@@ -2250,7 +2366,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2250
2366
|
*
|
|
2251
2367
|
* @param polygonOrNode The {@link MappedinPolygon} or {@link MappedinNode} or {@link MappedinCoordinate} with a label to update.
|
|
2252
2368
|
*/
|
|
2253
|
-
resetPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate):
|
|
2369
|
+
resetPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
2254
2370
|
}
|
|
2255
2371
|
export class FloatingLabels implements IFloatingLabels {
|
|
2256
2372
|
#private;
|
|
@@ -2258,14 +2374,16 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Flo
|
|
|
2258
2374
|
* @hidden
|
|
2259
2375
|
*/
|
|
2260
2376
|
constructor(controller: FloatingLabelsController);
|
|
2261
|
-
labelAllLocations(options?: TFloatingLabelAllLocationsOptions | undefined):
|
|
2262
|
-
add(polygonOrNode: MappedinPolygon
|
|
2377
|
+
labelAllLocations(options?: TFloatingLabelAllLocationsOptions | undefined): FloatingLabel[];
|
|
2378
|
+
add(polygonOrNode: MappedinPolygon, text: string, options?: TAddFloatingLabelOptions | undefined): FloatingLabel[];
|
|
2379
|
+
add(polygonOrNode: MappedinNode | MappedinCoordinate, text: string, options?: TAddFloatingLabelOptions | undefined): FloatingLabel;
|
|
2263
2380
|
setAppearance(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, appearance: TFloatingLabelAppearance): void;
|
|
2264
2381
|
remove(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
2265
2382
|
removeAll(): void;
|
|
2266
2383
|
setPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate, priority: number): void;
|
|
2267
2384
|
resetPriority(polygonOrNode: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
2268
2385
|
}
|
|
2386
|
+
export {};
|
|
2269
2387
|
}
|
|
2270
2388
|
|
|
2271
2389
|
declare module '@mappedin/react-native-sdk/core/packages/navigator' {
|
|
@@ -2473,6 +2591,8 @@ declare module '@mappedin/react-native-sdk/wrappers/common/events' {
|
|
|
2473
2591
|
CREATE_TOOLTIP = "CREATE_TOOLTIP",
|
|
2474
2592
|
CREATE_CUSTOM_TOOLTIP = "CREATE_CUSTOM_TOOLTIP",
|
|
2475
2593
|
REMOVE_TOOLTIP = "REMOVE_TOOLTIP",
|
|
2594
|
+
CHANGE_LANGUAGE = "CHANGE_LANGUAGE",
|
|
2595
|
+
GET_CURRENT_LANGUAGE = "GET_CURRENT_LANGUAGE",
|
|
2476
2596
|
/**
|
|
2477
2597
|
* Camera
|
|
2478
2598
|
*/
|
|
@@ -2593,7 +2713,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2593
2713
|
import { IDirectionsResult, MappedinMap, MappedinNode, TBlueDotPositionUpdate, TBlueDotStateChange, TGetVenueOptions, TCameraTransform, TAddFlatLabelOptions, TAddFloatingLabelOptions, TPathOptions, TShowVenueOptions, STATE, TGeolocationObject, TEnableBlueDotOptions, MappedinLocation, TFlatLabelAllLocationsOptions, TFloatingLabelAllLocationsOptions, TMappedinOfflineSearchOptions, TFocusOnCameraOptions, TCameraAnimationOptions, TGetPolygonsAtCoordinateOptions, E_CAMERA_DIRECTION, TFlatLabelAppearance, TFloatingLabelAppearance } from '@mappedin/react-native-sdk/core/packages/renderer/index.rn';
|
|
2594
2714
|
import { TFocusOnTargetsSerializable, TMiMapViewOptions, TSerializedCoordinate, TSerializedMap, TSerializableJourneyOptions, TSerializedLocation, TSerializedNode, TSerializedPolygon, TFloatingLabelClickEventPayloadSerialized, TColliderClickEventPayloadSerialized } from '@mappedin/react-native-sdk/wrappers/common/types';
|
|
2595
2715
|
import { BRIDGE_EVENT, EVENT, MINIMAP_EVENT, NATIVE_EVENT } from '@mappedin/react-native-sdk/wrappers/common';
|
|
2596
|
-
import { TAnimationOptions, TCreateTooltipCommonOptions, TCreateTooltipOptions } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
2716
|
+
import { TAnimationOptions, TCreateTooltipCommonOptions, TCreateTooltipOptions, TGetVenueMakerOptions } from '@mappedin/react-native-sdk/core/packages/renderer';
|
|
2597
2717
|
export type BRIDGE_EVENT_PAYLOADS = {
|
|
2598
2718
|
[BRIDGE_EVENT.REJECT]: any;
|
|
2599
2719
|
[BRIDGE_EVENT.RESOLVE]: any;
|
|
@@ -2612,11 +2732,11 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2612
2732
|
options: TMiMapViewOptions;
|
|
2613
2733
|
};
|
|
2614
2734
|
[MINIMAP_EVENT.LOAD_MINIMAP]: {
|
|
2615
|
-
options: TGetVenueOptions;
|
|
2735
|
+
options: TGetVenueOptions | TGetVenueMakerOptions;
|
|
2616
2736
|
};
|
|
2617
2737
|
[MINIMAP_EVENT.CACHE_IMAGE]: {
|
|
2618
2738
|
url?: string;
|
|
2619
|
-
options: TGetVenueOptions;
|
|
2739
|
+
options: TGetVenueOptions | TGetVenueMakerOptions;
|
|
2620
2740
|
locationId: MappedinLocation['id'];
|
|
2621
2741
|
polygonHighlightColor?: string;
|
|
2622
2742
|
focusOptions?: TFocusOnCameraOptions & TCameraAnimationOptions;
|
|
@@ -2682,7 +2802,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2682
2802
|
};
|
|
2683
2803
|
};
|
|
2684
2804
|
[EVENT.LOAD_VENUE]: {
|
|
2685
|
-
options: TGetVenueOptions & {
|
|
2805
|
+
options: (TGetVenueOptions | TGetVenueMakerOptions) & {
|
|
2686
2806
|
useBundle?: boolean;
|
|
2687
2807
|
};
|
|
2688
2808
|
showVenueOptions: TShowVenueOptions & {
|
|
@@ -2944,6 +3064,11 @@ declare module '@mappedin/react-native-sdk/wrappers/common/payloads' {
|
|
|
2944
3064
|
[EVENT.REMOVE_TOOLTIP]: {
|
|
2945
3065
|
tooltipId: string;
|
|
2946
3066
|
};
|
|
3067
|
+
[EVENT.CHANGE_LANGUAGE]: {
|
|
3068
|
+
language: string;
|
|
3069
|
+
cache: boolean;
|
|
3070
|
+
};
|
|
3071
|
+
[EVENT.GET_CURRENT_LANGUAGE]: null;
|
|
2947
3072
|
};
|
|
2948
3073
|
}
|
|
2949
3074
|
|
|
@@ -3017,7 +3142,38 @@ declare module '@mappedin/react-native-sdk/wrappers/common/types' {
|
|
|
3017
3142
|
language?: string;
|
|
3018
3143
|
emitAnalyticsEvents?: boolean;
|
|
3019
3144
|
};
|
|
3020
|
-
|
|
3145
|
+
/**
|
|
3146
|
+
* @experimental
|
|
3147
|
+
* Options for fetching a venue from Maker.
|
|
3148
|
+
*/
|
|
3149
|
+
export type TMiMapViewVenueMakerOptions = {
|
|
3150
|
+
/**
|
|
3151
|
+
* Maker auth key.
|
|
3152
|
+
*/
|
|
3153
|
+
key: string;
|
|
3154
|
+
/**
|
|
3155
|
+
* Maker auth secret.
|
|
3156
|
+
*/
|
|
3157
|
+
secret: string;
|
|
3158
|
+
/**
|
|
3159
|
+
* Maker map ID.
|
|
3160
|
+
*/
|
|
3161
|
+
mapId: string;
|
|
3162
|
+
/**
|
|
3163
|
+
* Optionally provide a custom base URL for the Maker map API request.
|
|
3164
|
+
*/
|
|
3165
|
+
bundleBaseUri?: string;
|
|
3166
|
+
/**
|
|
3167
|
+
* Optionally provide a custom base URL for the Maker auth token request.
|
|
3168
|
+
*/
|
|
3169
|
+
authBaseUri?: string;
|
|
3170
|
+
/**
|
|
3171
|
+
* Whether or not to emit analytics events.
|
|
3172
|
+
* @default true
|
|
3173
|
+
*/
|
|
3174
|
+
emitAnalyticsEvents?: boolean;
|
|
3175
|
+
};
|
|
3176
|
+
export type TMiMapViewOptions = TShowVenueOptions & (TMiMapViewVenueOptions | TMiMapViewVenueMakerOptions);
|
|
3021
3177
|
/**
|
|
3022
3178
|
* @deprecated Only used for the deprecated {@link LABEL_ALL_LOCATIONS} event
|
|
3023
3179
|
*/
|
|
@@ -3043,7 +3199,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/pub-sub' {
|
|
|
3043
3199
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/private/Core.interface' {
|
|
3044
3200
|
import { Color, Vector2, Vector3, Mesh } from 'three';
|
|
3045
3201
|
import type { TPadding, TGetPolygonsAtCoordinateOptions, TMapViewOptions, TileManager, BillboardManager, StackedMapsController, SmartCollisionEngine, OutdoorViewController, LayerController } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
3046
|
-
import { BlueDotController, CameraController, STATE, MappedinMap, Mappedin, MappedinCoordinate, MappedinPolygon, MappedinNode, changeListenerFn, RENDER, INTERNAL_EVENT_PAYLOAD, INTERNAL_EVENT, TaskScheduler, SceneManager, PubSub, FlatLabel, MapObject, PathsController, FloatingLabelsController, FlatLabelsController, PolygonColorsController, MarkersController, PolygonInteractionController, TooltipsController, PolygonStatesController, PolygonImagesController, ThreeDMarkersController, EventSystem } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
3202
|
+
import { BlueDotController, CameraController, STATE, MappedinMap, Mappedin, MappedinCoordinate, MappedinPolygon, MappedinNode, changeListenerFn, RENDER, INTERNAL_EVENT_PAYLOAD, INTERNAL_EVENT, TaskScheduler, SceneManager, PubSub, FlatLabel, MapObject, PathsController, FloatingLabelsController, FlatLabelsController, PolygonColorsController, MarkersController, PolygonInteractionController, TooltipsController, PolygonStatesController, PolygonImagesController, ThreeDMarkersController, ExportController, EventSystem } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
3047
3203
|
import Tween, { Easing } from '@tweenjs/tween.js';
|
|
3048
3204
|
import WatermarkController from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/WatermarkController';
|
|
3049
3205
|
import PolygonHoverColorsController from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/PolygonHoverColorsController';
|
|
@@ -3128,6 +3284,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/Core.i
|
|
|
3128
3284
|
billboardManager: BillboardManager;
|
|
3129
3285
|
stackedMaps: StackedMapsController;
|
|
3130
3286
|
outdoorViewController?: OutdoorViewController;
|
|
3287
|
+
exportController: ExportController;
|
|
3131
3288
|
watermark: WatermarkController;
|
|
3132
3289
|
layerController: LayerController;
|
|
3133
3290
|
state: STATE;
|
|
@@ -3369,14 +3526,14 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
3369
3526
|
LOAD_MINIMAP: {
|
|
3370
3527
|
msgID?: string;
|
|
3371
3528
|
data: {
|
|
3372
|
-
options: import("../react-native-sdk/src").TGetVenueOptions;
|
|
3529
|
+
options: import("../react-native-sdk/src").TGetVenueOptions | import("../react-native-sdk/src").TGetVenueMakerOptions;
|
|
3373
3530
|
};
|
|
3374
3531
|
};
|
|
3375
3532
|
CACHE_IMAGE: {
|
|
3376
3533
|
msgID?: string;
|
|
3377
3534
|
data: {
|
|
3378
3535
|
url?: string;
|
|
3379
|
-
options: import("../react-native-sdk/src").TGetVenueOptions;
|
|
3536
|
+
options: import("../react-native-sdk/src").TGetVenueOptions | import("../react-native-sdk/src").TGetVenueMakerOptions;
|
|
3380
3537
|
locationId: string;
|
|
3381
3538
|
polygonHighlightColor?: string;
|
|
3382
3539
|
focusOptions?: import("../react-native-sdk/src").TFocusOnCameraOptions & import("../../core/packages/renderer").TAnimationOptions;
|
|
@@ -3499,7 +3656,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
3499
3656
|
LOAD_VENUE: {
|
|
3500
3657
|
msgID?: string;
|
|
3501
3658
|
data: {
|
|
3502
|
-
options: import("../react-native-sdk/src").TGetVenueOptions & {
|
|
3659
|
+
options: (import("../react-native-sdk/src").TGetVenueOptions | import("../react-native-sdk/src").TGetVenueMakerOptions) & {
|
|
3503
3660
|
useBundle?: boolean;
|
|
3504
3661
|
};
|
|
3505
3662
|
showVenueOptions: import("../react-native-sdk/src").TShowVenueOptions & {
|
|
@@ -3928,6 +4085,17 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
|
|
|
3928
4085
|
tooltipId: string;
|
|
3929
4086
|
};
|
|
3930
4087
|
};
|
|
4088
|
+
CHANGE_LANGUAGE: {
|
|
4089
|
+
msgID?: string;
|
|
4090
|
+
data: {
|
|
4091
|
+
language: string;
|
|
4092
|
+
cache: boolean;
|
|
4093
|
+
};
|
|
4094
|
+
};
|
|
4095
|
+
GET_CURRENT_LANGUAGE: {
|
|
4096
|
+
msgID?: string;
|
|
4097
|
+
data: null;
|
|
4098
|
+
};
|
|
3931
4099
|
}>;
|
|
3932
4100
|
/**
|
|
3933
4101
|
* Message received from the other side of the bridge
|
|
@@ -4112,7 +4280,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4112
4280
|
};
|
|
4113
4281
|
};
|
|
4114
4282
|
export type TFloatingLabelOptionsInternal = {
|
|
4115
|
-
id
|
|
4283
|
+
id?: string;
|
|
4116
4284
|
position: TColliderPosition;
|
|
4117
4285
|
polygon?: MappedinPolygon;
|
|
4118
4286
|
mapId: string;
|
|
@@ -4128,6 +4296,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4128
4296
|
appearance?: TFloatingLabelAppearance;
|
|
4129
4297
|
createDespiteImage?: boolean;
|
|
4130
4298
|
layer?: string;
|
|
4299
|
+
interactive?: boolean;
|
|
4131
4300
|
};
|
|
4132
4301
|
enum PINVISIBILITY {
|
|
4133
4302
|
OPAQUE = 1,
|
|
@@ -4138,7 +4307,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4138
4307
|
CENTER = "center",
|
|
4139
4308
|
RIGHT = "right"
|
|
4140
4309
|
}
|
|
4141
|
-
class
|
|
4310
|
+
class InternalFloatingLabel extends BaseCollider implements ISmarterLabel {
|
|
4142
4311
|
#private;
|
|
4143
4312
|
lines: number;
|
|
4144
4313
|
contextConfigured: boolean;
|
|
@@ -4155,6 +4324,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4155
4324
|
appearance: TAppearanceFilledIn;
|
|
4156
4325
|
mapView: ICore;
|
|
4157
4326
|
position: TColliderPosition;
|
|
4327
|
+
options: TFloatingLabelOptionsInternal;
|
|
4158
4328
|
constructor(options: TFloatingLabelOptionsInternal, mapView: ICore);
|
|
4159
4329
|
enable(updateEngine?: boolean): void;
|
|
4160
4330
|
get totalTextBoxHeight(): number;
|
|
@@ -4175,7 +4345,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
4175
4345
|
get pinCanvasSize(): number;
|
|
4176
4346
|
draw(context: CanvasRenderingContext2D): void;
|
|
4177
4347
|
}
|
|
4178
|
-
export default
|
|
4348
|
+
export default InternalFloatingLabel;
|
|
4179
4349
|
}
|
|
4180
4350
|
|
|
4181
4351
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core' {
|
|
@@ -5983,34 +6153,70 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/contro
|
|
|
5983
6153
|
}
|
|
5984
6154
|
|
|
5985
6155
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/FloatingLabelsController' {
|
|
5986
|
-
import {
|
|
5987
|
-
import type { ICore, TFloatingLabelAllLocationsOptions, TAddFloatingLabelOptions,
|
|
5988
|
-
import {
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6156
|
+
import { InternalFloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
6157
|
+
import type { ICore, TFloatingLabelAllLocationsOptions, TAddFloatingLabelOptions, TFloatingLabelAppearance } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
6158
|
+
import { MappedinPolygon, MappedinCoordinate, MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6159
|
+
/**
|
|
6160
|
+
* A floating label that is attached to a node or coordinate on the map.
|
|
6161
|
+
*/
|
|
6162
|
+
export class FloatingLabel {
|
|
6163
|
+
#private;
|
|
6164
|
+
/**
|
|
6165
|
+
* @hidden
|
|
6166
|
+
* @internal
|
|
6167
|
+
*/
|
|
6168
|
+
constructor(internalFloatingLabel: InternalFloatingLabel);
|
|
6169
|
+
/**
|
|
6170
|
+
* The ID of this label.
|
|
6171
|
+
*/
|
|
6172
|
+
get id(): string;
|
|
6173
|
+
/**
|
|
6174
|
+
* The text of this label.
|
|
6175
|
+
*/
|
|
6176
|
+
get text(): string;
|
|
6177
|
+
/**
|
|
6178
|
+
* The {@link TFloatingLabelAppearance} options of this label with defaults.
|
|
6179
|
+
*/
|
|
6180
|
+
get appearance(): Required<TFloatingLabelAppearance>;
|
|
6181
|
+
/**
|
|
6182
|
+
* The {@link MappedinNode} or {@link MappedinCoordinate} that this label is attached to.
|
|
6183
|
+
*/
|
|
6184
|
+
get nodeOrCoordinate(): MappedinNode | MappedinCoordinate;
|
|
6185
|
+
/**
|
|
6186
|
+
* The collision rank of this label.
|
|
6187
|
+
*/
|
|
6188
|
+
get rank(): number;
|
|
6189
|
+
/**
|
|
6190
|
+
* @hidden
|
|
6191
|
+
* @internal
|
|
6192
|
+
*/
|
|
6193
|
+
__updateInstance(internalFloatingLabel: InternalFloatingLabel): void;
|
|
6194
|
+
/**
|
|
6195
|
+
* Object representation of this label.
|
|
6196
|
+
*/
|
|
6197
|
+
toJSON(): {
|
|
6198
|
+
id: string;
|
|
6199
|
+
text: string;
|
|
6200
|
+
appearance: Required<TFloatingLabelAppearance>;
|
|
6201
|
+
nodeOrCoordinate: any;
|
|
6202
|
+
rank: number;
|
|
6203
|
+
};
|
|
6204
|
+
}
|
|
6000
6205
|
class FloatingLabelsController {
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6206
|
+
#private;
|
|
6207
|
+
core: ICore;
|
|
6208
|
+
internalFloatingLabels: Record<string, InternalFloatingLabel>;
|
|
6209
|
+
internalFloatingLabelsByNodeOrCoordinate: WeakMap<MappedinNode | MappedinCoordinate, InternalFloatingLabel>;
|
|
6210
|
+
floatingLabels: Record<string, FloatingLabel>;
|
|
6211
|
+
constructor(core: ICore);
|
|
6212
|
+
addLabel(target: MappedinPolygon, text: string, options?: TAddFloatingLabelOptions): FloatingLabel[];
|
|
6213
|
+
addLabel(target: MappedinNode | MappedinCoordinate, text: string, options?: TAddFloatingLabelOptions): FloatingLabel;
|
|
6214
|
+
removeLabel(target: MappedinPolygon | MappedinNode | MappedinCoordinate, bulk?: boolean): void;
|
|
6215
|
+
setPriority(target: MappedinPolygon | MappedinNode | MappedinCoordinate, rank: number): void;
|
|
6216
|
+
resetPriority(target: MappedinPolygon | MappedinNode | MappedinCoordinate): void;
|
|
6217
|
+
removeAllLabels(): void;
|
|
6218
|
+
setAppearance(target: MappedinPolygon | MappedinNode | MappedinCoordinate, appearance: TFloatingLabelAppearance): void;
|
|
6219
|
+
labelAllLocations(options?: TFloatingLabelAllLocationsOptions): FloatingLabel[];
|
|
6014
6220
|
}
|
|
6015
6221
|
export default FloatingLabelsController;
|
|
6016
6222
|
}
|
|
@@ -6330,7 +6536,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal' {
|
|
|
6330
6536
|
export { Atlas, FlatLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.LabelAtlas.js';
|
|
6331
6537
|
export { default as HoverLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.HoverLabel';
|
|
6332
6538
|
export { default as BaseCollider } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.SmartCollider';
|
|
6333
|
-
export { default as
|
|
6539
|
+
export { default as InternalFloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.FloatingLabel';
|
|
6334
6540
|
export { default as HTMLCollider } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.HTMLCollider';
|
|
6335
6541
|
export { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/MarkersController';
|
|
6336
6542
|
export { default as SmartTooltip } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.SmartTooltip';
|
|
@@ -6368,6 +6574,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal' {
|
|
|
6368
6574
|
export { MultiBufferRenderer } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.Renderer';
|
|
6369
6575
|
export { JourneyController } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/JourneyController';
|
|
6370
6576
|
export { default as OutdoorViewController } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/OutdoorViewController';
|
|
6577
|
+
export { default as ExportController } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/ExportController';
|
|
6371
6578
|
export { default as WatermarkController } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/WatermarkController';
|
|
6372
6579
|
export { default as LayerController } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/LayerController';
|
|
6373
6580
|
/**
|
|
@@ -6400,12 +6607,13 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal' {
|
|
|
6400
6607
|
|
|
6401
6608
|
declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
6402
6609
|
import { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/public/MapView';
|
|
6403
|
-
import { getVenue, getVenueMVF, getVenueBundle, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions, hydrateVenue } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6610
|
+
import { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions, hydrateVenue } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6404
6611
|
import { PositionUpdater } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.BlueDot/Mappedin.BlueDot.core';
|
|
6405
6612
|
import type { TMapViewOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
6406
6613
|
export { E_SDK_LOG_LEVEL, setLoggerLevel } from '@mappedin/react-native-sdk/core/common/Mappedin.Logger';
|
|
6407
6614
|
export type { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/MarkersController';
|
|
6408
6615
|
export type { Path } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/PathsController';
|
|
6616
|
+
export type { FloatingLabel } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/FloatingLabelsController';
|
|
6409
6617
|
export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
6410
6618
|
export type { IDirectionsResult, TSimplifyDirectionsOptions, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES, } from '@mappedin/react-native-sdk/core/packages/navigator';
|
|
6411
6619
|
/**
|
|
@@ -6446,7 +6654,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
6446
6654
|
*/
|
|
6447
6655
|
function showVenue<T extends Mappedin>(el: HTMLElement, venue: T, options?: TMapViewOptions): Promise<MapView>;
|
|
6448
6656
|
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, STACKED_MAPS_STATE, MARKER_ANCHOR, GEOLOCATION_STATUS, E_MAP_CHANGED_REASON, } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
6449
|
-
export { getVenue, getVenueMVF, getVenueBundle, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, hydrateVenue, PositionUpdater, MappedinDestinationSet, };
|
|
6657
|
+
export { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, hydrateVenue, PositionUpdater, MappedinDestinationSet, };
|
|
6450
6658
|
import DefaultAssetManager from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.AssetManager';
|
|
6451
6659
|
import { TTileManagerOptions } from '@mappedin/react-native-sdk/core/packages/renderer/internal/outdoor-context/Mappedin.TileManager';
|
|
6452
6660
|
import { TShowWatermarkOptions } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/WatermarkController';
|
|
@@ -6460,7 +6668,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer' {
|
|
|
6460
6668
|
export * from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
6461
6669
|
export type { MapView } from '@mappedin/react-native-sdk/core/packages/renderer/public/MapView';
|
|
6462
6670
|
export type { TSafeAreaInsets, TCameraTargets, TFocusOnCameraOptions, TCameraTransform, TCameraInteractionsSetOptions, TCameraAnimationOptions, default as CameraController, } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/CameraController';
|
|
6463
|
-
export type { TGetVenueOptions, TGetVenueBundleOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, TDirectionToOptions, TPicture, TImage, TColor, TGalleryImage, TOpeningHours, TPhone, TSiblingGroup, TSocial, TState, TGeoReference, TPolygonRanking, TOperationHoursMap, TAccessors, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6671
|
+
export type { TGetVenueOptions, TGetVenueBundleOptions, TGetVenueMVFOptions, TGetVenueMakerOptions, TShowVenueOptions, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, TDirectionToOptions, TPicture, TImage, TColor, TGalleryImage, TOpeningHours, TPhone, TSiblingGroup, TSocial, TState, TGeoReference, TPolygonRanking, TOperationHoursMap, TAccessors, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6464
6672
|
export { Mappedin, MappedinDirections, MappedinLocation, MappedinPolygon, MappedinNode, MappedinCategory, MappedinMap, MappedinEvent, MappedinMapGroup, MappedinVenue, MappedinVortex, MappedinRankings, MappedinNavigatable, MappedinCoordinate, OfflineSearch, MAP_RENDER_MODE, setFetchFn, MappedinCollectionType, MappedinLocationState, } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
6465
6673
|
/**
|
|
6466
6674
|
* Export this only so our internal pre-built products can use it. We don't want to document it for external developers.
|
|
@@ -6586,7 +6794,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-s
|
|
|
6586
6794
|
oldValue: any;
|
|
6587
6795
|
newValue: any;
|
|
6588
6796
|
};
|
|
6589
|
-
type TListenerFn = (data: TChangeEventData) => void;
|
|
6797
|
+
type TListenerFn = (data: TChangeEventData | any) => void;
|
|
6590
6798
|
export interface IPubSub {
|
|
6591
6799
|
publish: (eventName: any, data: TChangeEventData) => void;
|
|
6592
6800
|
on: (eventName: any, listenerFn: TListenerFn) => void;
|
|
@@ -8479,9 +8687,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/scene-
|
|
|
8479
8687
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.MapObject' {
|
|
8480
8688
|
import { Group, Box3, Mesh, MeshLambertMaterial, Object3D, Vector3 } from 'three';
|
|
8481
8689
|
import { FrameTaskGroup } from '@mappedin/react-native-sdk/core/packages/get-venue/Mappedin.TaskScheduler';
|
|
8482
|
-
import { Element, FlippableImage, MappedinMap, TaskScheduler, FlatLabel, SmartTooltip, ICore,
|
|
8690
|
+
import { Element, FlippableImage, MappedinMap, TaskScheduler, FlatLabel, SmartTooltip, ICore, InternalFloatingLabel, TCreateThreeDMarkerOptions } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
8483
8691
|
import { PubSub } from '@mappedin/react-native-sdk/core/packages/renderer/internal/pub-sub';
|
|
8484
|
-
import { TCreateThreeDMarkerOptions } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
8485
8692
|
/**
|
|
8486
8693
|
* Some preset priorities for tasks.
|
|
8487
8694
|
*/
|
|
@@ -8563,7 +8770,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
8563
8770
|
north: number;
|
|
8564
8771
|
mapScale: number | null;
|
|
8565
8772
|
object: Object3D;
|
|
8566
|
-
labels: Set<
|
|
8773
|
+
labels: Set<InternalFloatingLabel>;
|
|
8567
8774
|
tooltips: Set<SmartTooltip>;
|
|
8568
8775
|
markers: Set<unknown>;
|
|
8569
8776
|
box: Box3;
|
|
@@ -9520,8 +9727,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappe
|
|
|
9520
9727
|
import { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
9521
9728
|
import type { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
9522
9729
|
import { Rectangle, QuadTree } from '@mappedin/react-native-sdk/core/packages/renderer/internal/quad-tree';
|
|
9523
|
-
import {
|
|
9524
|
-
export type Collider = InternalMarker | SmartTooltip |
|
|
9730
|
+
import { InternalFloatingLabel, InternalMarker, SmartTooltip } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
9731
|
+
export type Collider = InternalMarker | SmartTooltip | InternalFloatingLabel;
|
|
9525
9732
|
export type ColliderQuadTree = QuadTree<{
|
|
9526
9733
|
collider: Collider;
|
|
9527
9734
|
}>;
|
|
@@ -9719,6 +9926,32 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/contro
|
|
|
9719
9926
|
export default StackedMapsController;
|
|
9720
9927
|
}
|
|
9721
9928
|
|
|
9929
|
+
declare module '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/ExportController' {
|
|
9930
|
+
import type { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
9931
|
+
/**
|
|
9932
|
+
* @hidden
|
|
9933
|
+
*/
|
|
9934
|
+
export type TGLTFExportOptions = {
|
|
9935
|
+
onlyVisible?: boolean;
|
|
9936
|
+
binary?: boolean;
|
|
9937
|
+
scale?: number;
|
|
9938
|
+
};
|
|
9939
|
+
/**
|
|
9940
|
+
* API for exporting the scene.
|
|
9941
|
+
*
|
|
9942
|
+
* @hidden
|
|
9943
|
+
*/
|
|
9944
|
+
export default class ExportController {
|
|
9945
|
+
#private;
|
|
9946
|
+
core: ICore;
|
|
9947
|
+
constructor(core: ICore);
|
|
9948
|
+
/**
|
|
9949
|
+
* Exports the current scene as a GLTF file.
|
|
9950
|
+
*/
|
|
9951
|
+
getCurrentSceneGLTF(userOptions: TGLTFExportOptions): Promise<Blob>;
|
|
9952
|
+
}
|
|
9953
|
+
}
|
|
9954
|
+
|
|
9722
9955
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/LayerController' {
|
|
9723
9956
|
import type { ICore } from '@mappedin/react-native-sdk/core/packages/renderer/private/Core.interface';
|
|
9724
9957
|
import { MappedinMap } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
@@ -9937,7 +10170,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/utils
|
|
|
9937
10170
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/public/MapView' {
|
|
9938
10171
|
import '../internal/Mappedin.css';
|
|
9939
10172
|
import { Mappedin, MappedinCoordinate, MappedinLocation, MappedinMap, MappedinNode, MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
9940
|
-
import { E_SDK_EVENT_PAYLOAD, TCreateMarkerOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TMapViewOptions, TPathOptions, TCreateTooltipCommonOptions, TCreateTooltipOptions } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
10173
|
+
import { E_SDK_EVENT_PAYLOAD, TCreateMarkerOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TMapViewOptions, TPathOptions, TCreateTooltipCommonOptions, TCreateTooltipOptions, TAOConfiguration, TAntialiasConfiguration } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.types';
|
|
9941
10174
|
import { E_SDK_EVENT, STATE } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
9942
10175
|
import SmartTooltip from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.SmartTooltip';
|
|
9943
10176
|
import { Marker } from '@mappedin/react-native-sdk/core/packages/renderer/private/controllers/MarkersController';
|
|
@@ -9950,11 +10183,11 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/MapView
|
|
|
9950
10183
|
import { Paths } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/Paths';
|
|
9951
10184
|
import { BlueDot } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/BlueDot';
|
|
9952
10185
|
import { Camera } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/Camera';
|
|
10186
|
+
import { Exporter } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/Exporter';
|
|
9953
10187
|
import { StackedMaps } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/StackedMaps';
|
|
9954
10188
|
import OutdoorView from '@mappedin/react-native-sdk/core/packages/renderer/public/api/OutdoorView';
|
|
9955
10189
|
import { Layers } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/Layers';
|
|
9956
10190
|
import { DynamicFocus } from '@mappedin/react-native-sdk/core/packages/renderer/public/api/DynamicFocus';
|
|
9957
|
-
import { TN8AOConfiguration } from '@mappedin/react-native-sdk/core/packages/renderer/internal/Mappedin.EffectComposer';
|
|
9958
10191
|
/**
|
|
9959
10192
|
* Primary API class for controlling and interacting with a 3D map.
|
|
9960
10193
|
*/
|
|
@@ -9972,10 +10205,16 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/MapView
|
|
|
9972
10205
|
* API for controlling flat labels.
|
|
9973
10206
|
*/
|
|
9974
10207
|
FlatLabels: IFlatLabels<void>;
|
|
10208
|
+
/**
|
|
10209
|
+
* API for exporting the scene.
|
|
10210
|
+
*
|
|
10211
|
+
* @hidden
|
|
10212
|
+
*/
|
|
10213
|
+
Exporter: Exporter;
|
|
9975
10214
|
/**
|
|
9976
10215
|
* API for controlling floating labels.
|
|
9977
10216
|
*/
|
|
9978
|
-
FloatingLabels: IFloatingLabels
|
|
10217
|
+
FloatingLabels: IFloatingLabels;
|
|
9979
10218
|
/**
|
|
9980
10219
|
* API for adding 2D markers.
|
|
9981
10220
|
*/
|
|
@@ -10568,7 +10807,8 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/public/MapView
|
|
|
10568
10807
|
* @returns A {@link MappedinCoordinate} on the given map.
|
|
10569
10808
|
*/
|
|
10570
10809
|
getMappedinCoordinateAtScreenCoordinate(x: number, y: number, map: MappedinMap): MappedinCoordinate;
|
|
10571
|
-
setAmbientOcclusionSettings(settings:
|
|
10810
|
+
setAmbientOcclusionSettings(settings: TAOConfiguration): void;
|
|
10811
|
+
setAntialiasSettings(settings: TAntialiasConfiguration): void;
|
|
10572
10812
|
/**
|
|
10573
10813
|
* Destroy the mapView instance and reclaim memory.
|
|
10574
10814
|
*
|
|
@@ -10656,7 +10896,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/Core'
|
|
|
10656
10896
|
import { Color, Mesh, PerspectiveCamera, Scene, Vector2 } from 'three';
|
|
10657
10897
|
import '../internal/object3D.destroy';
|
|
10658
10898
|
import type { TGetPolygonsAtCoordinateOptions, TMapViewOptions, TPadding, MappedinPolygon } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
10659
|
-
import { Renderer, TaskScheduler, MapManager, FlatLabel, SmartCollisionEngine, PubSub, INTERNAL_EVENT, INTERNAL_EVENT_PAYLOAD, MapView, STATE, MapObject, SceneManager, TileManager, PathsController, FloatingLabelsController, FlatLabelsController, PolygonColorsController, MarkersController, PolygonInteractionController, TooltipsController, PolygonStatesController, PolygonImagesController, ThreeDMarkersController, EventSystem, BlueDotController, CameraController, BillboardManager, StackedMapsController, OutdoorViewController, WatermarkController, PolygonHoverColorsController, LayerController } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
10899
|
+
import { Renderer, TaskScheduler, MapManager, FlatLabel, SmartCollisionEngine, PubSub, INTERNAL_EVENT, INTERNAL_EVENT_PAYLOAD, MapView, STATE, MapObject, SceneManager, TileManager, PathsController, FloatingLabelsController, FlatLabelsController, PolygonColorsController, MarkersController, PolygonInteractionController, TooltipsController, PolygonStatesController, PolygonImagesController, ThreeDMarkersController, EventSystem, BlueDotController, CameraController, BillboardManager, StackedMapsController, OutdoorViewController, WatermarkController, PolygonHoverColorsController, ExportController, LayerController } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
10660
10900
|
import { Mappedin as IMappedin, MappedinCoordinate, MappedinMap, MappedinNode } from '@mappedin/react-native-sdk/core/packages/get-venue';
|
|
10661
10901
|
import { E_MAP_CHANGED_REASON } from '@mappedin/react-native-sdk/core/packages/renderer/MapView.enums';
|
|
10662
10902
|
export const raycaster: any;
|
|
@@ -10700,6 +10940,7 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/private/Core'
|
|
|
10700
10940
|
blueDot: BlueDotController;
|
|
10701
10941
|
camera: CameraController;
|
|
10702
10942
|
outdoorViewController?: OutdoorViewController;
|
|
10943
|
+
exportController: ExportController;
|
|
10703
10944
|
watermark: WatermarkController;
|
|
10704
10945
|
layerController: LayerController;
|
|
10705
10946
|
options: TMapViewOptions & {
|
|
@@ -11695,109 +11936,35 @@ declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/quad-
|
|
|
11695
11936
|
export { QuadTree, Rectangle };
|
|
11696
11937
|
}
|
|
11697
11938
|
|
|
11698
|
-
declare module '@mappedin/react-native-sdk/core/packages/renderer/
|
|
11699
|
-
import {
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
inputBuffer: Uniform;
|
|
11708
|
-
staticSceneColorTexture: Uniform;
|
|
11709
|
-
staticSceneDepthTexture: Uniform;
|
|
11710
|
-
animatedSceneColorTexture: Uniform;
|
|
11711
|
-
animatedSceneDepthTexture: Uniform;
|
|
11712
|
-
alwaysOnTopSceneColorTexture: Uniform;
|
|
11713
|
-
alwaysOnBottomSceneColorTexture: Uniform;
|
|
11714
|
-
};
|
|
11715
|
-
type TAmbientOcclusionOptions = Pick<TMapViewOptions, 'aoQuality' | 'aoResolution' | 'aoEnabled'>;
|
|
11716
|
-
export type TPostProcessingOptions = TAmbientOcclusionOptions & {
|
|
11717
|
-
antialias?: boolean;
|
|
11718
|
-
compositeUniforms?: TCompositeUniforms;
|
|
11719
|
-
};
|
|
11720
|
-
export type TPass = (RenderPass | ShaderPass | EffectPass | AmbientOcclusionPass) & {
|
|
11721
|
-
name: string;
|
|
11939
|
+
declare module '@mappedin/react-native-sdk/core/packages/renderer/public/api/Exporter' {
|
|
11940
|
+
import { ExportController } from '@mappedin/react-native-sdk/core/packages/renderer/internal';
|
|
11941
|
+
/**
|
|
11942
|
+
* @hidden
|
|
11943
|
+
*/
|
|
11944
|
+
export type TGLTFExportOptions = {
|
|
11945
|
+
onlyVisible?: boolean;
|
|
11946
|
+
binary?: boolean;
|
|
11947
|
+
scale?: number;
|
|
11722
11948
|
};
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
export type TN8AOConfiguration = {
|
|
11742
|
-
aoSamples?: number;
|
|
11743
|
-
aoRadius?: number;
|
|
11744
|
-
denoiseSamples?: number;
|
|
11745
|
-
denoiseRadius?: number;
|
|
11746
|
-
intensity?: number;
|
|
11747
|
-
denoiseIterations?: number;
|
|
11748
|
-
renderMode?: number;
|
|
11749
|
-
color?: Color;
|
|
11750
|
-
gammaCorrection?: boolean;
|
|
11751
|
-
logarithmicDepthBuffer?: boolean;
|
|
11752
|
-
screenSpaceRadius?: boolean;
|
|
11753
|
-
halfRes?: boolean;
|
|
11754
|
-
depthAwareUpsampling?: boolean;
|
|
11755
|
-
autoRenderBeauty?: boolean;
|
|
11756
|
-
};
|
|
11757
|
-
export class CustomRenderPass extends Pass {
|
|
11758
|
-
effectComposer: EffectComposer;
|
|
11759
|
-
clearPass: ClearPass;
|
|
11760
|
-
constructor(effectComposer: any);
|
|
11761
|
-
render(renderer: any, inputBuffer: any, outputBuffer: any, deltaTime: any, stencilTest: any): void;
|
|
11762
|
-
initialize(_: any, __: any, frameBufferType: any): void;
|
|
11763
|
-
}
|
|
11764
|
-
export class AmbientOcclusionPass extends N8AOPostPass {
|
|
11765
|
-
effectComposer: EffectComposer;
|
|
11766
|
-
cachePass: ShaderPass;
|
|
11767
|
-
constructor(effectComposer: EffectComposer, configuration: TN8AOConfiguration);
|
|
11768
|
-
setAOConfiguration(configuration: TN8AOConfiguration): void;
|
|
11769
|
-
setQualityMode(aoQuality: any): void;
|
|
11770
|
-
get distanceFalloff(): number;
|
|
11771
|
-
initialize(renderer: any, alpha: any, frameBufferType: any): void;
|
|
11772
|
-
render(renderer: any, inputBuffer: any, outputBuffer: any, deltaTime: any, stencilTest: any): void;
|
|
11773
|
-
}
|
|
11774
|
-
export class CustomEffectPass extends EffectPass {
|
|
11775
|
-
constructor(camera?: PerspectiveCamera, ...effects: Effect[]);
|
|
11776
|
-
getEffects(): Effect[];
|
|
11777
|
-
setEffects(effects: Effect[]): void;
|
|
11778
|
-
}
|
|
11779
|
-
export class EffectComposer {
|
|
11780
|
-
options: TPostProcessingOptions;
|
|
11781
|
-
isWebGL2: boolean;
|
|
11782
|
-
effectComposer: PPEffectComposer;
|
|
11783
|
-
scene: Scene;
|
|
11784
|
-
camera: PerspectiveCamera;
|
|
11785
|
-
depthTexture?: Texture;
|
|
11786
|
-
renderer: any;
|
|
11787
|
-
ambientOcclusionPass: AmbientOcclusionPass | null;
|
|
11788
|
-
constructor(renderer: any, options: TPostProcessingOptions);
|
|
11789
|
-
get initialized(): boolean;
|
|
11790
|
-
init(scene: Scene, camera: PerspectiveCamera): void;
|
|
11791
|
-
render(): void;
|
|
11792
|
-
setSize(width: number, height: number): void;
|
|
11793
|
-
getPassByName(passName: EPass): TPass | null;
|
|
11794
|
-
getEffectByName(name: EEffect): Effect | null;
|
|
11795
|
-
setAmbientOcclusionConfiguration(configuration: TN8AOConfiguration): void;
|
|
11796
|
-
setPolygonOutlineColor(color: string): void;
|
|
11797
|
-
addSelectionForOutline(polygonMesh: Mesh): void;
|
|
11798
|
-
removeSelectionForOutline(polygonMesh: Mesh): void;
|
|
11949
|
+
/**
|
|
11950
|
+
* API to export the scene.
|
|
11951
|
+
*
|
|
11952
|
+
* @hidden
|
|
11953
|
+
*/
|
|
11954
|
+
export class Exporter {
|
|
11955
|
+
#private;
|
|
11956
|
+
/**
|
|
11957
|
+
* @hidden
|
|
11958
|
+
* @internal
|
|
11959
|
+
*/
|
|
11960
|
+
constructor(controller: ExportController);
|
|
11961
|
+
/**
|
|
11962
|
+
* Exports the current scene as a GLTF file.
|
|
11963
|
+
*
|
|
11964
|
+
* @hidden
|
|
11965
|
+
*/
|
|
11966
|
+
getCurrentSceneGLTF(userOptions: TGLTFExportOptions): Promise<Blob>;
|
|
11799
11967
|
}
|
|
11800
|
-
export {};
|
|
11801
11968
|
}
|
|
11802
11969
|
|
|
11803
11970
|
declare module '@mappedin/react-native-sdk/core/packages/renderer/internal/outdoor-context/Mappedin.Tile' {
|