@mappedin/mappedin-js 4.0.18 → 4.0.21
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 -144
- package/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/renderer/index.d.ts +321 -203
- package/lib/esm/renderer/index.js +1 -1
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +5 -4
|
@@ -58,7 +58,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
|
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
export { MAP_RENDER_MODE };
|
|
61
|
-
export function getVenueMVF(userOptions:
|
|
61
|
+
export function getVenueMVF(userOptions: TGetVenueBundleOptions): Promise<Mappedin>;
|
|
62
62
|
/**
|
|
63
63
|
* Get Venue Data for a Mappedin Venue
|
|
64
64
|
*/
|
|
@@ -106,7 +106,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
|
|
|
106
106
|
/**
|
|
107
107
|
* @internal
|
|
108
108
|
*/
|
|
109
|
-
export function downloadVenueBundleMVF(options:
|
|
109
|
+
export function downloadVenueBundleMVF(options: TGetVenueBundleOptions,
|
|
110
110
|
/**
|
|
111
111
|
* use Web Workers to speed up MVF parsing. This is likely only benefitial for larger venues,
|
|
112
112
|
* and may be determental to smaller ones, hence it is off by default
|
|
@@ -173,6 +173,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
173
173
|
import { MappedinTheme } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinTheme';
|
|
174
174
|
import { MappedinVenue } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinVenue';
|
|
175
175
|
import { MappedinVortex } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinVortex';
|
|
176
|
+
import Analytics from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.Analytics';
|
|
176
177
|
export const defaultOptions: TGetVenueOptionsInternal & TGetVenueOptions;
|
|
177
178
|
export enum MappedinCollectionType {
|
|
178
179
|
CATEGORY = "categories",
|
|
@@ -401,9 +402,11 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
401
402
|
*/
|
|
402
403
|
hydrate(mappedinSerializableData: string | object, shouldPopulateBundledImagesAsBlobs?: boolean): Promise<undefined>;
|
|
403
404
|
images: any;
|
|
405
|
+
imageBinaries?: Map<string, Uint8Array>;
|
|
404
406
|
scenes: any;
|
|
405
407
|
fetch(): Promise<void>;
|
|
406
408
|
constructor(options: TGetVenueOptionsInternal & TGetVenueOptions);
|
|
409
|
+
analytics: Analytics;
|
|
407
410
|
/**
|
|
408
411
|
* @hidden
|
|
409
412
|
*/
|
|
@@ -551,6 +554,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinPolygo
|
|
|
551
554
|
y: number;
|
|
552
555
|
z: number;
|
|
553
556
|
};
|
|
557
|
+
_isAbsolutelyPositioned?: boolean;
|
|
554
558
|
};
|
|
555
559
|
holes?: unknown[];
|
|
556
560
|
textures?: {
|
|
@@ -1410,179 +1414,192 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.API.t
|
|
|
1410
1414
|
venue: TVenue;
|
|
1411
1415
|
vortexes: TVortex[];
|
|
1412
1416
|
locationStates?: TLocationState[];
|
|
1417
|
+
imageBinaries?: Map<string, Uint8Array>;
|
|
1413
1418
|
};
|
|
1414
1419
|
}
|
|
1415
1420
|
|
|
1416
1421
|
declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.MVF.types' {
|
|
1417
|
-
import { FeatureCollection, Polygon, Point, MultiPolygon } from 'geojson';
|
|
1422
|
+
import { FeatureCollection, Polygon, Point, MultiPolygon, Position } from 'geojson';
|
|
1418
1423
|
type ManifestFile = {
|
|
1419
|
-
|
|
1420
|
-
|
|
1424
|
+
type: 'file';
|
|
1425
|
+
name: string;
|
|
1421
1426
|
};
|
|
1422
1427
|
type ManifestFolder = {
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1428
|
+
type: 'folder';
|
|
1429
|
+
name: string;
|
|
1430
|
+
children: ManifestFile[];
|
|
1426
1431
|
};
|
|
1427
1432
|
type OpeningHours = {
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
+
opens: string;
|
|
1434
|
+
closes: string;
|
|
1435
|
+
dayOfWeek: string;
|
|
1436
|
+
validFrom?: string;
|
|
1437
|
+
validThrough?: string;
|
|
1433
1438
|
};
|
|
1434
1439
|
type Image = {
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1440
|
+
original?: string;
|
|
1441
|
+
xlarge?: string;
|
|
1442
|
+
xxlarge?: string;
|
|
1443
|
+
medium?: string;
|
|
1444
|
+
'140x140'?: string;
|
|
1445
|
+
xsmall?: string;
|
|
1446
|
+
xxsmall?: string;
|
|
1447
|
+
'66x66'?: string;
|
|
1448
|
+
small?: string;
|
|
1449
|
+
large?: string;
|
|
1445
1450
|
};
|
|
1446
1451
|
type PolygonImage = string;
|
|
1447
1452
|
type Phone = {
|
|
1448
|
-
|
|
1449
|
-
|
|
1453
|
+
number: string;
|
|
1454
|
+
extension?: string;
|
|
1450
1455
|
};
|
|
1451
1456
|
type Link = {
|
|
1452
|
-
|
|
1453
|
-
|
|
1457
|
+
label: string;
|
|
1458
|
+
url: string;
|
|
1454
1459
|
};
|
|
1455
1460
|
type Social = {
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1461
|
+
facebook?: string;
|
|
1462
|
+
twitter?: string;
|
|
1463
|
+
instagram?: string;
|
|
1464
|
+
website?: string;
|
|
1460
1465
|
};
|
|
1461
1466
|
type LocationState = {
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
};
|
|
1466
|
-
type ImageTransform = {
|
|
1467
|
-
position: {
|
|
1468
|
-
x: number;
|
|
1469
|
-
y: number;
|
|
1470
|
-
z: number;
|
|
1471
|
-
};
|
|
1472
|
-
rotation: number;
|
|
1473
|
-
scale: {
|
|
1474
|
-
x: number;
|
|
1475
|
-
y: number;
|
|
1476
|
-
};
|
|
1467
|
+
type: string;
|
|
1468
|
+
start?: string;
|
|
1469
|
+
end?: string;
|
|
1477
1470
|
};
|
|
1478
1471
|
type SiblingGroup = {
|
|
1479
|
-
|
|
1480
|
-
|
|
1472
|
+
label: string;
|
|
1473
|
+
siblings: string[];
|
|
1481
1474
|
};
|
|
1482
1475
|
export type MILocationProperties = {
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1476
|
+
id: string;
|
|
1477
|
+
address?: string | null;
|
|
1478
|
+
categories: string[];
|
|
1479
|
+
description?: string | null;
|
|
1480
|
+
email?: string | null;
|
|
1481
|
+
externalId?: string | null;
|
|
1482
|
+
hours?: OpeningHours[] | null;
|
|
1483
|
+
links?: Link[] | null;
|
|
1484
|
+
logo?: Image | null;
|
|
1485
|
+
name: string;
|
|
1486
|
+
phone?: Phone | null;
|
|
1487
|
+
picture?: Image | null;
|
|
1488
|
+
services?: string | null;
|
|
1489
|
+
siblingGroups?: SiblingGroup[] | null;
|
|
1490
|
+
social?: Social | null;
|
|
1491
|
+
spaces?: TLocationSpaceReference[] | null;
|
|
1492
|
+
states?: LocationState[] | null;
|
|
1493
|
+
type: string;
|
|
1501
1494
|
};
|
|
1502
1495
|
export type MICategoryProperties = {
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1496
|
+
id: string;
|
|
1497
|
+
name: string;
|
|
1498
|
+
picture?: Image;
|
|
1506
1499
|
};
|
|
1507
1500
|
export type MIBuildingProperties = {
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1501
|
+
id: string;
|
|
1502
|
+
name: string;
|
|
1503
|
+
venue: string;
|
|
1511
1504
|
};
|
|
1512
1505
|
export type MILevelProperties = {
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1506
|
+
id: string;
|
|
1507
|
+
abbreviation?: string;
|
|
1508
|
+
building?: string;
|
|
1509
|
+
elevation?: number;
|
|
1510
|
+
name: string;
|
|
1518
1511
|
};
|
|
1519
1512
|
export type MIPolygonlikeProperties = {
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1513
|
+
id: string;
|
|
1514
|
+
altitude?: string;
|
|
1515
|
+
color?: string;
|
|
1516
|
+
externalId?: string | null;
|
|
1517
|
+
height?: string;
|
|
1518
|
+
layer?: string;
|
|
1519
|
+
level: string;
|
|
1520
|
+
parent?: string | null;
|
|
1528
1521
|
};
|
|
1529
1522
|
type TPseudoNodeSpaceReference = {
|
|
1530
|
-
|
|
1531
|
-
|
|
1523
|
+
node: string;
|
|
1524
|
+
map: string;
|
|
1532
1525
|
};
|
|
1533
1526
|
export type TRealSpaceReference = {
|
|
1534
|
-
|
|
1535
|
-
|
|
1527
|
+
id: string;
|
|
1528
|
+
map: string;
|
|
1536
1529
|
};
|
|
1537
1530
|
type TLocationSpaceReference = TPseudoNodeSpaceReference | TRealSpaceReference;
|
|
1538
1531
|
export type TEntrances = {
|
|
1539
|
-
|
|
1540
|
-
|
|
1532
|
+
id: string;
|
|
1533
|
+
level: string;
|
|
1541
1534
|
};
|
|
1542
1535
|
export type MISpaceProperties = MIPolygonlikeProperties & {
|
|
1543
|
-
|
|
1536
|
+
entrances: TEntrances[];
|
|
1544
1537
|
};
|
|
1545
1538
|
export type MIObstructionProperties = MIPolygonlikeProperties;
|
|
1546
1539
|
export type MIConnectionProperties = {
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1540
|
+
id: string;
|
|
1541
|
+
accessible: boolean;
|
|
1542
|
+
destinations: string[];
|
|
1543
|
+
level: string;
|
|
1544
|
+
multiplier: number;
|
|
1545
|
+
name: string;
|
|
1546
|
+
type: string;
|
|
1547
|
+
weight: number;
|
|
1555
1548
|
};
|
|
1556
1549
|
export type MINodeProperties = {
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1550
|
+
id: string;
|
|
1551
|
+
accessible: boolean;
|
|
1552
|
+
externalId: string | null;
|
|
1553
|
+
level: string;
|
|
1554
|
+
multiplier: number;
|
|
1555
|
+
neighbors: string[];
|
|
1556
|
+
weight: number;
|
|
1564
1557
|
};
|
|
1565
1558
|
export type MIManifestProperties = {
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1559
|
+
name: string;
|
|
1560
|
+
folder_struct: (ManifestFolder | ManifestFile)[];
|
|
1561
|
+
version: string;
|
|
1562
|
+
time: string;
|
|
1570
1563
|
};
|
|
1571
|
-
export type
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1564
|
+
export type MIStyle = {
|
|
1565
|
+
id: string;
|
|
1566
|
+
/** The altitude of the bottom of the geometry, in metres. */
|
|
1567
|
+
altitude: number;
|
|
1568
|
+
color: string;
|
|
1569
|
+
height: number;
|
|
1570
|
+
image?: PolygonImage;
|
|
1571
|
+
opacity: number;
|
|
1577
1572
|
};
|
|
1578
|
-
export type
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1573
|
+
export type MIImageInstance = {
|
|
1574
|
+
/** The local path or URL of the image. */
|
|
1575
|
+
path: string;
|
|
1576
|
+
/** The position of the centre of the image, in [long, lat] form. */
|
|
1577
|
+
position: Position;
|
|
1578
|
+
/** The altitude of the image, in metres. */
|
|
1579
|
+
altitude: number;
|
|
1580
|
+
/** Euler angles representing the rotation of the image, in degrees. Angles are in XYZ order. */
|
|
1581
|
+
rotation: {
|
|
1582
|
+
x: number;
|
|
1583
|
+
y: number;
|
|
1584
|
+
z: number;
|
|
1585
|
+
};
|
|
1586
|
+
/** The size of the image, in metres. */
|
|
1587
|
+
size: {
|
|
1588
|
+
x: number;
|
|
1589
|
+
y: number;
|
|
1590
|
+
};
|
|
1591
|
+
/** The portion of the image to display. */
|
|
1592
|
+
viewBox: {
|
|
1593
|
+
top: number;
|
|
1594
|
+
left: number;
|
|
1595
|
+
width: number;
|
|
1596
|
+
height: number;
|
|
1597
|
+
};
|
|
1598
|
+
/**
|
|
1599
|
+
* A space or obstruction to associate this image with. If provided,
|
|
1600
|
+
* changes to the polygon's visibility will affect this image.
|
|
1601
|
+
* */
|
|
1602
|
+
polygonId?: string;
|
|
1586
1603
|
};
|
|
1587
1604
|
export type MIGeoJSONManifestCollection = FeatureCollection<Point, MIManifestProperties>;
|
|
1588
1605
|
export type MIGeoJSONBuildingCollection = FeatureCollection<Polygon, MIBuildingProperties>;
|
|
@@ -1593,25 +1610,35 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.MVF.t
|
|
|
1593
1610
|
export type MIGeoJSONNodeCollection = FeatureCollection<Point, MINodeProperties>;
|
|
1594
1611
|
export type MIGeoJSONLocationCollection = FeatureCollection<null, MILocationProperties>;
|
|
1595
1612
|
export type MIGeoJSONCategoryCollection = FeatureCollection<null, MICategoryProperties>;
|
|
1596
|
-
export type MIGeoJSONLayerStyleCollection = FeatureCollection<null, MILayerStyleProperties>;
|
|
1597
|
-
export type MIGeoJSONPolygonStyleCollection = FeatureCollection<null, MIPolygonStyleProperties>;
|
|
1598
1613
|
export type WithIDs<T> = Map<string, T>;
|
|
1614
|
+
export type MIStyleCollection = MIStyle[];
|
|
1599
1615
|
/**
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1616
|
+
* A mapping of polygon IDs to style IDs;
|
|
1617
|
+
*/
|
|
1618
|
+
export type MIPolygonStyle = {
|
|
1619
|
+
[key in string]: string;
|
|
1620
|
+
};
|
|
1621
|
+
export type MIImageInstanceCollection = MIImageInstance[];
|
|
1622
|
+
/**
|
|
1623
|
+
* The entire data collection for an MVF, in a single JSON collection.
|
|
1624
|
+
*
|
|
1625
|
+
*/
|
|
1626
|
+
export type MVFDataJSON = {
|
|
1627
|
+
connection: WithIDs<MIGeoJSONConnectionCollection>;
|
|
1628
|
+
level: WithIDs<MIGeoJSONLevelCollection>;
|
|
1629
|
+
node: WithIDs<MIGeoJSONNodeCollection>;
|
|
1630
|
+
obstruction: WithIDs<MIGeoJSONObstructionCollection>;
|
|
1631
|
+
space: WithIDs<MIGeoJSONSpaceCollection>;
|
|
1632
|
+
building: MIGeoJSONBuildingCollection;
|
|
1633
|
+
category: MIGeoJSONCategoryCollection;
|
|
1634
|
+
style: MIStyleCollection;
|
|
1635
|
+
polygonStyle: WithIDs<MIPolygonStyle>;
|
|
1636
|
+
imageInstance: WithIDs<MIImageInstanceCollection>;
|
|
1637
|
+
location: MIGeoJSONLocationCollection;
|
|
1638
|
+
manifest: MIGeoJSONManifestCollection;
|
|
1639
|
+
};
|
|
1640
|
+
export type MVFData = MVFDataJSON & {
|
|
1641
|
+
imageBinaries: WithIDs<Uint8Array>;
|
|
1615
1642
|
};
|
|
1616
1643
|
export {};
|
|
1617
1644
|
}
|
|
@@ -1665,6 +1692,90 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinTheme'
|
|
|
1665
1692
|
}
|
|
1666
1693
|
}
|
|
1667
1694
|
|
|
1695
|
+
declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.Analytics' {
|
|
1696
|
+
type AnalyticsOptions = {
|
|
1697
|
+
clientId?: string;
|
|
1698
|
+
clientSecret?: string;
|
|
1699
|
+
accessToken?: string;
|
|
1700
|
+
noAuth?: boolean;
|
|
1701
|
+
venue: string;
|
|
1702
|
+
testMode?: boolean | string;
|
|
1703
|
+
context?: string;
|
|
1704
|
+
};
|
|
1705
|
+
/**
|
|
1706
|
+
* A class to access the Mappedin Analytics platform. Correct usage will improve Smart Search results, and lead to more accurate insights.
|
|
1707
|
+
* This will be created for you as part of Mappedin.{{#crossLink "Mappedin/initialize:method"}}{{/crossLink}}, but you can also create one manually. You are mostly going to use `locationSelected`.
|
|
1708
|
+
*
|
|
1709
|
+
* @type {any}
|
|
1710
|
+
*
|
|
1711
|
+
* @class Analytics
|
|
1712
|
+
* @param options {Object} A list of configuration options for the Analytics API.
|
|
1713
|
+
* @param [options.clientId] {String} The same key you are using for getVenue. Handled automatically in Mapview.initialize()
|
|
1714
|
+
* @param [options.clientSecret] {String} The same secret you are using for getVenue. Handled automatically in Mapview.initialize()
|
|
1715
|
+
* @param [options.venue] {String} The same venue slug you are using for getVenue. Handled automatically in MapView.initialize()
|
|
1716
|
+
* @param [options.context] {String} The context to pass with the analytics request. Defaults to "websdk".
|
|
1717
|
+
* @param [options.noAuth] {Boolean} Whether authentication should not be sent with analytics requests.
|
|
1718
|
+
* @param [options.testMode] {Boolean} Whether analytics events should be dropped because this is running in a test environment.
|
|
1719
|
+
*/
|
|
1720
|
+
class Analytics {
|
|
1721
|
+
#private;
|
|
1722
|
+
constructor(options: AnalyticsOptions);
|
|
1723
|
+
track(target: any, query: any): void;
|
|
1724
|
+
/**
|
|
1725
|
+
* Whenever a location is selected, you should fire this event. What "selected" means can vary by venue,
|
|
1726
|
+
* but a good rule of thumb is that you fire the event whenever you would show the location's details.
|
|
1727
|
+
* Typically this is when the user taps it's polygon on the map, picks it from search results or a category list.
|
|
1728
|
+
* or deep links directly into the map.
|
|
1729
|
+
* @method locationSelected
|
|
1730
|
+
* @param location {MappedinLocation} The location the user selected.
|
|
1731
|
+
*/
|
|
1732
|
+
locationSelected(location: any): void;
|
|
1733
|
+
/**
|
|
1734
|
+
* Whenever a category is selected, you should fire this event.
|
|
1735
|
+
* @method categorySelected
|
|
1736
|
+
* @param category {MappedinCategory} The category the user selected.
|
|
1737
|
+
*/
|
|
1738
|
+
categorySelected(category: any): void;
|
|
1739
|
+
mapViewLoaded(type: any, forced: any, benchmark: any, reason: any): void;
|
|
1740
|
+
/**
|
|
1741
|
+
* Whenever a user requests directions, you should fire this event.
|
|
1742
|
+
* @method getDirections
|
|
1743
|
+
* @param start {MappedinLocation} The start location for wayfinding.
|
|
1744
|
+
* @param end {MappedinLocation} The end location for wayfinding.
|
|
1745
|
+
*/
|
|
1746
|
+
getDirections(start: any, end: any): void;
|
|
1747
|
+
getSessionID(): string;
|
|
1748
|
+
getDeviceID(): string;
|
|
1749
|
+
/**
|
|
1750
|
+
* @param mode {Boolean} Indicates whether the user's geolocation is enabled.
|
|
1751
|
+
*/
|
|
1752
|
+
setGeolocationMode(mode: any): void;
|
|
1753
|
+
/**
|
|
1754
|
+
* Track an event.
|
|
1755
|
+
* @method trackBlueDotEvent
|
|
1756
|
+
* @param event {String}
|
|
1757
|
+
* event param should be a property of the {{#crossLink "Analytics/BLUEDOT_EVENT:property"}}{{/crossLink}} property.
|
|
1758
|
+
*/
|
|
1759
|
+
trackBlueDotEvent(blueDotEvent: any): void;
|
|
1760
|
+
trackSearch(searchAnalyticsObject: any): void;
|
|
1761
|
+
trackSearchSuggest(searchAnalyticsObject: any): void;
|
|
1762
|
+
/**
|
|
1763
|
+
* Enum of valid bluedot events.
|
|
1764
|
+
* Pass a property of this into the {{#crossLink "Analytics/trackBlueDotEvent:method"}}{{/crossLink}} method.
|
|
1765
|
+
* Valid properties are: ATTEMPT_BLUEDOT, FOUND_POSITION, FOUND_FLOOR.
|
|
1766
|
+
* @property BLUEDOT_EVENT {Object}
|
|
1767
|
+
* @example
|
|
1768
|
+
* Analytics.trackBlueDotEvent(Analytics.BLUEDOT_EVENT.ATTEMPT_BLUEDOT)
|
|
1769
|
+
*/
|
|
1770
|
+
static BLUEDOT_EVENT: {
|
|
1771
|
+
ATTEMPT_BLUEDOT: string;
|
|
1772
|
+
FOUND_POSITION: string;
|
|
1773
|
+
FOUND_FLOOR: string;
|
|
1774
|
+
};
|
|
1775
|
+
}
|
|
1776
|
+
export default Analytics;
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1668
1779
|
declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue' {
|
|
1669
1780
|
import type { TGetVenueOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.types';
|
|
1670
1781
|
import { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin';
|
|
@@ -1721,7 +1832,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue' {
|
|
|
1721
1832
|
};
|
|
1722
1833
|
};
|
|
1723
1834
|
export { MAP_RENDER_MODE };
|
|
1724
|
-
export function getVenueMVF(userOptions:
|
|
1835
|
+
export function getVenueMVF(userOptions: TGetVenueBundleOptions): Promise<Mappedin>;
|
|
1725
1836
|
/**
|
|
1726
1837
|
* Get Venue Data for a Mappedin Venue
|
|
1727
1838
|
*/
|
|
@@ -1769,7 +1880,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue' {
|
|
|
1769
1880
|
/**
|
|
1770
1881
|
* @internal
|
|
1771
1882
|
*/
|
|
1772
|
-
export function downloadVenueBundleMVF(options:
|
|
1883
|
+
export function downloadVenueBundleMVF(options: TGetVenueBundleOptions,
|
|
1773
1884
|
/**
|
|
1774
1885
|
* use Web Workers to speed up MVF parsing. This is likely only benefitial for larger venues,
|
|
1775
1886
|
* and may be determental to smaller ones, hence it is off by default
|