@mappedin/mappedin-js 6.0.1-alpha.12 → 6.0.1-alpha.13
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/{GLTFExporter-NVBCHHIQ.js → GLTFExporter-RKHTBBIT.js} +1 -1
- package/lib/esm/{PerformanceController-ULDERL7U.js → PerformanceController-ZYCWEZK7.js} +1 -1
- package/lib/esm/{browser-EWNUDGNA.js → browser-IIZGUZ6O.js} +1 -1
- package/lib/esm/{chunk-FPVZJHMV.js → chunk-GFCRGEQJ.js} +1 -1
- package/lib/esm/{chunk-FLWY2WSB.js → chunk-H3B4NMBS.js} +1 -1
- package/lib/esm/index.d.ts +292 -225
- package/lib/esm/index.js +1 -1
- package/lib/esm/outdoor-context-3XQ5IGQ4.js +1 -0
- package/package.json +1 -1
- package/lib/esm/outdoor-context-PQJ5UDTA.js +0 -1
package/lib/esm/index.d.ts
CHANGED
|
@@ -240,6 +240,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view' {
|
|
|
240
240
|
import MapData from '@mappedin/mappedin-js/maker/src/map-data';
|
|
241
241
|
import { ICamera, ILabels, IMapView, IMarkers, IPaths, TUpdateState, TNavigationTarget, TGetDirectionsOptions, INavigation } from '@mappedin/mappedin-js/maker/src/map-view-interface';
|
|
242
242
|
import { Directions, Label } from '@mappedin/mappedin-js/maker/src/map-view-objects';
|
|
243
|
+
import { Exporter } from '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Exporter';
|
|
243
244
|
/**
|
|
244
245
|
* Represents a map with all the interactive features, controls, and actions.
|
|
245
246
|
*/
|
|
@@ -270,6 +271,10 @@ declare module '@mappedin/mappedin-js/maker/src/map-view' {
|
|
|
270
271
|
* @type {INavigation}
|
|
271
272
|
*/
|
|
272
273
|
Navigation: INavigation;
|
|
274
|
+
/**
|
|
275
|
+
* Export controller for the map.
|
|
276
|
+
*/
|
|
277
|
+
Exporter: Exporter;
|
|
273
278
|
/**
|
|
274
279
|
* Constructs a {@link MapView} instance
|
|
275
280
|
*
|
|
@@ -285,7 +290,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view' {
|
|
|
285
290
|
/**
|
|
286
291
|
* @internal - unused until we use GeoJSON API underneath
|
|
287
292
|
*/
|
|
288
|
-
addMap(mapData: MapData)
|
|
293
|
+
addMap: (mapData: MapData) => Promise<MapData>;
|
|
289
294
|
/**
|
|
290
295
|
* Updates the state {@link TUpdateState} of a given target on the map.
|
|
291
296
|
*
|
|
@@ -1117,15 +1122,15 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1117
1122
|
*/
|
|
1118
1123
|
export type TGeometryState = {
|
|
1119
1124
|
/**
|
|
1120
|
-
* Color of the geometry element.
|
|
1125
|
+
* Color of the geometry element. Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
|
|
1121
1126
|
*/
|
|
1122
1127
|
color: string | 'initial';
|
|
1123
1128
|
/**
|
|
1124
|
-
* Color of the geometry element when hovered over.
|
|
1129
|
+
* Color of the geometry element when hovered over. Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
|
|
1125
1130
|
*/
|
|
1126
1131
|
hoverColor: string | 'initial';
|
|
1127
1132
|
/**
|
|
1128
|
-
* Indicates if the geometry element is interactive.
|
|
1133
|
+
* Indicates if the geometry element is interactive. Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
|
|
1129
1134
|
*/
|
|
1130
1135
|
interactive: boolean;
|
|
1131
1136
|
};
|
|
@@ -1366,73 +1371,73 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1366
1371
|
*/
|
|
1367
1372
|
export type TAddPathOptions = {
|
|
1368
1373
|
/**
|
|
1369
|
-
* Path Colour
|
|
1374
|
+
* Path Colour. Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
|
|
1370
1375
|
*
|
|
1371
1376
|
* @defaultValue #4b90e2
|
|
1372
1377
|
*/
|
|
1373
1378
|
color?: string;
|
|
1374
1379
|
/**
|
|
1375
|
-
* Colour of path pulse
|
|
1380
|
+
* Colour of path pulse. Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
|
|
1376
1381
|
*
|
|
1377
1382
|
* @defaultValue '#ffffff'
|
|
1378
1383
|
*/
|
|
1379
1384
|
pulseColor?: string;
|
|
1380
1385
|
/**
|
|
1381
|
-
* Number of iterations to pulse to indicate direction
|
|
1386
|
+
* Number of iterations to pulse to indicate direction.
|
|
1382
1387
|
*
|
|
1383
1388
|
* @defaultValue 1
|
|
1384
1389
|
*/
|
|
1385
1390
|
pulseIterations?: number;
|
|
1386
1391
|
/**
|
|
1387
|
-
* How many milliseconds to wait before starting the next pulse after the current pulse travels the entirety of the path
|
|
1392
|
+
* How many milliseconds to wait before starting the next pulse after the current pulse travels the entirety of the path.
|
|
1388
1393
|
*
|
|
1389
1394
|
* @defaultValue 750
|
|
1390
1395
|
*/
|
|
1391
1396
|
pulsePauseDuration?: number;
|
|
1392
1397
|
/**
|
|
1393
|
-
* Radius of path at nearest zoom, in metres
|
|
1398
|
+
* Radius of path at nearest zoom, in metres.
|
|
1394
1399
|
*
|
|
1395
1400
|
* @defaultValue 1.8
|
|
1396
1401
|
*/
|
|
1397
1402
|
nearRadius?: number;
|
|
1398
1403
|
/**
|
|
1399
|
-
* Radius of path at furthest zoom, in metres
|
|
1404
|
+
* Radius of path at furthest zoom, in metres.
|
|
1400
1405
|
*
|
|
1401
1406
|
* @defaultValue 2.3 times nearRadius
|
|
1402
1407
|
*/
|
|
1403
1408
|
farRadius?: number;
|
|
1404
1409
|
/**
|
|
1405
|
-
* Zoom level in meters where the path size is `nearRadius
|
|
1410
|
+
* Zoom level in meters where the path size is `nearRadius`.
|
|
1406
1411
|
*
|
|
1407
1412
|
* @defaultValue 375
|
|
1408
1413
|
*/
|
|
1409
1414
|
nearZoom?: number;
|
|
1410
1415
|
/**
|
|
1411
|
-
* Zoom level in meters where the path size is `farRadius
|
|
1416
|
+
* Zoom level in meters where the path size is `farRadius`.
|
|
1412
1417
|
*
|
|
1413
1418
|
* @defaultValue 10000
|
|
1414
1419
|
*/
|
|
1415
1420
|
farZoom?: number;
|
|
1416
1421
|
/**
|
|
1417
|
-
* Duration of path drawing
|
|
1422
|
+
* Duration of path drawing in milliseconds.
|
|
1418
1423
|
*
|
|
1419
1424
|
* @defaultValue 1500
|
|
1420
1425
|
*/
|
|
1421
1426
|
drawDuration?: number;
|
|
1422
1427
|
/**
|
|
1423
|
-
* Show arrows on path
|
|
1428
|
+
* Show arrows on path.
|
|
1424
1429
|
*
|
|
1425
1430
|
* @defaultValue false
|
|
1426
1431
|
*/
|
|
1427
1432
|
displayArrowsOnPath?: boolean;
|
|
1428
1433
|
/**
|
|
1429
|
-
* Animate arrows on path
|
|
1434
|
+
* Animate arrows on path.
|
|
1430
1435
|
*
|
|
1431
1436
|
* @defaultValue true
|
|
1432
1437
|
*/
|
|
1433
1438
|
animateArrowsOnPath?: boolean;
|
|
1434
1439
|
/**
|
|
1435
|
-
* Flatten the path to a 2D line
|
|
1440
|
+
* Flatten the path to a 2D line.
|
|
1436
1441
|
*
|
|
1437
1442
|
* @defaultValue false
|
|
1438
1443
|
*/
|
|
@@ -1456,21 +1461,21 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1456
1461
|
*/
|
|
1457
1462
|
interactive?: boolean;
|
|
1458
1463
|
/**
|
|
1459
|
-
* The path will be adjusted vertically to the tallest
|
|
1464
|
+
* The path will be adjusted vertically to the tallest altitude along the path.
|
|
1460
1465
|
* The altitude is in meters.
|
|
1461
1466
|
*
|
|
1462
1467
|
* @defaultValue false
|
|
1463
1468
|
*/
|
|
1464
1469
|
adjustedAltitude?: boolean;
|
|
1465
1470
|
/**
|
|
1466
|
-
* The maximum altitude of the path in meters
|
|
1471
|
+
* The maximum altitude of the path in meters.
|
|
1467
1472
|
* The altitude is in meters.
|
|
1468
1473
|
*
|
|
1469
1474
|
* @defaultValue Infinite
|
|
1470
1475
|
*/
|
|
1471
1476
|
maxAdjustedAltitude?: number;
|
|
1472
1477
|
/**
|
|
1473
|
-
* The minimum altitude of the path in meters
|
|
1478
|
+
* The minimum altitude of the path in meters.
|
|
1474
1479
|
* The altitude is in meters.
|
|
1475
1480
|
*
|
|
1476
1481
|
* @defaultValue -Infinite
|
|
@@ -1488,7 +1493,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1488
1493
|
margin?: number;
|
|
1489
1494
|
text?: {
|
|
1490
1495
|
/**
|
|
1491
|
-
* Number of lines to display when text spans multiple lines
|
|
1496
|
+
* Number of lines to display when text spans multiple lines.
|
|
1492
1497
|
*/
|
|
1493
1498
|
numLines?: number;
|
|
1494
1499
|
/**
|
|
@@ -1496,21 +1501,21 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1496
1501
|
*/
|
|
1497
1502
|
size?: number;
|
|
1498
1503
|
/**
|
|
1499
|
-
* Maxiumum width of text in pixels
|
|
1504
|
+
* Maxiumum width of text in pixels.
|
|
1500
1505
|
*/
|
|
1501
1506
|
maxWidth?: number;
|
|
1502
1507
|
/**
|
|
1503
|
-
* Line height sets the height of a line box. It's commonly used to set the distance between lines of text
|
|
1508
|
+
* Line height sets the height of a line box. It's commonly used to set the distance between lines of text.
|
|
1504
1509
|
*
|
|
1505
1510
|
* @default 1.2
|
|
1506
1511
|
*/
|
|
1507
1512
|
lineHeight?: number;
|
|
1508
1513
|
/**
|
|
1509
|
-
* Text foreground color
|
|
1514
|
+
* Text foreground color. Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
|
|
1510
1515
|
*/
|
|
1511
1516
|
foregroundColor?: string;
|
|
1512
1517
|
/**
|
|
1513
|
-
* Text background color
|
|
1518
|
+
* Text background color. Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
|
|
1514
1519
|
*/
|
|
1515
1520
|
backgroundColor?: string;
|
|
1516
1521
|
};
|
|
@@ -1522,21 +1527,21 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1522
1527
|
size?: number;
|
|
1523
1528
|
foregroundColor?: {
|
|
1524
1529
|
/**
|
|
1525
|
-
* Foreground color of the marker
|
|
1530
|
+
* Foreground color of the marker when it is active. Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
|
|
1526
1531
|
*/
|
|
1527
1532
|
active?: string;
|
|
1528
1533
|
/**
|
|
1529
|
-
* Foreground color of the marker
|
|
1534
|
+
* Foreground color of the marker when it is inactive (grayed out due to being outranked by other labels around). Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
|
|
1530
1535
|
*/
|
|
1531
1536
|
inactive?: string;
|
|
1532
1537
|
};
|
|
1533
1538
|
backgroundColor?: {
|
|
1534
1539
|
/**
|
|
1535
|
-
* Background color of the marker
|
|
1540
|
+
* Background color of the marker when it is active. Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
|
|
1536
1541
|
*/
|
|
1537
1542
|
active?: string;
|
|
1538
1543
|
/**
|
|
1539
|
-
* Background color of the marker
|
|
1544
|
+
* Background color of the marker when it is inactive (grayed out due to being outranked by other labels around). Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
|
|
1540
1545
|
*/
|
|
1541
1546
|
inactive?: string;
|
|
1542
1547
|
};
|
|
@@ -1706,8 +1711,8 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
|
|
|
1706
1711
|
*/
|
|
1707
1712
|
export type TDrawNavigationOptions = {
|
|
1708
1713
|
/**
|
|
1709
|
-
*
|
|
1710
|
-
* Pass false to disable
|
|
1714
|
+
* Color to highlight departure and destination spaces. Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
|
|
1715
|
+
* Pass false to disable.
|
|
1711
1716
|
* @default '#7babc8'
|
|
1712
1717
|
*/
|
|
1713
1718
|
polygonHighlightColor?: string | false;
|
|
@@ -2215,6 +2220,37 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/internal' {
|
|
|
2215
2220
|
export { setAssetManager };
|
|
2216
2221
|
}
|
|
2217
2222
|
|
|
2223
|
+
declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Exporter' {
|
|
2224
|
+
import { ExportController } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
2225
|
+
/**
|
|
2226
|
+
* @hidden
|
|
2227
|
+
*/
|
|
2228
|
+
export type TGLTFExportOptions = {
|
|
2229
|
+
onlyVisible?: boolean;
|
|
2230
|
+
binary?: boolean;
|
|
2231
|
+
scale?: number;
|
|
2232
|
+
};
|
|
2233
|
+
/**
|
|
2234
|
+
* API to export the scene.
|
|
2235
|
+
*
|
|
2236
|
+
* @hidden
|
|
2237
|
+
*/
|
|
2238
|
+
export class Exporter {
|
|
2239
|
+
#private;
|
|
2240
|
+
/**
|
|
2241
|
+
* @hidden
|
|
2242
|
+
* @internal
|
|
2243
|
+
*/
|
|
2244
|
+
constructor(controller: ExportController);
|
|
2245
|
+
/**
|
|
2246
|
+
* Exports the current scene as a GLTF file.
|
|
2247
|
+
*
|
|
2248
|
+
* @hidden
|
|
2249
|
+
*/
|
|
2250
|
+
getCurrentSceneGLTF(userOptions: TGLTFExportOptions): Promise<Blob>;
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2218
2254
|
declare module '@mappedin/mappedin-js/maker/src/map-data-interace' {
|
|
2219
2255
|
import type { Annotation, Connection, Coordinate, Door, Floor, MapObject, PointOfInterest, Space } from '@mappedin/mappedin-js/maker/src/map-data-objects';
|
|
2220
2256
|
/**
|
|
@@ -2338,6 +2374,7 @@ declare module '@mappedin/mappedin-js/packages/get-venue/Mappedin.types' {
|
|
|
2338
2374
|
clientId: string;
|
|
2339
2375
|
clientSecret: string;
|
|
2340
2376
|
venue: string;
|
|
2377
|
+
accessToken: string;
|
|
2341
2378
|
};
|
|
2342
2379
|
export type TAllGetVenueOptions = TGetVenueOptions | TGetVenueMVFOptions | (TProcessedMVFOptions & {
|
|
2343
2380
|
perspective?: string;
|
|
@@ -3788,6 +3825,7 @@ declare module '@mappedin/mappedin-js/packages/get-venue/Mappedin.MVF.utils' {
|
|
|
3788
3825
|
export const STATIC_MVF_FILES: readonly ["connection.json", "manifest.geojson", "map.geojson", "node.geojson", "styles.json", "mapstack.geojson"];
|
|
3789
3826
|
export type TStaticMVFFiles = (typeof STATIC_MVF_FILES)[number];
|
|
3790
3827
|
export function processObstructions(obstructionCollection: ObstructionCollection, entrances: EntranceCollection): ObstructionCollection;
|
|
3828
|
+
export function splitObstructionByAllEntrances(wall: ObstructionWallFeature, entrances: EntranceFeature[]): ObstructionWallFeature[];
|
|
3791
3829
|
export function isPolygonStyle(style: PolygonStyle | LineStringStyle | undefined): style is PolygonStyle & LineStringStyle;
|
|
3792
3830
|
export function getStylesMap(styles: StyleCollection): WithIDs<MVFStyle>;
|
|
3793
3831
|
}
|
|
@@ -4930,7 +4968,10 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/Core.inte
|
|
|
4930
4968
|
* An object containing all outlined polygons.
|
|
4931
4969
|
*/
|
|
4932
4970
|
outlinedPolygons: Map<string, MappedinPolygon>;
|
|
4933
|
-
|
|
4971
|
+
/**
|
|
4972
|
+
* A plane that is parallel to the ground and is used for raycasting.
|
|
4973
|
+
*/
|
|
4974
|
+
worldPlane: Mesh;
|
|
4934
4975
|
getPositionLatLon(lat: number, lon: number, map?: MappedinMap | string | null): Vector3;
|
|
4935
4976
|
currentScale: number;
|
|
4936
4977
|
getPositionPolygon(polygon: MappedinPolygon | string): Vector3;
|
|
@@ -7279,7 +7320,7 @@ declare module '@mappedin/mappedin-js/packages/get-venue/pub-sub.typed' {
|
|
|
7279
7320
|
* @template EVENT_PAYLOAD - The type of the event payload.
|
|
7280
7321
|
* @template EVENT - The type of the event.
|
|
7281
7322
|
*/
|
|
7282
|
-
export class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD> {
|
|
7323
|
+
export class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD = keyof EVENT_PAYLOAD> {
|
|
7283
7324
|
/**
|
|
7284
7325
|
* @private
|
|
7285
7326
|
* @internal
|
|
@@ -9149,73 +9190,76 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9149
9190
|
import type { ICore, MappedinPolygon, Collider } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
9150
9191
|
import { BlueDotManager, Path } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
9151
9192
|
class EventSystem {
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9193
|
+
core: ICore;
|
|
9194
|
+
blueDotManager?: BlueDotManager;
|
|
9195
|
+
rendererDomElement: any;
|
|
9196
|
+
currentHover: string | null;
|
|
9197
|
+
hoverLabel: any;
|
|
9198
|
+
hoverColor: Color;
|
|
9199
|
+
options: {
|
|
9200
|
+
disableHover: boolean;
|
|
9201
|
+
};
|
|
9202
|
+
constructor(core: ICore);
|
|
9203
|
+
setBlueDotManager: (blueDotManager: any) => void;
|
|
9204
|
+
touchCount: number;
|
|
9205
|
+
zoomOut(): void;
|
|
9206
|
+
zoomIn(event: any): void;
|
|
9207
|
+
onPointerMove: (event: any) => void;
|
|
9208
|
+
onPointerUp: (event: any) => void;
|
|
9209
|
+
/**
|
|
9210
|
+
* We've confirmed that a map click has occured, so handle that here
|
|
9211
|
+
*/
|
|
9212
|
+
handleMapClick(event: any): void;
|
|
9213
|
+
onPointerDown: (event: any) => void;
|
|
9214
|
+
incrementTouches: (event: any) => void;
|
|
9215
|
+
decrementTouches: (event: any) => void;
|
|
9216
|
+
clearMouse: () => void;
|
|
9217
|
+
getMousePos: (event: any) => {
|
|
9218
|
+
x: any;
|
|
9219
|
+
y: any;
|
|
9220
|
+
};
|
|
9221
|
+
getScaledMousePos: (event: any) => {
|
|
9222
|
+
x: number;
|
|
9223
|
+
y: number;
|
|
9224
|
+
};
|
|
9225
|
+
cursorPos: {
|
|
9226
|
+
x: number;
|
|
9227
|
+
y: number;
|
|
9228
|
+
};
|
|
9229
|
+
mouse: {
|
|
9230
|
+
x: number;
|
|
9231
|
+
y: number;
|
|
9232
|
+
};
|
|
9233
|
+
mouseDownStart: {
|
|
9234
|
+
time: number;
|
|
9235
|
+
clientX: number;
|
|
9236
|
+
clientY: number;
|
|
9237
|
+
};
|
|
9238
|
+
scaledCursorPos: {
|
|
9239
|
+
x: number;
|
|
9240
|
+
y: number;
|
|
9241
|
+
};
|
|
9242
|
+
hasTouched: boolean;
|
|
9243
|
+
calculateMouseCoordinates: (event: any) => void;
|
|
9244
|
+
getMouseRayIntersects: (objects: Object3D | Object3D[]) => import("three").Intersection<Object3D<import("three").Object3DEventMap>>[];
|
|
9245
|
+
detectCollidersUnderMouse: () => Collider[];
|
|
9246
|
+
detectPolygonsUnderMouse: () => string[];
|
|
9247
|
+
detectPathsUnderMouse: () => Path[];
|
|
9248
|
+
detectWatermarkUnderMouse: () => boolean;
|
|
9249
|
+
detectMapsUnderMouse: () => (import("../../internal").MappedinMap | null)[];
|
|
9250
|
+
/**
|
|
9251
|
+
* Gets mouse click position in x y map coordinates
|
|
9252
|
+
*/
|
|
9253
|
+
getMouseMapPosition: () => {
|
|
9254
|
+
x: number;
|
|
9255
|
+
y: number;
|
|
9256
|
+
};
|
|
9257
|
+
checkMouseIntersectsBlueDot: () => boolean;
|
|
9258
|
+
doHoverEffect: () => void;
|
|
9259
|
+
onPolygonHoverOut: (polygonId: string) => false | undefined;
|
|
9260
|
+
onPolygonHoverOver: (polygon: MappedinPolygon | string) => false | undefined;
|
|
9261
|
+
setHoverColor: (color: string) => void;
|
|
9262
|
+
destroy(): void;
|
|
9219
9263
|
}
|
|
9220
9264
|
export default EventSystem;
|
|
9221
9265
|
}
|
|
@@ -9356,115 +9400,141 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9356
9400
|
import { STACKED_MAPS_STATE, MapViewScene, MapViewStackScene, CAMERA_EASING_MODE } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
9357
9401
|
import type { ICore, TCameraTransform } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
9358
9402
|
enum ACTION {
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9403
|
+
enable = "enable",
|
|
9404
|
+
disable = "disable",
|
|
9405
|
+
showOverview = "showOverview",
|
|
9406
|
+
zoomInToMap = "zoomInToMap",
|
|
9407
|
+
scrollToMap = "scrollToMap",
|
|
9408
|
+
restack = "restack"
|
|
9364
9409
|
}
|
|
9365
9410
|
type TTargetTransitionFunction = ((options: TParams) => () => Promise<void>) | ((options: TParams) => void);
|
|
9366
9411
|
type TParams = {
|
|
9367
|
-
|
|
9412
|
+
map: MappedinMap;
|
|
9368
9413
|
} | {
|
|
9369
|
-
|
|
9414
|
+
directions: MappedinDirections | MappedinDirections[];
|
|
9370
9415
|
} | {
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9416
|
+
stackScene: MapViewStackScene;
|
|
9417
|
+
directions: MappedinDirections | MappedinDirections[];
|
|
9418
|
+
verticalDistanceBetweenMaps?: number;
|
|
9374
9419
|
} | {
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9420
|
+
stackScene: MapViewStackScene;
|
|
9421
|
+
verticalDistanceBetweenMaps?: number;
|
|
9422
|
+
map: MappedinMap;
|
|
9423
|
+
nodes: MappedinNode[];
|
|
9379
9424
|
} | {
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9425
|
+
stackScene: MapViewStackScene;
|
|
9426
|
+
map: MappedinMap;
|
|
9427
|
+
nodes: MappedinNode[];
|
|
9428
|
+
rotation: number;
|
|
9429
|
+
cameraTransform?: TCameraTransform;
|
|
9430
|
+
verticalDistanceBetweenMaps?: number;
|
|
9386
9431
|
};
|
|
9387
9432
|
type TActionFn = [STACKED_MAPS_STATE, TTargetTransitionFunction[]];
|
|
9388
9433
|
type TState = {
|
|
9389
|
-
|
|
9390
|
-
|
|
9391
|
-
|
|
9434
|
+
[stateName in STACKED_MAPS_STATE]?: {
|
|
9435
|
+
actions: {
|
|
9436
|
+
[actionName in ACTION]?: TActionFn;
|
|
9437
|
+
};
|
|
9392
9438
|
};
|
|
9393
|
-
};
|
|
9394
9439
|
};
|
|
9395
9440
|
export type TInternalTransitionOptions = {
|
|
9396
|
-
|
|
9441
|
+
animate?: boolean;
|
|
9397
9442
|
};
|
|
9398
9443
|
export type TStackedMapsOptions = {
|
|
9399
|
-
|
|
9400
|
-
|
|
9444
|
+
/**
|
|
9445
|
+
* The vertical distance between maps in overview, in metres.
|
|
9446
|
+
* @default 50
|
|
9447
|
+
*/
|
|
9448
|
+
verticalDistanceBetweenMaps?: number;
|
|
9449
|
+
/**
|
|
9450
|
+
* Whether to show map level labels in overview.
|
|
9451
|
+
* @default true
|
|
9452
|
+
*/
|
|
9453
|
+
mapLabels?: boolean;
|
|
9454
|
+
/**
|
|
9455
|
+
* Whether to show only Journey maps in the stack if a Journey is active and the current map is part of the Journey.
|
|
9456
|
+
* @default true
|
|
9457
|
+
*/
|
|
9458
|
+
prioritizeJourneyMaps?: boolean;
|
|
9401
9459
|
};
|
|
9402
9460
|
class StackedMapsController {
|
|
9403
|
-
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
};
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
|
|
9443
|
-
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9454
|
-
|
|
9455
|
-
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9461
|
+
#private;
|
|
9462
|
+
options: TStackedMapsOptions;
|
|
9463
|
+
enabled: boolean;
|
|
9464
|
+
stackScene: MapViewStackScene;
|
|
9465
|
+
constructor(core: ICore);
|
|
9466
|
+
needsUpdate: boolean;
|
|
9467
|
+
currentState: STACKED_MAPS_STATE;
|
|
9468
|
+
mapsInStack: MappedinMap[];
|
|
9469
|
+
getZoomIntoMapOptions: (params: TParams) => (MapViewScene | {
|
|
9470
|
+
activeMap: MappedinMap;
|
|
9471
|
+
focusOn: {
|
|
9472
|
+
targets: {
|
|
9473
|
+
nodes: MappedinNode[];
|
|
9474
|
+
};
|
|
9475
|
+
options: {
|
|
9476
|
+
zoom?: number | undefined;
|
|
9477
|
+
tilt: number;
|
|
9478
|
+
rotation: number;
|
|
9479
|
+
position?: MappedinNode | import("../../internal").MappedinCoordinate | undefined;
|
|
9480
|
+
easing: CAMERA_EASING_MODE;
|
|
9481
|
+
};
|
|
9482
|
+
};
|
|
9483
|
+
})[] | undefined;
|
|
9484
|
+
getDisableOptions: (params: TParams) => (MapViewScene | {
|
|
9485
|
+
activeMap: MappedinMap;
|
|
9486
|
+
})[] | undefined;
|
|
9487
|
+
getShowOverviewOptions: (params: TParams) => (MapViewStackScene | {
|
|
9488
|
+
activeMap: MappedinMap;
|
|
9489
|
+
focusOn: {
|
|
9490
|
+
options: {
|
|
9491
|
+
tilt: number;
|
|
9492
|
+
duration: number;
|
|
9493
|
+
};
|
|
9494
|
+
};
|
|
9495
|
+
verticalDistanceBetweenMaps: number | undefined;
|
|
9496
|
+
})[] | undefined;
|
|
9497
|
+
getScrollToMapOptions: (params: TParams) => (MapViewStackScene | {
|
|
9498
|
+
focusOn: {
|
|
9499
|
+
targets: {
|
|
9500
|
+
nodes: MappedinNode[];
|
|
9501
|
+
};
|
|
9502
|
+
options: {
|
|
9503
|
+
tilt: number;
|
|
9504
|
+
easing: CAMERA_EASING_MODE;
|
|
9505
|
+
};
|
|
9506
|
+
};
|
|
9507
|
+
activeMap: MappedinMap;
|
|
9508
|
+
})[] | undefined;
|
|
9509
|
+
getRestackOptions: (params: TParams) => (MapViewStackScene | {
|
|
9510
|
+
activeMap: MappedinMap;
|
|
9511
|
+
focusOn: {
|
|
9512
|
+
options: {
|
|
9513
|
+
tilt: number;
|
|
9514
|
+
duration: number;
|
|
9515
|
+
};
|
|
9516
|
+
};
|
|
9517
|
+
verticalDistanceBetweenMaps: number | undefined;
|
|
9518
|
+
})[] | undefined;
|
|
9519
|
+
getEnableOptions: () => void;
|
|
9520
|
+
getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
9521
|
+
getZoomInToMapTransition: (options: any) => () => Promise<void>;
|
|
9522
|
+
getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
9523
|
+
getRestackTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
9524
|
+
getDisableTransition: (options: any) => () => Promise<void>;
|
|
9525
|
+
getEnableTransition: () => () => void;
|
|
9526
|
+
states: TState;
|
|
9527
|
+
get determineMapStack(): MappedinMap[];
|
|
9528
|
+
transition(currentState: STACKED_MAPS_STATE, actionName: ACTION): TTargetTransitionFunction[] | void;
|
|
9529
|
+
exec(transitions: TTargetTransitionFunction[] | void, params: TParams): Promise<void>;
|
|
9530
|
+
disable: () => Promise<void>;
|
|
9531
|
+
enable: (opts?: TStackedMapsOptions) => Promise<void>;
|
|
9532
|
+
get nodesInJourneyOrMap(): any[];
|
|
9533
|
+
showOverview: () => Promise<void>;
|
|
9534
|
+
scrollToMap: (map: MappedinMap) => Promise<void>;
|
|
9535
|
+
restack: (options?: TStackedMapsOptions) => Promise<void>;
|
|
9536
|
+
zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
|
|
9537
|
+
get currentMap(): MappedinMap;
|
|
9468
9538
|
}
|
|
9469
9539
|
export default StackedMapsController;
|
|
9470
9540
|
}
|
|
@@ -9954,7 +10024,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9954
10024
|
/**
|
|
9955
10025
|
* Exports the current scene as a GLTF file.
|
|
9956
10026
|
*/
|
|
9957
|
-
getCurrentSceneGLTF(userOptions: TGLTFExportOptions)
|
|
10027
|
+
getCurrentSceneGLTF: (userOptions: TGLTFExportOptions) => Promise<Blob>;
|
|
9958
10028
|
}
|
|
9959
10029
|
}
|
|
9960
10030
|
|
|
@@ -9978,6 +10048,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controlle
|
|
|
9978
10048
|
*/
|
|
9979
10049
|
getVisibleLayersForLoadedMap(map: MappedinMap): string[] | undefined;
|
|
9980
10050
|
addGeoJSONLayer(layerName: string, featureOrFeatureCollection: Feature<Polygon, GeoJsonProperties | null> | FeatureCollection<Polygon, GeoJsonProperties | null>): Promise<void>;
|
|
10051
|
+
removeGeoJSONLayer(layerName: string): Promise<void>;
|
|
9981
10052
|
}
|
|
9982
10053
|
export default LayerController;
|
|
9983
10054
|
}
|
|
@@ -11458,7 +11529,7 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/Core' {
|
|
|
11458
11529
|
resolution: Vector2;
|
|
11459
11530
|
cameraParameters: any;
|
|
11460
11531
|
controls: typeof Mappedin.CameraControls;
|
|
11461
|
-
|
|
11532
|
+
worldPlane: Mesh;
|
|
11462
11533
|
canvasWidth: number;
|
|
11463
11534
|
canvasHeight: number;
|
|
11464
11535
|
cachedPadding: TPadding;
|
|
@@ -12628,7 +12699,7 @@ declare module '@mappedin/mappedin-js/maker/src/api-cms/api-cms' {
|
|
|
12628
12699
|
import { MapData, TShow3DMapOptions } from '@mappedin/mappedin-js/maker/src';
|
|
12629
12700
|
import { IDirectionsResult, MappedinMap } from '@mappedin/mappedin-js/packages/get-venue';
|
|
12630
12701
|
import { FloatingLabel, Marker as LegacyMarker } from '@mappedin/mappedin-js/cms/src';
|
|
12631
|
-
import { JourneyController } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
12702
|
+
import { ExportController, JourneyController } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
12632
12703
|
import Core from '@mappedin/mappedin-js/packages/legacy-renderer/private/Core';
|
|
12633
12704
|
import { Coordinate, Door, Floor, MapDataInternal, MapObject, PointOfInterest, Space } from '@mappedin/mappedin-js/maker/src/map-data-objects';
|
|
12634
12705
|
import { MapView } from '@mappedin/mappedin-js/maker/src/map-view';
|
|
@@ -12653,6 +12724,7 @@ declare module '@mappedin/mappedin-js/maker/src/api-cms/api-cms' {
|
|
|
12653
12724
|
journey?: JourneyController;
|
|
12654
12725
|
Navigation: Navigation;
|
|
12655
12726
|
auto: DefaultTheme['auto'];
|
|
12727
|
+
exportController?: ExportController;
|
|
12656
12728
|
constructor(el: HTMLElement, mapView: MapView, optionsWithDefaults: TShow3DMapOptions);
|
|
12657
12729
|
get currentFloor(): Floor;
|
|
12658
12730
|
setFloor(floor: Floor | string): void;
|
|
@@ -14084,37 +14156,6 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Camera
|
|
|
14084
14156
|
}
|
|
14085
14157
|
}
|
|
14086
14158
|
|
|
14087
|
-
declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Exporter' {
|
|
14088
|
-
import { ExportController } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
14089
|
-
/**
|
|
14090
|
-
* @hidden
|
|
14091
|
-
*/
|
|
14092
|
-
export type TGLTFExportOptions = {
|
|
14093
|
-
onlyVisible?: boolean;
|
|
14094
|
-
binary?: boolean;
|
|
14095
|
-
scale?: number;
|
|
14096
|
-
};
|
|
14097
|
-
/**
|
|
14098
|
-
* API to export the scene.
|
|
14099
|
-
*
|
|
14100
|
-
* @hidden
|
|
14101
|
-
*/
|
|
14102
|
-
export class Exporter {
|
|
14103
|
-
#private;
|
|
14104
|
-
/**
|
|
14105
|
-
* @hidden
|
|
14106
|
-
* @internal
|
|
14107
|
-
*/
|
|
14108
|
-
constructor(controller: ExportController);
|
|
14109
|
-
/**
|
|
14110
|
-
* Exports the current scene as a GLTF file.
|
|
14111
|
-
*
|
|
14112
|
-
* @hidden
|
|
14113
|
-
*/
|
|
14114
|
-
getCurrentSceneGLTF(userOptions: TGLTFExportOptions): Promise<Blob>;
|
|
14115
|
-
}
|
|
14116
|
-
}
|
|
14117
|
-
|
|
14118
14159
|
declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/StackedMaps' {
|
|
14119
14160
|
import { MappedinMap } from '@mappedin/mappedin-js/packages/get-venue';
|
|
14120
14161
|
import { STACKED_MAPS_STATE, StackedMapsController, TCameraTransform } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
|
|
@@ -14220,6 +14261,26 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Stacke
|
|
|
14220
14261
|
* @returns Promise when all animations are complete.
|
|
14221
14262
|
*/
|
|
14222
14263
|
zoomInToMap: (map: MappedinMap, cameraTransform?: TCameraTransform) => Promise<void>;
|
|
14264
|
+
/**
|
|
14265
|
+
* @experimental
|
|
14266
|
+
*
|
|
14267
|
+
* Used when in {@link STACKED_MAPS_STATE.OVERVIEW | OVERVIEW} state to replace the maps in the
|
|
14268
|
+
* current stack if there is a new Journey or Journey is cleared.
|
|
14269
|
+
*
|
|
14270
|
+
* @param options - Options to adjust the overview. Each option defaults to the setting passed in {@link enable}, unless provided.
|
|
14271
|
+
*
|
|
14272
|
+
* @example
|
|
14273
|
+
* ```ts
|
|
14274
|
+
* mapView.Journey.draw(...);
|
|
14275
|
+
* mapView.StackedMaps.enable();
|
|
14276
|
+
* mapView.StackedMaps.showOverview();
|
|
14277
|
+
* mapView.Journey.clear();
|
|
14278
|
+
* mapView.StackedMaps.restack();
|
|
14279
|
+
* ```
|
|
14280
|
+
*
|
|
14281
|
+
* @returns Promise when all animations are complete.
|
|
14282
|
+
*/
|
|
14283
|
+
restack: (options?: TStackedMapsOptions) => Promise<void>;
|
|
14223
14284
|
/**
|
|
14224
14285
|
* @experimental
|
|
14225
14286
|
*
|
|
@@ -14311,6 +14372,12 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/public/api/Layers
|
|
|
14311
14372
|
* Adds a GeoJSON Feature or FeatureCollection to the map as a layer. The layer name must be unique
|
|
14312
14373
|
*/
|
|
14313
14374
|
addGeoJSONLayer(layerName: string, featureOrFeatureCollection: Feature<Polygon, GeoJsonProperties | null> | FeatureCollection<Polygon, GeoJsonProperties | null>): Promise<void> | undefined;
|
|
14375
|
+
/**
|
|
14376
|
+
* @experimental
|
|
14377
|
+
* Hides a GeoJSON layer from the map and removes it from the list of layers.
|
|
14378
|
+
* It will not appear in {@link getAllLayersForMap} afterwards and can be overwritten by a new layer with the same name.
|
|
14379
|
+
*/
|
|
14380
|
+
removeGeoJSONLayer(layerName: string): Promise<void> | undefined;
|
|
14314
14381
|
}
|
|
14315
14382
|
export default LayerController;
|
|
14316
14383
|
}
|