@mappedin/mappedin-js 5.29.4 → 5.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/get-venue/index.d.ts +255 -15
- package/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/renderer/{GLTFExporter-WBR76LPH.js → GLTFExporter-E6XJBCL5.js} +1 -1
- package/lib/esm/renderer/{PerformanceController-LO3FX7PQ.js → PerformanceController-CPAYXKVK.js} +1 -1
- package/lib/esm/renderer/{browser-JMP5BYCM.js → browser-HGUFUVKK.js} +1 -1
- package/lib/esm/renderer/chunk-ELQY2PFM.js +1 -0
- package/lib/esm/renderer/{chunk-2URYF3VL.js → chunk-JULCUMFX.js} +1 -1
- package/lib/esm/renderer/index.d.ts +357 -230
- package/lib/esm/renderer/index.js +1 -1
- package/lib/esm/renderer/outdoor-context-BWFYJL4H.js +1 -0
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +4 -4
- package/lib/esm/renderer/chunk-4X2NC5DX.js +0 -1
- package/lib/esm/renderer/chunk-7N37G36W.js +0 -1
- package/lib/esm/renderer/outdoor-context-X4AP3O4S.js +0 -1
|
@@ -766,7 +766,7 @@ declare module '@mappedin/mappedin-js/renderer/public/MapView' {
|
|
|
766
766
|
}
|
|
767
767
|
|
|
768
768
|
declare module '@mappedin/mappedin-js/get-venue' {
|
|
769
|
-
import type { TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata } from '@mappedin/mappedin-js/get-venue/Mappedin.types';
|
|
769
|
+
import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata } from '@mappedin/mappedin-js/get-venue/Mappedin.types';
|
|
770
770
|
import { Mappedin } from '@mappedin/mappedin-js/get-venue/Mappedin';
|
|
771
771
|
import { defaultThings } from '@mappedin/mappedin-js/get-venue/default-things';
|
|
772
772
|
import { GET_VENUE_EVENT } from '@mappedin/mappedin-js/get-venue/internal';
|
|
@@ -813,7 +813,10 @@ declare module '@mappedin/mappedin-js/get-venue' {
|
|
|
813
813
|
import { MAP_RENDER_MODE } from '@mappedin/mappedin-js/get-venue/Mappedin.types';
|
|
814
814
|
import { ParsedMVF } from '@mappedin/mvf';
|
|
815
815
|
export { MAP_RENDER_MODE, GET_VENUE_EVENT };
|
|
816
|
-
|
|
816
|
+
/**
|
|
817
|
+
* @internal
|
|
818
|
+
*/
|
|
819
|
+
export function parseOptions<T extends TAllGetVenueOptions>(options: T): TGetVenueOptionsInternal<T>;
|
|
817
820
|
/**
|
|
818
821
|
* @internal
|
|
819
822
|
*/
|
|
@@ -915,7 +918,7 @@ declare module '@mappedin/mappedin-js/get-venue' {
|
|
|
915
918
|
* Download a bundle and return a Mappedin instance
|
|
916
919
|
* @internal
|
|
917
920
|
*/
|
|
918
|
-
export function downloadBundle(userOptions:
|
|
921
|
+
export function downloadBundle(userOptions: TGetVenueBundleOptions, { url, updated_at }: {
|
|
919
922
|
url: any;
|
|
920
923
|
updated_at: any;
|
|
921
924
|
}): Promise<Mappedin>;
|
|
@@ -1139,7 +1142,7 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1139
1142
|
import type { Path } from '@mappedin/mappedin-js/renderer/private/controllers/PathsController';
|
|
1140
1143
|
import { TOOLTIP_ANCHOR } from '@mappedin/mappedin-js/renderer/internal/Mappedin.SmartTooltip';
|
|
1141
1144
|
import { GEOLOCATION_STATUS, COLLISION_RANKING_TIERS, STATE, MARKER_ANCHOR, E_SDK_EVENT, E_BLUEDOT_EVENT, E_CAMERA_EVENT, MAP_RENDER_MODE, CAMERA_EASING_MODE, E_MAP_CHANGED_REASON } from '@mappedin/mappedin-js/renderer/MapView.enums';
|
|
1142
|
-
import {
|
|
1145
|
+
import { TOutdoorViewOptions, TOutdoorViewOptionsWithHeaders, TOutdoorViewOptionsWithAuthURL } from '@mappedin/mappedin-js/renderer/private/controllers/OutdoorViewController';
|
|
1143
1146
|
export type { TEnableBlueDotOptions, TFloatingLabelAppearance };
|
|
1144
1147
|
/** @internal */
|
|
1145
1148
|
export type Without<T, U> = {
|
|
@@ -1647,7 +1650,7 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1647
1650
|
* Requires `multiBufferRendering` to be enabled.
|
|
1648
1651
|
* @experimental
|
|
1649
1652
|
*/
|
|
1650
|
-
outdoorView?:
|
|
1653
|
+
outdoorView?: TOutdoorViewOptions & {
|
|
1651
1654
|
enabled?: boolean;
|
|
1652
1655
|
};
|
|
1653
1656
|
/**
|
|
@@ -1845,7 +1848,7 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1845
1848
|
* @experimental
|
|
1846
1849
|
* Enable outdoor view. Requires multi-buffer rendering to be enabled
|
|
1847
1850
|
*/
|
|
1848
|
-
outdoorView?:
|
|
1851
|
+
outdoorView?: TOutdoorViewOptions & {
|
|
1849
1852
|
enabled?: boolean;
|
|
1850
1853
|
};
|
|
1851
1854
|
/**
|
|
@@ -2350,6 +2353,7 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
2350
2353
|
*/
|
|
2351
2354
|
[E_CAMERA_EVENT.TILT_CHANGED]: number;
|
|
2352
2355
|
};
|
|
2356
|
+
export type { TOutdoorViewOptions, TOutdoorViewOptionsWithHeaders, TOutdoorViewOptionsWithAuthURL };
|
|
2353
2357
|
export type { default as BlueDotController } from '@mappedin/mappedin-js/renderer/private/controllers/BlueDotController';
|
|
2354
2358
|
export type { default as Journey } from '@mappedin/mappedin-js/renderer/public/api/Journey';
|
|
2355
2359
|
}
|
|
@@ -4762,6 +4766,14 @@ declare module '@mappedin/mappedin-js/renderer/public/api/Exporter' {
|
|
|
4762
4766
|
}
|
|
4763
4767
|
|
|
4764
4768
|
declare module '@mappedin/mappedin-js/get-venue/Mappedin.types' {
|
|
4769
|
+
import type { TGetVenueMVFOptions, TGetVenueMakerOptions } from '@mappedin/mappedin-js/get-venue';
|
|
4770
|
+
import type { DefaultThings } from '@mappedin/mappedin-js/get-venue/default-things';
|
|
4771
|
+
export type MergedThings = {
|
|
4772
|
+
[key in keyof DefaultThings]: string[];
|
|
4773
|
+
} & {
|
|
4774
|
+
[k: string]: string[];
|
|
4775
|
+
};
|
|
4776
|
+
export type ThingsOption = Partial<MergedThings>;
|
|
4765
4777
|
export type TGetVenueOptions = {
|
|
4766
4778
|
accessToken?: string;
|
|
4767
4779
|
clientId?: string;
|
|
@@ -4775,22 +4787,44 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.types' {
|
|
|
4775
4787
|
[key in string]: string;
|
|
4776
4788
|
};
|
|
4777
4789
|
venue: string;
|
|
4778
|
-
|
|
4790
|
+
/**
|
|
4791
|
+
* An object specifying additional properties to fetch for each data item.
|
|
4792
|
+
* Each key represents a data item (e.g., 'locations', 'nodes'), and the value is an array of strings indicating extra properties to be included.
|
|
4793
|
+
* @example
|
|
4794
|
+
* For example:
|
|
4795
|
+
* ```
|
|
4796
|
+
* getVenue({
|
|
4797
|
+
* venue: 'some-venue',
|
|
4798
|
+
* things: { vortexes: [ 'material' ]
|
|
4799
|
+
* }})
|
|
4800
|
+
* ```
|
|
4801
|
+
*/
|
|
4802
|
+
things?: ThingsOption;
|
|
4779
4803
|
useDraftData?: boolean;
|
|
4780
4804
|
platformString?: string;
|
|
4781
4805
|
emitAnalyticsEvents?: boolean;
|
|
4782
4806
|
secure?: boolean;
|
|
4783
4807
|
preloadMapGeometry?: boolean;
|
|
4784
4808
|
};
|
|
4785
|
-
export type
|
|
4809
|
+
export type TProcessedMVFOptions = TGetVenueMakerOptions & {
|
|
4810
|
+
emitAnalyticsEvents: boolean;
|
|
4811
|
+
clientId: string;
|
|
4812
|
+
clientSecret: string;
|
|
4813
|
+
venue: string;
|
|
4814
|
+
};
|
|
4815
|
+
export type TAllGetVenueOptions = TGetVenueOptions | TGetVenueMVFOptions | (TProcessedMVFOptions & {
|
|
4816
|
+
perspective?: string;
|
|
4817
|
+
});
|
|
4818
|
+
export type TGetVenueOptionsInternal<T extends TAllGetVenueOptions> = Omit<T & {
|
|
4786
4819
|
baseUrl?: string;
|
|
4787
4820
|
supplementaryUrl?: string;
|
|
4788
4821
|
noAuth?: boolean;
|
|
4789
4822
|
includeHidden?: boolean;
|
|
4790
4823
|
apiGateway?: string;
|
|
4791
4824
|
authorization?: string;
|
|
4792
|
-
things?: any;
|
|
4793
4825
|
headers?: any;
|
|
4826
|
+
}, 'things'> & {
|
|
4827
|
+
things?: MergedThings;
|
|
4794
4828
|
};
|
|
4795
4829
|
export type TVenueMetadata = {
|
|
4796
4830
|
languages: {
|
|
@@ -4813,14 +4847,14 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.types' {
|
|
|
4813
4847
|
|
|
4814
4848
|
declare module '@mappedin/mappedin-js/get-venue/Mappedin' {
|
|
4815
4849
|
import { Navigator } from '@mappedin/mappedin-js/navigator';
|
|
4816
|
-
import type { TGetVenueOptions, TGetVenueOptionsInternal } from '@mappedin/mappedin-js/get-venue/Mappedin.types';
|
|
4850
|
+
import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal } from '@mappedin/mappedin-js/get-venue/Mappedin.types';
|
|
4817
4851
|
import type { MappedinNode, MappedinPolygon, MappedinLocation, MappedinCategory, MappedinVortex, MappedinVenue, MappedinTheme, MappedinRankings, MappedinLocationRankings, MappedinEvent, MappedinLocationState, MappedinMap, MappedinMapGroup, GET_VENUE_PAYLOAD } from '@mappedin/mappedin-js/get-venue/internal';
|
|
4818
4852
|
import { TAccessors, GET_VENUE_EVENT } from '@mappedin/mappedin-js/get-venue/internal';
|
|
4819
4853
|
import { IAnalytics } from '@mappedin/mappedin-js/get-venue/Mappedin.CustomerAnalytics';
|
|
4820
4854
|
import { ParsedMVF } from '@mappedin/mvf';
|
|
4821
4855
|
import { ParsedMVFv1 } from '@mappedin/mappedin-js/get-venue/Mappedin.MVF.types';
|
|
4822
4856
|
import { PubSub } from '@mappedin/mappedin-js/get-venue/pub-sub.typed';
|
|
4823
|
-
export const defaultOptions: TGetVenueOptionsInternal
|
|
4857
|
+
export const defaultOptions: TGetVenueOptionsInternal<TGetVenueOptions>;
|
|
4824
4858
|
export class Mappedin extends PubSub<GET_VENUE_PAYLOAD, GET_VENUE_EVENT> {
|
|
4825
4859
|
#private;
|
|
4826
4860
|
perspective: any;
|
|
@@ -5052,7 +5086,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin' {
|
|
|
5052
5086
|
/**
|
|
5053
5087
|
* @deprecated Use {@link hydrateVenue} instead
|
|
5054
5088
|
*/
|
|
5055
|
-
constructor(options: TGetVenueOptionsInternal
|
|
5089
|
+
constructor(options: TGetVenueOptionsInternal<TAllGetVenueOptions>);
|
|
5056
5090
|
analytics: IAnalytics;
|
|
5057
5091
|
/**
|
|
5058
5092
|
* @hidden
|
|
@@ -5082,6 +5116,7 @@ declare module '@mappedin/mappedin-js/get-venue/default-things' {
|
|
|
5082
5116
|
themes: string[];
|
|
5083
5117
|
rankings: string[];
|
|
5084
5118
|
};
|
|
5119
|
+
export type DefaultThings = typeof defaultThings;
|
|
5085
5120
|
}
|
|
5086
5121
|
|
|
5087
5122
|
declare module '@mappedin/mappedin-js/get-venue/internal' {
|
|
@@ -5353,6 +5388,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinLocation' {
|
|
|
5353
5388
|
siblingGroups?: TSiblingGroup[] | undefined;
|
|
5354
5389
|
gallery?: TGalleryImage[] | undefined;
|
|
5355
5390
|
amenity?: string | undefined;
|
|
5391
|
+
filterFlags?: string[];
|
|
5356
5392
|
constructor(mappedin: Mappedin, data: any);
|
|
5357
5393
|
/**
|
|
5358
5394
|
* Polygons this Location is attached to.
|
|
@@ -6232,45 +6268,97 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/OutdoorViewCo
|
|
|
6232
6268
|
import './OutdoorViewController.scss';
|
|
6233
6269
|
import type { ICore } from '@mappedin/mappedin-js/renderer/internal';
|
|
6234
6270
|
import { XOR } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
6271
|
+
/**
|
|
6272
|
+
* Represents the possible positions for map attribution.
|
|
6273
|
+
*/
|
|
6235
6274
|
export type TAttributionPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6275
|
+
/**
|
|
6276
|
+
* Defines the options for an Outdoor View when initialized with headers for authentication.
|
|
6277
|
+
*/
|
|
6278
|
+
export type TOutdoorViewOptionsWithHeaders = {
|
|
6279
|
+
/**
|
|
6280
|
+
* The URL to the map style file.
|
|
6281
|
+
* @see https://github.com/maplibre/maplibre-style-spec/
|
|
6282
|
+
*/
|
|
6283
|
+
url?: string;
|
|
6284
|
+
/**
|
|
6285
|
+
* The position on the map where the attribution should be displayed.
|
|
6286
|
+
* @default 'bottom-right'
|
|
6287
|
+
*/
|
|
6288
|
+
attributionPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
6289
|
+
/**
|
|
6290
|
+
* Custom text or an array of texts to be used for the map attribution.
|
|
6291
|
+
*/
|
|
6292
|
+
customAttribution?: string | string[];
|
|
6293
|
+
/**
|
|
6294
|
+
* An object containing HTTP headers for authentication purposes.
|
|
6295
|
+
* */
|
|
6296
|
+
headers: {
|
|
6297
|
+
[key: string]: string | null;
|
|
6298
|
+
};
|
|
6243
6299
|
};
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6300
|
+
/**
|
|
6301
|
+
* Defines the options for an Outdoor View when initialized with a URL for authentication.
|
|
6302
|
+
*/
|
|
6303
|
+
export type TOutdoorViewOptionsWithAuthURL = {
|
|
6304
|
+
/**
|
|
6305
|
+
* The URL to the map style file.
|
|
6306
|
+
* @see https://github.com/maplibre/maplibre-style-spec/
|
|
6307
|
+
*/
|
|
6308
|
+
url?: string;
|
|
6309
|
+
/**
|
|
6310
|
+
* The URL to obtain an authentication token.
|
|
6311
|
+
*/
|
|
6312
|
+
authURL?: string;
|
|
6313
|
+
/**
|
|
6314
|
+
* Custom text or an array of texts to be used for the map attribution.
|
|
6315
|
+
*/
|
|
6316
|
+
customAttribution?: string | string[];
|
|
6317
|
+
/**
|
|
6318
|
+
* The position on the map where the attribution should be displayed.
|
|
6319
|
+
* @default 'bottom-right'
|
|
6320
|
+
*/
|
|
6321
|
+
attributionPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
6249
6322
|
};
|
|
6250
|
-
|
|
6323
|
+
/**
|
|
6324
|
+
* Defines the options for initializing an Outdoor View.
|
|
6325
|
+
* This is a union type that requires exclusive or logic,
|
|
6326
|
+
* ensuring that an instance can either have headers or
|
|
6327
|
+
* an authentication URL, but not both.
|
|
6328
|
+
*
|
|
6329
|
+
* Note: It isn't permitted to use `.headers` and `.authURL` options simultaneously.
|
|
6330
|
+
*
|
|
6331
|
+
* @property {string} [url] - The URL to the map style file.
|
|
6332
|
+
* @property {TAttributionPosition} [attributionPosition='bottom-right'] - The position on the map where the attribution should be displayed.
|
|
6333
|
+
* @property {string | string[]} [customAttribution] - Custom text or an array of texts to be used for the map attribution.
|
|
6334
|
+
* @property {Object.<string, string | null>} [headers] - An object containing HTTP headers for authentication purposes. It isn't permitted to use `.headers` and `.authURL` options simultaneously.
|
|
6335
|
+
* @property {string} [authURL] - The URL to obtain an authentication token. It isn't permitted to use `.headers` and `.authURL` options simultaneously.
|
|
6336
|
+
* @interface
|
|
6337
|
+
*/
|
|
6338
|
+
export type TOutdoorViewOptions = XOR<TOutdoorViewOptionsWithHeaders, TOutdoorViewOptionsWithAuthURL>;
|
|
6251
6339
|
class OutdoorViewController {
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6340
|
+
_attribution: any;
|
|
6341
|
+
core: ICore;
|
|
6342
|
+
map: any;
|
|
6343
|
+
enabled: boolean;
|
|
6344
|
+
hidden: boolean;
|
|
6345
|
+
url: string;
|
|
6346
|
+
authURL: string;
|
|
6347
|
+
headers?: TOutdoorViewOptions['headers'];
|
|
6348
|
+
customAttribution?: string | string[];
|
|
6349
|
+
attributionPosition?: TAttributionPosition;
|
|
6350
|
+
loaded: boolean;
|
|
6351
|
+
constructor(core: ICore, options?: TOutdoorViewOptions);
|
|
6352
|
+
module: any;
|
|
6353
|
+
load(): Promise<void>;
|
|
6354
|
+
get attributions(): any;
|
|
6355
|
+
hide(): void;
|
|
6356
|
+
show(): void;
|
|
6357
|
+
resize(): void;
|
|
6358
|
+
getRequestHeaders: () => Promise<TOutdoorViewOptions['headers']>;
|
|
6359
|
+
render(): void;
|
|
6360
|
+
setStyle(style: any): void;
|
|
6361
|
+
setAttributionPosition(position: TAttributionPosition): void;
|
|
6274
6362
|
}
|
|
6275
6363
|
export default OutdoorViewController;
|
|
6276
6364
|
}
|
|
@@ -8116,7 +8204,7 @@ declare module '@mappedin/mappedin-js/renderer/private/scene-manager/MapView.Sta
|
|
|
8116
8204
|
}
|
|
8117
8205
|
|
|
8118
8206
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Element' {
|
|
8119
|
-
import { MeshLambertMaterial, Mesh, ExtrudeGeometry, Group } from 'three';
|
|
8207
|
+
import { MeshLambertMaterial, Mesh, ExtrudeGeometry, Vector3, Group } from 'three';
|
|
8120
8208
|
import { PubSub } from '@mappedin/mappedin-js/renderer/internal/pub-sub';
|
|
8121
8209
|
import { AssetManager, MappedinMap, MappedinPolygon } from '@mappedin/mappedin-js/renderer/internal';
|
|
8122
8210
|
import { MAP_RENDER_MODE } from '@mappedin/mappedin-js/renderer/MapView.enums';
|
|
@@ -8131,25 +8219,21 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Element' {
|
|
|
8131
8219
|
assetManager: AssetManager;
|
|
8132
8220
|
imageVisible: boolean;
|
|
8133
8221
|
labelVisible: boolean;
|
|
8134
|
-
boundingBox: {
|
|
8135
|
-
min: {
|
|
8136
|
-
x: number;
|
|
8137
|
-
y: number;
|
|
8138
|
-
z: number;
|
|
8139
|
-
};
|
|
8140
|
-
max: {
|
|
8141
|
-
x: number;
|
|
8142
|
-
y: number;
|
|
8143
|
-
z: number;
|
|
8144
|
-
};
|
|
8145
|
-
};
|
|
8146
8222
|
polygonHeight: number;
|
|
8147
8223
|
geometry: ExtrudeGeometry;
|
|
8148
8224
|
mesh: Mesh;
|
|
8149
8225
|
material: MeshLambertMaterial | MeshLambertMaterial[];
|
|
8150
8226
|
labelMesh?: Mesh;
|
|
8151
8227
|
imageMesh?: Mesh;
|
|
8228
|
+
/**
|
|
8229
|
+
* For the time being we indicate inflated walls so they don't add to ray casting. Since these are walls it's a good optimization
|
|
8230
|
+
*/
|
|
8231
|
+
isInflated: boolean;
|
|
8152
8232
|
sortScore: number | null;
|
|
8233
|
+
boundingBox?: {
|
|
8234
|
+
min: Vector3;
|
|
8235
|
+
max: Vector3;
|
|
8236
|
+
};
|
|
8153
8237
|
static materials: {
|
|
8154
8238
|
[key in string]: MeshLambertMaterial | MeshLambertMaterial[];
|
|
8155
8239
|
};
|
|
@@ -8165,20 +8249,13 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Element' {
|
|
|
8165
8249
|
x: number;
|
|
8166
8250
|
y: number;
|
|
8167
8251
|
};
|
|
8168
|
-
static _makeFromCoords(className: any, coords: any, mapClass: any): any;
|
|
8252
|
+
static _makeFromCoords(className: any, coords: any, mapClass: any, element: any): any;
|
|
8253
|
+
static _inflate(coords: any, width: any): any;
|
|
8169
8254
|
static _setPolygonDefaults(poly: any): any;
|
|
8170
8255
|
constructor(poly: MappedinPolygon, mapClass: MappedinMap, container: Group, assetManager: any, mapLoadingStrategy?: MAP_RENDER_MODE);
|
|
8171
8256
|
getBoundingBox(): {
|
|
8172
|
-
min:
|
|
8173
|
-
|
|
8174
|
-
y: number;
|
|
8175
|
-
z: number;
|
|
8176
|
-
};
|
|
8177
|
-
max: {
|
|
8178
|
-
x: number;
|
|
8179
|
-
y: number;
|
|
8180
|
-
z: number;
|
|
8181
|
-
};
|
|
8257
|
+
min: Vector3;
|
|
8258
|
+
max: Vector3;
|
|
8182
8259
|
};
|
|
8183
8260
|
load(): Promise<this>;
|
|
8184
8261
|
_addLabel(poly: MappedinPolygon, mapClass: MappedinMap): void;
|
|
@@ -9289,158 +9366,9 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.BlueDot/Mappedi
|
|
|
9289
9366
|
}
|
|
9290
9367
|
|
|
9291
9368
|
declare module '@mappedin/mappedin-js/renderer/internal/utils' {
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
/**
|
|
9296
|
-
* Utils function listing
|
|
9297
|
-
*
|
|
9298
|
-
* - scrubMaterial
|
|
9299
|
-
* - getObjectID
|
|
9300
|
-
* - getObject
|
|
9301
|
-
* - getBoundingBox
|
|
9302
|
-
* - getBiggestBoundingBox
|
|
9303
|
-
* - upackBoundingBox
|
|
9304
|
-
* - getMapScale
|
|
9305
|
-
* - throttle -> taken from lodash.js
|
|
9306
|
-
* - getProjectionScaleFactor
|
|
9307
|
-
* - getZoom
|
|
9308
|
-
*/
|
|
9309
|
-
export function isGatewayKey(key: string): boolean;
|
|
9310
|
-
export function getCombinedBoundingBox(objects: Object3D[]): Box3;
|
|
9311
|
-
export function getMapsBoundingBox(maps: MapObject[], mapPadding: number): Box3;
|
|
9312
|
-
export function scrubMaterial(material: Material): void;
|
|
9313
|
-
/**
|
|
9314
|
-
* Takes a Mappedin Object or id and returns the ID, so our functions can take bottomRight
|
|
9315
|
-
* @template T extends string | {id: string}
|
|
9316
|
-
* @param {T} object - input can be object containing id or the id itself
|
|
9317
|
-
* @return {string}
|
|
9318
|
-
*/
|
|
9319
|
-
export function getObjectId(object: any): string;
|
|
9320
|
-
/**
|
|
9321
|
-
* Takes a Mappedin object or ID and the array to look in and retuns the Object, so our functions can take both
|
|
9322
|
-
*/
|
|
9323
|
-
export function getObject<K extends {
|
|
9324
|
-
id: string;
|
|
9325
|
-
}, T extends K | string>(obj: T, array: K[] | undefined): K | undefined;
|
|
9326
|
-
export function getBoundingBox(object: Object3D): Box3;
|
|
9327
|
-
/**
|
|
9328
|
-
* Function pushes the items of the second array onto the first array (inplace).
|
|
9329
|
-
* @template T
|
|
9330
|
-
* @param {Array.<T>} arr1 - base array
|
|
9331
|
-
* @param {Array.<T>} arr2 - array which items will be pushed to arr1
|
|
9332
|
-
*/
|
|
9333
|
-
export function appendItems<T>(arr1: T[], arr2: T[]): void;
|
|
9334
|
-
export function getBiggestBoundingBox(objects: Object3D[]): {
|
|
9335
|
-
min: any;
|
|
9336
|
-
max: any;
|
|
9337
|
-
};
|
|
9338
|
-
export function unpackBoundingBox(boundingBox: Box3): Vector3[];
|
|
9339
|
-
export function getMapScale(map: MappedinMap): number;
|
|
9340
|
-
export function getNorth(map: MappedinMap): number;
|
|
9341
|
-
export function throttle<T>(func: () => void, wait: number, options?: any): () => void;
|
|
9342
|
-
export function debounce<T>(func: () => void, wait: number, immediate?: boolean): () => void;
|
|
9343
|
-
export function flatten(list: any[]): any[];
|
|
9344
|
-
export function uniq(arr: any[]): any[];
|
|
9345
|
-
export function toStyleString(styles: Record<string, string>): string;
|
|
9346
|
-
/**
|
|
9347
|
-
/* getProjectionScaleFactor()
|
|
9348
|
-
/* finds the scale ratio between screen coordinates and 3D coordinates (in X-Z plane)
|
|
9349
|
-
/*
|
|
9350
|
-
* R
|
|
9351
|
-
* /|
|
|
9352
|
-
* C : Camera / |
|
|
9353
|
-
* PQ : Projection Plane / |
|
|
9354
|
-
* OR : Origin / |
|
|
9355
|
-
* F : FOV / |
|
|
9356
|
-
* Q / |
|
|
9357
|
-
* /| |
|
|
9358
|
-
* / | |
|
|
9359
|
-
* / | |
|
|
9360
|
-
* / | |
|
|
9361
|
-
* / | |
|
|
9362
|
-
* / F/2 | |
|
|
9363
|
-
* C ------------P------------ O
|
|
9364
|
-
*
|
|
9365
|
-
*
|
|
9366
|
-
* ProjectionScaleFactor = ( OR / PQ )
|
|
9367
|
-
* PQ = canvasHeight / 2
|
|
9368
|
-
* CQ = zoom
|
|
9369
|
-
*
|
|
9370
|
-
* OR / C0 = tan(F/2)
|
|
9371
|
-
* so OR = CO * tan(F/2)
|
|
9372
|
-
*/
|
|
9373
|
-
export function getProjectionScaleFactor(FOV: number, canvasHeight: number, zoom: number): number;
|
|
9374
|
-
/** getZoom
|
|
9375
|
-
*
|
|
9376
|
-
* C - Camera, OP -- picture plane (canvas), S - origin,
|
|
9377
|
-
* QR - front side of maps Bounding Box, F: FOV
|
|
9378
|
-
*
|
|
9379
|
-
* Z-axis
|
|
9380
|
-
* R_____|______
|
|
9381
|
-
* /| | |
|
|
9382
|
-
* / | | |
|
|
9383
|
-
* P/ | | | maps BB
|
|
9384
|
-
* /| | | |
|
|
9385
|
-
* / | | | |
|
|
9386
|
-
* / | | | |
|
|
9387
|
-
* / F |E |T |S |
|
|
9388
|
-
* C /--------|-----|-----|-----|------ orthogonal to Y axis, midpoint of focus maps
|
|
9389
|
-
* \ | | | |
|
|
9390
|
-
* \ | | | |
|
|
9391
|
-
* \ | | | |
|
|
9392
|
-
* \ | | | |
|
|
9393
|
-
* \| | | |
|
|
9394
|
-
* O\ | | |
|
|
9395
|
-
* \ | | |
|
|
9396
|
-
* \|_____|_____|
|
|
9397
|
-
* Q
|
|
9398
|
-
*
|
|
9399
|
-
*
|
|
9400
|
-
* We want to get CS, which is the camera zoom
|
|
9401
|
-
*
|
|
9402
|
-
*/
|
|
9403
|
-
export function getZoom(focusBox: Box3, focusBoxHeight: number, FOV: number): number;
|
|
9404
|
-
interface CalculateTwoDProjectionsParams {
|
|
9405
|
-
maps: MapObject[];
|
|
9406
|
-
width: number;
|
|
9407
|
-
height: number;
|
|
9408
|
-
camera: Camera;
|
|
9409
|
-
}
|
|
9410
|
-
export function calculateTwoDProjections({ maps, width, height, camera }: CalculateTwoDProjectionsParams): {
|
|
9411
|
-
min: {
|
|
9412
|
-
x: number;
|
|
9413
|
-
y: number;
|
|
9414
|
-
};
|
|
9415
|
-
max: {
|
|
9416
|
-
x: number;
|
|
9417
|
-
y: number;
|
|
9418
|
-
};
|
|
9419
|
-
}[];
|
|
9420
|
-
export function splitLine(startNode: Vector3, endNode: Vector3, segments: number): Vector3[];
|
|
9421
|
-
export function isObject(item: any): boolean;
|
|
9422
|
-
export const determineStartingMap: (venue: Mappedin, options: TMapViewOptions) => MappedinMap;
|
|
9423
|
-
export function cyrb53(str: string, seed?: number): number;
|
|
9424
|
-
export function addMarginMultiplierToBoundingBox(bbox: Box3, multiplier: number): Box3;
|
|
9425
|
-
export function tweenPromise({ from, to, duration, easing, delay, onUpdate, onStart, onComplete, }: {
|
|
9426
|
-
from: any;
|
|
9427
|
-
to: any;
|
|
9428
|
-
duration?: number | undefined;
|
|
9429
|
-
easing?: any;
|
|
9430
|
-
delay?: number | undefined;
|
|
9431
|
-
onUpdate?: ((_: any) => void) | undefined;
|
|
9432
|
-
onStart?: (() => void) | undefined;
|
|
9433
|
-
onComplete?: (() => void) | undefined;
|
|
9434
|
-
}): {
|
|
9435
|
-
start(core: any): Promise<void>;
|
|
9436
|
-
};
|
|
9437
|
-
export const linearEase: (t: number) => number;
|
|
9438
|
-
export const quadEaseIn: (t: number) => number;
|
|
9439
|
-
export const quadEaseOut: (t: number) => number;
|
|
9440
|
-
export function interpolate(value: number, inputMin: number, inputMax: number, outputMin: number, outputMax: number, easeFunc?: (t: number) => number): number;
|
|
9441
|
-
export function interpolateMulti(value: number, inputRange: number[], outputRange: number[], easeFunc?: (t: number) => number): number;
|
|
9442
|
-
export function checkWritableBeforeWrite(obj: any, key: string, value: any): void;
|
|
9443
|
-
export {};
|
|
9369
|
+
export * from '@mappedin/mappedin-js/renderer/internal/utils/utils';
|
|
9370
|
+
export { shouldDisableOffscreenCanvas } from '@mappedin/mappedin-js/renderer/internal/utils/browser';
|
|
9371
|
+
export { throttle, debounce } from '@mappedin/mappedin-js/renderer/internal/utils/async';
|
|
9444
9372
|
}
|
|
9445
9373
|
|
|
9446
9374
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapManager' {
|
|
@@ -10660,6 +10588,7 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinVortex' {
|
|
|
10660
10588
|
weight?: number;
|
|
10661
10589
|
multiplier?: number;
|
|
10662
10590
|
nodes?: string[];
|
|
10591
|
+
filterFlags?: string[];
|
|
10663
10592
|
constructor(data: any);
|
|
10664
10593
|
static hydrate(vortexes: any): MappedinVortex[];
|
|
10665
10594
|
static fetch(mappedin: Mappedin): Promise<MappedinVortex[]>;
|
|
@@ -10992,12 +10921,12 @@ declare module '@mappedin/mappedin-js/get-venue/MappedinMapGroup' {
|
|
|
10992
10921
|
}
|
|
10993
10922
|
|
|
10994
10923
|
declare module '@mappedin/mappedin-js/get-venue/utils' {
|
|
10995
|
-
import type { TGetVenueOptions, TGetVenueOptionsInternal } from '@mappedin/mappedin-js/get-venue/Mappedin.types';
|
|
10924
|
+
import type { MergedThings, TGetVenueOptions, TGetVenueOptionsInternal, ThingsOption } from '@mappedin/mappedin-js/get-venue/Mappedin.types';
|
|
10996
10925
|
import type { MappedinMap } from '@mappedin/mappedin-js/get-venue/internal';
|
|
10997
10926
|
import { Mappedin, MappedinNavigatable, MappedinNode, MappedinPolygon, MappedinLocation, MappedinCoordinate } from '@mappedin/mappedin-js/get-venue/internal';
|
|
10998
10927
|
export function isGatewayKey(key: string): boolean;
|
|
10999
10928
|
export function stringifyQuery(query: any, gateway?: boolean): string;
|
|
11000
|
-
export function buildUrl(options: TGetVenueOptionsInternal
|
|
10929
|
+
export function buildUrl(options: TGetVenueOptionsInternal<TGetVenueOptions>, pathname: string, query: any, supplementary?: boolean): string;
|
|
11001
10930
|
/**
|
|
11002
10931
|
* Make a network request to the Mappedin API to fetch an array of objects.
|
|
11003
10932
|
* @param options options from getVenue- baseUrl and supplementaryUrl are used
|
|
@@ -11006,7 +10935,7 @@ declare module '@mappedin/mappedin-js/get-venue/utils' {
|
|
|
11006
10935
|
* @param supplementary whether to use the supplementaryUrl when sending the request
|
|
11007
10936
|
* @returns the result json
|
|
11008
10937
|
*/
|
|
11009
|
-
export function getArray(options: TGetVenueOptionsInternal
|
|
10938
|
+
export function getArray(options: TGetVenueOptionsInternal<TGetVenueOptions>, pathname: string, query: any, supplementary?: boolean): Promise<any>;
|
|
11010
10939
|
/**
|
|
11011
10940
|
* Make a network request to the Mappedin API to fetch an object.
|
|
11012
10941
|
* @param options options from getVenue- baseUrl and supplementaryUrl are used
|
|
@@ -11016,21 +10945,21 @@ declare module '@mappedin/mappedin-js/get-venue/utils' {
|
|
|
11016
10945
|
* @param isExpectingArray whether the endpoint returns an array
|
|
11017
10946
|
* @returns the result json
|
|
11018
10947
|
*/
|
|
11019
|
-
export function getObject(options: TGetVenueOptionsInternal
|
|
10948
|
+
export function getObject(options: TGetVenueOptionsInternal<TGetVenueOptions>, pathname: string, query: any, supplementary?: boolean, isExpectingArray?: boolean): Promise<any>;
|
|
11020
10949
|
/**
|
|
11021
10950
|
* Prepares the request and URL fields to pass into generateAPIRequest
|
|
11022
10951
|
* @param options options from getVenue- baseUrl and supplementaryUrl are used
|
|
11023
10952
|
* @param url string describing the url corresponding to the client's request
|
|
11024
10953
|
* @param supplementary whether to use the supplementaryUrl when sending the request
|
|
11025
10954
|
*/
|
|
11026
|
-
export function constructParamsForRequest(options: TGetVenueOptionsInternal
|
|
10955
|
+
export function constructParamsForRequest(options: TGetVenueOptionsInternal<TGetVenueOptions>, url: string, supplementary?: boolean): {
|
|
11027
10956
|
req: {
|
|
11028
10957
|
method: string;
|
|
11029
10958
|
headers: any;
|
|
11030
10959
|
};
|
|
11031
10960
|
url: string;
|
|
11032
10961
|
};
|
|
11033
|
-
export function generateAPIRequest(options: TGetVenueOptionsInternal
|
|
10962
|
+
export function generateAPIRequest(options: TGetVenueOptionsInternal<TGetVenueOptions>, url: string, supplementary?: boolean): Promise<any>;
|
|
11034
10963
|
export function addToSet(array: any, value: any): void;
|
|
11035
10964
|
export function getDistanceBetweenLatLon([lat1, lon1]: [number, number], [lat2, lon2]: [number, number]): any;
|
|
11036
10965
|
export function getMapScale(map: MappedinMap): any;
|
|
@@ -11064,6 +10993,7 @@ declare module '@mappedin/mappedin-js/get-venue/utils' {
|
|
|
11064
10993
|
* @return {MappedinLocation}
|
|
11065
10994
|
*/
|
|
11066
10995
|
export const getPrimaryLocationForPolygon: (polygon: MappedinPolygon | string | undefined, venue: Mappedin) => MappedinLocation | null;
|
|
10996
|
+
export function mergeThings(thingsOption: ThingsOption | undefined): MergedThings;
|
|
11067
10997
|
}
|
|
11068
10998
|
|
|
11069
10999
|
declare module '@mappedin/mappedin-js/get-venue/Mappedin.cache' {
|
|
@@ -11122,7 +11052,7 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin.cache' {
|
|
|
11122
11052
|
}
|
|
11123
11053
|
|
|
11124
11054
|
declare module '@mappedin/mappedin-js/renderer/internal/shave-text' {
|
|
11125
|
-
export type TDrawFn = (ctx: CanvasRenderingContext2D, x: number, y: number) => void;
|
|
11055
|
+
export type TDrawFn = (ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, x: number, y: number) => void;
|
|
11126
11056
|
type TShave = (str: string, size: number, maxWidth: number, maxLines?: number, lineHeight?: number, options?: {
|
|
11127
11057
|
strokeText: boolean;
|
|
11128
11058
|
}) => {
|
|
@@ -11404,6 +11334,203 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer'
|
|
|
11404
11334
|
export {};
|
|
11405
11335
|
}
|
|
11406
11336
|
|
|
11337
|
+
declare module '@mappedin/mappedin-js/renderer/internal/utils/utils' {
|
|
11338
|
+
import { Box3, Vector3, Object3D, Material } from 'three';
|
|
11339
|
+
import { Mappedin, MapObject, MappedinMap, TMapViewOptions } from '@mappedin/mappedin-js/renderer/internal';
|
|
11340
|
+
import { Camera } from '@mappedin/mappedin-js/renderer/public/api/Camera';
|
|
11341
|
+
/**
|
|
11342
|
+
* Utils function listing
|
|
11343
|
+
*
|
|
11344
|
+
* - scrubMaterial
|
|
11345
|
+
* - getObjectID
|
|
11346
|
+
* - getObject
|
|
11347
|
+
* - getBoundingBox
|
|
11348
|
+
* - getBiggestBoundingBox
|
|
11349
|
+
* - upackBoundingBox
|
|
11350
|
+
* - getMapScale
|
|
11351
|
+
* - throttle -> taken from lodash.js
|
|
11352
|
+
* - getProjectionScaleFactor
|
|
11353
|
+
* - getZoom
|
|
11354
|
+
*/
|
|
11355
|
+
export function isGatewayKey(key: string): boolean;
|
|
11356
|
+
export function getCombinedBoundingBox(objects: Object3D[]): Box3;
|
|
11357
|
+
export function getMapsBoundingBox(maps: MapObject[], mapPadding: number): Box3;
|
|
11358
|
+
export function scrubMaterial(material: Material): void;
|
|
11359
|
+
/**
|
|
11360
|
+
* Takes a Mappedin Object or id and returns the ID, so our functions can take bottomRight
|
|
11361
|
+
* @template T extends string | {id: string}
|
|
11362
|
+
* @param {T} object - input can be object containing id or the id itself
|
|
11363
|
+
* @return {string}
|
|
11364
|
+
*/
|
|
11365
|
+
export function getObjectId(object: any): string;
|
|
11366
|
+
/**
|
|
11367
|
+
* Takes a Mappedin object or ID and the array to look in and retuns the Object, so our functions can take both
|
|
11368
|
+
*/
|
|
11369
|
+
export function getObject<K extends {
|
|
11370
|
+
id: string;
|
|
11371
|
+
}, T extends K | string>(obj: T, array: K[] | undefined): K | undefined;
|
|
11372
|
+
export function getBoundingBox(object: Object3D): Box3;
|
|
11373
|
+
/**
|
|
11374
|
+
* Function pushes the items of the second array onto the first array (inplace).
|
|
11375
|
+
* @template T
|
|
11376
|
+
* @param {Array.<T>} arr1 - base array
|
|
11377
|
+
* @param {Array.<T>} arr2 - array which items will be pushed to arr1
|
|
11378
|
+
*/
|
|
11379
|
+
export function appendItems<T>(arr1: T[], arr2: T[]): void;
|
|
11380
|
+
export function getBiggestBoundingBox(objects: Object3D[]): {
|
|
11381
|
+
min: any;
|
|
11382
|
+
max: any;
|
|
11383
|
+
};
|
|
11384
|
+
export function unpackBoundingBox(boundingBox: Box3): Vector3[];
|
|
11385
|
+
export function getMapScale(map: MappedinMap): number;
|
|
11386
|
+
export function getNorth(map: MappedinMap): number;
|
|
11387
|
+
export function flatten(list: any[]): any[];
|
|
11388
|
+
export function uniq(arr: any[]): any[];
|
|
11389
|
+
export function toStyleString(styles: Record<string, string>): string;
|
|
11390
|
+
/**
|
|
11391
|
+
/* getProjectionScaleFactor()
|
|
11392
|
+
/* finds the scale ratio between screen coordinates and 3D coordinates (in X-Z plane)
|
|
11393
|
+
/*
|
|
11394
|
+
* R
|
|
11395
|
+
* /|
|
|
11396
|
+
* C : Camera / |
|
|
11397
|
+
* PQ : Projection Plane / |
|
|
11398
|
+
* OR : Origin / |
|
|
11399
|
+
* F : FOV / |
|
|
11400
|
+
* Q / |
|
|
11401
|
+
* /| |
|
|
11402
|
+
* / | |
|
|
11403
|
+
* / | |
|
|
11404
|
+
* / | |
|
|
11405
|
+
* / | |
|
|
11406
|
+
* / F/2 | |
|
|
11407
|
+
* C ------------P------------ O
|
|
11408
|
+
*
|
|
11409
|
+
*
|
|
11410
|
+
* ProjectionScaleFactor = ( OR / PQ )
|
|
11411
|
+
* PQ = canvasHeight / 2
|
|
11412
|
+
* CQ = zoom
|
|
11413
|
+
*
|
|
11414
|
+
* OR / C0 = tan(F/2)
|
|
11415
|
+
* so OR = CO * tan(F/2)
|
|
11416
|
+
*/
|
|
11417
|
+
export function getProjectionScaleFactor(FOV: number, canvasHeight: number, zoom: number): number;
|
|
11418
|
+
/** getZoom
|
|
11419
|
+
*
|
|
11420
|
+
* C - Camera, OP -- picture plane (canvas), S - origin,
|
|
11421
|
+
* QR - front side of maps Bounding Box, F: FOV
|
|
11422
|
+
*
|
|
11423
|
+
* Z-axis
|
|
11424
|
+
* R_____|______
|
|
11425
|
+
* /| | |
|
|
11426
|
+
* / | | |
|
|
11427
|
+
* P/ | | | maps BB
|
|
11428
|
+
* /| | | |
|
|
11429
|
+
* / | | | |
|
|
11430
|
+
* / | | | |
|
|
11431
|
+
* / F |E |T |S |
|
|
11432
|
+
* C /--------|-----|-----|-----|------ orthogonal to Y axis, midpoint of focus maps
|
|
11433
|
+
* \ | | | |
|
|
11434
|
+
* \ | | | |
|
|
11435
|
+
* \ | | | |
|
|
11436
|
+
* \ | | | |
|
|
11437
|
+
* \| | | |
|
|
11438
|
+
* O\ | | |
|
|
11439
|
+
* \ | | |
|
|
11440
|
+
* \|_____|_____|
|
|
11441
|
+
* Q
|
|
11442
|
+
*
|
|
11443
|
+
*
|
|
11444
|
+
* We want to get CS, which is the camera zoom
|
|
11445
|
+
*
|
|
11446
|
+
*/
|
|
11447
|
+
export function getZoom(focusBox: Box3, focusBoxHeight: number, FOV: number): number;
|
|
11448
|
+
interface CalculateTwoDProjectionsParams {
|
|
11449
|
+
maps: MapObject[];
|
|
11450
|
+
width: number;
|
|
11451
|
+
height: number;
|
|
11452
|
+
camera: Camera;
|
|
11453
|
+
}
|
|
11454
|
+
export function calculateTwoDProjections({ maps, width, height, camera }: CalculateTwoDProjectionsParams): {
|
|
11455
|
+
min: {
|
|
11456
|
+
x: number;
|
|
11457
|
+
y: number;
|
|
11458
|
+
};
|
|
11459
|
+
max: {
|
|
11460
|
+
x: number;
|
|
11461
|
+
y: number;
|
|
11462
|
+
};
|
|
11463
|
+
}[];
|
|
11464
|
+
export function splitLine(startNode: Vector3, endNode: Vector3, segments: number): Vector3[];
|
|
11465
|
+
export function isObject(item: any): boolean;
|
|
11466
|
+
export const determineStartingMap: (venue: Mappedin, options: TMapViewOptions) => MappedinMap;
|
|
11467
|
+
export function cyrb53(str: string, seed?: number): number;
|
|
11468
|
+
export function addMarginMultiplierToBoundingBox(bbox: Box3, multiplier: number): Box3;
|
|
11469
|
+
export function tweenPromise({ from, to, duration, easing, delay, onUpdate, onStart, onComplete, }: {
|
|
11470
|
+
from: any;
|
|
11471
|
+
to: any;
|
|
11472
|
+
duration?: number | undefined;
|
|
11473
|
+
easing?: any;
|
|
11474
|
+
delay?: number | undefined;
|
|
11475
|
+
onUpdate?: ((_: any) => void) | undefined;
|
|
11476
|
+
onStart?: (() => void) | undefined;
|
|
11477
|
+
onComplete?: (() => void) | undefined;
|
|
11478
|
+
}): {
|
|
11479
|
+
start(core: any): Promise<void>;
|
|
11480
|
+
};
|
|
11481
|
+
export const linearEase: (t: number) => number;
|
|
11482
|
+
export const quadEaseIn: (t: number) => number;
|
|
11483
|
+
export const quadEaseOut: (t: number) => number;
|
|
11484
|
+
export function interpolate(value: number, inputMin: number, inputMax: number, outputMin: number, outputMax: number, easeFunc?: (t: number) => number): number;
|
|
11485
|
+
export function interpolateMulti(value: number, inputRange: number[], outputRange: number[], easeFunc?: (t: number) => number): number;
|
|
11486
|
+
export function checkWritableBeforeWrite(obj: any, key: string, value: any): void;
|
|
11487
|
+
export {};
|
|
11488
|
+
}
|
|
11489
|
+
|
|
11490
|
+
declare module '@mappedin/mappedin-js/renderer/internal/utils/browser' {
|
|
11491
|
+
type DeviceType = {
|
|
11492
|
+
isIpad: boolean;
|
|
11493
|
+
isMobile: boolean;
|
|
11494
|
+
isSafari12: boolean;
|
|
11495
|
+
isFirefox: boolean;
|
|
11496
|
+
isWindows: boolean;
|
|
11497
|
+
};
|
|
11498
|
+
/**
|
|
11499
|
+
* Get device OS info
|
|
11500
|
+
* export for testing purpose
|
|
11501
|
+
* @returns DeviceType
|
|
11502
|
+
*/
|
|
11503
|
+
export const _deviceTypeControl: {
|
|
11504
|
+
getDeviceType(): DeviceType;
|
|
11505
|
+
_reset(): void;
|
|
11506
|
+
};
|
|
11507
|
+
export const getDeviceType: () => DeviceType;
|
|
11508
|
+
/**
|
|
11509
|
+
* Creates a closure encapsulating the logic of getting device GPU info.
|
|
11510
|
+
* inspired by https://github.com/pmndrs/detect-gpu
|
|
11511
|
+
* export for testing
|
|
11512
|
+
*/
|
|
11513
|
+
export const _gpuInfoControl: {
|
|
11514
|
+
getInfo: () => string | undefined;
|
|
11515
|
+
shouldDisableOffscreenCanvas: () => boolean;
|
|
11516
|
+
_setCanvas(c: HTMLCanvasElement): void;
|
|
11517
|
+
};
|
|
11518
|
+
export const getGPUInfo: () => string | undefined;
|
|
11519
|
+
/**
|
|
11520
|
+
* Check if device is certain intel integrated GPU.
|
|
11521
|
+
* This is for implementing workaround - https://issues.chromium.org/issues/40251953
|
|
11522
|
+
* The reason we want to disable OffscreenCanvas at all is due to `willReadFrequently` flag only works in FF.
|
|
11523
|
+
* In order to ensure the integrated intel GPU render text correctly
|
|
11524
|
+
*/
|
|
11525
|
+
export const shouldDisableOffscreenCanvas: () => boolean;
|
|
11526
|
+
export {};
|
|
11527
|
+
}
|
|
11528
|
+
|
|
11529
|
+
declare module '@mappedin/mappedin-js/renderer/internal/utils/async' {
|
|
11530
|
+
export function throttle<T>(func: () => void, wait: number, options?: any): () => void;
|
|
11531
|
+
export function debounce<T>(func: () => void, wait: number, immediate?: boolean): () => void;
|
|
11532
|
+
}
|
|
11533
|
+
|
|
11407
11534
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView' {
|
|
11408
11535
|
export namespace VIEW_STATE {
|
|
11409
11536
|
let SINGLE_FLOOR: string;
|