@mappedin/mappedin-js 6.28.0 → 6.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_LICENSES.txt +16 -16
- package/lib/esm/{GLTFExporter-ZWJVUQYW.js → GLTFExporter-CJUD7JMV.js} +1 -1
- package/lib/esm/{GLTFLoader-KY54TKJC.js → GLTFLoader-MTMYVLQU.js} +1 -1
- package/lib/esm/{chunk-5LA75EWW.js → chunk-6B7UOP66.js} +1 -1
- package/lib/esm/chunk-CVE2OU2K.js +1222 -0
- package/lib/esm/chunk-HG7Z6IZL.js +661 -0
- package/lib/esm/{chunk-NSFD6GIA.js → chunk-NORDUZWG.js} +55 -55
- package/lib/esm/{chunk-DHC2W2GX.js → chunk-XCZ3NIVP.js} +1 -1
- package/lib/esm/index.d.ts +1495 -1023
- package/lib/esm/index.js +1 -1
- package/lib/esm/{inspector-KVMOBKLB.js → inspector-QX4IZXS5.js} +6 -6
- package/lib/esm/internal-WKDCJZW4.js +1 -0
- package/lib/esm/{src-VQYXJYHC.js → src-SJINR2H5.js} +1 -1
- package/lib/esm/{text3d-NBDSOPS5.js → text3d-4RZOLSQE.js} +1 -1
- package/package.json +1 -1
- package/lib/esm/chunk-77KKQDRA.js +0 -661
- package/lib/esm/chunk-AOSLWGHW.js +0 -1230
- package/lib/esm/internal-7KD7ZWIW.js +0 -1
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _mappedin_mvf_v20 from "@mappedin/mvf-v2";
|
|
2
|
-
import { AnnotationCollection, AnnotationSymbol, AreaCollection,
|
|
2
|
+
import { AnnotationCollection, AnnotationSymbol, AreaCollection, BaseTextAreaProperties, Category, CategoryId, Connection as Connection$1, Details, EnterpriseCategory as EnterpriseCategory$1, EnterpriseLocation as EnterpriseLocation$1, EnterpriseTexture, EnterpriseVenue as EnterpriseVenue$1, EnterpriseVenueType, EntranceCollection, EntranceFeature, Facade as Facade$1, Feature as Feature$1, FeatureCollection as FeatureCollection$1, FloatingFloorTextProperties, FloorId, FloorProperties, FloorStack as FloorStack$1, FloorTextCommonProperties, Geometry as Geometry$1, Hyperlink as Hyperlink$1, Image, Language, LineStringStyle, LineStringStyle as TMVFLineStringStyle, LocationId, LocationLink, LocationSocial, LocationSocial as LocationSocial$1, LocationState, LocationState as LocationState$1, MVFv2_STANDARD_MVFv3, MultiPolygon as MultiPolygon$1, NavigationFlagDeclarations, NodeCollection, ObstructionCollection, ObstructionCollection as ObstructionCollection$1, ObstructionFeature, OpeningHoursSpecification, OperationHours, OperationHours as OperationHours$1, ParsedMVF, ParsedMVF as TMVF, ParsedMVFLocalePack, Point as Point$1, PointStyle, PointStyle as TMVFPointStyle, Polygon as Polygon$1, PolygonStyle, PolygonStyle as TMVFPolygonStyle, SiblingGroup, SiblingGroup as SiblingGroup$1, SpaceCollection, SpaceCollection as SpaceCollection$1, SpaceFeature, SpaceProperties, Style as TMVFStyle, StyleCollection, StyleCollection as TMVFStyleCollection, TilesetStyle } from "@mappedin/mvf-v2";
|
|
3
3
|
import { MVFv2_STANDARD_MVFv3 as MVFv2_STANDARD_MVFv3$1, ParsedMVF as ParsedMVF$1, RawMVF } from "@mappedin/mvf-v2/no-validator-lite";
|
|
4
4
|
import * as three0 from "three";
|
|
5
5
|
import { AmbientLight, BatchedMesh, BatchedMeshGeometryRange, Box3, BufferAttribute, BufferGeometry, Camera as Camera$1, Color, DirectionalLight, Group, Intersection, LineSegments, Matrix4, Mesh, MeshLambertMaterial, MeshLambertMaterialParameters, Object3D, Object3DEventMap, PerspectiveCamera, Plane, PlaneGeometry, Raycaster, Scene, ShaderMaterial, Texture, TubeGeometry, Vector2, Vector3, WebGLRenderer } from "three";
|
|
@@ -9,7 +9,7 @@ import * as _tweenjs_tween_js0 from "@tweenjs/tween.js";
|
|
|
9
9
|
import { Group as Group$1, Tween } from "@tweenjs/tween.js";
|
|
10
10
|
import { CustomLayerInterface, IControl, Map as Map$1, MapEventType } from "@mappedin/outdoor-context";
|
|
11
11
|
import { ANIMATION_TWEENS, PathWidth as PathWidth$2, PathWidth as PathWidth$3, SlopeState, enableTestMode } from "@mappedin/renderer-shared";
|
|
12
|
-
import { MatchInfo, SearchResult as SearchResult$1, Suggestion, Suggestion as Suggestion$1 } from "minisearch";
|
|
12
|
+
import { MatchInfo, SearchOptions as SearchOptions$1, SearchResult as SearchResult$1, Suggestion, Suggestion as Suggestion$1 } from "minisearch";
|
|
13
13
|
import { BatchedText, BatchedText as BatchedText$1, Text, Text as Text$1 } from "troika-three-text";
|
|
14
14
|
import "../../renderer-three/src/styles/interactions.scss";
|
|
15
15
|
import "../../renderer-three/src/styles/html-controls.scss";
|
|
@@ -626,11 +626,36 @@ declare class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD = keyof EV
|
|
|
626
626
|
* ```
|
|
627
627
|
*/
|
|
628
628
|
get signal(): AbortSignal;
|
|
629
|
+
/**
|
|
630
|
+
* The live subscriber list for an event, or `undefined` when a `publish` of it would no-op
|
|
631
|
+
* (unknown event, destroyed, or no subscribers). The single guard shared by every method that
|
|
632
|
+
* reads subscribers, so `publish`, `off`, and `hasSubscribers` cannot drift from one another.
|
|
633
|
+
*/
|
|
634
|
+
private getSubscribers;
|
|
629
635
|
/**
|
|
630
636
|
* @private
|
|
631
637
|
* @internal
|
|
632
638
|
*/
|
|
633
639
|
publish<EVENT_NAME extends EVENT>(eventName: EVENT_NAME, data?: EVENT_PAYLOAD[EVENT_NAME]): void;
|
|
640
|
+
/**
|
|
641
|
+
* Whether any function is currently subscribed to an event.
|
|
642
|
+
*
|
|
643
|
+
* Answers the question a caller would otherwise answer by counting {@link on} and {@link off}
|
|
644
|
+
* calls itself. Such a count desynchronises: {@link off} is a no-op when handed a function that
|
|
645
|
+
* was never subscribed, so a tally decremented alongside it drifts below the real number of
|
|
646
|
+
* listeners. This reads the subscriber list, so it cannot disagree with `publish`.
|
|
647
|
+
*
|
|
648
|
+
* @param eventName The event to test.
|
|
649
|
+
* @returns True when a later `publish` of that event would reach at least one function.
|
|
650
|
+
* @example
|
|
651
|
+
* ```typescript
|
|
652
|
+
* // Skip building an expensive payload nothing would receive
|
|
653
|
+
* if (pubsub.hasSubscribers('position-update')) {
|
|
654
|
+
* pubsub.publish('position-update', buildPayload());
|
|
655
|
+
* }
|
|
656
|
+
* ```
|
|
657
|
+
*/
|
|
658
|
+
hasSubscribers<EVENT_NAME extends EVENT>(eventName: EVENT_NAME): boolean;
|
|
634
659
|
/**
|
|
635
660
|
* Subscribe a function to be called when the signal is aborted.
|
|
636
661
|
* @param fn The function to call when the signal is aborted.
|
|
@@ -705,7 +730,7 @@ type EasingCurve = (typeof EASING_CURVES)[number];
|
|
|
705
730
|
* Valid track-analytics API contexts. These should match the expected values of that endpoint or the requests will fail.
|
|
706
731
|
* If a set context is not in this list, it will default to the first VALID_CONTEXTS value.
|
|
707
732
|
*/
|
|
708
|
-
declare const VALID_CONTEXTS: readonly ["websdk", "web", "webv2", "kiosk", "kiosk-v2", "mobile", "iossdk", "androidsdk", "reactnativesdk", "gen7", "bespoke", "reactsdk", "minimap"];
|
|
733
|
+
declare const VALID_CONTEXTS: readonly ["websdk", "web", "webv2", "kiosk", "kiosk-v2", "mobile", "iossdk", "androidsdk", "reactnativesdk", "gen7", "bespoke", "reactsdk", "minimap", "app-framework"];
|
|
709
734
|
type ValidContext = (typeof VALID_CONTEXTS)[number];
|
|
710
735
|
declare const FOUND_POSITION = "found-position";
|
|
711
736
|
declare const FOUND_FLOOR = "found-floor";
|
|
@@ -3942,6 +3967,26 @@ declare class CollisionSystem extends PubSub<TCollisionSystemEvent, keyof TColli
|
|
|
3942
3967
|
type TransformImageRequest$1 = (url: string) => Promise<{
|
|
3943
3968
|
url: string;
|
|
3944
3969
|
}>;
|
|
3970
|
+
/**
|
|
3971
|
+
* Rasterized text for a single label, drawn once into a single multi-line
|
|
3972
|
+
* canvas (left-aligned) and blitted per-line at draw time. Replaces the
|
|
3973
|
+
* previous three per-alignment canvases, cutting text-canvas memory ~3x.
|
|
3974
|
+
*/
|
|
3975
|
+
interface LabelTextCache {
|
|
3976
|
+
canvas: OffscreenCanvas | HTMLCanvasElement;
|
|
3977
|
+
/** Per-line text width, device px (excludes stroke). */
|
|
3978
|
+
lineWidths: number[];
|
|
3979
|
+
/** Vertical top offset (device px) of each line's row within the canvas. */
|
|
3980
|
+
lineTops: number[];
|
|
3981
|
+
/** Device px. */
|
|
3982
|
+
lineHeightPx: number;
|
|
3983
|
+
/** Device px (TEXT_STROKE_SIZE * pixelRatio). */
|
|
3984
|
+
strokePx: number;
|
|
3985
|
+
/** Block width device px = maxTextWidth + 2*strokePx. */
|
|
3986
|
+
width: number;
|
|
3987
|
+
/** Block height device px. */
|
|
3988
|
+
height: number;
|
|
3989
|
+
}
|
|
3945
3990
|
/**
|
|
3946
3991
|
* 2D canvas draw system for labels.
|
|
3947
3992
|
* Renders label pins, icons, and text to a canvas overlay.
|
|
@@ -3975,11 +4020,7 @@ declare class TwoDDrawSystem extends PubSub<{
|
|
|
3975
4020
|
width: number;
|
|
3976
4021
|
height: number;
|
|
3977
4022
|
}>;
|
|
3978
|
-
textCache: Record<string,
|
|
3979
|
-
left?: OffscreenCanvas | HTMLCanvasElement;
|
|
3980
|
-
center?: OffscreenCanvas | HTMLCanvasElement;
|
|
3981
|
-
right?: OffscreenCanvas | HTMLCanvasElement;
|
|
3982
|
-
}>;
|
|
4023
|
+
textCache: Record<string, LabelTextCache>;
|
|
3983
4024
|
/** Number of labels that cleared the `canShow && visible` gate this frame. */
|
|
3984
4025
|
private drawCount;
|
|
3985
4026
|
/**
|
|
@@ -4002,11 +4043,22 @@ declare class TwoDDrawSystem extends PubSub<{
|
|
|
4002
4043
|
*/
|
|
4003
4044
|
update: (zoomLevel: number) => void;
|
|
4004
4045
|
processText: (text: string, size: number, maxWidth: number, maxLines: number, lineHeight: number) => {
|
|
4005
|
-
|
|
4046
|
+
lineStrings: string[];
|
|
4047
|
+
lineWidths: number[];
|
|
4006
4048
|
width: number;
|
|
4007
4049
|
height: number;
|
|
4008
4050
|
};
|
|
4009
|
-
|
|
4051
|
+
/**
|
|
4052
|
+
* Rasterizes all of a label's text lines into a single left-aligned canvas.
|
|
4053
|
+
*
|
|
4054
|
+
* The glyphs are baked once at the LEFT alignment xOffset (`strokeSize / 2`,
|
|
4055
|
+
* the same value the previous left-aligned canvas used) and re-positioned
|
|
4056
|
+
* per-line at blit time (see `draw`). Vertical placement reproduces the old
|
|
4057
|
+
* `draw` closure exactly: the block is centered on
|
|
4058
|
+
* `(bboxHeight + strokeSize / 2) / 2`, with line `i` of `n` at
|
|
4059
|
+
* `center + (i - (n - 1) / 2) * lineHeightPx`.
|
|
4060
|
+
*/
|
|
4061
|
+
bakeTextCanvas: (component: LabelComponent, lineStrings: string[], lineWidths: number[], width: number, height: number) => LabelTextCache;
|
|
4010
4062
|
cacheImage: (label: LabelComponent) => void;
|
|
4011
4063
|
/**
|
|
4012
4064
|
* Byte size of a single canvas assuming 4 bytes per pixel (RGBA).
|
|
@@ -4798,77 +4850,63 @@ type TNavigationMarker = {
|
|
|
4798
4850
|
type: TNavigationMarkerType;
|
|
4799
4851
|
};
|
|
4800
4852
|
/**
|
|
4801
|
-
* Path options extended with connection-specific
|
|
4802
|
-
* Connection paths inherit all base path options unless overridden
|
|
4853
|
+
* Path options for navigation, extended with a nested connection-specific
|
|
4854
|
+
* override. Connection paths inherit all base path options unless overridden
|
|
4855
|
+
* by the `connection` object (or the deprecated `__EXPERIMENTAL__CONNECTION_*`
|
|
4856
|
+
* flags).
|
|
4803
4857
|
*/
|
|
4804
4858
|
type TNavigationPathOptions = TAddPathOptions & {
|
|
4805
4859
|
/**
|
|
4806
|
-
*
|
|
4807
|
-
*
|
|
4860
|
+
* Options applied to the connection path segments (vertical paths between
|
|
4861
|
+
* floors) of this path only. These fully override any conflicting base
|
|
4862
|
+
* `pathOptions` / `inactivePathOptions` keys (a complete path-options object
|
|
4863
|
+
* spread over the base). Every key here replaces its base counterpart —
|
|
4864
|
+
* including `dash` (the whole dash object).
|
|
4865
|
+
*
|
|
4866
|
+
* Because this is nested on each path, the active and inactive connections
|
|
4867
|
+
* can be styled independently: set `connection` on `pathOptions` for the
|
|
4868
|
+
* active connection and on `inactivePathOptions` for the inactive one.
|
|
4869
|
+
*
|
|
4870
|
+
* Connection segments default to square end caps: unless `endcapExtension`
|
|
4871
|
+
* is set explicitly here, it is forced to `[0, 0]` (overriding any base
|
|
4872
|
+
* `endcapExtension`), so floor paths keep their caps while connections
|
|
4873
|
+
* terminate flush at the junction.
|
|
4874
|
+
*/
|
|
4875
|
+
connection?: Partial<TConnectionPathOptions>;
|
|
4876
|
+
/**
|
|
4877
|
+
* @deprecated Use `connection.color` instead.
|
|
4808
4878
|
*/
|
|
4809
4879
|
__EXPERIMENTAL__CONNECTION_COLOR?: string;
|
|
4810
4880
|
/**
|
|
4811
|
-
* @
|
|
4812
|
-
* Accepts the same values as `width`:
|
|
4813
|
-
* - `number` — meters
|
|
4814
|
-
* - `'Npx'` — screen-space pixels (ribbon geometry only)
|
|
4815
|
-
* - `Interpolation` — zoom-interpolated meters or pixels
|
|
4816
|
-
*
|
|
4817
|
-
* If not specified, connection paths use the main `width` property.
|
|
4881
|
+
* @deprecated Use `connection.width` instead.
|
|
4818
4882
|
*/
|
|
4819
4883
|
__EXPERIMENTAL__CONNECTION_WIDTH?: PathWidth$1;
|
|
4820
4884
|
/**
|
|
4821
|
-
* @
|
|
4822
|
-
*
|
|
4823
|
-
*
|
|
4824
|
-
* @defaultValue 0
|
|
4885
|
+
* @deprecated This flat flag is retained as experimental (not yet graduated).
|
|
4886
|
+
* Use `connection.__EXPERIMENTAL_JUNCTION_INSET` instead.
|
|
4825
4887
|
*/
|
|
4826
4888
|
__EXPERIMENTAL__CONNECTION_JUNCTION_INSET?: number;
|
|
4827
4889
|
/**
|
|
4828
|
-
* @
|
|
4829
|
-
* If not specified, connection paths use the main `dashed` property.
|
|
4890
|
+
* @deprecated Use `connection.dashed` instead.
|
|
4830
4891
|
*/
|
|
4831
4892
|
__EXPERIMENTAL__CONNECTION_DASHED?: boolean;
|
|
4832
4893
|
/**
|
|
4833
|
-
* @
|
|
4834
|
-
*
|
|
4835
|
-
* `__EXPERIMENTAL_DASH_OPTIONS.__EXPERIMENTAL_DASH_STYLE`. If not specified,
|
|
4836
|
-
* connection paths use the main dash style.
|
|
4837
|
-
*
|
|
4838
|
-
* `'discrete'` renders connections flat regardless of
|
|
4839
|
-
* {@link __EXPERIMENTAL__CONNECTION_GEOMETRY}.
|
|
4894
|
+
* @deprecated Use `connection.geometry` instead (`'mask'` → `'tube'`,
|
|
4895
|
+
* `'discrete'` → `'ribbon'`).
|
|
4840
4896
|
*/
|
|
4841
4897
|
__EXPERIMENTAL__CONNECTION_DASH_STYLE?: 'mask' | 'discrete';
|
|
4842
4898
|
/**
|
|
4843
|
-
* @
|
|
4844
|
-
* paths between floors). When `false`, connection paths keep their arrow
|
|
4845
|
-
* flow static while floor paths can still animate. If not specified,
|
|
4846
|
-
* connection paths use the main `animateArrowsOnPath` property.
|
|
4899
|
+
* @deprecated Use `connection.animateArrowsOnPath` instead.
|
|
4847
4900
|
*/
|
|
4848
4901
|
__EXPERIMENTAL__CONNECTION_ANIMATE_ARROWS_ON_PATH?: boolean;
|
|
4849
4902
|
/**
|
|
4850
|
-
* @
|
|
4851
|
-
* between floors). When `false`, connection paths render without directional
|
|
4852
|
-
* arrows (plain dashes/ribbon) while floor paths can still show arrows.
|
|
4853
|
-
* Animation is independent: arrow flow follows `animateArrowsOnPath`. If
|
|
4854
|
-
* not specified, connection paths use the main `displayArrowsOnPath`
|
|
4855
|
-
* property.
|
|
4903
|
+
* @deprecated Use `connection.displayArrowsOnPath` instead.
|
|
4856
4904
|
*/
|
|
4857
4905
|
__EXPERIMENTAL__CONNECTION_DISPLAY_ARROWS_ON_PATH?: boolean;
|
|
4858
4906
|
/**
|
|
4859
|
-
* @
|
|
4860
|
-
* - 'tube': Original tube geometry with 8 radial segments
|
|
4861
|
-
* - 'ribbon': Flat ribbon geometry with 2 vertices per segment
|
|
4862
|
-
* If not specified, connection paths use the main `__EXPERIMENTAL_GEOMETRY` property.
|
|
4907
|
+
* @deprecated Use `connection.geometry` instead.
|
|
4863
4908
|
*/
|
|
4864
4909
|
__EXPERIMENTAL__CONNECTION_GEOMETRY?: 'tube' | 'ribbon';
|
|
4865
|
-
/**
|
|
4866
|
-
* @experimental
|
|
4867
|
-
* @deprecated Use `__EXPERIMENTAL_BILLBOARDING` instead. With per-vertex angle gating in the shader,
|
|
4868
|
-
* billboarding applies to all path segments but only affects vertices above the angle threshold.
|
|
4869
|
-
* A numeric value (degrees) naturally billboards only steep connection segments while leaving floor paths flat.
|
|
4870
|
-
*/
|
|
4871
|
-
__EXPERIMENTAL__CONNECTION_BILLBOARDING?: boolean | number;
|
|
4872
4910
|
};
|
|
4873
4911
|
/**
|
|
4874
4912
|
* Options for navigation.
|
|
@@ -4914,8 +4952,9 @@ type TNavigationOptions = {
|
|
|
4914
4952
|
*/
|
|
4915
4953
|
animatePathDrawing?: boolean;
|
|
4916
4954
|
/**
|
|
4917
|
-
* Options for the path. Connection
|
|
4918
|
-
* with `
|
|
4955
|
+
* Options for the path. Connection path segments inherit these options
|
|
4956
|
+
* unless overridden with the nested `connection` object (or the deprecated
|
|
4957
|
+
* `__EXPERIMENTAL__CONNECTION_*` flags).
|
|
4919
4958
|
*/
|
|
4920
4959
|
pathOptions?: Partial<TNavigationPathOptions>;
|
|
4921
4960
|
/**
|
|
@@ -6714,8 +6753,12 @@ type ExtractDeep<T$1, U$1, Depth extends readonly number[] = []> = Depth['length
|
|
|
6714
6753
|
//#endregion
|
|
6715
6754
|
//#region src/api-geojson/auto/index.d.ts
|
|
6716
6755
|
/**
|
|
6717
|
-
*
|
|
6718
|
-
*
|
|
6756
|
+
* The result of auto-processing map elements.
|
|
6757
|
+
*
|
|
6758
|
+
* @remarks
|
|
6759
|
+
* `auto()` renders annotations as labels and always returns an empty `markers`
|
|
6760
|
+
* array; the legacy `__EXPERIMENTAL__auto()` path populates `markers` with DOM
|
|
6761
|
+
* markers for annotation elements.
|
|
6719
6762
|
*/
|
|
6720
6763
|
type AutoElements = {
|
|
6721
6764
|
labels: Label[];
|
|
@@ -6724,9 +6767,8 @@ type AutoElements = {
|
|
|
6724
6767
|
//#endregion
|
|
6725
6768
|
//#region src/map-view.d.ts
|
|
6726
6769
|
/**
|
|
6727
|
-
* ## MapView in Mappedin JS
|
|
6728
6770
|
*
|
|
6729
|
-
* MapView is the main rendering and interaction class for Mappedin maps
|
|
6771
|
+
* MapView is the main rendering and interaction class for Mappedin maps, and its auto() method adds automatic labels and makes spaces and objects interactive for a finished look with minimal code.
|
|
6730
6772
|
*
|
|
6731
6773
|
* ### Features
|
|
6732
6774
|
* - **Rendering Control**: Camera, labels, markers, models, paths, and more
|
|
@@ -7564,17 +7606,60 @@ declare class MapView {
|
|
|
7564
7606
|
x: number;
|
|
7565
7607
|
y: number;
|
|
7566
7608
|
};
|
|
7609
|
+
/**
|
|
7610
|
+
* Automatically creates labels for map elements and marks spaces and objects
|
|
7611
|
+
* interactive, giving the map a finished look with minimal code.
|
|
7612
|
+
*
|
|
7613
|
+
* This is the promoted replacement for {@link __EXPERIMENTAL__auto}. The one
|
|
7614
|
+
* behaviour difference is that `annotation` elements are rendered as labels
|
|
7615
|
+
* (an icon pin with no text) instead of DOM markers.
|
|
7616
|
+
*
|
|
7617
|
+
* ## What gets labelled
|
|
7618
|
+
*
|
|
7619
|
+
* - **Annotations** — an icon-only label (no text) with a white ring pin,
|
|
7620
|
+
* matching the former marker's look. The collision footprint is preserved via
|
|
7621
|
+
* a computed `margin`/`iconPadding` and an `iconBorderRadiusFactor` of 1/3.
|
|
7622
|
+
* - **Connections** (elevators, escalators, stairs, ladders) — one label per
|
|
7623
|
+
* coordinate, each with a built-in icon, coloured teal, at `low` rank.
|
|
7624
|
+
* - **Points of interest** — a label (built-in icon fallback) at `high` rank.
|
|
7625
|
+
* - **Doors** — a label (built-in icon fallback) at `low` rank.
|
|
7626
|
+
* - **Spaces** and **objects** — a label when the element has a name. Washrooms
|
|
7627
|
+
* and parking are colour-coded (blue / green).
|
|
7628
|
+
* - **Facades** — the floor-stack name is labelled on the facade's first space
|
|
7629
|
+
* at `high` rank, so it hides with the facade.
|
|
7630
|
+
*
|
|
7631
|
+
* Remote location-profile icons are fetched and recoloured when available;
|
|
7632
|
+
* otherwise a built-in icon is used.
|
|
7633
|
+
*
|
|
7634
|
+
* ## Other automatic updates
|
|
7635
|
+
*
|
|
7636
|
+
* - `space` and `object` geometries are set to `interactive: true`.
|
|
7637
|
+
*
|
|
7638
|
+
* @param mapElements - A custom array of map elements to process. If not
|
|
7639
|
+
* provided, all supported element types across the map are processed.
|
|
7640
|
+
* @returns An object containing the auto-created labels and an empty `markers`
|
|
7641
|
+
* array (kept for parity with `__EXPERIMENTAL__auto`; `auto()` never creates markers).
|
|
7642
|
+
*
|
|
7643
|
+
* @example
|
|
7644
|
+
* ```ts
|
|
7645
|
+
* const { labels } = await mapView.auto();
|
|
7646
|
+
* ```
|
|
7647
|
+
*/
|
|
7648
|
+
auto(mapElements?: MapDataElements[]): Promise<AutoElements>;
|
|
7567
7649
|
/**
|
|
7568
7650
|
* @experimental
|
|
7651
|
+
* @deprecated Use {@link auto} instead. This method still creates DOM markers
|
|
7652
|
+
* for `annotation` elements; `auto()` renders them as labels.
|
|
7569
7653
|
*
|
|
7570
7654
|
* This is an experimental feature that may undergo significant changes,
|
|
7571
7655
|
* including breaking changes, renaming, or complete removal in future versions.
|
|
7572
7656
|
* Do not rely on this API in production environments.
|
|
7573
7657
|
*
|
|
7574
|
-
* Automatically creates labels, markers, and updates state of map elements
|
|
7575
|
-
*
|
|
7576
|
-
* If not provided, all map elements will be used.
|
|
7658
|
+
* Automatically creates labels, markers, and updates state of map elements
|
|
7659
|
+
* provided with default settings.
|
|
7577
7660
|
*
|
|
7661
|
+
* @param mapElements - A custom array of map elements to automatically create
|
|
7662
|
+
* labels, markers, and update state of. If not provided, all map elements will be used.
|
|
7578
7663
|
* @returns An object containing auto-created labels and markers.
|
|
7579
7664
|
*/
|
|
7580
7665
|
__EXPERIMENTAL__auto(mapElements?: MapDataElements[]): Promise<AutoElements>;
|
|
@@ -7962,6 +8047,10 @@ declare class Camera {
|
|
|
7962
8047
|
/**
|
|
7963
8048
|
* Controls which camera interactions are enabled/disabled.
|
|
7964
8049
|
*
|
|
8050
|
+
* In `external` camera mode the SDK's `cameraSystem` flags are ignored (MapLibre
|
|
8051
|
+
* owns the gestures), so these also drive MapLibre's native handlers
|
|
8052
|
+
* (`dragPan`/`scrollZoom`/`dragRotate`/`touchZoomRotate`/`keyboard`) directly.
|
|
8053
|
+
*
|
|
7965
8054
|
* @example
|
|
7966
8055
|
* ```ts
|
|
7967
8056
|
* // Disable zoom and rotation
|
|
@@ -9520,7 +9609,7 @@ type TGeometryUpdateState = output<typeof geometryStateSchemaPartial>;
|
|
|
9520
9609
|
declare const labelStateSchema: ZodObject<{
|
|
9521
9610
|
type: ZodDefault<ZodLiteral<"label">>;
|
|
9522
9611
|
text: ZodString;
|
|
9523
|
-
rank: ZodCustom<"initial" |
|
|
9612
|
+
rank: ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">;
|
|
9524
9613
|
appearance: ZodCustom<LabelAppearance, LabelAppearance>;
|
|
9525
9614
|
interactive: ZodDefault<ZodBoolean>;
|
|
9526
9615
|
enabled: ZodDefault<ZodBoolean>;
|
|
@@ -9543,7 +9632,7 @@ declare const labelStateSchema: ZodObject<{
|
|
|
9543
9632
|
declare const labelStateSchemaPartial: ZodObject<{
|
|
9544
9633
|
type: ZodOptional<ZodDefault<ZodLiteral<"label">>>;
|
|
9545
9634
|
text: ZodOptional<ZodString>;
|
|
9546
|
-
rank: ZodOptional<ZodCustom<"initial" |
|
|
9635
|
+
rank: ZodOptional<ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">>;
|
|
9547
9636
|
appearance: ZodOptional<ZodCustom<LabelAppearance, LabelAppearance>>;
|
|
9548
9637
|
interactive: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9549
9638
|
enabled: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
@@ -9576,7 +9665,7 @@ type TLabelUpdateState = output<typeof labelStateSchemaPartial>;
|
|
|
9576
9665
|
/** @internal */
|
|
9577
9666
|
declare const markerStateSchema: ZodObject<{
|
|
9578
9667
|
type: ZodDefault<ZodLiteral<"marker">>;
|
|
9579
|
-
rank: ZodCustom<"initial" |
|
|
9668
|
+
rank: ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">;
|
|
9580
9669
|
placement: ZodOptional<ZodUnion<readonly [ZodEnum<{
|
|
9581
9670
|
hidden: "hidden";
|
|
9582
9671
|
top: "top";
|
|
@@ -9617,10 +9706,10 @@ declare const markerStateSchema: ZodObject<{
|
|
|
9617
9706
|
/** @internal */
|
|
9618
9707
|
declare const markerStateSchemaPartial: ZodObject<{
|
|
9619
9708
|
type: ZodOptional<ZodDefault<ZodLiteral<"marker">>>;
|
|
9620
|
-
enabled: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9621
9709
|
interactive: ZodOptional<ZodDefault<ZodUnion<readonly [ZodBoolean, ZodLiteral<"pointer-events-auto">]>>>;
|
|
9622
|
-
rank: ZodOptional<ZodCustom<"initial" |
|
|
9710
|
+
rank: ZodOptional<ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">>;
|
|
9623
9711
|
occlude: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9712
|
+
enabled: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9624
9713
|
placement: ZodOptional<ZodOptional<ZodUnion<readonly [ZodEnum<{
|
|
9625
9714
|
hidden: "hidden";
|
|
9626
9715
|
top: "top";
|
|
@@ -9681,11 +9770,15 @@ type BorderColor = LiteralUnion<'darken', string>;
|
|
|
9681
9770
|
declare const pathStateSchemaPartial: ZodObject<{
|
|
9682
9771
|
type: ZodOptional<ZodDefault<ZodLiteral<"path">>>;
|
|
9683
9772
|
color: ZodOptional<ZodDefault<ZodString>>;
|
|
9684
|
-
width: ZodOptional<ZodType<PathWidth$2, unknown, $ZodTypeInternals<PathWidth$2, unknown>>>;
|
|
9685
|
-
completeFraction: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9686
9773
|
visible: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9687
|
-
interactive: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9688
9774
|
verticalOffset: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9775
|
+
geometry: ZodOptional<ZodDefault<ZodEnum<{
|
|
9776
|
+
tube: "tube";
|
|
9777
|
+
ribbon: "ribbon";
|
|
9778
|
+
}>>>;
|
|
9779
|
+
interactive: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9780
|
+
width: ZodOptional<ZodType<PathWidth$2, unknown, $ZodTypeInternals<PathWidth$2, unknown>>>;
|
|
9781
|
+
completeFraction: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9689
9782
|
highlightStartFraction: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9690
9783
|
highlightEndFraction: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9691
9784
|
highlightColor: ZodOptional<ZodDefault<ZodString>>;
|
|
@@ -9695,57 +9788,97 @@ declare const pathStateSchemaPartial: ZodObject<{
|
|
|
9695
9788
|
xrayOpacity: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9696
9789
|
travelledEndFraction: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9697
9790
|
travelledColor: ZodOptional<ZodDefault<ZodString>>;
|
|
9698
|
-
|
|
9699
|
-
|
|
9791
|
+
smoothing: ZodOptional<ZodOptional<ZodObject<{
|
|
9792
|
+
tension: ZodDefault<ZodNumber>;
|
|
9793
|
+
cornerRadius: ZodDefault<ZodNumber>;
|
|
9794
|
+
}, $strip>>>;
|
|
9700
9795
|
dashed: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9701
|
-
dashDiscrete: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9702
9796
|
dashCornerRadius: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"length-scaling">;
|
|
9710
|
-
__EXPERIMENTAL_DASH_LENGTH: ZodDefault<ZodNumber>;
|
|
9711
|
-
__EXPERIMENTAL_DASH_GAP: ZodDefault<ZodNumber>;
|
|
9797
|
+
dash: ZodOptional<ZodOptional<ZodUnion<readonly [ZodObject<{
|
|
9798
|
+
enabled: ZodOptional<ZodBoolean>;
|
|
9799
|
+
cornerRadius: ZodDefault<ZodNumber>;
|
|
9800
|
+
mode: ZodOptional<ZodLiteral<"length-scaling">>;
|
|
9801
|
+
length: ZodDefault<ZodNumber>;
|
|
9802
|
+
gap: ZodDefault<ZodNumber>;
|
|
9712
9803
|
}, $strip>, ZodObject<{
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"width-scaling">;
|
|
9719
|
-
__EXPERIMENTAL_DASH_SIZE: ZodDefault<ZodNumber>;
|
|
9720
|
-
__EXPERIMENTAL_GAP_SIZE: ZodDefault<ZodNumber>;
|
|
9804
|
+
enabled: ZodOptional<ZodBoolean>;
|
|
9805
|
+
cornerRadius: ZodDefault<ZodNumber>;
|
|
9806
|
+
mode: ZodOptional<ZodLiteral<"width-scaling">>;
|
|
9807
|
+
size: ZodDefault<ZodNumber>;
|
|
9808
|
+
gapSize: ZodDefault<ZodNumber>;
|
|
9721
9809
|
}, $strip>, ZodObject<{
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
__EXPERIMENTAL_GEOMETRY: ZodOptional<ZodDefault<ZodEnum<{
|
|
9732
|
-
tube: "tube";
|
|
9733
|
-
ribbon: "ribbon";
|
|
9734
|
-
}>>>;
|
|
9735
|
-
__EXPERIMENTAL_ENDCAP_EXTENSION: ZodOptional<ZodDefault<ZodTuple<[ZodNumber, ZodNumber], null>>>;
|
|
9736
|
-
__EXPERIMENTAL_BILLBOARDING: ZodOptional<ZodDefault<ZodUnion<readonly [ZodBoolean, ZodNumber]>>>;
|
|
9737
|
-
__EXPERIMENTAL_BORDER: ZodOptional<ZodOptional<ZodObject<{
|
|
9810
|
+
enabled: ZodOptional<ZodBoolean>;
|
|
9811
|
+
cornerRadius: ZodDefault<ZodNumber>;
|
|
9812
|
+
mode: ZodLiteral<"absolute">;
|
|
9813
|
+
meters: ZodDefault<ZodNumber>;
|
|
9814
|
+
gapMeters: ZodDefault<ZodNumber>;
|
|
9815
|
+
}, $strip>]>>>;
|
|
9816
|
+
endcapExtension: ZodOptional<ZodDefault<ZodTuple<[ZodNumber, ZodNumber], null>>>;
|
|
9817
|
+
billboarding: ZodOptional<ZodDefault<ZodUnion<readonly [ZodBoolean, ZodNumber]>>>;
|
|
9818
|
+
border: ZodOptional<ZodOptional<ZodObject<{
|
|
9738
9819
|
enabled: ZodBoolean;
|
|
9739
9820
|
color: ZodCustom<BorderColor, BorderColor>;
|
|
9740
9821
|
width: ZodOptional<ZodNumber>;
|
|
9741
9822
|
}, $strip>>>;
|
|
9742
|
-
|
|
9743
|
-
__EXPERIMENTAL_XRAY_STYLE: ZodOptional<ZodOptional<ZodObject<{
|
|
9823
|
+
xray: ZodOptional<ZodOptional<ZodObject<{
|
|
9744
9824
|
opacity: ZodOptional<ZodNumber>;
|
|
9745
9825
|
color: ZodOptional<ZodString>;
|
|
9746
9826
|
tint: ZodOptional<ZodNumber>;
|
|
9747
9827
|
dithering: ZodOptional<ZodNumber>;
|
|
9748
9828
|
}, $strip>>>;
|
|
9829
|
+
__EXPERIMENTAL_GEOMETRY: ZodOptional<ZodEnum<{
|
|
9830
|
+
tube: "tube";
|
|
9831
|
+
ribbon: "ribbon";
|
|
9832
|
+
}>>;
|
|
9833
|
+
__EXPERIMENTAL_ENDCAP_EXTENSION: ZodOptional<ZodTuple<[ZodNumber, ZodNumber], null>>;
|
|
9834
|
+
__EXPERIMENTAL_BILLBOARDING: ZodOptional<ZodUnion<readonly [ZodBoolean, ZodNumber]>>;
|
|
9835
|
+
__EXPERIMENTAL_BORDER: ZodOptional<ZodObject<{
|
|
9836
|
+
enabled: ZodBoolean;
|
|
9837
|
+
color: ZodCustom<BorderColor, BorderColor>;
|
|
9838
|
+
width: ZodOptional<ZodNumber>;
|
|
9839
|
+
}, $strip>>;
|
|
9840
|
+
__EXPERIMENTAL_SMOOTHING_TENSION: ZodOptional<ZodNumber>;
|
|
9841
|
+
__EXPERIMENTAL_SMOOTHING_CORNER_RADIUS: ZodOptional<ZodNumber>;
|
|
9842
|
+
__EXPERIMENTAL_XRAY_STYLE: ZodOptional<ZodObject<{
|
|
9843
|
+
opacity: ZodOptional<ZodNumber>;
|
|
9844
|
+
color: ZodOptional<ZodString>;
|
|
9845
|
+
tint: ZodOptional<ZodNumber>;
|
|
9846
|
+
dithering: ZodOptional<ZodNumber>;
|
|
9847
|
+
}, $strip>>;
|
|
9848
|
+
__EXPERIMENTAL_DASH_OPTIONS: ZodOptional<ZodUnion<readonly [ZodUnion<readonly [ZodObject<{
|
|
9849
|
+
enabled: ZodOptional<ZodBoolean>;
|
|
9850
|
+
cornerRadius: ZodDefault<ZodNumber>;
|
|
9851
|
+
mode: ZodOptional<ZodLiteral<"length-scaling">>;
|
|
9852
|
+
length: ZodDefault<ZodNumber>;
|
|
9853
|
+
gap: ZodDefault<ZodNumber>;
|
|
9854
|
+
}, $strip>, ZodObject<{
|
|
9855
|
+
enabled: ZodOptional<ZodBoolean>;
|
|
9856
|
+
cornerRadius: ZodDefault<ZodNumber>;
|
|
9857
|
+
mode: ZodOptional<ZodLiteral<"width-scaling">>;
|
|
9858
|
+
size: ZodDefault<ZodNumber>;
|
|
9859
|
+
gapSize: ZodDefault<ZodNumber>;
|
|
9860
|
+
}, $strip>, ZodObject<{
|
|
9861
|
+
enabled: ZodOptional<ZodBoolean>;
|
|
9862
|
+
cornerRadius: ZodDefault<ZodNumber>;
|
|
9863
|
+
mode: ZodLiteral<"absolute">;
|
|
9864
|
+
meters: ZodDefault<ZodNumber>;
|
|
9865
|
+
gapMeters: ZodDefault<ZodNumber>;
|
|
9866
|
+
}, $strip>]>, ZodDiscriminatedUnion<[ZodObject<{
|
|
9867
|
+
__EXPERIMENTAL_DASH_CORNER_RADIUS: ZodOptional<ZodNumber>;
|
|
9868
|
+
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"length-scaling">;
|
|
9869
|
+
__EXPERIMENTAL_DASH_LENGTH: ZodOptional<ZodNumber>;
|
|
9870
|
+
__EXPERIMENTAL_DASH_GAP: ZodOptional<ZodNumber>;
|
|
9871
|
+
}, $strip>, ZodObject<{
|
|
9872
|
+
__EXPERIMENTAL_DASH_CORNER_RADIUS: ZodOptional<ZodNumber>;
|
|
9873
|
+
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"width-scaling">;
|
|
9874
|
+
__EXPERIMENTAL_DASH_SIZE: ZodOptional<ZodNumber>;
|
|
9875
|
+
__EXPERIMENTAL_GAP_SIZE: ZodOptional<ZodNumber>;
|
|
9876
|
+
}, $strip>, ZodObject<{
|
|
9877
|
+
__EXPERIMENTAL_DASH_CORNER_RADIUS: ZodOptional<ZodNumber>;
|
|
9878
|
+
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"absolute">;
|
|
9879
|
+
__EXPERIMENTAL_DASH_METERS: ZodOptional<ZodNumber>;
|
|
9880
|
+
__EXPERIMENTAL_GAP_METERS: ZodOptional<ZodNumber>;
|
|
9881
|
+
}, $strip>], "__EXPERIMENTAL_DASH_MODE">]>>;
|
|
9749
9882
|
}, $strip>;
|
|
9750
9883
|
/** @internal */
|
|
9751
9884
|
declare const pathStateSchemaStrict: ZodObject<{
|
|
@@ -9765,52 +9898,44 @@ declare const pathStateSchemaStrict: ZodObject<{
|
|
|
9765
9898
|
xrayOpacity: ZodDefault<ZodNumber>;
|
|
9766
9899
|
travelledEndFraction: ZodDefault<ZodNumber>;
|
|
9767
9900
|
travelledColor: ZodDefault<ZodString>;
|
|
9768
|
-
|
|
9769
|
-
|
|
9901
|
+
smoothing: ZodOptional<ZodObject<{
|
|
9902
|
+
tension: ZodDefault<ZodNumber>;
|
|
9903
|
+
cornerRadius: ZodDefault<ZodNumber>;
|
|
9904
|
+
}, $strip>>;
|
|
9770
9905
|
dashed: ZodDefault<ZodBoolean>;
|
|
9771
9906
|
dashDiscrete: ZodDefault<ZodBoolean>;
|
|
9772
9907
|
dashCornerRadius: ZodDefault<ZodNumber>;
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"length-scaling">;
|
|
9780
|
-
__EXPERIMENTAL_DASH_LENGTH: ZodDefault<ZodNumber>;
|
|
9781
|
-
__EXPERIMENTAL_DASH_GAP: ZodDefault<ZodNumber>;
|
|
9908
|
+
dash: ZodOptional<ZodUnion<readonly [ZodObject<{
|
|
9909
|
+
enabled: ZodOptional<ZodBoolean>;
|
|
9910
|
+
cornerRadius: ZodDefault<ZodNumber>;
|
|
9911
|
+
mode: ZodOptional<ZodLiteral<"length-scaling">>;
|
|
9912
|
+
length: ZodDefault<ZodNumber>;
|
|
9913
|
+
gap: ZodDefault<ZodNumber>;
|
|
9782
9914
|
}, $strip>, ZodObject<{
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"width-scaling">;
|
|
9789
|
-
__EXPERIMENTAL_DASH_SIZE: ZodDefault<ZodNumber>;
|
|
9790
|
-
__EXPERIMENTAL_GAP_SIZE: ZodDefault<ZodNumber>;
|
|
9915
|
+
enabled: ZodOptional<ZodBoolean>;
|
|
9916
|
+
cornerRadius: ZodDefault<ZodNumber>;
|
|
9917
|
+
mode: ZodOptional<ZodLiteral<"width-scaling">>;
|
|
9918
|
+
size: ZodDefault<ZodNumber>;
|
|
9919
|
+
gapSize: ZodDefault<ZodNumber>;
|
|
9791
9920
|
}, $strip>, ZodObject<{
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
__EXPERIMENTAL_GAP_METERS: ZodDefault<ZodNumber>;
|
|
9800
|
-
}, $strip>], "__EXPERIMENTAL_DASH_MODE">>;
|
|
9801
|
-
__EXPERIMENTAL_GEOMETRY: ZodDefault<ZodEnum<{
|
|
9921
|
+
enabled: ZodOptional<ZodBoolean>;
|
|
9922
|
+
cornerRadius: ZodDefault<ZodNumber>;
|
|
9923
|
+
mode: ZodLiteral<"absolute">;
|
|
9924
|
+
meters: ZodDefault<ZodNumber>;
|
|
9925
|
+
gapMeters: ZodDefault<ZodNumber>;
|
|
9926
|
+
}, $strip>]>>;
|
|
9927
|
+
geometry: ZodDefault<ZodEnum<{
|
|
9802
9928
|
tube: "tube";
|
|
9803
9929
|
ribbon: "ribbon";
|
|
9804
9930
|
}>>;
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9931
|
+
endcapExtension: ZodDefault<ZodTuple<[ZodNumber, ZodNumber], null>>;
|
|
9932
|
+
billboarding: ZodDefault<ZodUnion<readonly [ZodBoolean, ZodNumber]>>;
|
|
9933
|
+
border: ZodOptional<ZodObject<{
|
|
9808
9934
|
enabled: ZodBoolean;
|
|
9809
9935
|
color: ZodCustom<BorderColor, BorderColor>;
|
|
9810
9936
|
width: ZodOptional<ZodNumber>;
|
|
9811
9937
|
}, $strip>>;
|
|
9812
|
-
|
|
9813
|
-
__EXPERIMENTAL_XRAY_STYLE: ZodOptional<ZodObject<{
|
|
9938
|
+
xray: ZodOptional<ZodObject<{
|
|
9814
9939
|
opacity: ZodOptional<ZodNumber>;
|
|
9815
9940
|
color: ZodOptional<ZodString>;
|
|
9816
9941
|
tint: ZodOptional<ZodNumber>;
|
|
@@ -10190,6 +10315,7 @@ declare class GeoJsonApi extends PubSub<TNavigationEvents> {
|
|
|
10190
10315
|
};
|
|
10191
10316
|
isInView(target: Space | MapObject | Label | Marker | string): boolean;
|
|
10192
10317
|
getInView<T$1 extends string>(type: T$1, options?: TGetInViewOptions): MapFeatureOfType<T$1>[];
|
|
10318
|
+
auto(mapElements?: MapDataElements[]): Promise<AutoElements>;
|
|
10193
10319
|
__EXPERIMENTAL__auto(mapElements?: MapDataElements[]): Promise<AutoElements>;
|
|
10194
10320
|
tween<T$1 extends Record<string, unknown>>(object: T$1): Tween<T$1>;
|
|
10195
10321
|
removeTween(tween: Tween<any>): void;
|
|
@@ -10486,25 +10612,25 @@ type BaseSimplifyOptions = {
|
|
|
10486
10612
|
* Options for greedy line-of-sight simplification method (default).
|
|
10487
10613
|
*/
|
|
10488
10614
|
type GreedyLosOptions = BaseSimplifyOptions & {
|
|
10489
|
-
|
|
10615
|
+
method?: 'greedy-los';
|
|
10490
10616
|
};
|
|
10491
10617
|
/**
|
|
10492
10618
|
* Options for RDP (Ramer-Douglas-Peucker) simplification method.
|
|
10493
10619
|
*/
|
|
10494
10620
|
type RdpOptions = BaseSimplifyOptions & {
|
|
10495
|
-
|
|
10621
|
+
method: 'rdp';
|
|
10496
10622
|
/**
|
|
10497
10623
|
* Whether to include door-adjacent nodes (predecessor/successor of doors) in the must-include set.
|
|
10498
10624
|
* When true, nodes immediately before and after doors are preserved during simplification.
|
|
10499
10625
|
* @default true
|
|
10500
10626
|
*/
|
|
10501
|
-
|
|
10627
|
+
includeDoorBufferNodes?: boolean;
|
|
10502
10628
|
};
|
|
10503
10629
|
/**
|
|
10504
10630
|
* Options for DP (Dynamic Programming) optimal simplification method.
|
|
10505
10631
|
*/
|
|
10506
10632
|
type DpOptimalOptions = BaseSimplifyOptions & {
|
|
10507
|
-
|
|
10633
|
+
method: 'dp-optimal';
|
|
10508
10634
|
/**
|
|
10509
10635
|
* Whether to include door buffer nodes in DP simplification.
|
|
10510
10636
|
* When true, predecessor and successor nodes of doors are marked with preventSmoothing.
|
|
@@ -10514,7 +10640,7 @@ type DpOptimalOptions = BaseSimplifyOptions & {
|
|
|
10514
10640
|
};
|
|
10515
10641
|
/**
|
|
10516
10642
|
* Options for simplifying directions in the Navigator class.
|
|
10517
|
-
* Discriminated union based on the '
|
|
10643
|
+
* Discriminated union based on the 'method' field.
|
|
10518
10644
|
*/
|
|
10519
10645
|
type SimplifyDirectionsOptions = GreedyLosOptions | RdpOptions | DpOptimalOptions;
|
|
10520
10646
|
/**
|
|
@@ -11526,24 +11652,20 @@ type TDirectionZone = {
|
|
|
11526
11652
|
floor?: Floor;
|
|
11527
11653
|
};
|
|
11528
11654
|
/**
|
|
11529
|
-
*
|
|
11530
|
-
*
|
|
11531
|
-
*
|
|
11532
|
-
*
|
|
11655
|
+
* Dash configuration options for dashed paths.
|
|
11656
|
+
* Uses a discriminated union - `mode` determines which sizing properties are valid.
|
|
11657
|
+
*
|
|
11658
|
+
* The dash drawing primitive is derived from {@link TAddPathOptions.geometry}:
|
|
11659
|
+
* `'ribbon'` renders each dash as its own discrete rounded-rectangle primitive,
|
|
11660
|
+
* while `'tube'` (the default) paints the dash pattern onto one continuous path.
|
|
11533
11661
|
*/
|
|
11534
|
-
type
|
|
11662
|
+
type TDashOptions = {
|
|
11535
11663
|
/**
|
|
11536
|
-
*
|
|
11537
|
-
* - `'mask'`: the dash pattern is painted onto one continuous path (default)
|
|
11538
|
-
* - `'discrete'`: each dash is its own rounded-rectangle primitive, with its own
|
|
11539
|
-
* travel arrow and zoom LOD, and keeps its exact shape around sharp corners
|
|
11540
|
-
*
|
|
11541
|
-
* `'discrete'` implies flat (ribbon) rendering — a dash has no tube analogue — so
|
|
11542
|
-
* it overrides {@link TAddPathOptions.__EXPERIMENTAL_GEOMETRY}.
|
|
11664
|
+
* Whether the path should be rendered dashed.
|
|
11543
11665
|
*
|
|
11544
|
-
* @default
|
|
11666
|
+
* @default false
|
|
11545
11667
|
*/
|
|
11546
|
-
|
|
11668
|
+
enabled?: boolean;
|
|
11547
11669
|
/**
|
|
11548
11670
|
* Corner rounding of each dash, from `0` (sharp rectangle) to `1` (fully
|
|
11549
11671
|
* rounded), as a fraction of the dash's short half-side — the same idea as a
|
|
@@ -11551,68 +11673,84 @@ type TExperimentalDashStyleOptions = {
|
|
|
11551
11673
|
* with zoom. When the dash's length equals its width, `1` renders a circle and
|
|
11552
11674
|
* `0` renders a square.
|
|
11553
11675
|
*
|
|
11554
|
-
*
|
|
11676
|
+
* Ribbon geometry only — has no effect (and warns) when `geometry` is `'tube'`.
|
|
11555
11677
|
*
|
|
11556
|
-
* @default
|
|
11678
|
+
* @default 0
|
|
11557
11679
|
*/
|
|
11558
|
-
|
|
11559
|
-
}
|
|
11560
|
-
/**
|
|
11561
|
-
* @experimental
|
|
11562
|
-
* Dash configuration options for dashed paths.
|
|
11563
|
-
* Uses discriminated union - mode determines which properties are valid.
|
|
11564
|
-
*
|
|
11565
|
-
* The mode picks how dashes are *sized*; {@link TExperimentalDashStyleOptions}
|
|
11566
|
-
* picks how they are *drawn*, and applies to every mode.
|
|
11567
|
-
*/
|
|
11568
|
-
type TExperimentalDashOptions = TExperimentalDashStyleOptions & ({
|
|
11680
|
+
cornerRadius?: number;
|
|
11681
|
+
} & ({
|
|
11569
11682
|
/**
|
|
11570
|
-
* Length-scaling mode: dash/gap as fractions of path length (0-1)
|
|
11683
|
+
* Length-scaling mode: dash/gap as fractions of path length (0-1).
|
|
11684
|
+
* Set explicitly to opt out of the default `'width-scaling'` mode;
|
|
11685
|
+
* omitting `mode` (or the whole `dash`) resolves to `'width-scaling'`.
|
|
11571
11686
|
*/
|
|
11572
|
-
|
|
11687
|
+
mode?: 'length-scaling';
|
|
11573
11688
|
/**
|
|
11574
11689
|
* Dash length as fraction of path (0-1).
|
|
11575
11690
|
* @default 0.1
|
|
11576
11691
|
*/
|
|
11577
|
-
|
|
11692
|
+
length?: number;
|
|
11578
11693
|
/**
|
|
11579
11694
|
* Gap length as fraction of path (0-1).
|
|
11580
11695
|
* @default 0.1
|
|
11581
11696
|
*/
|
|
11582
|
-
|
|
11697
|
+
gap?: number;
|
|
11583
11698
|
} | {
|
|
11584
11699
|
/**
|
|
11585
|
-
* Width-scaling mode: dash/gap as multiples of path width (deck.gl style)
|
|
11700
|
+
* Width-scaling mode: dash/gap as multiples of path width (deck.gl style).
|
|
11701
|
+
* The default mode — `dash` without a `mode` resolves to this.
|
|
11702
|
+
*
|
|
11703
|
+
* @default 'width-scaling'
|
|
11586
11704
|
*/
|
|
11587
|
-
|
|
11705
|
+
mode?: 'width-scaling';
|
|
11588
11706
|
/**
|
|
11589
11707
|
* Dash size as multiple of path width.
|
|
11590
|
-
* @default
|
|
11708
|
+
* @default 1.2
|
|
11591
11709
|
*/
|
|
11592
|
-
|
|
11710
|
+
size?: number;
|
|
11593
11711
|
/**
|
|
11594
11712
|
* Gap size as multiple of path width.
|
|
11595
|
-
* @default
|
|
11713
|
+
* @default 0.6
|
|
11596
11714
|
*/
|
|
11597
|
-
|
|
11715
|
+
gapSize?: number;
|
|
11598
11716
|
} | {
|
|
11599
11717
|
/**
|
|
11600
11718
|
* Absolute mode: dash/gap in meters (deterministic regardless of path length)
|
|
11601
11719
|
*/
|
|
11602
|
-
|
|
11720
|
+
mode: 'absolute';
|
|
11603
11721
|
/**
|
|
11604
11722
|
* Dash length in meters.
|
|
11605
11723
|
* @default 1.0
|
|
11606
11724
|
*/
|
|
11607
|
-
|
|
11725
|
+
meters?: number;
|
|
11608
11726
|
/**
|
|
11609
11727
|
* Gap length in meters.
|
|
11610
11728
|
* @default 0.5
|
|
11611
11729
|
*/
|
|
11612
|
-
|
|
11730
|
+
gapMeters?: number;
|
|
11613
11731
|
});
|
|
11732
|
+
/**
|
|
11733
|
+
* Deprecated alias for {@link TDashOptions}, kept for backward compatibility.
|
|
11734
|
+
*
|
|
11735
|
+
* @deprecated Use {@link TDashOptions} instead.
|
|
11736
|
+
*/
|
|
11737
|
+
type TExperimentalDashOptions = TDashOptions;
|
|
11614
11738
|
/**
|
|
11615
11739
|
* Options for controlling the behavior of a {@link Path}.
|
|
11740
|
+
*
|
|
11741
|
+
* @example
|
|
11742
|
+
* ```ts
|
|
11743
|
+
* const path = await mapView.Paths.add(directions.coordinates, {
|
|
11744
|
+
* width: 1.5,
|
|
11745
|
+
* geometry: 'ribbon', // 'tube' (default) | 'ribbon'
|
|
11746
|
+
* smoothing: { tension: 0.15, cornerRadius: 0.5 },
|
|
11747
|
+
* border: { enabled: true, color: 'darken' }, // ribbon only
|
|
11748
|
+
* endcapExtension: [0.5, 0.5], // ribbon only
|
|
11749
|
+
* billboarding: 80, // ribbon only: false | true | 0-90
|
|
11750
|
+
* dash: { enabled: true, mode: 'width-scaling', size: 1.2, gapSize: 0.6 },
|
|
11751
|
+
* xray: { opacity: 0.25, tint: 0.3, dithering: 2 },
|
|
11752
|
+
* });
|
|
11753
|
+
* ```
|
|
11616
11754
|
*/
|
|
11617
11755
|
type TAddPathOptions = {
|
|
11618
11756
|
/**
|
|
@@ -11700,6 +11838,8 @@ type TAddPathOptions = {
|
|
|
11700
11838
|
/**
|
|
11701
11839
|
* Whether the path should be broken into dashes.
|
|
11702
11840
|
*
|
|
11841
|
+
* @deprecated Use {@link TAddPathOptions.dash}.enabled instead.
|
|
11842
|
+
*
|
|
11703
11843
|
* @defaultValue false
|
|
11704
11844
|
*/
|
|
11705
11845
|
dashed?: boolean;
|
|
@@ -11720,17 +11860,16 @@ type TAddPathOptions = {
|
|
|
11720
11860
|
/**
|
|
11721
11861
|
* The opacity of the path when it's behind geometry (x-ray effect). Value from 0 to 1.
|
|
11722
11862
|
*
|
|
11723
|
-
* Prefer {@link
|
|
11724
|
-
* If both are set, `
|
|
11863
|
+
* @deprecated Prefer {@link TAddPathOptions.xray}.opacity instead.
|
|
11864
|
+
* If both are set, `xray.opacity` takes precedence.
|
|
11725
11865
|
*
|
|
11726
11866
|
* @defaultValue 0.25
|
|
11727
11867
|
*/
|
|
11728
11868
|
xrayOpacity?: number;
|
|
11729
11869
|
/**
|
|
11730
|
-
* @experimental
|
|
11731
11870
|
* Consolidated x-ray appearance configuration. Controls how paths look when behind geometry.
|
|
11732
11871
|
*/
|
|
11733
|
-
|
|
11872
|
+
xray?: {
|
|
11734
11873
|
/** The opacity when behind geometry (0-1). @default 0.25 */
|
|
11735
11874
|
opacity?: number;
|
|
11736
11875
|
/** Explicit color override for the x-ray portion. Omit to auto-compute from path color. */
|
|
@@ -11741,61 +11880,94 @@ type TAddPathOptions = {
|
|
|
11741
11880
|
dithering?: number;
|
|
11742
11881
|
};
|
|
11743
11882
|
/**
|
|
11744
|
-
*
|
|
11883
|
+
* Controls the smoothness of path corners using CatmullRom curve tension. Higher values create smoother curves.
|
|
11745
11884
|
* Values between 0.1-0.3 provide subtle smoothing suitable for most use cases.
|
|
11746
|
-
|
|
11747
|
-
|
|
11885
|
+
*/
|
|
11886
|
+
smoothing?: {
|
|
11887
|
+
/**
|
|
11888
|
+
* CatmullRom curve tension.
|
|
11889
|
+
* @defaultValue 0.0
|
|
11890
|
+
*/
|
|
11891
|
+
tension?: number;
|
|
11892
|
+
/**
|
|
11893
|
+
* Distance in meters from corners where control points are inserted. Only applies when tension > 0. Typical values are 0.5-2.0 meters for subtle smoothing.
|
|
11894
|
+
* @defaultValue 0.5
|
|
11895
|
+
*/
|
|
11896
|
+
cornerRadius?: number;
|
|
11897
|
+
};
|
|
11898
|
+
/**
|
|
11899
|
+
* Dash configuration. When `enabled`, controls dash/gap sizing.
|
|
11900
|
+
* Uses discriminated union - mode determines which properties are valid.
|
|
11901
|
+
* @see TDashOptions
|
|
11902
|
+
* @defaultValue undefined (dashing disabled — path renders solid)
|
|
11903
|
+
*/
|
|
11904
|
+
dash?: TDashOptions;
|
|
11905
|
+
/**
|
|
11906
|
+
* @deprecated Use {@link TAddPathOptions.xray} instead.
|
|
11907
|
+
*/
|
|
11908
|
+
__EXPERIMENTAL_XRAY_STYLE?: {
|
|
11909
|
+
/** The opacity when behind geometry (0-1). @default 0.25 */
|
|
11910
|
+
opacity?: number;
|
|
11911
|
+
/** Explicit color override for the x-ray portion. Omit to auto-compute from path color. */
|
|
11912
|
+
color?: string;
|
|
11913
|
+
/** Tint strength (0-1). 0 = no muting, 1 = fully muted. @default 0.3 */
|
|
11914
|
+
tint?: number;
|
|
11915
|
+
/** Dithering cell size in screen pixels (e.g. 4 = 4x4px checkerboard). 0 or undefined = off. */
|
|
11916
|
+
dithering?: number;
|
|
11917
|
+
};
|
|
11918
|
+
/**
|
|
11919
|
+
* @deprecated Use {@link TAddPathOptions.smoothing}.tension instead.
|
|
11748
11920
|
*/
|
|
11749
11921
|
__EXPERIMENTAL_SMOOTHING_TENSION?: number;
|
|
11750
11922
|
/**
|
|
11751
|
-
* @
|
|
11752
|
-
* Only applies when __EXPERIMENTAL_SMOOTHING_TENSION > 0. Typical values are 0.5-2.0 meters for subtle smoothing.
|
|
11753
|
-
*
|
|
11754
|
-
* @defaultValue 0.5
|
|
11923
|
+
* @deprecated Use {@link TAddPathOptions.smoothing}.cornerRadius instead.
|
|
11755
11924
|
*/
|
|
11756
11925
|
__EXPERIMENTAL_SMOOTHING_CORNER_RADIUS?: number;
|
|
11757
11926
|
/**
|
|
11758
|
-
* @
|
|
11759
|
-
* Dash configuration. When dashed=true, controls dash/gap sizing.
|
|
11760
|
-
* Uses discriminated union - mode determines which properties are valid.
|
|
11761
|
-
* @see TExperimentalDashOptions
|
|
11927
|
+
* @deprecated Use {@link TAddPathOptions.dash} instead.
|
|
11762
11928
|
*/
|
|
11763
11929
|
__EXPERIMENTAL_DASH_OPTIONS?: TExperimentalDashOptions;
|
|
11764
11930
|
/**
|
|
11765
|
-
*
|
|
11931
|
+
* Geometry type for path rendering.
|
|
11766
11932
|
* - 'tube': Original tube geometry with 8 radial segments (default)
|
|
11767
11933
|
* - 'ribbon': Flat ribbon geometry with 2 vertices per segment
|
|
11768
11934
|
*
|
|
11769
|
-
*
|
|
11770
|
-
*
|
|
11771
|
-
*
|
|
11935
|
+
* Also selects the dash drawing primitive when the path is dashed: `'ribbon'`
|
|
11936
|
+
* renders each dash as its own discrete primitive, while `'tube'` paints the
|
|
11937
|
+
* dash pattern onto one continuous path.
|
|
11772
11938
|
*
|
|
11773
11939
|
* @defaultValue 'tube'
|
|
11774
11940
|
*/
|
|
11775
|
-
|
|
11941
|
+
geometry?: 'tube' | 'ribbon';
|
|
11776
11942
|
/**
|
|
11777
|
-
*
|
|
11943
|
+
* Endcap extension for ribbon geometry as [start, end] tuple in meters.
|
|
11778
11944
|
* - Value > 0: extends path and renders rounded cap
|
|
11779
11945
|
* - Value = 0: square/flat end (no extension, no rounded cap)
|
|
11780
11946
|
*
|
|
11947
|
+
* Ribbon geometry only.
|
|
11948
|
+
*
|
|
11781
11949
|
* @defaultValue [0.5, 0.5]
|
|
11782
11950
|
*/
|
|
11783
|
-
|
|
11951
|
+
endcapExtension?: [number, number];
|
|
11784
11952
|
/**
|
|
11785
|
-
*
|
|
11953
|
+
* Controls billboarding for ribbon path geometry.
|
|
11786
11954
|
* - `true`: Every vertex faces the camera (unconditional billboard)
|
|
11787
11955
|
* - `false`: Flat world-space orientation
|
|
11788
11956
|
* - `number`: Angle threshold in degrees (0-90). Billboard only when path tangent
|
|
11789
11957
|
* verticality >= threshold. E.g. 80 means billboard only nearly-vertical segments.
|
|
11790
11958
|
*
|
|
11959
|
+
* Ribbon geometry only.
|
|
11960
|
+
*
|
|
11791
11961
|
* @defaultValue 80
|
|
11792
11962
|
*/
|
|
11793
|
-
|
|
11963
|
+
billboarding?: boolean | number;
|
|
11794
11964
|
/**
|
|
11795
|
-
*
|
|
11965
|
+
* Border configuration for ribbon path geometry.
|
|
11796
11966
|
* Renders darkened edges along both sides of the ribbon.
|
|
11967
|
+
*
|
|
11968
|
+
* Ribbon geometry only.
|
|
11797
11969
|
*/
|
|
11798
|
-
|
|
11970
|
+
border?: {
|
|
11799
11971
|
/** Whether the border is enabled */
|
|
11800
11972
|
enabled: boolean;
|
|
11801
11973
|
/** Border color - 'darken' to auto-darken main color, or explicit hex color string */
|
|
@@ -11804,15 +11976,31 @@ type TAddPathOptions = {
|
|
|
11804
11976
|
width?: number;
|
|
11805
11977
|
};
|
|
11806
11978
|
/**
|
|
11807
|
-
* @
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11979
|
+
* @deprecated Use {@link TAddPathOptions.geometry} instead.
|
|
11980
|
+
*/
|
|
11981
|
+
__EXPERIMENTAL_GEOMETRY?: 'tube' | 'ribbon';
|
|
11982
|
+
/**
|
|
11983
|
+
* @deprecated Use {@link TAddPathOptions.endcapExtension} instead.
|
|
11984
|
+
*/
|
|
11985
|
+
__EXPERIMENTAL_ENDCAP_EXTENSION?: [number, number];
|
|
11986
|
+
/**
|
|
11987
|
+
* @deprecated Use {@link TAddPathOptions.billboarding} instead.
|
|
11988
|
+
*/
|
|
11989
|
+
__EXPERIMENTAL_BILLBOARDING?: boolean | number;
|
|
11990
|
+
/**
|
|
11991
|
+
* @deprecated Use {@link TAddPathOptions.border} instead.
|
|
11811
11992
|
*/
|
|
11812
|
-
|
|
11993
|
+
__EXPERIMENTAL_BORDER?: {
|
|
11994
|
+
/** Whether the border is enabled */
|
|
11995
|
+
enabled: boolean;
|
|
11996
|
+
/** Border color - 'darken' to auto-darken main color, or explicit hex color string */
|
|
11997
|
+
color: 'darken' | string;
|
|
11998
|
+
/** Border width as fraction of total ribbon width (0-0.5). @default 0.1 */
|
|
11999
|
+
width?: number;
|
|
12000
|
+
};
|
|
11813
12001
|
};
|
|
11814
12002
|
/**
|
|
11815
|
-
*
|
|
12003
|
+
* Options specific to connection paths (vertical paths between floors).
|
|
11816
12004
|
* Extends TAddPathOptions with junction inset control.
|
|
11817
12005
|
*/
|
|
11818
12006
|
type TConnectionPathOptions = TAddPathOptions & {
|
|
@@ -11880,10 +12068,15 @@ type TGetDirectionsOptions = {
|
|
|
11880
12068
|
*
|
|
11881
12069
|
* Can be a boolean to enable or disable smoothing, or an object with configuration options.
|
|
11882
12070
|
*
|
|
12071
|
+
* Note: this `smoothing` option performs *route simplification* (removing redundant waypoints from the
|
|
12072
|
+
* computed path). It is unrelated to `addPath`'s visual `smoothing` option, which controls the rendering
|
|
12073
|
+
* of a path's corners.
|
|
12074
|
+
*
|
|
11883
12075
|
* **Available methods:**
|
|
11884
|
-
* - `'greedy-los'` (default): Greedy forward scan with line-of-sight validation. Fastest, O(n)
|
|
11885
|
-
* - `'
|
|
11886
|
-
*
|
|
12076
|
+
* - `'greedy-los'` (default): Greedy forward scan with line-of-sight validation. Fastest, O(n).
|
|
12077
|
+
* - `'dp-optimal'` (recommended for the shortest path): Dynamic programming producing the globally
|
|
12078
|
+
* optimal path — shortest distance and straightest route. O(n²), slower on long paths.
|
|
12079
|
+
* - `'rdp'`: Ramer-Douglas-Peucker preprocessing + line-of-sight validation. Medium speed, not globally optimal.
|
|
11887
12080
|
*
|
|
11888
12081
|
* **Limitations:**
|
|
11889
12082
|
* Smoothing never removes a node flagged `preventSmoothing` — such nodes are always preserved as
|
|
@@ -11895,45 +12088,36 @@ type TGetDirectionsOptions = {
|
|
|
11895
12088
|
*
|
|
11896
12089
|
* @example
|
|
11897
12090
|
* ```ts
|
|
11898
|
-
* //
|
|
11899
|
-
* mapView.getDirections(firstSpace, secondSpace, {
|
|
11900
|
-
* smoothing: true
|
|
11901
|
-
* })
|
|
11902
|
-
*
|
|
11903
|
-
* // Enable smoothing with custom radius (in meters)
|
|
11904
|
-
* mapView.getDirections(firstSpace, secondSpace, {
|
|
11905
|
-
* smoothing: {
|
|
11906
|
-
* radius: 1.5,
|
|
11907
|
-
* }
|
|
11908
|
-
* })
|
|
11909
|
-
*
|
|
11910
|
-
* // Use greedy line-of-sight method (default, explicit)
|
|
12091
|
+
* // Recommended — the shortest, straightest path:
|
|
11911
12092
|
* mapView.getDirections(firstSpace, secondSpace, {
|
|
11912
12093
|
* smoothing: {
|
|
11913
12094
|
* enabled: true,
|
|
11914
|
-
*
|
|
12095
|
+
* method: 'dp-optimal',
|
|
12096
|
+
* includeDoorBufferNodes: true,
|
|
11915
12097
|
* radius: 0.4,
|
|
11916
12098
|
* }
|
|
11917
12099
|
* })
|
|
11918
12100
|
*
|
|
11919
|
-
* //
|
|
12101
|
+
* // Faster, but not globally optimal:
|
|
11920
12102
|
* mapView.getDirections(firstSpace, secondSpace, {
|
|
11921
12103
|
* smoothing: {
|
|
11922
12104
|
* enabled: true,
|
|
11923
|
-
*
|
|
12105
|
+
* method: 'rdp',
|
|
11924
12106
|
* radius: 0.4,
|
|
11925
12107
|
* }
|
|
11926
12108
|
* })
|
|
11927
12109
|
*
|
|
11928
|
-
* //
|
|
12110
|
+
* // Fastest (default):
|
|
11929
12111
|
* mapView.getDirections(firstSpace, secondSpace, {
|
|
11930
12112
|
* smoothing: {
|
|
11931
12113
|
* enabled: true,
|
|
11932
|
-
*
|
|
11933
|
-
* __EXPERIMENTAL_INCLUDE_DOOR_BUFFER_NODES: true,
|
|
12114
|
+
* method: 'greedy-los',
|
|
11934
12115
|
* radius: 0.4,
|
|
11935
12116
|
* }
|
|
11936
12117
|
* })
|
|
12118
|
+
*
|
|
12119
|
+
* // Enable smoothing with default settings:
|
|
12120
|
+
* mapView.getDirections(firstSpace, secondSpace, { smoothing: true })
|
|
11937
12121
|
* ```
|
|
11938
12122
|
*/
|
|
11939
12123
|
smoothing?: boolean | {
|
|
@@ -11948,59 +12132,32 @@ type TGetDirectionsOptions = {
|
|
|
11948
12132
|
*/
|
|
11949
12133
|
radius?: number;
|
|
11950
12134
|
/**
|
|
11951
|
-
*
|
|
11952
|
-
*
|
|
11953
|
-
*
|
|
12135
|
+
* Path smoothing method.
|
|
12136
|
+
* - `'greedy-los'` (default): greedy forward scan with line-of-sight validation. Fastest, O(n).
|
|
12137
|
+
* - `'dp-optimal'` (recommended for the shortest path): dynamic programming for the globally
|
|
12138
|
+
* optimal path. O(n²), slower on long paths.
|
|
12139
|
+
* - `'rdp'`: Ramer-Douglas-Peucker preprocessing + line-of-sight validation. Medium speed.
|
|
11954
12140
|
* @default 'greedy-los'
|
|
11955
12141
|
*/
|
|
11956
|
-
|
|
11957
|
-
} | {
|
|
11958
|
-
/**
|
|
11959
|
-
* Enable or disable path smoothing.
|
|
11960
|
-
* @default true for non-enterprise mode, false for enterprise mode
|
|
11961
|
-
*/
|
|
11962
|
-
enabled?: boolean;
|
|
12142
|
+
method?: 'greedy-los' | 'rdp' | 'dp-optimal';
|
|
11963
12143
|
/**
|
|
11964
|
-
*
|
|
11965
|
-
*
|
|
12144
|
+
* Whether to preserve door-adjacent nodes during simplification.
|
|
12145
|
+
* - 'rdp': adds door-adjacent nodes (predecessor/successor of doors) to the must-include set.
|
|
12146
|
+
* - 'dp-optimal': includes 0.5m buffer nodes perpendicular to doors.
|
|
12147
|
+
* - 'greedy-los': ignored.
|
|
12148
|
+
* @default true for rdp; false for dp-optimal (ignored by greedy-los)
|
|
11966
12149
|
*/
|
|
11967
|
-
|
|
12150
|
+
includeDoorBufferNodes?: boolean;
|
|
11968
12151
|
/**
|
|
11969
|
-
* @
|
|
11970
|
-
* Path smoothing method using Ramer-Douglas-Peucker preprocessing with line-of-sight validation.
|
|
11971
|
-
* Better for paths with doors and complex geometry. Medium speed.
|
|
11972
|
-
* Always uses line-of-sight validation (cannot be disabled).
|
|
12152
|
+
* @deprecated Use {@link method} instead.
|
|
11973
12153
|
*/
|
|
11974
|
-
__EXPERIMENTAL_METHOD
|
|
12154
|
+
__EXPERIMENTAL_METHOD?: 'greedy-los' | 'rdp' | 'dp-optimal';
|
|
11975
12155
|
/**
|
|
11976
|
-
* @
|
|
11977
|
-
* Whether to include door-adjacent nodes (predecessor/successor of doors) in the must-include set.
|
|
11978
|
-
* When true (default), nodes immediately before and after doors are preserved during simplification.
|
|
11979
|
-
* @default true
|
|
12156
|
+
* @deprecated Use {@link includeDoorBufferNodes} instead.
|
|
11980
12157
|
*/
|
|
11981
12158
|
__EXPERIMENTAL_MUST_INCLUDE_DOOR_BUFFER_NODES?: boolean;
|
|
11982
|
-
} | {
|
|
11983
12159
|
/**
|
|
11984
|
-
*
|
|
11985
|
-
* @default true for non-enterprise mode, false for enterprise mode
|
|
11986
|
-
*/
|
|
11987
|
-
enabled?: boolean;
|
|
11988
|
-
/**
|
|
11989
|
-
* The radius of the buffer around the path to consider when simplifying, in meters.
|
|
11990
|
-
* @default 0.75
|
|
11991
|
-
*/
|
|
11992
|
-
radius?: number;
|
|
11993
|
-
/**
|
|
11994
|
-
* @experimental
|
|
11995
|
-
* Path smoothing method using Dynamic Programming for globally optimal simplification.
|
|
11996
|
-
* Slowest but highest quality, O(n²) complexity. Best when path quality is critical.
|
|
11997
|
-
*/
|
|
11998
|
-
__EXPERIMENTAL_METHOD: 'dp-optimal';
|
|
11999
|
-
/**
|
|
12000
|
-
* @experimental
|
|
12001
|
-
* Whether to include 0.5m buffer nodes perpendicular to doors in DP simplification.
|
|
12002
|
-
* When true, predecessor and successor nodes of doors are marked with preventSmoothing.
|
|
12003
|
-
* @default false
|
|
12160
|
+
* @deprecated Use {@link includeDoorBufferNodes} instead.
|
|
12004
12161
|
*/
|
|
12005
12162
|
__EXPERIMENTAL_INCLUDE_DOOR_BUFFER_NODES?: boolean;
|
|
12006
12163
|
};
|
|
@@ -12027,7 +12184,6 @@ type TGetDirectionsOptions = {
|
|
|
12027
12184
|
*/
|
|
12028
12185
|
zones?: TDirectionZone[];
|
|
12029
12186
|
/**
|
|
12030
|
-
* @experimental
|
|
12031
12187
|
* Enterprise only. Connections that should not be used for directions.
|
|
12032
12188
|
*
|
|
12033
12189
|
* If a connection is excluded, it will not be used in the directions even if it is the shortest (or only) path.
|
|
@@ -12877,23 +13033,706 @@ declare class Coordinate implements IFocusable, IAnchorable, IGeoJSONData, INavi
|
|
|
12877
13033
|
destroy(): void;
|
|
12878
13034
|
}
|
|
12879
13035
|
//#endregion
|
|
12880
|
-
//#region src/
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
13036
|
+
//#region src/records/geometry.d.ts
|
|
13037
|
+
/**
|
|
13038
|
+
* A single geometry entry in the unified geometry index.
|
|
13039
|
+
* v2: one entry per space/obstruction/entrance/area feature (id = feature.properties.id).
|
|
13040
|
+
* v3: one entry per entry in the unified `geometry` collection.
|
|
13041
|
+
*/
|
|
13042
|
+
interface GeometryRecord {
|
|
13043
|
+
id: string;
|
|
13044
|
+
floorId: string;
|
|
13045
|
+
/** discriminator for the folded v2 collections: 'space' | 'obstruction' | 'entrance' | 'area' */
|
|
13046
|
+
kind: string;
|
|
13047
|
+
geometry: Geometry;
|
|
13048
|
+
}
|
|
13049
|
+
/** Unified neutral geometry index, keyed by geometryId (+ floorId for v3). */
|
|
13050
|
+
interface GeometryIndex {
|
|
13051
|
+
byId: Record<string, GeometryRecord>;
|
|
13052
|
+
byFloorId: Record<string, GeometryRecord[]>;
|
|
12887
13053
|
}
|
|
12888
13054
|
//#endregion
|
|
12889
|
-
//#region src/
|
|
13055
|
+
//#region src/builders/v2/node-index.d.ts
|
|
12890
13056
|
/**
|
|
12891
|
-
*
|
|
13057
|
+
* Node-keyed reverse lookups. v2-only for this phase (built eagerly by builders/v2),
|
|
13058
|
+
* and swapped for the lazy async graph in a later phase. Not part of any neutral record.
|
|
13059
|
+
* Lives in builders/v2 (not records/) because it references raw MVFConnection and the Door class.
|
|
12892
13060
|
*/
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
13061
|
+
interface NodeIndex {
|
|
13062
|
+
spaceIdsByNodeId: Record<string, string[]>;
|
|
13063
|
+
objectIdsByNodeId: Record<string, string[]>;
|
|
13064
|
+
doorsByNodeId: Record<string, Door>;
|
|
13065
|
+
mvfConnectionsByNodeId: Record<string, Connection$1>;
|
|
13066
|
+
locationIdsByNodeId: Record<string, string[]>;
|
|
13067
|
+
entranceNodeIdsBySpaceId: Record<string, string[]>;
|
|
13068
|
+
objectEntranceNodeIdsByObstructionId: Record<string, string[]>;
|
|
13069
|
+
obstructionIdByEntranceId: Record<string, string>;
|
|
13070
|
+
}
|
|
13071
|
+
//#endregion
|
|
13072
|
+
//#region src/records/space.d.ts
|
|
13073
|
+
interface SpaceRecord {
|
|
13074
|
+
id: string;
|
|
13075
|
+
floorId: string;
|
|
13076
|
+
geometry: Geometry;
|
|
13077
|
+
kind?: string | null;
|
|
13078
|
+
center?: [number, number];
|
|
13079
|
+
externalId?: string;
|
|
13080
|
+
details?: {
|
|
13081
|
+
name?: string;
|
|
13082
|
+
description?: string;
|
|
13083
|
+
icon?: string;
|
|
13084
|
+
images?: unknown[];
|
|
13085
|
+
links?: unknown[];
|
|
13086
|
+
};
|
|
13087
|
+
/** door ids (v2: entrance-node join; v3: door-connection geometry anchors) */
|
|
13088
|
+
doorIds: string[];
|
|
13089
|
+
/** enterprise location ids (v2: polygons/nodes/spaces; v3: geometryAnchors) */
|
|
13090
|
+
enterpriseLocationIds: string[];
|
|
13091
|
+
/** v2: space.properties.destinationNodes (feeds node-tree-cache 'space' case) */
|
|
13092
|
+
destinationNodes?: string[];
|
|
13093
|
+
/** Polygon image anchored to this space (see `processMVFPolygonImages`). */
|
|
13094
|
+
image?: {
|
|
13095
|
+
path: string;
|
|
13096
|
+
};
|
|
13097
|
+
}
|
|
13098
|
+
//#endregion
|
|
13099
|
+
//#region src/records/node.d.ts
|
|
13100
|
+
interface NodeRecord {
|
|
13101
|
+
id: string;
|
|
13102
|
+
floorId: string;
|
|
13103
|
+
geometry: Geometry;
|
|
13104
|
+
externalId?: string;
|
|
13105
|
+
/** forward node id refs (v2: neighbors; v3: derived from edges at graph build) */
|
|
13106
|
+
neighborIds: string[];
|
|
13107
|
+
/** node space-membership (v2: node.properties.space; v3: derived from geometry anchors) */
|
|
13108
|
+
spaceIds?: string[];
|
|
13109
|
+
flags?: number[];
|
|
13110
|
+
}
|
|
13111
|
+
//#endregion
|
|
13112
|
+
//#region src/records/object.d.ts
|
|
13113
|
+
interface MapObjectRecord {
|
|
13114
|
+
id: string;
|
|
13115
|
+
floorId: string;
|
|
13116
|
+
geometry: Geometry;
|
|
13117
|
+
kind?: string | null;
|
|
13118
|
+
externalId?: string;
|
|
13119
|
+
center?: [number, number];
|
|
13120
|
+
details?: Record<string, unknown>;
|
|
13121
|
+
/** v2: obstruction.properties.footprintComponent (drives Door.isExterior fallback) */
|
|
13122
|
+
footprintComponent?: boolean;
|
|
13123
|
+
/** Polygon image anchored to this object (see `processMVFPolygonImages`). */
|
|
13124
|
+
image?: {
|
|
13125
|
+
path: string;
|
|
13126
|
+
};
|
|
13127
|
+
}
|
|
13128
|
+
//#endregion
|
|
13129
|
+
//#region src/records/floor.d.ts
|
|
13130
|
+
interface FloorRecord {
|
|
13131
|
+
id: string;
|
|
13132
|
+
externalId?: string;
|
|
13133
|
+
geometry?: Geometry;
|
|
13134
|
+
name?: string;
|
|
13135
|
+
shortName?: string;
|
|
13136
|
+
subtitle?: string;
|
|
13137
|
+
elevation: number;
|
|
13138
|
+
maxHeight?: number;
|
|
13139
|
+
}
|
|
13140
|
+
//#endregion
|
|
13141
|
+
//#region src/records/floor-stack.d.ts
|
|
13142
|
+
interface FloorStackRecord {
|
|
13143
|
+
id: string;
|
|
13144
|
+
type?: string;
|
|
13145
|
+
name?: string;
|
|
13146
|
+
shortName?: string;
|
|
13147
|
+
externalId?: string;
|
|
13148
|
+
/** forward floor id refs (v2: floors|maps; v3: floorIds) */
|
|
13149
|
+
floorIds: string[];
|
|
13150
|
+
defaultFloor?: string;
|
|
13151
|
+
}
|
|
13152
|
+
//#endregion
|
|
13153
|
+
//#region src/records/facade.d.ts
|
|
13154
|
+
interface FacadeRecord {
|
|
13155
|
+
id: string;
|
|
13156
|
+
floorStackId: string;
|
|
13157
|
+
/** forward space id refs */
|
|
13158
|
+
spaceIds: string[];
|
|
13159
|
+
/** first space's floorId (v2: spaces[0].floorId) */
|
|
13160
|
+
floorId?: string;
|
|
13161
|
+
}
|
|
13162
|
+
//#endregion
|
|
13163
|
+
//#region src/records/connection.d.ts
|
|
13164
|
+
interface ConnectionRecord {
|
|
13165
|
+
id: string;
|
|
13166
|
+
type: TConnectionType;
|
|
13167
|
+
externalId?: string;
|
|
13168
|
+
extra?: Record<string, unknown>;
|
|
13169
|
+
accessible: boolean;
|
|
13170
|
+
/** forward node id refs (populated only when graph is loaded in later phases) */
|
|
13171
|
+
nodeIds: string[];
|
|
13172
|
+
details?: Record<string, unknown>;
|
|
13173
|
+
}
|
|
13174
|
+
//#endregion
|
|
13175
|
+
//#region src/records/door.d.ts
|
|
13176
|
+
interface DoorRecord {
|
|
13177
|
+
id: string;
|
|
13178
|
+
floorId: string;
|
|
13179
|
+
geometry: Geometry;
|
|
13180
|
+
externalId?: string;
|
|
13181
|
+
details?: {
|
|
13182
|
+
name?: string;
|
|
13183
|
+
description?: string;
|
|
13184
|
+
icon?: string;
|
|
13185
|
+
images?: unknown[];
|
|
13186
|
+
links?: unknown[];
|
|
13187
|
+
};
|
|
13188
|
+
/** Resolved eagerly at build time (either the raw entrance flag or the wall/object footprintComponent fallback). */
|
|
13189
|
+
isExterior: boolean;
|
|
13190
|
+
/** forward obstruction id ref (v2: obstructionIdByEntranceId; v3: door-connection) */
|
|
13191
|
+
obstructionId?: string;
|
|
13192
|
+
nodeId?: string;
|
|
13193
|
+
}
|
|
13194
|
+
//#endregion
|
|
13195
|
+
//#region src/records/poi.d.ts
|
|
13196
|
+
interface PoiRecord {
|
|
13197
|
+
id: string;
|
|
13198
|
+
floorId: string;
|
|
13199
|
+
geometry: Geometry;
|
|
13200
|
+
externalId?: string;
|
|
13201
|
+
center?: [number, number];
|
|
13202
|
+
details?: Record<string, unknown>;
|
|
13203
|
+
}
|
|
13204
|
+
//#endregion
|
|
13205
|
+
//#region src/records/annotation.d.ts
|
|
13206
|
+
interface AnnotationRecord {
|
|
13207
|
+
id: string;
|
|
13208
|
+
floorId: string;
|
|
13209
|
+
geometry: Geometry;
|
|
13210
|
+
symbolId: string;
|
|
13211
|
+
symbol?: AnnotationSymbol;
|
|
13212
|
+
externalId?: string;
|
|
13213
|
+
details?: Record<string, unknown>;
|
|
13214
|
+
}
|
|
13215
|
+
//#endregion
|
|
13216
|
+
//#region src/records/area.d.ts
|
|
13217
|
+
interface AreaRecord {
|
|
13218
|
+
id: string;
|
|
13219
|
+
floorId: string;
|
|
13220
|
+
geometry: Geometry;
|
|
13221
|
+
externalId?: string;
|
|
13222
|
+
center?: [number, number];
|
|
13223
|
+
details?: Record<string, unknown>;
|
|
13224
|
+
/**
|
|
13225
|
+
* Polygon image anchored to this area (see `processMVFPolygonImages`).
|
|
13226
|
+
* Only the `path` is captured; the `Area` object uses it to construct its `Image3DView`.
|
|
13227
|
+
*/
|
|
13228
|
+
image?: {
|
|
13229
|
+
path: string;
|
|
13230
|
+
};
|
|
13231
|
+
}
|
|
13232
|
+
//#endregion
|
|
13233
|
+
//#region src/records/location-profile.d.ts
|
|
13234
|
+
interface LocationProfileRecord {
|
|
13235
|
+
id: string;
|
|
13236
|
+
name?: string;
|
|
13237
|
+
externalId?: string;
|
|
13238
|
+
description?: string;
|
|
13239
|
+
logo?: string;
|
|
13240
|
+
phone?: string;
|
|
13241
|
+
social?: LocationSocial$1[];
|
|
13242
|
+
pictures?: {
|
|
13243
|
+
url?: string;
|
|
13244
|
+
altText?: string;
|
|
13245
|
+
}[];
|
|
13246
|
+
links?: Record<string, unknown>[];
|
|
13247
|
+
website?: Record<string, unknown>;
|
|
13248
|
+
icon?: string;
|
|
13249
|
+
searchTags?: string[];
|
|
13250
|
+
categoryIds?: CategoryId[];
|
|
13251
|
+
spaceIds: string[];
|
|
13252
|
+
objectIds: string[];
|
|
13253
|
+
doorIds: string[];
|
|
13254
|
+
connectionIds: string[];
|
|
13255
|
+
annotationIds: string[];
|
|
13256
|
+
areaIds: string[];
|
|
13257
|
+
openingHoursSpecification?: OpeningHoursSpecification[];
|
|
13258
|
+
extra?: Record<string, unknown>;
|
|
13259
|
+
}
|
|
13260
|
+
//#endregion
|
|
13261
|
+
//#region src/records/location-category.d.ts
|
|
13262
|
+
interface LocationCategoryRecord {
|
|
13263
|
+
id: string;
|
|
13264
|
+
name?: string;
|
|
13265
|
+
icon?: string;
|
|
13266
|
+
parent?: string;
|
|
13267
|
+
}
|
|
13268
|
+
//#endregion
|
|
13269
|
+
//#region src/records/enterprise-location.d.ts
|
|
13270
|
+
interface EnterpriseLocationRecord {
|
|
13271
|
+
id: string;
|
|
13272
|
+
externalId?: string;
|
|
13273
|
+
name?: string;
|
|
13274
|
+
description?: string;
|
|
13275
|
+
amenity?: string;
|
|
13276
|
+
extra?: Record<string, unknown>;
|
|
13277
|
+
/** geometryAnchors (v2: polygons; v3: geometryAnchors) */
|
|
13278
|
+
geometryIds: string[];
|
|
13279
|
+
/** forward node id refs */
|
|
13280
|
+
nodeIds: string[];
|
|
13281
|
+
/** forward space id refs (v2: spaces falling back to polygons) */
|
|
13282
|
+
spaceIds: string[];
|
|
13283
|
+
categoryIds: string[];
|
|
13284
|
+
/** instance locations (already-resolved records) */
|
|
13285
|
+
instances?: EnterpriseLocationRecord[];
|
|
13286
|
+
parentId?: string;
|
|
13287
|
+
logo?: string;
|
|
13288
|
+
picture?: string;
|
|
13289
|
+
shortName?: string;
|
|
13290
|
+
showFloatingLabelWhenImagePresent?: boolean;
|
|
13291
|
+
showLogo?: boolean;
|
|
13292
|
+
siblingGroups?: SiblingGroup$1[];
|
|
13293
|
+
social?: {
|
|
13294
|
+
facebook?: string;
|
|
13295
|
+
instagram?: string;
|
|
13296
|
+
twitter?: string;
|
|
13297
|
+
website?: string;
|
|
13298
|
+
};
|
|
13299
|
+
sortOrder?: number;
|
|
13300
|
+
states?: LocationState$1[];
|
|
13301
|
+
tags?: string[];
|
|
13302
|
+
type?: string;
|
|
13303
|
+
hidden?: boolean;
|
|
13304
|
+
primaryCategory?: string;
|
|
13305
|
+
phone?: {
|
|
13306
|
+
number: string;
|
|
13307
|
+
extension?: string;
|
|
13308
|
+
};
|
|
13309
|
+
operationHours?: OperationHours$1[];
|
|
13310
|
+
gallery?: {
|
|
13311
|
+
caption?: string | null;
|
|
13312
|
+
image: string;
|
|
13313
|
+
embeddedUrl?: string | null;
|
|
13314
|
+
}[];
|
|
13315
|
+
links?: {
|
|
13316
|
+
label: string;
|
|
13317
|
+
url: string;
|
|
13318
|
+
}[];
|
|
13319
|
+
filterFlags?: string[];
|
|
13320
|
+
headerImage?: string;
|
|
13321
|
+
}
|
|
13322
|
+
//#endregion
|
|
13323
|
+
//#region src/records/enterprise-category.d.ts
|
|
13324
|
+
interface EnterpriseCategoryRecord {
|
|
13325
|
+
id: string;
|
|
13326
|
+
externalId?: string;
|
|
13327
|
+
name?: string;
|
|
13328
|
+
color?: string;
|
|
13329
|
+
extra?: Record<string, unknown>;
|
|
13330
|
+
icon?: string;
|
|
13331
|
+
iconFromDefaultList?: string | null;
|
|
13332
|
+
sortOrder?: number;
|
|
13333
|
+
picture?: string;
|
|
13334
|
+
childIds: string[];
|
|
13335
|
+
locationIds: string[];
|
|
13336
|
+
}
|
|
13337
|
+
//#endregion
|
|
13338
|
+
//#region src/records/enterprise-venue.d.ts
|
|
13339
|
+
interface EnterpriseVenueRecord {
|
|
13340
|
+
id?: string;
|
|
13341
|
+
externalId?: string;
|
|
13342
|
+
countrycode?: string;
|
|
13343
|
+
coverImage?: string;
|
|
13344
|
+
defaultLanguage?: Language;
|
|
13345
|
+
defaultFloor?: string;
|
|
13346
|
+
extra?: Record<string, unknown>;
|
|
13347
|
+
icon?: string;
|
|
13348
|
+
languages?: Language[];
|
|
13349
|
+
links?: unknown[];
|
|
13350
|
+
logo?: string;
|
|
13351
|
+
mappedinWebUrl?: string;
|
|
13352
|
+
name?: string;
|
|
13353
|
+
operationHours?: OperationHours$1[];
|
|
13354
|
+
slug?: string;
|
|
13355
|
+
topLocations?: string[];
|
|
13356
|
+
tzid?: string;
|
|
13357
|
+
type?: EnterpriseVenueType;
|
|
13358
|
+
defaultMap?: string;
|
|
13359
|
+
propertyImage?: string;
|
|
13360
|
+
}
|
|
13361
|
+
//#endregion
|
|
13362
|
+
//#region src/records/index.d.ts
|
|
13363
|
+
interface ModelRecords {
|
|
13364
|
+
geometryIndex: GeometryIndex;
|
|
13365
|
+
nodeIndex: NodeIndex;
|
|
13366
|
+
mvfSpacesById: Record<string, SpaceCollection['features'][number]>;
|
|
13367
|
+
mvfObstructionById: Record<string, ObstructionCollection['features'][number]>;
|
|
13368
|
+
mvfEntrancesById: Record<string, EntranceCollection['features'][number]>;
|
|
13369
|
+
mvfAreasById: Record<string, AreaCollection['features'][number]>;
|
|
13370
|
+
mvfAnnotationsById: Record<string, AnnotationCollection['features'][number]>;
|
|
13371
|
+
spacesById: Record<string, Space>;
|
|
13372
|
+
nodesById: Record<string, Node>;
|
|
13373
|
+
objectsById: Record<string, MapObject>;
|
|
13374
|
+
floorsById: Record<string, Floor>;
|
|
13375
|
+
floorStacksById: Record<string, FloorStack>;
|
|
13376
|
+
facadesById: Record<string, Facade>;
|
|
13377
|
+
facadesBySpaceId: Record<string, Facade>;
|
|
13378
|
+
connectionsById: Record<string, Connection>;
|
|
13379
|
+
doorsById: Record<string, Door>;
|
|
13380
|
+
poisById: Record<string, PointOfInterest>;
|
|
13381
|
+
annotationsById: Record<string, Annotation>;
|
|
13382
|
+
areasById: Record<string, Area>;
|
|
13383
|
+
locationProfilesById: Record<string, LocationProfile>;
|
|
13384
|
+
locationCategoriesById: Record<string, LocationCategory>;
|
|
13385
|
+
spaceRecordsById: Record<string, SpaceRecord>;
|
|
13386
|
+
nodeRecordsById: Record<string, NodeRecord>;
|
|
13387
|
+
objectRecordsById: Record<string, MapObjectRecord>;
|
|
13388
|
+
floorRecordsById: Record<string, FloorRecord>;
|
|
13389
|
+
floorStackRecordsById: Record<string, FloorStackRecord>;
|
|
13390
|
+
facadeRecordsById: Record<string, FacadeRecord>;
|
|
13391
|
+
connectionRecordsById: Record<string, ConnectionRecord>;
|
|
13392
|
+
doorRecordsById: Record<string, DoorRecord>;
|
|
13393
|
+
poiRecordsById: Record<string, PoiRecord>;
|
|
13394
|
+
annotationRecordsById: Record<string, AnnotationRecord>;
|
|
13395
|
+
areaRecordsById: Record<string, AreaRecord>;
|
|
13396
|
+
locationProfileRecordsById: Record<string, LocationProfileRecord>;
|
|
13397
|
+
locationCategoryRecordsById: Record<string, LocationCategoryRecord>;
|
|
13398
|
+
nodeRecordsByFloorId: Record<string, NodeRecord[]>;
|
|
13399
|
+
spaceRecordsByFloorId: Record<string, SpaceRecord[]>;
|
|
13400
|
+
poiRecordsByFloorId: Record<string, PoiRecord[]>;
|
|
13401
|
+
areaRecordsByFloorId: Record<string, AreaRecord[]>;
|
|
13402
|
+
annotationRecordsByFloorId: Record<string, AnnotationRecord[]>;
|
|
13403
|
+
doorRecordsByFloorId: Record<string, DoorRecord[]>;
|
|
13404
|
+
spacesByExternalId: Record<string, Space[]>;
|
|
13405
|
+
nodesByExternalId: Record<string, Node[]>;
|
|
13406
|
+
objectsByExternalId: Record<string, MapObject[]>;
|
|
13407
|
+
poisByExternalId: Record<string, PointOfInterest[]>;
|
|
13408
|
+
floorsByExternalId: Record<string, Floor[]>;
|
|
13409
|
+
floorStacksByExternalId: Record<string, FloorStack[]>;
|
|
13410
|
+
doorsByExternalId: Record<string, Door[]>;
|
|
13411
|
+
areasByExternalId: Record<string, Area[]>;
|
|
13412
|
+
locationProfilesByExternalId: Record<string, LocationProfile[]>;
|
|
13413
|
+
locationProfilesByCategoryId: Record<string, LocationProfile[]>;
|
|
13414
|
+
locationCategoriesByParentId: Record<string, LocationCategory[]>;
|
|
13415
|
+
locationProfilesByAttachedFeatureId: Record<string, LocationProfile[]>;
|
|
13416
|
+
}
|
|
13417
|
+
interface EnterpriseModelRecords {
|
|
13418
|
+
connectionsByExternalId: Record<string, Connection[]>;
|
|
13419
|
+
locationsByExternalId: Record<string, EnterpriseLocation[]>;
|
|
13420
|
+
categoriesByExternalId: Record<string, EnterpriseCategory[]>;
|
|
13421
|
+
locationsById: Record<string, EnterpriseLocation>;
|
|
13422
|
+
locationInstancesById: Record<string, EnterpriseLocation>;
|
|
13423
|
+
instanceLocationsByPolygonId: Record<string, EnterpriseLocation>;
|
|
13424
|
+
categoriesById: Record<string, EnterpriseCategory>;
|
|
13425
|
+
locationRecordsById: Record<string, EnterpriseLocationRecord>;
|
|
13426
|
+
categoryRecordsById: Record<string, EnterpriseCategoryRecord>;
|
|
13427
|
+
venueRecord: EnterpriseVenueRecord;
|
|
13428
|
+
locationIdsByGeometryId: Record<string, string[]>;
|
|
13429
|
+
}
|
|
13430
|
+
//#endregion
|
|
13431
|
+
//#region src/map-data-objects/base-object.d.ts
|
|
13432
|
+
declare abstract class BaseMapData {
|
|
13433
|
+
#private;
|
|
13434
|
+
/**
|
|
13435
|
+
* The identity of the map data.
|
|
13436
|
+
*/
|
|
13437
|
+
readonly id: string;
|
|
13438
|
+
constructor(id: string, _data: MapDataInternal);
|
|
13439
|
+
/**
|
|
13440
|
+
* Gets the bounding box of the geoJSON geometry.
|
|
13441
|
+
*
|
|
13442
|
+
* @returns {BBox} The bounding box of the geoJSON geometry
|
|
13443
|
+
*/
|
|
13444
|
+
get geoJSONBoundingBox(): BBox | undefined;
|
|
13445
|
+
get geoJSON(): Feature<Polygon | MultiPolygon | LineString | Point, null>;
|
|
13446
|
+
}
|
|
13447
|
+
//#endregion
|
|
13448
|
+
//#region src/map-data-objects/floor.d.ts
|
|
13449
|
+
/**
|
|
13450
|
+
* A class representing floor data within the map.
|
|
13451
|
+
*
|
|
13452
|
+
* Floors are used to represent different levels within a map, each containing various map elements.
|
|
13453
|
+
*/
|
|
13454
|
+
declare class Floor extends BaseMapData implements IFocusable, IGeoJSONData {
|
|
13455
|
+
#private;
|
|
13456
|
+
/**
|
|
13457
|
+
* @internal
|
|
13458
|
+
*/
|
|
13459
|
+
static readonly __type = "floor";
|
|
13460
|
+
/**
|
|
13461
|
+
* @internal
|
|
13462
|
+
*/
|
|
13463
|
+
readonly __type = "floor";
|
|
13464
|
+
/**
|
|
13465
|
+
* Checks if the provided instance is of type Floor.
|
|
13466
|
+
*
|
|
13467
|
+
* @param instance The instance to check.
|
|
13468
|
+
* @returns {boolean} True if the instance is a Floor, false otherwise.
|
|
13469
|
+
*/
|
|
13470
|
+
static is(instance: object): instance is Floor;
|
|
13471
|
+
/**
|
|
13472
|
+
* @internal
|
|
13473
|
+
*/
|
|
13474
|
+
constructor(data: MapDataInternal, options: {
|
|
13475
|
+
record: FloorRecord;
|
|
13476
|
+
});
|
|
13477
|
+
/** @internal */
|
|
13478
|
+
get focusTarget(): this;
|
|
13479
|
+
/**
|
|
13480
|
+
* Gets the name of the floor.
|
|
13481
|
+
*
|
|
13482
|
+
* @returns {string} The name of the floor.
|
|
13483
|
+
*/
|
|
13484
|
+
get name(): string;
|
|
13485
|
+
/**
|
|
13486
|
+
* Gets the short name of the floor (i.e. "F1", "L, "2", etc.).
|
|
13487
|
+
* Used in space constrained lists and Often aligns with what is displayed on an elevator.
|
|
13488
|
+
*
|
|
13489
|
+
* @returns {string} The short name of the floor.
|
|
13490
|
+
*/
|
|
13491
|
+
get shortName(): string;
|
|
13492
|
+
/**
|
|
13493
|
+
* Gets the subtitle of the floor.
|
|
13494
|
+
*
|
|
13495
|
+
* @returns {string} The subtitle of the floor.
|
|
13496
|
+
*/
|
|
13497
|
+
get subtitle(): string;
|
|
13498
|
+
/**
|
|
13499
|
+
* Gets the external ID of the floor.
|
|
13500
|
+
*
|
|
13501
|
+
* @returns {string} The external ID of the floor.
|
|
13502
|
+
*/
|
|
13503
|
+
get externalId(): string;
|
|
13504
|
+
/**
|
|
13505
|
+
* Gets the elevation of the floor.
|
|
13506
|
+
*
|
|
13507
|
+
* @returns {number} The elevation of the floor.
|
|
13508
|
+
*/
|
|
13509
|
+
get elevation(): number;
|
|
13510
|
+
/**
|
|
13511
|
+
* Gets the max height of the floor if there is one.
|
|
13512
|
+
*
|
|
13513
|
+
* @returns {number | undefined} The max height of the floor.
|
|
13514
|
+
*/
|
|
13515
|
+
get maxHeight(): number | undefined;
|
|
13516
|
+
/**
|
|
13517
|
+
* Gets the spaces ({@link Space}) located on this floor.
|
|
13518
|
+
*
|
|
13519
|
+
* @returns {Space[]} An array of Space objects on this floor.
|
|
13520
|
+
*/
|
|
13521
|
+
get spaces(): Space[];
|
|
13522
|
+
/**
|
|
13523
|
+
* Gets the spaces that are open to below on this floor.
|
|
13524
|
+
* These are spaces that create ceiling cutouts when viewed from floors above.
|
|
13525
|
+
*
|
|
13526
|
+
* @internal
|
|
13527
|
+
*
|
|
13528
|
+
* @returns {Space[]} An array of Space objects that are open to below.
|
|
13529
|
+
*/
|
|
13530
|
+
get spacesOpenToBelow(): Space[];
|
|
13531
|
+
/**
|
|
13532
|
+
* Gets the underlying GeoJSON Feature representation of this Space.
|
|
13533
|
+
*/
|
|
13534
|
+
get geoJSON(): Feature$1<Polygon$1 | MultiPolygon$1, null>;
|
|
13535
|
+
/**
|
|
13536
|
+
* Gets the objects ({@link MapObject}) located on this floor.
|
|
13537
|
+
*
|
|
13538
|
+
* @returns {MapObject[]} An array of MapObject objects on this floor.
|
|
13539
|
+
*/
|
|
13540
|
+
get objects(): MapObject[];
|
|
13541
|
+
/**
|
|
13542
|
+
* Gets the connections ({@link Connection}) associated with this floor.
|
|
13543
|
+
*
|
|
13544
|
+
* @returns {Connection[]} An array of Connection objects linked to this floor.
|
|
13545
|
+
*/
|
|
13546
|
+
get connections(): Connection[];
|
|
13547
|
+
/**
|
|
13548
|
+
* Gets the doors ({@link Door}) located on this floor.
|
|
13549
|
+
*
|
|
13550
|
+
* @returns {Door[]} An array of Door objects on this floor.
|
|
13551
|
+
*/
|
|
13552
|
+
get doors(): Door[];
|
|
13553
|
+
/**
|
|
13554
|
+
* Gets the annotations ({@link Annotation}) associated with this floor.
|
|
13555
|
+
*
|
|
13556
|
+
* @returns {Annotation[]} An array of Annotation objects linked to this floor.
|
|
13557
|
+
*/
|
|
13558
|
+
get annotations(): Annotation[];
|
|
13559
|
+
/**
|
|
13560
|
+
* Gets the points of interest ({@link PointOfInterest}) located on this floor.
|
|
13561
|
+
*
|
|
13562
|
+
* @returns {PointOfInterest[]} An array of PointOfInterest objects on this floor.
|
|
13563
|
+
*/
|
|
13564
|
+
get pois(): PointOfInterest[];
|
|
13565
|
+
/**
|
|
13566
|
+
* Gets the FloorStack ({@link FloorStack}) that this floor belongs to.
|
|
13567
|
+
*
|
|
13568
|
+
* @returns {FloorStack} The FloorStack that this floor belongs to.
|
|
13569
|
+
*/
|
|
13570
|
+
get floorStack(): FloorStack;
|
|
13571
|
+
get center(): Coordinate;
|
|
13572
|
+
/**
|
|
13573
|
+
* Serializes the floor data to JSON.
|
|
13574
|
+
*
|
|
13575
|
+
* @returns An object representing the floor.
|
|
13576
|
+
*/
|
|
13577
|
+
toJSON(): {
|
|
13578
|
+
__type: string;
|
|
13579
|
+
id: string;
|
|
13580
|
+
name: string;
|
|
13581
|
+
shortName: string;
|
|
13582
|
+
subtitle: string;
|
|
13583
|
+
elevation: number;
|
|
13584
|
+
maxHeight: number | undefined;
|
|
13585
|
+
spaces: string[];
|
|
13586
|
+
objects: string[];
|
|
13587
|
+
connections: string[];
|
|
13588
|
+
doors: string[];
|
|
13589
|
+
annotations: string[];
|
|
13590
|
+
pois: string[];
|
|
13591
|
+
};
|
|
13592
|
+
/**
|
|
13593
|
+
* Cleans up resources used by the instance.
|
|
13594
|
+
*
|
|
13595
|
+
* @internal
|
|
13596
|
+
*/
|
|
13597
|
+
destroy(): void;
|
|
13598
|
+
}
|
|
13599
|
+
//#endregion
|
|
13600
|
+
//#region src/map-data-objects/base-metadata-object.d.ts
|
|
13601
|
+
declare abstract class BaseMetaData {
|
|
13602
|
+
/**
|
|
13603
|
+
* The identity of the map metadata.
|
|
13604
|
+
*/
|
|
13605
|
+
readonly id: string;
|
|
13606
|
+
constructor(id: string);
|
|
13607
|
+
}
|
|
13608
|
+
//#endregion
|
|
13609
|
+
//#region src/map-data-objects/node.d.ts
|
|
13610
|
+
/**
|
|
13611
|
+
* A class representing {@link Path} node data within the map.
|
|
13612
|
+
*
|
|
13613
|
+
* Nodes are used to define points in the map's pathfinding graph.
|
|
13614
|
+
*
|
|
13615
|
+
*/
|
|
13616
|
+
declare class Node extends BaseMetaData implements IGeoJSONData, IFocusable, IAnchorable, INavigatable {
|
|
13617
|
+
#private;
|
|
13618
|
+
/**
|
|
13619
|
+
* @internal
|
|
13620
|
+
*/
|
|
13621
|
+
static readonly __type = "node";
|
|
13622
|
+
/**
|
|
13623
|
+
* @internal
|
|
13624
|
+
*/
|
|
13625
|
+
readonly __type = "node";
|
|
13626
|
+
/**
|
|
13627
|
+
* Checks if the provided instance is of type Node.
|
|
13628
|
+
*
|
|
13629
|
+
* @param instance The instance to check.
|
|
13630
|
+
* @returns {boolean} True if the instance is a Node, false otherwise.
|
|
13631
|
+
*/
|
|
13632
|
+
static is(instance: object): instance is Node;
|
|
13633
|
+
/**
|
|
13634
|
+
* @internal
|
|
13635
|
+
*/
|
|
13636
|
+
constructor(data: MapDataInternal, options: {
|
|
13637
|
+
record: NodeRecord;
|
|
13638
|
+
});
|
|
13639
|
+
/**
|
|
13640
|
+
* Gets the {@link EnterpriseLocation}s attached to this node.
|
|
13641
|
+
*
|
|
13642
|
+
* @remarks
|
|
13643
|
+
* **Data Source: Enterprise** - This property is only populated when using CMS/Enterprise credentials
|
|
13644
|
+
* (clientId/clientSecret or API keys that do NOT start with `mik_`). Returns an empty array when
|
|
13645
|
+
* using Maker credentials.
|
|
13646
|
+
*
|
|
13647
|
+
* @internal
|
|
13648
|
+
*/
|
|
13649
|
+
get locations(): EnterpriseLocation[];
|
|
13650
|
+
/**
|
|
13651
|
+
* Gets the {@link Space} object associated with the node.
|
|
13652
|
+
*/
|
|
13653
|
+
get space(): Space | undefined;
|
|
13654
|
+
/**
|
|
13655
|
+
* Gets the {@link MapObject} object associated with the node.
|
|
13656
|
+
*/
|
|
13657
|
+
get object(): MapObject | undefined;
|
|
13658
|
+
/**
|
|
13659
|
+
* Gets the {@link Floor} associated with the node.
|
|
13660
|
+
*
|
|
13661
|
+
* @returns {Floor} The floor object.
|
|
13662
|
+
* @throws Will throw an error if the floor is not found.
|
|
13663
|
+
*/
|
|
13664
|
+
get floor(): Floor;
|
|
13665
|
+
/**
|
|
13666
|
+
* Gets the {@link Coordinate} of the node.
|
|
13667
|
+
*
|
|
13668
|
+
* @returns {Coordinate} The node's coordinate.
|
|
13669
|
+
*/
|
|
13670
|
+
get coordinate(): Coordinate;
|
|
13671
|
+
/**
|
|
13672
|
+
* Gets the external ID of the node.
|
|
13673
|
+
*
|
|
13674
|
+
* @returns {string} The external ID of the node.
|
|
13675
|
+
*/
|
|
13676
|
+
get externalId(): string;
|
|
13677
|
+
/**
|
|
13678
|
+
* Gets the neighboring nodes of this node.
|
|
13679
|
+
*
|
|
13680
|
+
* @returns {Node[]} An array of neighboring Node objects.
|
|
13681
|
+
*/
|
|
13682
|
+
get neighbors(): Node[];
|
|
13683
|
+
/**
|
|
13684
|
+
* Gets the navigation flags of the node.
|
|
13685
|
+
*
|
|
13686
|
+
* Navigation flags are string identifiers that describe properties of this node for navigation,
|
|
13687
|
+
* such as `accessible` for wheelchair accessibility or `outdoors` for outdoor routes.
|
|
13688
|
+
*
|
|
13689
|
+
* @returns {string[]} An array of navigation flags present on this node.
|
|
13690
|
+
*/
|
|
13691
|
+
get navigationFlags(): readonly string[];
|
|
13692
|
+
/**
|
|
13693
|
+
* Gets the underlying GeoJSON Feature representation of this Node.
|
|
13694
|
+
*/
|
|
13695
|
+
get geoJSON(): Feature<any, null>;
|
|
13696
|
+
/** @internal */
|
|
13697
|
+
get focusTarget(): Coordinate;
|
|
13698
|
+
/** @internal */
|
|
13699
|
+
get anchorTarget(): Coordinate;
|
|
13700
|
+
/** @internal */
|
|
13701
|
+
get navigationTarget(): this;
|
|
13702
|
+
/**
|
|
13703
|
+
* Serializes the node data to JSON.
|
|
13704
|
+
*
|
|
13705
|
+
* @returns An object representing the node.
|
|
13706
|
+
*/
|
|
13707
|
+
toJSON(): {
|
|
13708
|
+
__type: string;
|
|
13709
|
+
id: string;
|
|
13710
|
+
floor: string;
|
|
13711
|
+
coordinate: {
|
|
13712
|
+
__type: string;
|
|
13713
|
+
latitude: number;
|
|
13714
|
+
longitude: number;
|
|
13715
|
+
floorId: string | undefined;
|
|
13716
|
+
verticalOffset: number;
|
|
13717
|
+
};
|
|
13718
|
+
neighbors: string[];
|
|
13719
|
+
};
|
|
13720
|
+
/**
|
|
13721
|
+
* Cleans up resources used by the instance.
|
|
13722
|
+
*
|
|
13723
|
+
* @internal
|
|
13724
|
+
*/
|
|
13725
|
+
destroy(): void;
|
|
13726
|
+
}
|
|
13727
|
+
//#endregion
|
|
13728
|
+
//#region src/map-data-objects/opening-hours.d.ts
|
|
13729
|
+
/**
|
|
13730
|
+
* Represents the opening hours of a location.
|
|
13731
|
+
*/
|
|
13732
|
+
declare class OpeningHours {
|
|
13733
|
+
#private;
|
|
13734
|
+
constructor(mvfData: OpeningHoursSpecification[]);
|
|
13735
|
+
/**
|
|
12897
13736
|
* Gets the raw opening hours data.
|
|
12898
13737
|
*/
|
|
12899
13738
|
get raw(): OpeningHoursSpecification[];
|
|
@@ -13024,16 +13863,6 @@ declare class ImageMetaData extends BaseMetaData {
|
|
|
13024
13863
|
}
|
|
13025
13864
|
//#endregion
|
|
13026
13865
|
//#region src/map-data-objects/location-profile.d.ts
|
|
13027
|
-
type MVF3Location = Required<MVFv2_STANDARD_MVFv3>['locations'][number];
|
|
13028
|
-
/**
|
|
13029
|
-
* @internal
|
|
13030
|
-
* This type helps us know we have all the properties we need
|
|
13031
|
-
*/
|
|
13032
|
-
type LocationData = Omit<Location, 'categories' | 'spaces' | 'obstructions' | 'entrances' | 'shapes' | 'connections' | 'annotations' | 'areas' | 'openingHoursSpecification' | 'links' | 'pictures' | 'website' | 'icon'> & {
|
|
13033
|
-
links: Hyperlink[];
|
|
13034
|
-
images: ImageMetaData[];
|
|
13035
|
-
icon?: ImageMetaData;
|
|
13036
|
-
};
|
|
13037
13866
|
/**
|
|
13038
13867
|
* A LocationProfile contains metadata about a location, such as its name, description, logo, phone number, social media links, hours of operation and more.
|
|
13039
13868
|
* They can be accessed using the {@link MapData.getByType} method as shown below.
|
|
@@ -13049,7 +13878,7 @@ type LocationData = Omit<Location, 'categories' | 'spaces' | 'obstructions' | 'e
|
|
|
13049
13878
|
*
|
|
13050
13879
|
* @see {@link EnterpriseLocation} for the CMS/Enterprise equivalent.
|
|
13051
13880
|
*/
|
|
13052
|
-
declare class LocationProfile extends BaseMetaData implements
|
|
13881
|
+
declare class LocationProfile extends BaseMetaData implements IFocusable, INavigatable {
|
|
13053
13882
|
#private;
|
|
13054
13883
|
/**
|
|
13055
13884
|
* Checks if the provided instance is of type LocationProfile.
|
|
@@ -13128,8 +13957,7 @@ declare class LocationProfile extends BaseMetaData implements LocationData, IFoc
|
|
|
13128
13957
|
searchTags?: string[];
|
|
13129
13958
|
/** @internal */
|
|
13130
13959
|
constructor(data: MapDataInternal, options: {
|
|
13131
|
-
|
|
13132
|
-
mvf3Data?: MVF3Location;
|
|
13960
|
+
record: LocationProfileRecord;
|
|
13133
13961
|
});
|
|
13134
13962
|
/**
|
|
13135
13963
|
* Gets the {@link Space}s associated with the location.
|
|
@@ -13201,23 +14029,6 @@ declare class LocationProfile extends BaseMetaData implements LocationData, IFoc
|
|
|
13201
14029
|
};
|
|
13202
14030
|
}
|
|
13203
14031
|
//#endregion
|
|
13204
|
-
//#region src/map-data-objects/base-object.d.ts
|
|
13205
|
-
declare abstract class BaseMapData {
|
|
13206
|
-
#private;
|
|
13207
|
-
/**
|
|
13208
|
-
* The identity of the map data.
|
|
13209
|
-
*/
|
|
13210
|
-
readonly id: string;
|
|
13211
|
-
constructor(id: string, _data: MapDataInternal);
|
|
13212
|
-
/**
|
|
13213
|
-
* Gets the bounding box of the geoJSON geometry.
|
|
13214
|
-
*
|
|
13215
|
-
* @returns {BBox} The bounding box of the geoJSON geometry
|
|
13216
|
-
*/
|
|
13217
|
-
get geoJSONBoundingBox(): BBox | undefined;
|
|
13218
|
-
get geoJSON(): Feature<Polygon | MultiPolygon | LineString | Point, null>;
|
|
13219
|
-
}
|
|
13220
|
-
//#endregion
|
|
13221
14032
|
//#region src/map-data-objects/detailed-map-data.d.ts
|
|
13222
14033
|
/**
|
|
13223
14034
|
* Abstract base class for map data objects that carry rich metadata (images,
|
|
@@ -13328,7 +14139,7 @@ declare class Area extends DetailedMapData<AreaCollection['features'][number]> i
|
|
|
13328
14139
|
*/
|
|
13329
14140
|
constructor(data: MapDataInternal, options: {
|
|
13330
14141
|
floorId: string;
|
|
13331
|
-
|
|
14142
|
+
record: AreaRecord;
|
|
13332
14143
|
});
|
|
13333
14144
|
/**
|
|
13334
14145
|
* Gets the center {@link Coordinate} of the area.
|
|
@@ -13352,11 +14163,7 @@ declare class Area extends DetailedMapData<AreaCollection['features'][number]> i
|
|
|
13352
14163
|
/**
|
|
13353
14164
|
* Gets the underlying GeoJSON Feature representation of this Area.
|
|
13354
14165
|
*/
|
|
13355
|
-
get geoJSON():
|
|
13356
|
-
properties: null;
|
|
13357
|
-
type: _mappedin_mvf_v20.FeatureType;
|
|
13358
|
-
geometry: _mappedin_mvf_v20.Polygon;
|
|
13359
|
-
};
|
|
14166
|
+
get geoJSON(): Feature<Polygon, null>;
|
|
13360
14167
|
/** @internal */
|
|
13361
14168
|
get focusTarget(): this;
|
|
13362
14169
|
/** @internal */
|
|
@@ -13427,284 +14234,52 @@ declare class Door extends DetailedMapData<EntranceFeature> implements IGeoJSOND
|
|
|
13427
14234
|
* @param instance The instance to check.
|
|
13428
14235
|
* @returns {boolean} True if the instance is a Door, false otherwise.
|
|
13429
14236
|
*/
|
|
13430
|
-
static is(instance: object): instance is Door;
|
|
13431
|
-
/**
|
|
13432
|
-
* @internal
|
|
13433
|
-
*/
|
|
13434
|
-
constructor(data: MapDataInternal, options: {
|
|
13435
|
-
floorId: string;
|
|
13436
|
-
mvfData: EntranceFeature;
|
|
13437
|
-
});
|
|
13438
|
-
/**
|
|
13439
|
-
* Gets the {@link Floor} object associated with the door.
|
|
13440
|
-
*
|
|
13441
|
-
* @returns {Floor} The floor object.
|
|
13442
|
-
* @throws Will throw an error if the floor is not found.
|
|
13443
|
-
*/
|
|
13444
|
-
get floor(): Floor;
|
|
13445
|
-
/**
|
|
13446
|
-
* Calculates and gets the center {@link Coordinate} of the door.
|
|
13447
|
-
*
|
|
13448
|
-
* @returns {Coordinate} The center coordinate.
|
|
13449
|
-
*/
|
|
13450
|
-
get center(): Coordinate;
|
|
13451
|
-
/**
|
|
13452
|
-
* Gets whether this door is an exterior door.
|
|
13453
|
-
*/
|
|
13454
|
-
get isExterior(): boolean;
|
|
13455
|
-
/**
|
|
13456
|
-
* Gets the underlying GeoJSON Feature representation of this Door.
|
|
13457
|
-
*/
|
|
13458
|
-
get geoJSON(): {
|
|
13459
|
-
properties: null;
|
|
13460
|
-
type: _mappedin_mvf_v20.FeatureType;
|
|
13461
|
-
geometry: _mappedin_mvf_v20.LineString;
|
|
13462
|
-
};
|
|
13463
|
-
/** @internal */
|
|
13464
|
-
get focusTarget(): Coordinate;
|
|
13465
|
-
/** @internal */
|
|
13466
|
-
get anchorTarget(): Coordinate;
|
|
13467
|
-
/** @internal */
|
|
13468
|
-
get navigationTarget(): this;
|
|
13469
|
-
/**
|
|
13470
|
-
* Converts the door information to a JSON object.
|
|
13471
|
-
*
|
|
13472
|
-
* @returns An object representing the door.
|
|
13473
|
-
*/
|
|
13474
|
-
toJSON(): {
|
|
13475
|
-
__type: string;
|
|
13476
|
-
id: string;
|
|
13477
|
-
name: string;
|
|
13478
|
-
floor: string;
|
|
13479
|
-
center: {
|
|
13480
|
-
__type: string;
|
|
13481
|
-
latitude: number;
|
|
13482
|
-
longitude: number;
|
|
13483
|
-
floorId: string | undefined;
|
|
13484
|
-
verticalOffset: number;
|
|
13485
|
-
};
|
|
13486
|
-
};
|
|
13487
|
-
/**
|
|
13488
|
-
* Cleans up resources used by the instance.
|
|
13489
|
-
*
|
|
13490
|
-
* @internal
|
|
13491
|
-
*/
|
|
13492
|
-
destroy(): void;
|
|
13493
|
-
}
|
|
13494
|
-
//#endregion
|
|
13495
|
-
//#region src/map-data-objects/space.d.ts
|
|
13496
|
-
/**
|
|
13497
|
-
* Represents the various types of spaces that can be defined within a map.
|
|
13498
|
-
* - 'room': A standard room or enclosed area.
|
|
13499
|
-
* - 'hallway': A passageway connecting rooms.
|
|
13500
|
-
* - 'exterior': An outdoor area.
|
|
13501
|
-
* - 'void': An undefined or non-specific space.
|
|
13502
|
-
*/
|
|
13503
|
-
type TSpaceType = 'room' | 'hallway' | 'exterior' | 'void' | 'gate' | 'otb';
|
|
13504
|
-
/**
|
|
13505
|
-
* A Space represents an area enclosed by walls, such as a hall or room. Spaces can be Interactive and have Labels and Markers added to them.
|
|
13506
|
-
* Spaces can also be customized with a color, texture and hover color.
|
|
13507
|
-
*
|
|
13508
|
-
* Refer to the [Spaces Guide](https://developer.mappedin.com/web-sdk/spaces) for more information and interactive examples.
|
|
13509
|
-
*/
|
|
13510
|
-
declare class Space extends DetailedMapData<SpaceFeature> implements IGeoJSONData, IFocusable, IAnchorable, INavigatable {
|
|
13511
|
-
#private;
|
|
13512
|
-
/**
|
|
13513
|
-
* @internal
|
|
13514
|
-
*/
|
|
13515
|
-
static readonly __type = "space";
|
|
13516
|
-
/**
|
|
13517
|
-
* @internal
|
|
13518
|
-
*/
|
|
13519
|
-
readonly __type = "space";
|
|
13520
|
-
/**
|
|
13521
|
-
* Checks if the provided instance is of type Space.
|
|
13522
|
-
*
|
|
13523
|
-
* @param instance The instance to check.
|
|
13524
|
-
* @returns {boolean} True if the instance is a Space, false otherwise.
|
|
13525
|
-
*/
|
|
13526
|
-
static is(instance: object): instance is Space;
|
|
13527
|
-
/**
|
|
13528
|
-
* @internal
|
|
13529
|
-
*/
|
|
13530
|
-
constructor(data: MapDataInternal, options: {
|
|
13531
|
-
floorId: string;
|
|
13532
|
-
mvfData: SpaceFeature;
|
|
13533
|
-
});
|
|
13534
|
-
/**
|
|
13535
|
-
* Gets the type/kind of the space.
|
|
13536
|
-
*
|
|
13537
|
-
* @returns {TSpaceType} The type of the space.
|
|
13538
|
-
*/
|
|
13539
|
-
get type(): TSpaceType;
|
|
13540
|
-
/**
|
|
13541
|
-
* Gets the {@link EnterpriseLocation}s attached to this space.
|
|
13542
|
-
*
|
|
13543
|
-
* @remarks
|
|
13544
|
-
* **Data Source: Enterprise** - This property is only populated when using CMS/Enterprise credentials
|
|
13545
|
-
* (clientId/clientSecret or API keys that do NOT start with `mik_`). Returns an empty array when
|
|
13546
|
-
* using Maker credentials. For Maker data, access locations via {@link LocationProfile.spaces}
|
|
13547
|
-
* instead.
|
|
13548
|
-
*
|
|
13549
|
-
* @returns {EnterpriseLocation[]} An array of enterprise locations.
|
|
13550
|
-
*/
|
|
13551
|
-
get enterpriseLocations(): EnterpriseLocation[];
|
|
13552
|
-
/**
|
|
13553
|
-
* Gets the {@link EnterpriseLocation}s attached to this space.
|
|
13554
|
-
*
|
|
13555
|
-
* @deprecated Use {@link enterpriseLocations} instead. This property will be removed in a future release.
|
|
13556
|
-
*
|
|
13557
|
-
* @remarks
|
|
13558
|
-
* **Data Source: Enterprise** - This property is only populated when using CMS/Enterprise credentials.
|
|
13559
|
-
*
|
|
13560
|
-
* @returns {EnterpriseLocation[]} An array of enterprise locations.
|
|
13561
|
-
*/
|
|
13562
|
-
get locations(): EnterpriseLocation[];
|
|
13563
|
-
/**
|
|
13564
|
-
* Gets the {@link Floor} object associated with the space.
|
|
13565
|
-
*
|
|
13566
|
-
* @returns {Floor} The floor object.
|
|
13567
|
-
* @throws Will throw an error if the floor is not found.
|
|
13568
|
-
*/
|
|
13569
|
-
get floor(): Floor;
|
|
13570
|
-
/**
|
|
13571
|
-
* Gets the array of {@link Door}s associated with the space.
|
|
13572
|
-
*
|
|
13573
|
-
* @remarks
|
|
13574
|
-
* **Data Source: Maker** - This property is only populated when using Maker credentials
|
|
13575
|
-
* (API keys starting with `mik_`). Returns an empty array when using CMS/Enterprise credentials.
|
|
13576
|
-
*
|
|
13577
|
-
* @returns {Door[]} The doors array.
|
|
13578
|
-
*/
|
|
13579
|
-
get doors(): Door[];
|
|
13580
|
-
/**
|
|
13581
|
-
* Gets the 3D images anchored to this space.
|
|
13582
|
-
*
|
|
13583
|
-
* @returns {Image3DView[]} An array of Image3DView objects representing 3D images attached to this space.
|
|
13584
|
-
*/
|
|
13585
|
-
get images3D(): Image3DView[];
|
|
13586
|
-
/**
|
|
13587
|
-
* Gets the center {@link Coordinate} of the space.
|
|
13588
|
-
*
|
|
13589
|
-
* @returns {Coordinate} The space's center coordinate.
|
|
13590
|
-
*/
|
|
13591
|
-
get center(): Coordinate;
|
|
13592
|
-
/**
|
|
13593
|
-
* Gets the underlying GeoJSON Feature representation of this Space.
|
|
13594
|
-
*/
|
|
13595
|
-
get geoJSON(): {
|
|
13596
|
-
properties: null;
|
|
13597
|
-
type: _mappedin_mvf_v20.FeatureType;
|
|
13598
|
-
geometry: _mappedin_mvf_v20.Point | _mappedin_mvf_v20.LineString | _mappedin_mvf_v20.Polygon;
|
|
13599
|
-
};
|
|
13600
|
-
/** @internal */
|
|
13601
|
-
get focusTarget(): this | Coordinate;
|
|
13602
|
-
/** @internal */
|
|
13603
|
-
get anchorTarget(): Coordinate;
|
|
13604
|
-
/** @internal */
|
|
13605
|
-
get navigationTarget(): this;
|
|
13606
|
-
/**
|
|
13607
|
-
* Serializes the space data to JSON.
|
|
13608
|
-
*
|
|
13609
|
-
* @returns An object representing the space.
|
|
13610
|
-
*/
|
|
13611
|
-
toJSON(): {
|
|
13612
|
-
__type: string;
|
|
13613
|
-
id: string;
|
|
13614
|
-
name: string;
|
|
13615
|
-
type: TSpaceType;
|
|
13616
|
-
floor: string;
|
|
13617
|
-
center: {
|
|
13618
|
-
__type: string;
|
|
13619
|
-
latitude: number;
|
|
13620
|
-
longitude: number;
|
|
13621
|
-
floorId: string | undefined;
|
|
13622
|
-
verticalOffset: number;
|
|
13623
|
-
};
|
|
13624
|
-
};
|
|
13625
|
-
/**
|
|
13626
|
-
* Cleans up resources used by the instance.
|
|
13627
|
-
*
|
|
13628
|
-
* @internal
|
|
13629
|
-
*/
|
|
13630
|
-
destroy(): void;
|
|
13631
|
-
}
|
|
13632
|
-
//#endregion
|
|
13633
|
-
//#region src/map-data-objects/poi.d.ts
|
|
13634
|
-
/**
|
|
13635
|
-
* A class representing point of interest data within the map.
|
|
13636
|
-
*
|
|
13637
|
-
* Points of interest are used to represent specific points
|
|
13638
|
-
* on the map with additional information(e.g. ATMs, Water Fountains).
|
|
13639
|
-
*/
|
|
13640
|
-
declare class PointOfInterest extends DetailedMapData<FeatureCollection$1<Point$1, SpaceProperties>['features'][number]> implements IGeoJSONData, IFocusable, IAnchorable, INavigatable {
|
|
13641
|
-
#private;
|
|
13642
|
-
/**
|
|
13643
|
-
* @internal
|
|
13644
|
-
*/
|
|
13645
|
-
static readonly __type = "point-of-interest";
|
|
13646
|
-
/**
|
|
13647
|
-
* @internal
|
|
13648
|
-
*/
|
|
13649
|
-
readonly __type = "point-of-interest";
|
|
13650
|
-
/**
|
|
13651
|
-
* Checks if the provided instance is of type PointOfInterest.
|
|
13652
|
-
*
|
|
13653
|
-
* @param instance The instance to check.
|
|
13654
|
-
* @returns {boolean} True if the instance is a PointOfInterest, false otherwise.
|
|
13655
|
-
*/
|
|
13656
|
-
static is(instance: object): instance is PointOfInterest;
|
|
13657
|
-
/** @internal */
|
|
13658
|
-
get navigationTarget(): Coordinate;
|
|
14237
|
+
static is(instance: object): instance is Door;
|
|
13659
14238
|
/**
|
|
13660
14239
|
* @internal
|
|
13661
14240
|
*/
|
|
13662
14241
|
constructor(data: MapDataInternal, options: {
|
|
13663
14242
|
floorId: string;
|
|
13664
|
-
|
|
14243
|
+
record: DoorRecord;
|
|
13665
14244
|
});
|
|
13666
14245
|
/**
|
|
13667
|
-
* Gets the {@link Floor} object associated with the
|
|
14246
|
+
* Gets the {@link Floor} object associated with the door.
|
|
13668
14247
|
*
|
|
13669
14248
|
* @returns {Floor} The floor object.
|
|
13670
14249
|
* @throws Will throw an error if the floor is not found.
|
|
13671
14250
|
*/
|
|
13672
14251
|
get floor(): Floor;
|
|
13673
14252
|
/**
|
|
13674
|
-
*
|
|
14253
|
+
* Calculates and gets the center {@link Coordinate} of the door.
|
|
13675
14254
|
*
|
|
13676
|
-
* @returns {Coordinate} The
|
|
14255
|
+
* @returns {Coordinate} The center coordinate.
|
|
13677
14256
|
*/
|
|
13678
|
-
get
|
|
14257
|
+
get center(): Coordinate;
|
|
13679
14258
|
/**
|
|
13680
|
-
* Gets
|
|
14259
|
+
* Gets whether this door is an exterior door.
|
|
13681
14260
|
*/
|
|
13682
|
-
get
|
|
13683
|
-
properties: null;
|
|
13684
|
-
type: _mappedin_mvf_v20.FeatureType;
|
|
13685
|
-
geometry: Point$1;
|
|
13686
|
-
};
|
|
14261
|
+
get isExterior(): boolean;
|
|
13687
14262
|
/**
|
|
13688
|
-
* Gets the
|
|
13689
|
-
*
|
|
13690
|
-
* @returns {Image3DView[]} An array of Image3DView objects representing 3D images attached to this POI.
|
|
14263
|
+
* Gets the underlying GeoJSON Feature representation of this Door.
|
|
13691
14264
|
*/
|
|
13692
|
-
get
|
|
14265
|
+
get geoJSON(): Feature<any, null>;
|
|
13693
14266
|
/** @internal */
|
|
13694
14267
|
get focusTarget(): Coordinate;
|
|
13695
14268
|
/** @internal */
|
|
13696
14269
|
get anchorTarget(): Coordinate;
|
|
14270
|
+
/** @internal */
|
|
14271
|
+
get navigationTarget(): this;
|
|
13697
14272
|
/**
|
|
13698
|
-
*
|
|
14273
|
+
* Converts the door information to a JSON object.
|
|
13699
14274
|
*
|
|
13700
|
-
* @returns An object representing the
|
|
14275
|
+
* @returns An object representing the door.
|
|
13701
14276
|
*/
|
|
13702
14277
|
toJSON(): {
|
|
13703
14278
|
__type: string;
|
|
13704
14279
|
id: string;
|
|
13705
14280
|
name: string;
|
|
13706
14281
|
floor: string;
|
|
13707
|
-
|
|
14282
|
+
center: {
|
|
13708
14283
|
__type: string;
|
|
13709
14284
|
latitude: number;
|
|
13710
14285
|
longitude: number;
|
|
@@ -13720,101 +14295,125 @@ declare class PointOfInterest extends DetailedMapData<FeatureCollection$1<Point$
|
|
|
13720
14295
|
destroy(): void;
|
|
13721
14296
|
}
|
|
13722
14297
|
//#endregion
|
|
13723
|
-
//#region src/map-data-objects/
|
|
14298
|
+
//#region src/map-data-objects/space.d.ts
|
|
13724
14299
|
/**
|
|
13725
|
-
*
|
|
14300
|
+
* Represents the various types of spaces that can be defined within a map.
|
|
14301
|
+
* - 'room': A standard room or enclosed area.
|
|
14302
|
+
* - 'hallway': A passageway connecting rooms.
|
|
14303
|
+
* - 'exterior': An outdoor area.
|
|
14304
|
+
* - 'void': An undefined or non-specific space.
|
|
14305
|
+
*/
|
|
14306
|
+
type TSpaceType = 'room' | 'hallway' | 'exterior' | 'void' | 'gate' | 'otb';
|
|
14307
|
+
/**
|
|
14308
|
+
* A Space represents an area enclosed by walls, such as a hall or room. Spaces can be Interactive and have Labels and Markers added to them.
|
|
14309
|
+
* Spaces can also be customized with a color, texture and hover color.
|
|
13726
14310
|
*
|
|
13727
|
-
*
|
|
13728
|
-
* It includes some details on a map that may be relevant to safety or accessibility (e.g. Fire Extinguishers).
|
|
13729
|
-
* Refer to the [Annotation Guide](https://developer.mappedin.com/web-sdk/annotations) for more information.
|
|
14311
|
+
* Refer to the [Spaces Guide](https://developer.mappedin.com/web-sdk/spaces) for more information and interactive examples.
|
|
13730
14312
|
*/
|
|
13731
|
-
declare class
|
|
14313
|
+
declare class Space extends DetailedMapData<SpaceFeature> implements IGeoJSONData, IFocusable, IAnchorable, INavigatable {
|
|
13732
14314
|
#private;
|
|
13733
14315
|
/**
|
|
13734
14316
|
* @internal
|
|
13735
14317
|
*/
|
|
13736
|
-
static readonly __type = "
|
|
14318
|
+
static readonly __type = "space";
|
|
13737
14319
|
/**
|
|
13738
14320
|
* @internal
|
|
13739
14321
|
*/
|
|
13740
|
-
readonly __type = "
|
|
14322
|
+
readonly __type = "space";
|
|
13741
14323
|
/**
|
|
13742
|
-
* Checks if the provided instance is of type
|
|
14324
|
+
* Checks if the provided instance is of type Space.
|
|
13743
14325
|
*
|
|
13744
14326
|
* @param instance The instance to check.
|
|
13745
|
-
* @returns {boolean} True if the instance is
|
|
14327
|
+
* @returns {boolean} True if the instance is a Space, false otherwise.
|
|
13746
14328
|
*/
|
|
13747
|
-
static is(instance: object): instance is
|
|
14329
|
+
static is(instance: object): instance is Space;
|
|
13748
14330
|
/**
|
|
13749
14331
|
* @internal
|
|
13750
14332
|
*/
|
|
13751
14333
|
constructor(data: MapDataInternal, options: {
|
|
13752
14334
|
floorId: string;
|
|
13753
|
-
|
|
13754
|
-
symbol?: AnnotationSymbol;
|
|
14335
|
+
record: SpaceRecord;
|
|
13755
14336
|
});
|
|
13756
14337
|
/**
|
|
13757
|
-
* Gets the
|
|
14338
|
+
* Gets the type/kind of the space.
|
|
13758
14339
|
*
|
|
13759
|
-
* @returns {
|
|
14340
|
+
* @returns {TSpaceType} The type of the space.
|
|
13760
14341
|
*/
|
|
13761
|
-
get
|
|
14342
|
+
get type(): TSpaceType;
|
|
13762
14343
|
/**
|
|
13763
|
-
* Gets the
|
|
14344
|
+
* Gets the {@link EnterpriseLocation}s attached to this space.
|
|
13764
14345
|
*
|
|
13765
|
-
* @
|
|
14346
|
+
* @remarks
|
|
14347
|
+
* **Data Source: Enterprise** - This property is only populated when using CMS/Enterprise credentials
|
|
14348
|
+
* (clientId/clientSecret or API keys that do NOT start with `mik_`). Returns an empty array when
|
|
14349
|
+
* using Maker credentials. For Maker data, access locations via {@link LocationProfile.spaces}
|
|
14350
|
+
* instead.
|
|
14351
|
+
*
|
|
14352
|
+
* @returns {EnterpriseLocation[]} An array of enterprise locations.
|
|
13766
14353
|
*/
|
|
13767
|
-
get
|
|
14354
|
+
get enterpriseLocations(): EnterpriseLocation[];
|
|
13768
14355
|
/**
|
|
13769
|
-
* Gets the
|
|
14356
|
+
* Gets the {@link EnterpriseLocation}s attached to this space.
|
|
13770
14357
|
*
|
|
13771
|
-
* @
|
|
14358
|
+
* @deprecated Use {@link enterpriseLocations} instead. This property will be removed in a future release.
|
|
14359
|
+
*
|
|
14360
|
+
* @remarks
|
|
14361
|
+
* **Data Source: Enterprise** - This property is only populated when using CMS/Enterprise credentials.
|
|
14362
|
+
*
|
|
14363
|
+
* @returns {EnterpriseLocation[]} An array of enterprise locations.
|
|
13772
14364
|
*/
|
|
13773
|
-
get
|
|
14365
|
+
get locations(): EnterpriseLocation[];
|
|
13774
14366
|
/**
|
|
13775
|
-
* Gets the {@link Floor} object associated with the
|
|
14367
|
+
* Gets the {@link Floor} object associated with the space.
|
|
13776
14368
|
*
|
|
13777
14369
|
* @returns {Floor} The floor object.
|
|
13778
14370
|
* @throws Will throw an error if the floor is not found.
|
|
13779
14371
|
*/
|
|
13780
14372
|
get floor(): Floor;
|
|
13781
14373
|
/**
|
|
13782
|
-
* Gets the
|
|
14374
|
+
* Gets the array of {@link Door}s associated with the space.
|
|
13783
14375
|
*
|
|
13784
|
-
* @
|
|
14376
|
+
* @remarks
|
|
14377
|
+
* **Data Source: Maker** - This property is only populated when using Maker credentials
|
|
14378
|
+
* (API keys starting with `mik_`). Returns an empty array when using CMS/Enterprise credentials.
|
|
14379
|
+
*
|
|
14380
|
+
* @returns {Door[]} The doors array.
|
|
13785
14381
|
*/
|
|
13786
|
-
get
|
|
14382
|
+
get doors(): Door[];
|
|
13787
14383
|
/**
|
|
13788
|
-
* Gets the
|
|
14384
|
+
* Gets the 3D images anchored to this space.
|
|
13789
14385
|
*
|
|
13790
|
-
* @returns {
|
|
14386
|
+
* @returns {Image3DView[]} An array of Image3DView objects representing 3D images attached to this space.
|
|
13791
14387
|
*/
|
|
13792
|
-
get
|
|
14388
|
+
get images3D(): Image3DView[];
|
|
13793
14389
|
/**
|
|
13794
|
-
* Gets the
|
|
14390
|
+
* Gets the center {@link Coordinate} of the space.
|
|
14391
|
+
*
|
|
14392
|
+
* @returns {Coordinate} The space's center coordinate.
|
|
13795
14393
|
*/
|
|
13796
|
-
get
|
|
13797
|
-
|
|
13798
|
-
|
|
13799
|
-
|
|
13800
|
-
|
|
14394
|
+
get center(): Coordinate;
|
|
14395
|
+
/**
|
|
14396
|
+
* Gets the underlying GeoJSON Feature representation of this Space.
|
|
14397
|
+
*/
|
|
14398
|
+
get geoJSON(): Feature<any, null>;
|
|
13801
14399
|
/** @internal */
|
|
13802
|
-
get focusTarget(): Coordinate;
|
|
14400
|
+
get focusTarget(): this | Coordinate;
|
|
13803
14401
|
/** @internal */
|
|
13804
14402
|
get anchorTarget(): Coordinate;
|
|
13805
14403
|
/** @internal */
|
|
13806
|
-
get navigationTarget():
|
|
14404
|
+
get navigationTarget(): this;
|
|
13807
14405
|
/**
|
|
13808
|
-
*
|
|
14406
|
+
* Serializes the space data to JSON.
|
|
13809
14407
|
*
|
|
13810
|
-
* @returns An object representing the
|
|
14408
|
+
* @returns An object representing the space.
|
|
13811
14409
|
*/
|
|
13812
14410
|
toJSON(): {
|
|
13813
14411
|
__type: string;
|
|
13814
14412
|
id: string;
|
|
13815
|
-
|
|
13816
|
-
type:
|
|
13817
|
-
|
|
14413
|
+
name: string;
|
|
14414
|
+
type: TSpaceType;
|
|
14415
|
+
floor: string;
|
|
14416
|
+
center: {
|
|
13818
14417
|
__type: string;
|
|
13819
14418
|
latitude: number;
|
|
13820
14419
|
longitude: number;
|
|
@@ -13857,7 +14456,7 @@ declare class Connection extends DetailedMapData<Feature$1<Point$1, SpacePropert
|
|
|
13857
14456
|
* @internal
|
|
13858
14457
|
*/
|
|
13859
14458
|
constructor(data: MapDataInternal, options: {
|
|
13860
|
-
|
|
14459
|
+
record: ConnectionRecord;
|
|
13861
14460
|
});
|
|
13862
14461
|
/**
|
|
13863
14462
|
* Whether the connection is accessible. For example elevators are accessible while stairs are not.
|
|
@@ -13957,7 +14556,7 @@ declare class MapObject extends DetailedMapData<ObstructionFeature> implements I
|
|
|
13957
14556
|
*/
|
|
13958
14557
|
constructor(data: MapDataInternal, options: {
|
|
13959
14558
|
floorId: string;
|
|
13960
|
-
|
|
14559
|
+
record: MapObjectRecord;
|
|
13961
14560
|
});
|
|
13962
14561
|
/**
|
|
13963
14562
|
* Gets the type of the MapObject.
|
|
@@ -14010,11 +14609,7 @@ declare class MapObject extends DetailedMapData<ObstructionFeature> implements I
|
|
|
14010
14609
|
/**
|
|
14011
14610
|
* Gets the underlying GeoJSON Feature representation of this Object.
|
|
14012
14611
|
*/
|
|
14013
|
-
get geoJSON():
|
|
14014
|
-
properties: null;
|
|
14015
|
-
type: _mappedin_mvf_v20.FeatureType;
|
|
14016
|
-
geometry: _mappedin_mvf_v20.LineString | _mappedin_mvf_v20.Polygon;
|
|
14017
|
-
};
|
|
14612
|
+
get geoJSON(): Feature<any, null>;
|
|
14018
14613
|
/** @internal */
|
|
14019
14614
|
get anchorTarget(): Coordinate;
|
|
14020
14615
|
/** @internal */
|
|
@@ -14048,187 +14643,83 @@ declare class MapObject extends DetailedMapData<ObstructionFeature> implements I
|
|
|
14048
14643
|
destroy(): void;
|
|
14049
14644
|
}
|
|
14050
14645
|
//#endregion
|
|
14051
|
-
//#region src/map-data-objects/
|
|
14052
|
-
/**
|
|
14053
|
-
* Places are the main objects that can be searched for.
|
|
14054
|
-
*/
|
|
14055
|
-
type Places = Space | Floor | Door | Connection | MapObject | PointOfInterest | Annotation | Area;
|
|
14056
|
-
type LocationWithLocale = PartialExcept<EnterpriseLocation$1, 'id'>;
|
|
14057
|
-
type CategoryWithLocale = PartialExcept<EnterpriseCategory$1, 'id'>;
|
|
14058
|
-
type FloorStackWithLocale = PartialExcept<FloorStack$1, 'id'>;
|
|
14059
|
-
type FloorWithLocale = PartialExcept<FloorProperties, 'id'>;
|
|
14060
|
-
type LanguagePackRecords = {
|
|
14061
|
-
'enterprise-location': Record<string, LocationWithLocale> | undefined;
|
|
14062
|
-
'enterprise-category': Record<string, CategoryWithLocale> | undefined;
|
|
14063
|
-
'floor-stack': Record<string, FloorStackWithLocale> | undefined;
|
|
14064
|
-
floor: Record<string, FloorWithLocale> | undefined;
|
|
14065
|
-
};
|
|
14066
|
-
type LanguagePack = {
|
|
14067
|
-
type: 'downloaded';
|
|
14068
|
-
data: ParsedMVFLocalePack;
|
|
14069
|
-
optimized: LanguagePackRecords;
|
|
14070
|
-
} | {
|
|
14071
|
-
type: 'initial';
|
|
14072
|
-
optimized: LanguagePackRecords;
|
|
14073
|
-
};
|
|
14074
|
-
type TMapDataInternalOptions = {
|
|
14075
|
-
env?: EnvControl;
|
|
14076
|
-
enterprise?: boolean;
|
|
14077
|
-
outdoorViewToken?: string;
|
|
14078
|
-
localePacksUrls?: LocalePackUrls;
|
|
14079
|
-
languagePacks?: LanguagePackHydrationItem[];
|
|
14080
|
-
binaryBundle?: Uint8Array;
|
|
14081
|
-
tokenManager?: TokenManager;
|
|
14082
|
-
getMapDataOptions?: TGetMapDataOptions;
|
|
14083
|
-
mvf3?: MVFv2_STANDARD_MVFv3;
|
|
14084
|
-
updatedAt?: string;
|
|
14085
|
-
};
|
|
14086
|
-
type MVFNodeFeature = NodeCollection['features'][number];
|
|
14087
|
-
type MVFFloorFeature = FloorCollection['features'][number];
|
|
14088
|
-
//#endregion
|
|
14089
|
-
//#region src/map-data-objects/floor.d.ts
|
|
14646
|
+
//#region src/map-data-objects/poi.d.ts
|
|
14090
14647
|
/**
|
|
14091
|
-
* A class representing
|
|
14648
|
+
* A class representing point of interest data within the map.
|
|
14092
14649
|
*
|
|
14093
|
-
*
|
|
14650
|
+
* Points of interest are used to represent specific points
|
|
14651
|
+
* on the map with additional information(e.g. ATMs, Water Fountains).
|
|
14094
14652
|
*/
|
|
14095
|
-
declare class
|
|
14653
|
+
declare class PointOfInterest extends DetailedMapData<FeatureCollection$1<Point$1, SpaceProperties>['features'][number]> implements IGeoJSONData, IFocusable, IAnchorable, INavigatable {
|
|
14096
14654
|
#private;
|
|
14097
14655
|
/**
|
|
14098
14656
|
* @internal
|
|
14099
14657
|
*/
|
|
14100
|
-
static readonly __type = "
|
|
14658
|
+
static readonly __type = "point-of-interest";
|
|
14101
14659
|
/**
|
|
14102
14660
|
* @internal
|
|
14103
14661
|
*/
|
|
14104
|
-
readonly __type = "
|
|
14662
|
+
readonly __type = "point-of-interest";
|
|
14105
14663
|
/**
|
|
14106
|
-
* Checks if the provided instance is of type
|
|
14664
|
+
* Checks if the provided instance is of type PointOfInterest.
|
|
14107
14665
|
*
|
|
14108
14666
|
* @param instance The instance to check.
|
|
14109
|
-
* @returns {boolean} True if the instance is a
|
|
14110
|
-
*/
|
|
14111
|
-
static is(instance: object): instance is Floor;
|
|
14112
|
-
/**
|
|
14113
|
-
* @internal
|
|
14667
|
+
* @returns {boolean} True if the instance is a PointOfInterest, false otherwise.
|
|
14114
14668
|
*/
|
|
14115
|
-
|
|
14116
|
-
mvfData: MVFFloorFeature;
|
|
14117
|
-
});
|
|
14669
|
+
static is(instance: object): instance is PointOfInterest;
|
|
14118
14670
|
/** @internal */
|
|
14119
|
-
get
|
|
14120
|
-
/**
|
|
14121
|
-
* Gets the name of the floor.
|
|
14122
|
-
*
|
|
14123
|
-
* @returns {string} The name of the floor.
|
|
14124
|
-
*/
|
|
14125
|
-
get name(): string;
|
|
14126
|
-
/**
|
|
14127
|
-
* Gets the short name of the floor (i.e. "F1", "L, "2", etc.).
|
|
14128
|
-
* Used in space constrained lists and Often aligns with what is displayed on an elevator.
|
|
14129
|
-
*
|
|
14130
|
-
* @returns {string} The short name of the floor.
|
|
14131
|
-
*/
|
|
14132
|
-
get shortName(): string;
|
|
14133
|
-
/**
|
|
14134
|
-
* Gets the subtitle of the floor.
|
|
14135
|
-
*
|
|
14136
|
-
* @returns {string} The subtitle of the floor.
|
|
14137
|
-
*/
|
|
14138
|
-
get subtitle(): string;
|
|
14139
|
-
/**
|
|
14140
|
-
* Gets the external ID of the floor.
|
|
14141
|
-
*
|
|
14142
|
-
* @returns {string} The external ID of the floor.
|
|
14143
|
-
*/
|
|
14144
|
-
get externalId(): string;
|
|
14145
|
-
/**
|
|
14146
|
-
* Gets the elevation of the floor.
|
|
14147
|
-
*
|
|
14148
|
-
* @returns {number} The elevation of the floor.
|
|
14149
|
-
*/
|
|
14150
|
-
get elevation(): number;
|
|
14151
|
-
/**
|
|
14152
|
-
* Gets the max height of the floor if there is one.
|
|
14153
|
-
*
|
|
14154
|
-
* @returns {number | undefined} The max height of the floor.
|
|
14155
|
-
*/
|
|
14156
|
-
get maxHeight(): number | undefined;
|
|
14157
|
-
/**
|
|
14158
|
-
* Gets the spaces ({@link Space}) located on this floor.
|
|
14159
|
-
*
|
|
14160
|
-
* @returns {Space[]} An array of Space objects on this floor.
|
|
14161
|
-
*/
|
|
14162
|
-
get spaces(): Space[];
|
|
14671
|
+
get navigationTarget(): Coordinate;
|
|
14163
14672
|
/**
|
|
14164
|
-
* Gets the spaces that are open to below on this floor.
|
|
14165
|
-
* These are spaces that create ceiling cutouts when viewed from floors above.
|
|
14166
|
-
*
|
|
14167
14673
|
* @internal
|
|
14168
|
-
*
|
|
14169
|
-
* @returns {Space[]} An array of Space objects that are open to below.
|
|
14170
|
-
*/
|
|
14171
|
-
get spacesOpenToBelow(): Space[];
|
|
14172
|
-
/**
|
|
14173
|
-
* Gets the underlying GeoJSON Feature representation of this Space.
|
|
14174
|
-
*/
|
|
14175
|
-
get geoJSON(): Feature$1<Polygon$1 | MultiPolygon$1, null>;
|
|
14176
|
-
/**
|
|
14177
|
-
* Gets the objects ({@link MapObject}) located on this floor.
|
|
14178
|
-
*
|
|
14179
|
-
* @returns {MapObject[]} An array of MapObject objects on this floor.
|
|
14180
|
-
*/
|
|
14181
|
-
get objects(): MapObject[];
|
|
14182
|
-
/**
|
|
14183
|
-
* Gets the connections ({@link Connection}) associated with this floor.
|
|
14184
|
-
*
|
|
14185
|
-
* @returns {Connection[]} An array of Connection objects linked to this floor.
|
|
14186
14674
|
*/
|
|
14187
|
-
|
|
14675
|
+
constructor(data: MapDataInternal, options: {
|
|
14676
|
+
floorId: string;
|
|
14677
|
+
record: PoiRecord;
|
|
14678
|
+
});
|
|
14188
14679
|
/**
|
|
14189
|
-
* Gets the
|
|
14680
|
+
* Gets the {@link Floor} object associated with the POI.
|
|
14190
14681
|
*
|
|
14191
|
-
* @returns {
|
|
14682
|
+
* @returns {Floor} The floor object.
|
|
14683
|
+
* @throws Will throw an error if the floor is not found.
|
|
14192
14684
|
*/
|
|
14193
|
-
get
|
|
14685
|
+
get floor(): Floor;
|
|
14194
14686
|
/**
|
|
14195
|
-
* Gets the
|
|
14687
|
+
* Gets the {@link Coordinate} of the POI.
|
|
14196
14688
|
*
|
|
14197
|
-
* @returns {
|
|
14689
|
+
* @returns {Coordinate} The POI's coordinate.
|
|
14198
14690
|
*/
|
|
14199
|
-
get
|
|
14691
|
+
get coordinate(): Coordinate;
|
|
14200
14692
|
/**
|
|
14201
|
-
* Gets the
|
|
14202
|
-
*
|
|
14203
|
-
* @returns {PointOfInterest[]} An array of PointOfInterest objects on this floor.
|
|
14693
|
+
* Gets the underlying GeoJSON Feature representation of this PointOfInterest.
|
|
14204
14694
|
*/
|
|
14205
|
-
get
|
|
14695
|
+
get geoJSON(): Feature<any, null>;
|
|
14206
14696
|
/**
|
|
14207
|
-
* Gets the
|
|
14697
|
+
* Gets the 3D images anchored to this point of interest.
|
|
14208
14698
|
*
|
|
14209
|
-
* @returns {
|
|
14699
|
+
* @returns {Image3DView[]} An array of Image3DView objects representing 3D images attached to this POI.
|
|
14210
14700
|
*/
|
|
14211
|
-
get
|
|
14212
|
-
|
|
14701
|
+
get images3D(): Image3DView[];
|
|
14702
|
+
/** @internal */
|
|
14703
|
+
get focusTarget(): Coordinate;
|
|
14704
|
+
/** @internal */
|
|
14705
|
+
get anchorTarget(): Coordinate;
|
|
14213
14706
|
/**
|
|
14214
|
-
* Serializes the
|
|
14707
|
+
* Serializes the POI data to JSON.
|
|
14215
14708
|
*
|
|
14216
|
-
* @returns An object representing the
|
|
14709
|
+
* @returns An object representing the POI.
|
|
14217
14710
|
*/
|
|
14218
14711
|
toJSON(): {
|
|
14219
14712
|
__type: string;
|
|
14220
14713
|
id: string;
|
|
14221
14714
|
name: string;
|
|
14222
|
-
|
|
14223
|
-
|
|
14224
|
-
|
|
14225
|
-
|
|
14226
|
-
|
|
14227
|
-
|
|
14228
|
-
|
|
14229
|
-
|
|
14230
|
-
annotations: string[];
|
|
14231
|
-
pois: string[];
|
|
14715
|
+
floor: string;
|
|
14716
|
+
coordinate: {
|
|
14717
|
+
__type: string;
|
|
14718
|
+
latitude: number;
|
|
14719
|
+
longitude: number;
|
|
14720
|
+
floorId: string | undefined;
|
|
14721
|
+
verticalOffset: number;
|
|
14722
|
+
};
|
|
14232
14723
|
};
|
|
14233
14724
|
/**
|
|
14234
14725
|
* Cleans up resources used by the instance.
|
|
@@ -14238,113 +14729,95 @@ declare class Floor extends BaseMapData implements IFocusable, IGeoJSONData {
|
|
|
14238
14729
|
destroy(): void;
|
|
14239
14730
|
}
|
|
14240
14731
|
//#endregion
|
|
14241
|
-
//#region src/map-data-objects/
|
|
14732
|
+
//#region src/map-data-objects/annotation.d.ts
|
|
14242
14733
|
/**
|
|
14243
|
-
* A class representing
|
|
14244
|
-
*
|
|
14245
|
-
* Nodes are used to define points in the map's pathfinding graph.
|
|
14734
|
+
* A class representing annotation data within the map.
|
|
14246
14735
|
*
|
|
14736
|
+
* Annotations are used to mark specific points or areas on the map with additional information.
|
|
14737
|
+
* It includes some details on a map that may be relevant to safety or accessibility (e.g. Fire Extinguishers).
|
|
14738
|
+
* Refer to the [Annotation Guide](https://developer.mappedin.com/web-sdk/annotations) for more information.
|
|
14247
14739
|
*/
|
|
14248
|
-
declare class
|
|
14740
|
+
declare class Annotation extends DetailedMapData<AnnotationCollection['features'][number]> implements IGeoJSONData, IFocusable, IAnchorable, INavigatable {
|
|
14249
14741
|
#private;
|
|
14250
14742
|
/**
|
|
14251
14743
|
* @internal
|
|
14252
14744
|
*/
|
|
14253
|
-
static readonly __type = "
|
|
14745
|
+
static readonly __type = "annotation";
|
|
14254
14746
|
/**
|
|
14255
14747
|
* @internal
|
|
14256
14748
|
*/
|
|
14257
|
-
readonly __type = "
|
|
14749
|
+
readonly __type = "annotation";
|
|
14258
14750
|
/**
|
|
14259
|
-
* Checks if the provided instance is of type
|
|
14751
|
+
* Checks if the provided instance is of type Annotation.
|
|
14260
14752
|
*
|
|
14261
14753
|
* @param instance The instance to check.
|
|
14262
|
-
* @returns {boolean} True if the instance is
|
|
14754
|
+
* @returns {boolean} True if the instance is an Annotation, false otherwise.
|
|
14263
14755
|
*/
|
|
14264
|
-
static is(instance: object): instance is
|
|
14756
|
+
static is(instance: object): instance is Annotation;
|
|
14265
14757
|
/**
|
|
14266
14758
|
* @internal
|
|
14267
14759
|
*/
|
|
14268
14760
|
constructor(data: MapDataInternal, options: {
|
|
14269
14761
|
floorId: string;
|
|
14270
|
-
|
|
14762
|
+
record: AnnotationRecord;
|
|
14271
14763
|
});
|
|
14272
14764
|
/**
|
|
14273
|
-
* Gets the
|
|
14274
|
-
*
|
|
14275
|
-
* @remarks
|
|
14276
|
-
* **Data Source: Enterprise** - This property is only populated when using CMS/Enterprise credentials
|
|
14277
|
-
* (clientId/clientSecret or API keys that do NOT start with `mik_`). Returns an empty array when
|
|
14278
|
-
* using Maker credentials.
|
|
14765
|
+
* Gets the group of the annotation.
|
|
14279
14766
|
*
|
|
14280
|
-
* @
|
|
14281
|
-
*/
|
|
14282
|
-
get locations(): EnterpriseLocation[];
|
|
14283
|
-
/**
|
|
14284
|
-
* Gets the {@link Space} object associated with the node.
|
|
14285
|
-
*/
|
|
14286
|
-
get space(): Space | undefined;
|
|
14287
|
-
/**
|
|
14288
|
-
* Gets the {@link MapObject} object associated with the node.
|
|
14767
|
+
* @returns {string} The annotation group.
|
|
14289
14768
|
*/
|
|
14290
|
-
get
|
|
14769
|
+
get group(): string;
|
|
14291
14770
|
/**
|
|
14292
|
-
* Gets the
|
|
14771
|
+
* Gets the type of the annotation.
|
|
14293
14772
|
*
|
|
14294
|
-
* @returns {
|
|
14295
|
-
* @throws Will throw an error if the floor is not found.
|
|
14773
|
+
* @returns {string} The annotation type.
|
|
14296
14774
|
*/
|
|
14297
|
-
get
|
|
14775
|
+
get type(): string;
|
|
14298
14776
|
/**
|
|
14299
|
-
* Gets the {@link Coordinate} of the
|
|
14777
|
+
* Gets the center {@link Coordinate} of the annotation.
|
|
14300
14778
|
*
|
|
14301
|
-
* @returns {Coordinate} The
|
|
14779
|
+
* @returns {Coordinate} The annotation's coordinate.
|
|
14302
14780
|
*/
|
|
14303
14781
|
get coordinate(): Coordinate;
|
|
14304
14782
|
/**
|
|
14305
|
-
* Gets the
|
|
14783
|
+
* Gets the {@link Floor} object associated with the annotation.
|
|
14306
14784
|
*
|
|
14307
|
-
* @returns {
|
|
14785
|
+
* @returns {Floor} The floor object.
|
|
14786
|
+
* @throws Will throw an error if the floor is not found.
|
|
14308
14787
|
*/
|
|
14309
|
-
get
|
|
14788
|
+
get floor(): Floor;
|
|
14310
14789
|
/**
|
|
14311
|
-
* Gets the
|
|
14790
|
+
* Gets the name of the annotation.
|
|
14312
14791
|
*
|
|
14313
|
-
* @returns {
|
|
14792
|
+
* @returns {string} The annotation's name.
|
|
14314
14793
|
*/
|
|
14315
|
-
get
|
|
14794
|
+
get name(): string;
|
|
14316
14795
|
/**
|
|
14317
|
-
* Gets the
|
|
14318
|
-
*
|
|
14319
|
-
* Navigation flags are string identifiers that describe properties of this node for navigation,
|
|
14320
|
-
* such as `accessible` for wheelchair accessibility or `outdoors` for outdoor routes.
|
|
14796
|
+
* Gets the icon for the annotation.
|
|
14321
14797
|
*
|
|
14322
|
-
* @returns {
|
|
14798
|
+
* @returns {ImageMetaData | undefined} The icon of the annotation.
|
|
14323
14799
|
*/
|
|
14324
|
-
get
|
|
14800
|
+
get icon(): ImageMetaData | undefined;
|
|
14325
14801
|
/**
|
|
14326
|
-
* Gets the underlying GeoJSON Feature representation of this
|
|
14802
|
+
* Gets the underlying GeoJSON Feature representation of this Annotation.
|
|
14327
14803
|
*/
|
|
14328
|
-
get geoJSON():
|
|
14329
|
-
properties: null;
|
|
14330
|
-
type: _mappedin_mvf_v20.FeatureType;
|
|
14331
|
-
geometry: _mappedin_mvf_v20.Point;
|
|
14332
|
-
};
|
|
14804
|
+
get geoJSON(): Feature<Point, null>;
|
|
14333
14805
|
/** @internal */
|
|
14334
14806
|
get focusTarget(): Coordinate;
|
|
14335
14807
|
/** @internal */
|
|
14336
14808
|
get anchorTarget(): Coordinate;
|
|
14337
14809
|
/** @internal */
|
|
14338
|
-
get navigationTarget():
|
|
14810
|
+
get navigationTarget(): Coordinate;
|
|
14339
14811
|
/**
|
|
14340
|
-
*
|
|
14812
|
+
* Converts the annotation information to a JSON object.
|
|
14341
14813
|
*
|
|
14342
|
-
* @returns An object representing the
|
|
14814
|
+
* @returns An object representing the annotation.
|
|
14343
14815
|
*/
|
|
14344
14816
|
toJSON(): {
|
|
14345
14817
|
__type: string;
|
|
14346
14818
|
id: string;
|
|
14347
|
-
|
|
14819
|
+
group: string;
|
|
14820
|
+
type: string;
|
|
14348
14821
|
coordinate: {
|
|
14349
14822
|
__type: string;
|
|
14350
14823
|
latitude: number;
|
|
@@ -14352,7 +14825,6 @@ declare class Node extends BaseMetaData implements IGeoJSONData, IFocusable, IAn
|
|
|
14352
14825
|
floorId: string | undefined;
|
|
14353
14826
|
verticalOffset: number;
|
|
14354
14827
|
};
|
|
14355
|
-
neighbors: string[];
|
|
14356
14828
|
};
|
|
14357
14829
|
/**
|
|
14358
14830
|
* Cleans up resources used by the instance.
|
|
@@ -14389,7 +14861,7 @@ declare class FloorStack extends BaseMapData implements IGeoJSONData, IFocusable
|
|
|
14389
14861
|
* @internal
|
|
14390
14862
|
*/
|
|
14391
14863
|
constructor(data: MapDataInternal, options: {
|
|
14392
|
-
|
|
14864
|
+
record: FloorStackRecord;
|
|
14393
14865
|
facadeId?: string;
|
|
14394
14866
|
});
|
|
14395
14867
|
/**
|
|
@@ -14480,8 +14952,7 @@ declare class Facade extends BaseMapData implements IFocusable, IAnchorable, INa
|
|
|
14480
14952
|
static is(instance: object): instance is Facade;
|
|
14481
14953
|
/** @internal */
|
|
14482
14954
|
constructor(data: MapDataInternal, options: {
|
|
14483
|
-
|
|
14484
|
-
floorStackId: string;
|
|
14955
|
+
record: FacadeRecord;
|
|
14485
14956
|
});
|
|
14486
14957
|
/**
|
|
14487
14958
|
* Gets the floor stack that this Facade represents.
|
|
@@ -14510,89 +14981,6 @@ declare class Facade extends BaseMapData implements IFocusable, IAnchorable, INa
|
|
|
14510
14981
|
};
|
|
14511
14982
|
}
|
|
14512
14983
|
//#endregion
|
|
14513
|
-
//#region src/records/types.d.ts
|
|
14514
|
-
type MapDataRecords = {
|
|
14515
|
-
spacesById: Record<string, Space>;
|
|
14516
|
-
nodesById: Record<string, Node>;
|
|
14517
|
-
objectsById: Record<string, MapObject>;
|
|
14518
|
-
floorsById: Record<string, Floor>;
|
|
14519
|
-
floorStacksById: Record<string, FloorStack>;
|
|
14520
|
-
facadesById: Record<string, Facade>;
|
|
14521
|
-
facadesBySpaceId: Record<string, Facade>;
|
|
14522
|
-
connectionsById: Record<string, Connection>;
|
|
14523
|
-
doorsById: Record<string, Door>;
|
|
14524
|
-
doorsByNodeId: Record<string, Door>;
|
|
14525
|
-
poisById: Record<string, PointOfInterest>;
|
|
14526
|
-
annotationsById: Record<string, Annotation>;
|
|
14527
|
-
areasById: Record<AreaId, Area>;
|
|
14528
|
-
spaceIdsByNodeId: Record<string, SpaceId[]>;
|
|
14529
|
-
objectIdsByNodeId: Record<string, ObstructionId[]>;
|
|
14530
|
-
destinationNodesIdsBySpaceId: Record<SpaceId, NodeId[]>;
|
|
14531
|
-
/**
|
|
14532
|
-
* Map of space id to door-linked node ids for fast routing.
|
|
14533
|
-
*/
|
|
14534
|
-
entranceNodeIdsBySpaceId?: Record<string, string[]>;
|
|
14535
|
-
locationProfilesById: Record<string, LocationProfile>;
|
|
14536
|
-
locationCategoriesById: Record<string, LocationCategory>;
|
|
14537
|
-
locationProfilesByCategoryId: Record<string, LocationProfile[]>;
|
|
14538
|
-
locationCategoriesByParentId: Record<string, LocationCategory[]>;
|
|
14539
|
-
spacesByExternalId: Record<string, Space[]>;
|
|
14540
|
-
nodesByExternalId: Record<string, Node[]>;
|
|
14541
|
-
poisByExternalId: Record<string, PointOfInterest[]>;
|
|
14542
|
-
doorsByExternalId: Record<string, Door[]>;
|
|
14543
|
-
floorStacksByExternalId: Record<string, FloorStack[]>;
|
|
14544
|
-
floorsByExternalId: Record<string, Floor[]>;
|
|
14545
|
-
objectsByExternalId: Record<string, MapObject[]>;
|
|
14546
|
-
areasByExternalId: Record<string, Area[]>;
|
|
14547
|
-
locationProfilesByExternalId: Record<string, LocationProfile[]>;
|
|
14548
|
-
objectEntranceNodeIdsByObstructionId: Record<string, string[]>;
|
|
14549
|
-
obstructionIdByEntranceId: Record<string, string>;
|
|
14550
|
-
locationProfilesByAttachedFeatureId: Record<string, LocationProfile[]>;
|
|
14551
|
-
mvfSpacesById: Record<string, SpaceCollection['features'][number]>;
|
|
14552
|
-
mvfNodesById: Record<string, NodeCollection['features'][number]>;
|
|
14553
|
-
mvfObstructionById: Record<string, ObstructionCollection['features'][number]>;
|
|
14554
|
-
mvfFloorsById: Record<string, FloorProperties>;
|
|
14555
|
-
mvfFloorStacksById: Record<string, FloorStack$1>;
|
|
14556
|
-
mvfConnectionsById: Record<string, Connection$1>;
|
|
14557
|
-
mvfConnectionsByNodeId: Record<string, Connection$1>;
|
|
14558
|
-
mvfEntrancesById: Record<string, EntranceCollection['features'][number]>;
|
|
14559
|
-
mvfAnnotationsById: Record<string, AnnotationCollection['features'][number]>;
|
|
14560
|
-
mvfNodesByFloorId: {
|
|
14561
|
-
[floorId: string]: NodeCollection['features'][number][];
|
|
14562
|
-
};
|
|
14563
|
-
mvfSpacesByFloorId: {
|
|
14564
|
-
[floorId: string]: SpaceCollection['features'][number][];
|
|
14565
|
-
};
|
|
14566
|
-
mvfPoisByFloorId: {
|
|
14567
|
-
[floorId: string]: FeatureCollection$1<Point$1, SpaceProperties>['features'][number][];
|
|
14568
|
-
};
|
|
14569
|
-
mvfEntrancesByFloorId: {
|
|
14570
|
-
[floorId: string]: EntranceCollection['features'][number][];
|
|
14571
|
-
};
|
|
14572
|
-
mvfAnnotationsByFloorId: {
|
|
14573
|
-
[floorId: string]: AnnotationCollection['features'][number][];
|
|
14574
|
-
};
|
|
14575
|
-
mvfAreasById: Record<AreaId, AreaCollection['features'][number]>;
|
|
14576
|
-
mvf3LocationsById: Record<string, Required<MVFv2_STANDARD_MVFv3>['locations'][number]>;
|
|
14577
|
-
};
|
|
14578
|
-
type EnterpriseMapDataRecords = {
|
|
14579
|
-
connectionsByExternalId: Record<string, Connection[]>;
|
|
14580
|
-
locationsByExternalId: Record<string, EnterpriseLocation[]>;
|
|
14581
|
-
categoriesByExternalId: Record<string, EnterpriseCategory[]>;
|
|
14582
|
-
locationsById: Record<EnterpriseLocationId, EnterpriseLocation>;
|
|
14583
|
-
/** Instance locations by ID - separate from locationsById so they don't appear in getByType */
|
|
14584
|
-
locationInstancesById: Record<string, EnterpriseLocation>;
|
|
14585
|
-
/** Instance locations by polygon ID - for space.enterpriseLocations to check instances first */
|
|
14586
|
-
instanceLocationsByPolygonId: Record<string, EnterpriseLocation>;
|
|
14587
|
-
categoriesById: Record<EnterpriseCategoryId, EnterpriseCategory>;
|
|
14588
|
-
locationIdsByNodeId: Record<string, EnterpriseLocationId[]>;
|
|
14589
|
-
mvfLocationInstancesById: Record<string, EnterpriseLocationInstance>;
|
|
14590
|
-
venue: EnterpriseVenue$1;
|
|
14591
|
-
mvfCategoriesById: Record<string, EnterpriseCategory$1>;
|
|
14592
|
-
mvfLocationsById: Record<string, EnterpriseLocation$1>;
|
|
14593
|
-
mvfLocationsByGeometryId: Record<string, EnterpriseLocation$1[]>;
|
|
14594
|
-
};
|
|
14595
|
-
//#endregion
|
|
14596
14984
|
//#region src/map-data-objects/location.d.ts
|
|
14597
14985
|
/**
|
|
14598
14986
|
* An EnterpriseLocation contains metadata about a location, such as its name, description, logo, phone number, social media links, hours of operation and more.
|
|
@@ -14770,10 +15158,8 @@ declare class EnterpriseLocation extends BaseMetaData implements Omit<Enterprise
|
|
|
14770
15158
|
* @internal
|
|
14771
15159
|
*/
|
|
14772
15160
|
constructor(data: MapDataInternal, options: {
|
|
14773
|
-
|
|
14774
|
-
|
|
14775
|
-
locationInstances?: EnterpriseLocation[];
|
|
14776
|
-
parentId?: string;
|
|
15161
|
+
record: EnterpriseLocationRecord;
|
|
15162
|
+
instances?: EnterpriseLocation[];
|
|
14777
15163
|
});
|
|
14778
15164
|
/** @internal */
|
|
14779
15165
|
get focusTarget(): Coordinate[] | Space[];
|
|
@@ -14882,7 +15268,7 @@ declare class EnterpriseCategory extends BaseMetaData implements Omit<Enterprise
|
|
|
14882
15268
|
* @internal
|
|
14883
15269
|
*/
|
|
14884
15270
|
constructor(data: MapDataInternal, options: {
|
|
14885
|
-
|
|
15271
|
+
record: EnterpriseCategoryRecord;
|
|
14886
15272
|
});
|
|
14887
15273
|
/**
|
|
14888
15274
|
* The child categories of the category.
|
|
@@ -15014,7 +15400,7 @@ declare class EnterpriseVenue extends BaseMetaData implements EnterpriseVenue$1
|
|
|
15014
15400
|
* @internal
|
|
15015
15401
|
*/
|
|
15016
15402
|
constructor(_data: MapDataInternal, options: {
|
|
15017
|
-
|
|
15403
|
+
record: EnterpriseVenueRecord;
|
|
15018
15404
|
});
|
|
15019
15405
|
/**
|
|
15020
15406
|
* Gets the name of the EnterpriseVenue.
|
|
@@ -15049,6 +15435,42 @@ declare class EnterpriseVenue extends BaseMetaData implements EnterpriseVenue$1
|
|
|
15049
15435
|
destroy(): void;
|
|
15050
15436
|
}
|
|
15051
15437
|
//#endregion
|
|
15438
|
+
//#region src/map-data-objects/types.d.ts
|
|
15439
|
+
/**
|
|
15440
|
+
* Places are the main objects that can be searched for.
|
|
15441
|
+
*/
|
|
15442
|
+
type Places = Space | Floor | Door | Connection | MapObject | PointOfInterest | Annotation | Area;
|
|
15443
|
+
type LocationWithLocale = PartialExcept<EnterpriseLocation$1, 'id'>;
|
|
15444
|
+
type CategoryWithLocale = PartialExcept<EnterpriseCategory$1, 'id'>;
|
|
15445
|
+
type FloorStackWithLocale = PartialExcept<FloorStack$1, 'id'>;
|
|
15446
|
+
type FloorWithLocale = PartialExcept<FloorProperties, 'id'>;
|
|
15447
|
+
type LanguagePackRecords = {
|
|
15448
|
+
'enterprise-location': Record<string, LocationWithLocale> | undefined;
|
|
15449
|
+
'enterprise-category': Record<string, CategoryWithLocale> | undefined;
|
|
15450
|
+
'floor-stack': Record<string, FloorStackWithLocale> | undefined;
|
|
15451
|
+
floor: Record<string, FloorWithLocale> | undefined;
|
|
15452
|
+
};
|
|
15453
|
+
type LanguagePack = {
|
|
15454
|
+
type: 'downloaded';
|
|
15455
|
+
data: ParsedMVFLocalePack;
|
|
15456
|
+
optimized: LanguagePackRecords;
|
|
15457
|
+
} | {
|
|
15458
|
+
type: 'initial';
|
|
15459
|
+
optimized: LanguagePackRecords;
|
|
15460
|
+
};
|
|
15461
|
+
type TMapDataInternalOptions = {
|
|
15462
|
+
env?: EnvControl;
|
|
15463
|
+
enterprise?: boolean;
|
|
15464
|
+
outdoorViewToken?: string;
|
|
15465
|
+
localePacksUrls?: LocalePackUrls;
|
|
15466
|
+
languagePacks?: LanguagePackHydrationItem[];
|
|
15467
|
+
binaryBundle?: Uint8Array;
|
|
15468
|
+
tokenManager?: TokenManager;
|
|
15469
|
+
getMapDataOptions?: TGetMapDataOptions;
|
|
15470
|
+
mvf3?: MVFv2_STANDARD_MVFv3;
|
|
15471
|
+
updatedAt?: string;
|
|
15472
|
+
};
|
|
15473
|
+
//#endregion
|
|
15052
15474
|
//#region src/query/types.d.ts
|
|
15053
15475
|
/**
|
|
15054
15476
|
* The map data object types that can be passed in the `include` array of a {@link Query.nearest} search.
|
|
@@ -15189,7 +15611,7 @@ declare class LocationCategory extends BaseMetaData implements Omit<Category, 'p
|
|
|
15189
15611
|
icon: string;
|
|
15190
15612
|
/** @internal */
|
|
15191
15613
|
constructor(data: MapDataInternal, options: {
|
|
15192
|
-
|
|
15614
|
+
record: LocationCategoryRecord;
|
|
15193
15615
|
});
|
|
15194
15616
|
/**
|
|
15195
15617
|
* Gets the parent {@link LocationCategory}.
|
|
@@ -15282,72 +15704,70 @@ declare class MapDataInternal extends PubSub<{
|
|
|
15282
15704
|
*/
|
|
15283
15705
|
readonly outdoorViewToken?: string;
|
|
15284
15706
|
/**
|
|
15285
|
-
*
|
|
15286
|
-
*/
|
|
15287
|
-
readonly objectEntranceNodeIdsByObstructionId: Record<string, string[]>;
|
|
15288
|
-
/**
|
|
15289
|
-
* Represents a map of entrance IDs to obstruction IDs.
|
|
15707
|
+
* Node-keyed reverse lookups (v2-only for this phase).
|
|
15290
15708
|
*/
|
|
15291
|
-
readonly
|
|
15709
|
+
readonly nodeIndex: NodeIndex;
|
|
15292
15710
|
readonly venue?: EnterpriseVenue;
|
|
15293
15711
|
readonly tokenManager?: TokenManager;
|
|
15294
15712
|
directions: DirectionsInternal;
|
|
15295
15713
|
enterpriseMode: boolean;
|
|
15296
|
-
nodesById:
|
|
15297
|
-
spacesById:
|
|
15298
|
-
floorsById:
|
|
15299
|
-
floorStacksById:
|
|
15300
|
-
facadesById:
|
|
15301
|
-
facadesBySpaceId:
|
|
15302
|
-
|
|
15303
|
-
|
|
15304
|
-
|
|
15305
|
-
|
|
15306
|
-
|
|
15307
|
-
|
|
15308
|
-
|
|
15309
|
-
|
|
15310
|
-
|
|
15311
|
-
|
|
15312
|
-
|
|
15313
|
-
|
|
15314
|
-
|
|
15315
|
-
|
|
15316
|
-
|
|
15317
|
-
|
|
15318
|
-
|
|
15319
|
-
|
|
15320
|
-
|
|
15321
|
-
|
|
15322
|
-
|
|
15323
|
-
|
|
15324
|
-
|
|
15325
|
-
|
|
15326
|
-
|
|
15327
|
-
|
|
15328
|
-
|
|
15329
|
-
|
|
15330
|
-
|
|
15331
|
-
|
|
15332
|
-
|
|
15333
|
-
|
|
15334
|
-
|
|
15335
|
-
|
|
15336
|
-
|
|
15337
|
-
|
|
15338
|
-
|
|
15339
|
-
|
|
15340
|
-
|
|
15341
|
-
|
|
15342
|
-
|
|
15343
|
-
|
|
15344
|
-
|
|
15345
|
-
|
|
15346
|
-
|
|
15347
|
-
|
|
15348
|
-
|
|
15349
|
-
|
|
15350
|
-
|
|
15714
|
+
nodesById: ModelRecords['nodesById'];
|
|
15715
|
+
spacesById: ModelRecords['spacesById'];
|
|
15716
|
+
floorsById: ModelRecords['floorsById'];
|
|
15717
|
+
floorStacksById: ModelRecords['floorStacksById'];
|
|
15718
|
+
facadesById: ModelRecords['facadesById'];
|
|
15719
|
+
facadesBySpaceId: ModelRecords['facadesBySpaceId'];
|
|
15720
|
+
floorRecordsById: ModelRecords['floorRecordsById'];
|
|
15721
|
+
floorStackRecordsById: ModelRecords['floorStackRecordsById'];
|
|
15722
|
+
facadeRecordsById: ModelRecords['facadeRecordsById'];
|
|
15723
|
+
annotationRecordsById: ModelRecords['annotationRecordsById'];
|
|
15724
|
+
areaRecordsById: ModelRecords['areaRecordsById'];
|
|
15725
|
+
spaceRecordsByFloorId: ModelRecords['spaceRecordsByFloorId'];
|
|
15726
|
+
poiRecordsByFloorId: ModelRecords['poiRecordsByFloorId'];
|
|
15727
|
+
doorRecordsById: ModelRecords['doorRecordsById'];
|
|
15728
|
+
geometryById: ModelRecords['geometryIndex']['byId'];
|
|
15729
|
+
geometryByFloorId: ModelRecords['geometryIndex']['byFloorId'];
|
|
15730
|
+
connectionsById: ModelRecords['connectionsById'];
|
|
15731
|
+
objectsById: ModelRecords['objectsById'];
|
|
15732
|
+
objectRecordsById: ModelRecords['objectRecordsById'];
|
|
15733
|
+
doorsById: ModelRecords['doorsById'];
|
|
15734
|
+
pointsOfInterestById: ModelRecords['poisById'];
|
|
15735
|
+
annotationsById: ModelRecords['annotationsById'];
|
|
15736
|
+
areasById: ModelRecords['areasById'];
|
|
15737
|
+
locationProfilesById: ModelRecords['locationProfilesById'];
|
|
15738
|
+
locationCategoriesById: ModelRecords['locationCategoriesById'];
|
|
15739
|
+
locationProfilesByExternalId: ModelRecords['locationProfilesByExternalId'];
|
|
15740
|
+
locationProfilesByCategoryId: ModelRecords['locationProfilesByCategoryId'];
|
|
15741
|
+
locationCategoriesByParentId: ModelRecords['locationCategoriesByParentId'];
|
|
15742
|
+
mvfConnectionsById: Record<string, Connection$1>;
|
|
15743
|
+
mvfSpacesById: ModelRecords['mvfSpacesById'];
|
|
15744
|
+
mvfObstructionById: ModelRecords['mvfObstructionById'];
|
|
15745
|
+
mvfEntrancesById: ModelRecords['mvfEntrancesById'];
|
|
15746
|
+
mvfAreasById: ModelRecords['mvfAreasById'];
|
|
15747
|
+
mvfAnnotationsById: ModelRecords['mvfAnnotationsById'];
|
|
15748
|
+
nodeRecordsById: ModelRecords['nodeRecordsById'];
|
|
15749
|
+
nodeRecordsByFloorId: ModelRecords['nodeRecordsByFloorId'];
|
|
15750
|
+
connectionRecordsById: ModelRecords['connectionRecordsById'];
|
|
15751
|
+
doorRecordsByFloorId: ModelRecords['doorRecordsByFloorId'];
|
|
15752
|
+
annotationRecordsByFloorId: ModelRecords['annotationRecordsByFloorId'];
|
|
15753
|
+
areaRecordsByFloorId: ModelRecords['areaRecordsByFloorId'];
|
|
15754
|
+
spacesByExternalId: ModelRecords['spacesByExternalId'];
|
|
15755
|
+
nodesByExternalId: ModelRecords['nodesByExternalId'];
|
|
15756
|
+
objectsByExternalId: ModelRecords['objectsByExternalId'];
|
|
15757
|
+
poisByExternalId: ModelRecords['poisByExternalId'];
|
|
15758
|
+
floorsByExternalId: ModelRecords['floorsByExternalId'];
|
|
15759
|
+
floorStacksByExternalId: ModelRecords['floorStacksByExternalId'];
|
|
15760
|
+
doorsByExternalId: ModelRecords['doorsByExternalId'];
|
|
15761
|
+
areasByExternalId: ModelRecords['areasByExternalId'];
|
|
15762
|
+
locationProfilesByAttachedFeatureId: ModelRecords['locationProfilesByAttachedFeatureId'];
|
|
15763
|
+
locationsById: EnterpriseModelRecords['locationsById'];
|
|
15764
|
+
locationInstancesById: EnterpriseModelRecords['locationInstancesById'];
|
|
15765
|
+
instanceLocationsByPolygonId: EnterpriseModelRecords['instanceLocationsByPolygonId'];
|
|
15766
|
+
categoriesById: EnterpriseModelRecords['categoriesById'];
|
|
15767
|
+
locationIdsByGeometryId: Record<string, string[]>;
|
|
15768
|
+
connectionsByExternalId: EnterpriseModelRecords['connectionsByExternalId'];
|
|
15769
|
+
locationsByExternalId: EnterpriseModelRecords['locationsByExternalId'];
|
|
15770
|
+
categoriesByExternalId: EnterpriseModelRecords['categoriesByExternalId'];
|
|
15351
15771
|
/**
|
|
15352
15772
|
* Map of floor ID to void data extracted from footprint holes.
|
|
15353
15773
|
* @internal
|
|
@@ -15628,6 +16048,26 @@ type SearchResult = {
|
|
|
15628
16048
|
*/
|
|
15629
16049
|
enterpriseCategories?: SearchResultEnterpriseCategory[];
|
|
15630
16050
|
};
|
|
16051
|
+
/**
|
|
16052
|
+
* The fuzzy edit-distance budget accepted per search source. This is a narrowed
|
|
16053
|
+
* `number` view over MiniSearch's `fuzzy` option:
|
|
16054
|
+
*
|
|
16055
|
+
* - `0` — disable typo tolerance (exact/prefix matches only).
|
|
16056
|
+
* - `> 0 && < 1` (e.g. `0.2`) — edit distance as a fraction of the term length.
|
|
16057
|
+
* - `>= 1` — an absolute edit count.
|
|
16058
|
+
*
|
|
16059
|
+
* Omit the key (or pass `undefined`) to inherit the index default (`0.2`). Note
|
|
16060
|
+
* that `undefined` is *not* a valid MiniSearch value — it would silently
|
|
16061
|
+
* disable fuzzy if forwarded verbatim — so `applyMatchOptions()` drops it and
|
|
16062
|
+
* the index default applies.
|
|
16063
|
+
*/
|
|
16064
|
+
type Fuzzy = number;
|
|
16065
|
+
/**
|
|
16066
|
+
* Whether prefix (as-you-type) matching is enabled per search source. Mirrors
|
|
16067
|
+
* MiniSearch's `prefix` option: a boolean, or a `(term, index, terms) => boolean`
|
|
16068
|
+
* function.
|
|
16069
|
+
*/
|
|
16070
|
+
type Prefix$1 = SearchOptions$1['prefix'];
|
|
15631
16071
|
declare const searchOptionsSchema: ZodObject<{
|
|
15632
16072
|
places: ZodOptional<ZodObject<{
|
|
15633
16073
|
fields: ZodOptional<ZodObject<{
|
|
@@ -15635,6 +16075,8 @@ declare const searchOptionsSchema: ZodObject<{
|
|
|
15635
16075
|
description: ZodOptional<ZodBoolean>;
|
|
15636
16076
|
}, $strip>>;
|
|
15637
16077
|
limit: ZodOptional<ZodNumber>;
|
|
16078
|
+
fuzzy: ZodOptional<ZodNumber>;
|
|
16079
|
+
prefix: ZodOptional<ZodCustom<boolean | ((term: string, index: number, terms: string[]) => boolean) | undefined, boolean | ((term: string, index: number, terms: string[]) => boolean) | undefined>>;
|
|
15638
16080
|
}, $strip>>;
|
|
15639
16081
|
enterpriseCategories: ZodOptional<ZodObject<{
|
|
15640
16082
|
fields: ZodOptional<ZodObject<{
|
|
@@ -15643,6 +16085,8 @@ declare const searchOptionsSchema: ZodObject<{
|
|
|
15643
16085
|
'locations.name': ZodOptional<ZodBoolean>;
|
|
15644
16086
|
}, $strip>>;
|
|
15645
16087
|
limit: ZodOptional<ZodNumber>;
|
|
16088
|
+
fuzzy: ZodOptional<ZodNumber>;
|
|
16089
|
+
prefix: ZodOptional<ZodCustom<boolean | ((term: string, index: number, terms: string[]) => boolean) | undefined, boolean | ((term: string, index: number, terms: string[]) => boolean) | undefined>>;
|
|
15646
16090
|
}, $strip>>;
|
|
15647
16091
|
enterpriseLocations: ZodOptional<ZodObject<{
|
|
15648
16092
|
fields: ZodOptional<ZodObject<{
|
|
@@ -15651,14 +16095,20 @@ declare const searchOptionsSchema: ZodObject<{
|
|
|
15651
16095
|
description: ZodOptional<ZodBoolean>;
|
|
15652
16096
|
}, $strip>>;
|
|
15653
16097
|
limit: ZodOptional<ZodNumber>;
|
|
16098
|
+
fuzzy: ZodOptional<ZodNumber>;
|
|
16099
|
+
prefix: ZodOptional<ZodCustom<boolean | ((term: string, index: number, terms: string[]) => boolean) | undefined, boolean | ((term: string, index: number, terms: string[]) => boolean) | undefined>>;
|
|
15654
16100
|
}, $strip>>;
|
|
15655
16101
|
}, $strip>;
|
|
15656
16102
|
declare const suggestOptionsSchema: ZodObject<{
|
|
15657
16103
|
places: ZodOptional<ZodObject<{
|
|
15658
16104
|
enabled: ZodOptional<ZodBoolean>;
|
|
16105
|
+
fuzzy: ZodOptional<ZodNumber>;
|
|
16106
|
+
prefix: ZodOptional<ZodCustom<boolean | ((term: string, index: number, terms: string[]) => boolean) | undefined, boolean | ((term: string, index: number, terms: string[]) => boolean) | undefined>>;
|
|
15659
16107
|
}, $strip>>;
|
|
15660
16108
|
enterpriseLocations: ZodOptional<ZodObject<{
|
|
15661
16109
|
enabled: ZodOptional<ZodBoolean>;
|
|
16110
|
+
fuzzy: ZodOptional<ZodNumber>;
|
|
16111
|
+
prefix: ZodOptional<ZodCustom<boolean | ((term: string, index: number, terms: string[]) => boolean) | undefined, boolean | ((term: string, index: number, terms: string[]) => boolean) | undefined>>;
|
|
15662
16112
|
}, $strip>>;
|
|
15663
16113
|
}, $strip>;
|
|
15664
16114
|
/**
|
|
@@ -15668,6 +16118,8 @@ declare const suggestOptionsSchema: ZodObject<{
|
|
|
15668
16118
|
*/
|
|
15669
16119
|
type SearchOptions = output<typeof searchOptionsSchema>;
|
|
15670
16120
|
/**
|
|
16121
|
+
* Options passed to `Search.suggest` to filter and tune the suggestion
|
|
16122
|
+
* (autocomplete) sources: places and enterprise locations.
|
|
15671
16123
|
* @interface
|
|
15672
16124
|
*/
|
|
15673
16125
|
type SuggestOptions = output<typeof suggestOptionsSchema>;
|
|
@@ -17783,7 +18235,7 @@ type PathProperties = {
|
|
|
17783
18235
|
* Updatable path state
|
|
17784
18236
|
* @interface
|
|
17785
18237
|
*/
|
|
17786
|
-
type PathUpdateState = Omit<Partial<PathState$1>, 'id' | 'type'>;
|
|
18238
|
+
type PathUpdateState = Omit<Partial<PathState$1>, 'id' | 'type' | 'dashDiscrete'>;
|
|
17787
18239
|
/**
|
|
17788
18240
|
* State representing a Path
|
|
17789
18241
|
*/
|
|
@@ -17940,7 +18392,7 @@ type PathState$1 = {
|
|
|
17940
18392
|
* Geometry type for path rendering.
|
|
17941
18393
|
* @default 'tube'
|
|
17942
18394
|
*/
|
|
17943
|
-
|
|
18395
|
+
geometryType: 'tube' | 'ribbon';
|
|
17944
18396
|
/**
|
|
17945
18397
|
* @experimental
|
|
17946
18398
|
* Endcap extension for ribbon geometry as [start, end] tuple in meters.
|
|
@@ -17948,27 +18400,20 @@ type PathState$1 = {
|
|
|
17948
18400
|
* - Value = 0: square/flat end (no extension, no rounded cap)
|
|
17949
18401
|
* @default [0.5, 0.5]
|
|
17950
18402
|
*/
|
|
17951
|
-
|
|
18403
|
+
endcapExtension: [number, number];
|
|
17952
18404
|
/**
|
|
17953
18405
|
* @experimental
|
|
17954
18406
|
* When true and using ribbon geometry, the path will always face the camera (billboard effect).
|
|
17955
18407
|
* Most useful for vertical paths between floors.
|
|
17956
18408
|
* @default false
|
|
17957
18409
|
*/
|
|
17958
|
-
|
|
18410
|
+
billboarding: boolean | number;
|
|
17959
18411
|
/**
|
|
17960
18412
|
* @experimental
|
|
17961
18413
|
* Border configuration for ribbon path geometry.
|
|
17962
18414
|
* Renders darkened edges along both sides of the ribbon.
|
|
17963
18415
|
*/
|
|
17964
|
-
|
|
17965
|
-
/**
|
|
17966
|
-
* @experimental
|
|
17967
|
-
* When true, prevents the xray path from rendering multiple overlapping pixels
|
|
17968
|
-
* when the path crosses over itself. Uses stencil buffer to ensure single-pixel rendering.
|
|
17969
|
-
* @default false
|
|
17970
|
-
*/
|
|
17971
|
-
__EXPERIMENTAL_PREVENT_SELF_OVERLAP?: boolean;
|
|
18416
|
+
border?: BorderConfig;
|
|
17972
18417
|
};
|
|
17973
18418
|
type AddPathOptions = {
|
|
17974
18419
|
/**
|
|
@@ -18014,12 +18459,6 @@ type AddPathOptions = {
|
|
|
18014
18459
|
* Whether the path should be dashed.
|
|
18015
18460
|
*/
|
|
18016
18461
|
dashed?: boolean;
|
|
18017
|
-
/**
|
|
18018
|
-
* Whether the path should be discrete-dash: each dash becomes its own
|
|
18019
|
-
* rounded-rectangle primitive. Dash sizing defines the dash's length and gap.
|
|
18020
|
-
* Only supported with ribbon geometry.
|
|
18021
|
-
*/
|
|
18022
|
-
dashDiscrete?: boolean;
|
|
18023
18462
|
/**
|
|
18024
18463
|
* Corner rounding of each dash, from 0 (sharp rectangle) to 1 (fully rounded).
|
|
18025
18464
|
* Expressed as a fraction of the dash's short half-side, like a CSS
|
|
@@ -18128,7 +18567,7 @@ type AddPathOptions = {
|
|
|
18128
18567
|
* Geometry type for path rendering.
|
|
18129
18568
|
* @default 'tube'
|
|
18130
18569
|
*/
|
|
18131
|
-
|
|
18570
|
+
geometryType?: 'tube' | 'ribbon';
|
|
18132
18571
|
/**
|
|
18133
18572
|
* @experimental
|
|
18134
18573
|
* Endcap extension for ribbon geometry as [start, end] tuple in meters.
|
|
@@ -18136,27 +18575,20 @@ type AddPathOptions = {
|
|
|
18136
18575
|
* - Value = 0: square/flat end (no extension, no rounded cap)
|
|
18137
18576
|
* @default [0.5, 0.5]
|
|
18138
18577
|
*/
|
|
18139
|
-
|
|
18578
|
+
endcapExtension?: [number, number];
|
|
18140
18579
|
/**
|
|
18141
18580
|
* @experimental
|
|
18142
18581
|
* When true and using ribbon geometry, the path will always face the camera (billboard effect).
|
|
18143
18582
|
* Most useful for vertical paths between floors.
|
|
18144
18583
|
* @default false
|
|
18145
18584
|
*/
|
|
18146
|
-
|
|
18585
|
+
billboarding?: boolean | number;
|
|
18147
18586
|
/**
|
|
18148
18587
|
* @experimental
|
|
18149
18588
|
* Border configuration for ribbon path geometry.
|
|
18150
18589
|
* Renders darkened edges along both sides of the ribbon.
|
|
18151
18590
|
*/
|
|
18152
|
-
|
|
18153
|
-
/**
|
|
18154
|
-
* @experimental
|
|
18155
|
-
* When true, prevents the xray path from rendering multiple overlapping pixels
|
|
18156
|
-
* when the path crosses over itself. Uses stencil buffer to ensure single-pixel rendering.
|
|
18157
|
-
* @default false
|
|
18158
|
-
*/
|
|
18159
|
-
__EXPERIMENTAL_PREVENT_SELF_OVERLAP?: boolean;
|
|
18591
|
+
border?: BorderConfig;
|
|
18160
18592
|
};
|
|
18161
18593
|
declare class PathComponent {
|
|
18162
18594
|
readonly type = "path";
|
|
@@ -18211,11 +18643,10 @@ declare class PathComponent {
|
|
|
18211
18643
|
dashAbsolute: boolean;
|
|
18212
18644
|
dashMeters: number;
|
|
18213
18645
|
gapMeters: number;
|
|
18214
|
-
|
|
18215
|
-
|
|
18216
|
-
|
|
18217
|
-
|
|
18218
|
-
__EXPERIMENTAL_PREVENT_SELF_OVERLAP: boolean;
|
|
18646
|
+
geometryType: 'tube' | 'ribbon';
|
|
18647
|
+
endcapExtension: [number, number];
|
|
18648
|
+
billboarding: boolean | number;
|
|
18649
|
+
border?: BorderConfig;
|
|
18219
18650
|
/**
|
|
18220
18651
|
* If the path is vertical it will be rebuilt whenever altitudeDirty = true. This will be set during the first render of the path.
|
|
18221
18652
|
*/
|
|
@@ -18229,7 +18660,7 @@ declare class PathComponent {
|
|
|
18229
18660
|
* extruded tube — the mode that supports screen-space pixel width, billboarding,
|
|
18230
18661
|
* and discrete dashes. A discrete-dash path is always flat: a dash is a
|
|
18231
18662
|
* screen-facing quad with no tube analogue, so `dashDiscrete` implies ribbon
|
|
18232
|
-
* regardless of `
|
|
18663
|
+
* regardless of `geometryType`. The single source of truth for flat
|
|
18233
18664
|
* vs tube; prefer this over re-deriving `=== 'ribbon'` from the geometry option.
|
|
18234
18665
|
* Read by `buildPath` as `component.isFlat` — a plain-object mock cast as
|
|
18235
18666
|
* `PathComponent` must define this getter, or it reads `undefined` (tube).
|
|
@@ -19219,6 +19650,7 @@ type AnimateCameraTarget = {
|
|
|
19219
19650
|
};
|
|
19220
19651
|
type CameraControlsOptions = {
|
|
19221
19652
|
mode: Core['mode'];
|
|
19653
|
+
__EXPERIMENTAL_CameraControlsMode?: 'native' | 'external';
|
|
19222
19654
|
canvasHeight: number;
|
|
19223
19655
|
canvasWidth: number;
|
|
19224
19656
|
};
|
|
@@ -21690,6 +22122,11 @@ declare class Core extends PubSub<MapEvent> {
|
|
|
21690
22122
|
* Returns the mode the Renderer is in.
|
|
21691
22123
|
*/
|
|
21692
22124
|
get mode(): "standalone" | "outdoors-interleaved" | "outdoors-overlay" | undefined;
|
|
22125
|
+
/**
|
|
22126
|
+
* Returns which component owns the camera's gestures: the SDK's
|
|
22127
|
+
* `CameraSystem` (`'native'`) or MapLibre's native handlers (`'external'`).
|
|
22128
|
+
*/
|
|
22129
|
+
get cameraMode(): "native" | "external";
|
|
21693
22130
|
/**
|
|
21694
22131
|
* @internal
|
|
21695
22132
|
*/
|
|
@@ -22216,6 +22653,19 @@ type RendererCoreOptions$2 = Partial<{
|
|
|
22216
22653
|
* page reload.
|
|
22217
22654
|
*/
|
|
22218
22655
|
refreshToken?: () => Promise<string | undefined>;
|
|
22656
|
+
/**
|
|
22657
|
+
* Controls which component owns the camera's pan, zoom, rotate, and pinch
|
|
22658
|
+
* gestures. `'native'` (default) keeps the SDK's `CameraSystem` in charge;
|
|
22659
|
+
* `'external'` delegates them to MapLibre's native gesture handlers
|
|
22660
|
+
* (`dragPan`, `scrollZoom`, `dragRotate`, `touchZoomRotate`, `keyboard`).
|
|
22661
|
+
* `'external'` only functions when the outdoor context (MapLibre) loads
|
|
22662
|
+
* successfully (i.e. an outdoor/interleaved mode). If it doesn't, the SDK
|
|
22663
|
+
* has handed camera input to a MapLibre map that isn't present, so the
|
|
22664
|
+
* camera is not interactive. Only set `'external'` when outdoor mode is
|
|
22665
|
+
* guaranteed.
|
|
22666
|
+
* @default 'native'
|
|
22667
|
+
*/
|
|
22668
|
+
__EXPERIMENTAL_CameraControlsMode?: 'native' | 'external';
|
|
22219
22669
|
};
|
|
22220
22670
|
gl?: WebGLRenderingContext;
|
|
22221
22671
|
map?: Map$1;
|
|
@@ -22757,6 +23207,12 @@ interface LabelCacheEntry {
|
|
|
22757
23207
|
textMemoryBytes: number;
|
|
22758
23208
|
/** Total attributable bytes for this label (currently equal to textMemoryBytes). */
|
|
22759
23209
|
totalMemoryBytes: number;
|
|
23210
|
+
/** The label's single baked text canvas (all lines left-aligned), or null if not cached. */
|
|
23211
|
+
textCanvas: OffscreenCanvas | HTMLCanvasElement | null;
|
|
23212
|
+
/** The label's pin graphic canvases, as [active, inactive], or null. */
|
|
23213
|
+
pinCanvases: [HTMLCanvasElement | OffscreenCanvas, HTMLCanvasElement | OffscreenCanvas] | null;
|
|
23214
|
+
/** The label's icon image source, or null. */
|
|
23215
|
+
imageSource: HTMLImageElement | ImageBitmap | null;
|
|
22760
23216
|
}
|
|
22761
23217
|
/**
|
|
22762
23218
|
* Aggregate label cache statistics plus per-label membership flags.
|
|
@@ -23150,6 +23606,22 @@ type TShow3DMapOptions = {
|
|
|
23150
23606
|
* @default false
|
|
23151
23607
|
*/
|
|
23152
23608
|
lowDpi?: boolean;
|
|
23609
|
+
/**
|
|
23610
|
+
* Controls which component owns the camera's pan, zoom, rotate, and pinch gestures.
|
|
23611
|
+
*
|
|
23612
|
+
* - `'native'` (default): the SDK's camera system handles all gestures.
|
|
23613
|
+
* - `'external'`: MapLibre's native gesture handlers (`dragPan`, `scrollZoom`,
|
|
23614
|
+
* `dragRotate`, `touchZoomRotate`, and `keyboard`) handle gestures instead.
|
|
23615
|
+
*
|
|
23616
|
+
* `'external'` only functions when `outdoorView.enabled` is `true` AND the
|
|
23617
|
+
* outdoor context (MapLibre) loads successfully. If outdoor is disabled or
|
|
23618
|
+
* fails to load, the SDK has handed camera input to a MapLibre map that is
|
|
23619
|
+
* not present, so the camera will not respond to user input. Only set
|
|
23620
|
+
* `'external'` when outdoor mode is guaranteed.
|
|
23621
|
+
*
|
|
23622
|
+
* @default 'native'
|
|
23623
|
+
*/
|
|
23624
|
+
__EXPERIMENTAL_CameraControlsMode?: 'native' | 'external';
|
|
23153
23625
|
};
|
|
23154
23626
|
/**
|
|
23155
23627
|
* The initial bearing of the map, in degrees.
|
|
@@ -23549,4 +24021,4 @@ declare const getVersion: () => string | undefined;
|
|
|
23549
24021
|
*/
|
|
23550
24022
|
declare const show3dMapGeojson: (el: HTMLElement, mapData: MapData, options?: TShow3DMapOptions) => Promise<MapView>;
|
|
23551
24023
|
//#endregion
|
|
23552
|
-
export { ACTION_TYPE, ANIMATION_TWEENS, type AddText3DOptions, type AddText3DPointOptions, type Analytics, Annotation, Area, type AutoElements, BBox, BEARING_TYPE, CONNECTION_TYPE, type Camera, type CameraBounds, type CameraTransform, type CaptureEventsPayloadMap, type ColorString, Connection, Coordinate, DOORS, type Debug, type DebugState, DetailedMapData, Directions, Door, E_SDK_LOG_LEVEL, type EasingCurve, EnterpriseCategory, EnterpriseLocation, EnterpriseVenue, type EnvMapOptions, type Environment, type Exporter, Facade, Feature, FeatureCollection, Floor, FloorStack, type FootprintConfig, GeoJSON$1 as GeoJSON, GeoJsonGeometryTypes, GeoJsonObject, GeoJsonProperties, GeoJsonTypes, Geometry, GeometryCollection, GeometryObject, type GlobalState, Hyperlink, type IAnchorable, type IFocusable, type IGeoJSONData, type INavigatable, type ISystemPlugin, type Image3D, type Image3DView, ImageMetaData, type InitializeModelState, type InitializeText3DState, type InsetPadding, type InsetPaddingOption, type InterpolateOn, type Interpolation, type Label, type LabelAppearance, type LabelTextPlacement, type Labels, LineString, type LineStyle, LocationCategory, LocationProfile, type LocationSocial, type LocationState, MAPPEDIN_COLORS, type MapData, type MapDataElements, type MapElementToGetRenderedState, type MapElementToGetState, type MapElementToUpdateState, type MapElementsWithState, type MapFeatureOfType, MapObject, MapView, type MapViewElements, type MapViewState, type MappedinError, type MappedinRenderError, type Marker, type Markers, type MatchInfo, type Model, type Models, type MultiFloorViewEffectState, MultiLineString, MultiPoint, MultiPolygon, type Navigation, type NavigationState, Node, type OpeningHours, type OperationHours, type Outdoor, type OutlinesOptions, type PaintStyle, type Path, type PathSegment$1 as PathSegment, type PathWidth, type Paths, type PixelWidth, type Places, Point, PointOfInterest, Polygon, type Position, type PubSub, type Query, type RendererCoreOptions, type Search, type SearchOptions, type SearchResult, type SearchResultEnterpriseCategory, type SearchResultEnterpriseLocations, type SearchResultItem, type SearchResultPlaces, type SetFloorHandler, type Shading, type Shape, type Shapes, type SiblingGroup, Space, type Style, type Suggestion, type TActionType, type TAddImageOptions, type TAddLabelOptions, type TAddMarkerOptions, type TAddModel, type TAddModelOptions, type TAddPathOptions, type TAddText3DAnchorableOptions, type TAddText3DOptions, type TAnalyticsUpdateState, type TAnimateStateResult, type TAnimationOptions, type TAntialiasingOptions, type TBearingType, type TCameraAnimationOptions, type TCameraInteractionsSetOptions, type TCameraTarget, type TCancellablePromise, type TClickPayload, type TCollisionRankingTier, type TConnectionPathOptions, type TConnectionType, type TCoordinateParams, type TCreateMarker, type TDirectionInstruction, type TDirectionInstructionAction, type TDirectionZone, type TDoorsState, type TDoorsUpdateState, type TEasingFunction, type TEventPayload, type TEvents, type TExperimentalDashOptions, type
|
|
24024
|
+
export { ACTION_TYPE, ANIMATION_TWEENS, type AddText3DOptions, type AddText3DPointOptions, type Analytics, Annotation, Area, type AutoElements, BBox, BEARING_TYPE, CONNECTION_TYPE, type Camera, type CameraBounds, type CameraTransform, type CaptureEventsPayloadMap, type ColorString, Connection, Coordinate, DOORS, type Debug, type DebugState, DetailedMapData, Directions, Door, E_SDK_LOG_LEVEL, type EasingCurve, EnterpriseCategory, EnterpriseLocation, EnterpriseVenue, type EnvMapOptions, type Environment, type Exporter, Facade, Feature, FeatureCollection, Floor, FloorStack, type FootprintConfig, type Fuzzy, GeoJSON$1 as GeoJSON, GeoJsonGeometryTypes, GeoJsonObject, GeoJsonProperties, GeoJsonTypes, Geometry, GeometryCollection, GeometryObject, type GlobalState, Hyperlink, type IAnchorable, type IFocusable, type IGeoJSONData, type INavigatable, type ISystemPlugin, type Image3D, type Image3DView, ImageMetaData, type InitializeModelState, type InitializeText3DState, type InsetPadding, type InsetPaddingOption, type InterpolateOn, type Interpolation, type Label, type LabelAppearance, type LabelTextPlacement, type Labels, LineString, type LineStyle, LocationCategory, LocationProfile, type LocationSocial, type LocationState, MAPPEDIN_COLORS, type MapData, type MapDataElements, type MapElementToGetRenderedState, type MapElementToGetState, type MapElementToUpdateState, type MapElementsWithState, type MapFeatureOfType, MapObject, MapView, type MapViewElements, type MapViewState, type MappedinError, type MappedinRenderError, type Marker, type Markers, type MatchInfo, type Model, type Models, type MultiFloorViewEffectState, MultiLineString, MultiPoint, MultiPolygon, type Navigation, type NavigationState, Node, type OpeningHours, type OperationHours, type Outdoor, type OutlinesOptions, type PaintStyle, type Path, type PathSegment$1 as PathSegment, type PathWidth, type Paths, type PixelWidth, type Places, Point, PointOfInterest, Polygon, type Position, type Prefix$1 as Prefix, type PubSub, type Query, type RendererCoreOptions, type Search, type SearchOptions, type SearchResult, type SearchResultEnterpriseCategory, type SearchResultEnterpriseLocations, type SearchResultItem, type SearchResultPlaces, type SetFloorHandler, type Shading, type Shape, type Shapes, type SiblingGroup, Space, type Style, type SuggestOptions, type Suggestion, type TActionType, type TAddImageOptions, type TAddLabelOptions, type TAddMarkerOptions, type TAddModel, type TAddModelOptions, type TAddPathOptions, type TAddText3DAnchorableOptions, type TAddText3DOptions, type TAnalyticsUpdateState, type TAnimateStateResult, type TAnimationOptions, type TAntialiasingOptions, type TBearingType, type TCameraAnimationOptions, type TCameraInteractionsSetOptions, type TCameraTarget, type TCancellablePromise, type TClickPayload, type TCollisionRankingTier, type TConnectionPathOptions, type TConnectionType, type TCoordinateParams, type TCreateMarker, type TDashOptions, type TDirectionInstruction, type TDirectionInstructionAction, type TDirectionZone, type TDoorsState, type TDoorsUpdateState, type TEasingFunction, type TEventPayload, type TEvents, type TExperimentalDashOptions, type TFacadeState, type TFacadeUpdateState, type TFindNearestOptions, type TFindNearestResult, type TFindPreferredLanguageInVenueOptions, type TFloorAltitudeData, type TFloorChangePayload, type TFloorChangeReason, type TFloorState, type TFloorUpdateState, type TFocusOnOptions, type TFocusTarget, type TGeometryState, type TGeometryUpdateState, type TGetDirectionsOptions, type TGetMapDataOptions, type TGetMapDataSharedOptions, type TGetMapDataWithAccessTokenOptions, type TGetMapDataWithCredentialsOptions, type TGetState, type THoverPayload, type THydrateMapDataBundle, type TImage3DState as TImageState, type TImage3DUpdateState as TImageUpdateState, type TLabelState, type TLabelUpdateState, type TLogLevelName, type TLongPressPayload, type TMVF, type TMVFLineStringStyle, type TMVFPointStyle, type TMVFPolygonStyle, type TMVFStyle, type TMVFStyleCollection, type TMapDataEvents, type TMapDataObjectTypes, type TMapFeatureTypes, type TMapViewObjectTypes, type TMarkerPlacement, type TMarkerState, type TMarkerUpdateState, type TModelState, type TModelUpdateState, type TMultiFloorViewOptions, type TNavigationMarker, type TNavigationMarkerType, type TNavigationOptions, type TNavigationPathOptions, type TNavigationTarget, type TOutsideThresholdPathStyle, type TPathSectionHighlightOptions, type TPathState, type TPathUpdateState, type TQueriables, type TQueryAtResult, type RendererState as TRendererState, type TSearchOptions, type TSetFloorOptions, type TShapeState, type TShapeUpdateState, type TShow3DMapOptions, type TSpaceType, type TStateChangedInternalPayload, type TTakeScreenshotOptions, type TTetheredOptions as TTetherOptions, type TText3DState, type TText3DUpdateState, type TTrackCoordinateOptions, type TTravelledOptions, type TUpdateState, type TWallsState, type TWallsUpdateState, TWatermarkOptions, type Text3D, type Text3DView, type UpdateGlobalState, type VisibilityState, WALLS, type WithState, MAPPEDIN_LAYER_ID as __INTERNAL__MAPPEDIN_LAYER_ID, MapLibreOverlay as __INTERNAL__MapLibreOverlay, Core as __INTERNAL__RendererCore, convertToRendererCoreOptions as __INTERNAL__convertToRendererCoreOptions, __setWatermarkOnClickFn, checkWorkerUrls, disableText3DWorker, enableTestMode, findPreferredLanguageInVenue, forceEnterpriseLocations, getMapData, getMapDataEnterprise, getMultiFloorState, getVersion, hydrateMapData, hydrateMapDataFromMVF, parseLogLevel, parseMVFv2 as parseMVF, preloadFont, setLoggerLevel, setUseEnterpriseAPI, setWorkersUrl, shouldForceEnterpriseLocations, show3dMap, show3dMapGeojson, unzipAndParseMVFv2, unzipMVFv2 as unzipMVF };
|