@mappedin/mappedin-js 6.21.1 → 6.23.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 +56 -20
- package/lib/esm/{GLTFExporter-V762TD2A.js → GLTFExporter-6QDTTLXC.js} +1 -1
- package/lib/esm/{GLTFLoader-HBT4C4QX.js → GLTFLoader-IXRZMMXA.js} +1 -1
- package/lib/esm/{chunk-23SDKQLF.js → chunk-7S4YASHU.js} +55 -55
- package/lib/esm/chunk-EJ222AP2.js +660 -0
- package/lib/esm/{chunk-73NFNZ3A.js → chunk-FZGRE4ZA.js} +1 -1
- package/lib/esm/{chunk-DEPTGCUS.js → chunk-SCXZVR4R.js} +1 -1
- package/lib/esm/chunk-WMWAXV3L.js +968 -0
- package/lib/esm/index.d.ts +292 -49
- package/lib/esm/index.js +1 -1
- package/lib/esm/{inspector-FCMDYYIP.js → inspector-G6D6KDLX.js} +2 -2
- package/lib/esm/{internal-GPY5MCOX.js → internal-UZ3JUV4F.js} +1 -1
- package/lib/esm/{src-QYUMVA7Q.js → src-VJIN6IYN.js} +1 -1
- package/lib/esm/{text3d-TJVE4VTW.js → text3d-W6EBZB5H.js} +1 -1
- package/package.json +1 -1
- package/lib/esm/chunk-B5PVUD5J.js +0 -968
- package/lib/esm/chunk-HQ5BIBGU.js +0 -660
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _mappedin_mvf_v28 from "@mappedin/mvf-v2";
|
|
2
2
|
import { AnnotationCollection, AnnotationSymbol, AreaCollection, AreaId, BaseTextAreaProperties, Category, CategoryId, Connection as Connection$1, Details, EnterpriseCategory as EnterpriseCategory$1, EnterpriseCategoryId, EnterpriseLocation as EnterpriseLocation$1, EnterpriseLocationId, EnterpriseLocationInstance, EnterpriseTexture, EnterpriseVenue as EnterpriseVenue$1, EnterpriseVenueType, EntranceCollection, EntranceFeature, Facade as Facade$1, Feature as Feature$1, FeatureCollection as FeatureCollection$1, FloatingFloorTextProperties, FloorCollection, FloorId, FloorProperties, FloorStack as FloorStack$1, FloorTextCommonProperties, Geometry as Geometry$1, Hyperlink as Hyperlink$1, Image, Language, LineStringStyle, LineStringStyle as TMVFLineStringStyle, Location, LocationId, LocationLink, LocationSocial, LocationSocial as LocationSocial$1, LocationState, LocationState as LocationState$1, MVFv2_STANDARD_MVFv3, MultiPolygon as MultiPolygon$1, NavigationFlagDeclarations, NodeCollection, NodeId, ObstructionCollection, ObstructionCollection as ObstructionCollection$1, ObstructionFeature, ObstructionId, 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, SpaceId, 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 _mappedin_renderer_three0 from "@mappedin/renderer-three";
|
|
5
|
-
import { AddLabelOptionsInternal, AddText3DOptions, AddText3DOptions as AddText3DOptions$1, AddText3DPointOptions, CameraSystemState, ColorString, DebugState, DebugState as DebugState$1, EntityId, EnvMapOptions, EnvMapOptions as EnvMapOptions$1, GLTFExportOptions as GLTFExportOptions$1, GroupContainerState, ISystemPlugin, ISystemPlugin as ISystemPlugin$1, ImagePlacementOptions, InitializeModelState, InitializeModelState as InitializeModelState$1, InitializeText3DState, InsetPadding, InsetPadding as InsetPadding$1, InsetPaddingOption, InsetPaddingOption as InsetPaddingOption$1, InterpolateOn, Interpolation, LabelRenderedState, LineStyle, LineStyle as LineStyle$1, MapViewState, MarkerState, OutlinesOptions, PaintStyle, PaintStyle as PaintStyle$1, PathState, PathWidth, PathWidth as PathWidth$1, PixelWidth, Position as Position$1, RendererCore, RendererCoreOptions, RendererCoreOptions as RendererCoreOptions$1, Shading, Text3DState, WatermarkUpdateOptions } from "@mappedin/renderer-three";
|
|
5
|
+
import { AddLabelOptionsInternal, AddText3DOptions, AddText3DOptions as AddText3DOptions$1, AddText3DPointOptions, AddText3DPointOptions as AddText3DPointOptions$1, CameraSystemState, ColorString, DebugState, DebugState as DebugState$1, EntityId, EnvMapOptions, EnvMapOptions as EnvMapOptions$1, GLTFExportOptions as GLTFExportOptions$1, GroupContainerState, ISystemPlugin, ISystemPlugin as ISystemPlugin$1, ImagePlacementOptions, InitializeModelState, InitializeModelState as InitializeModelState$1, InitializeText3DState, InsetPadding, InsetPadding as InsetPadding$1, InsetPaddingOption, InsetPaddingOption as InsetPaddingOption$1, InterpolateOn, Interpolation, LabelRenderedState, LineStyle, LineStyle as LineStyle$1, MapViewState, MarkerState, OutlinesOptions, PaintStyle, PaintStyle as PaintStyle$1, PathState, PathWidth, PathWidth as PathWidth$1, PixelWidth, Position as Position$1, RendererCore, RendererCoreOptions, RendererCoreOptions as RendererCoreOptions$1, Shading, Text3DState, WatermarkUpdateOptions } from "@mappedin/renderer-three";
|
|
6
6
|
import * as _tweenjs_tween_js0 from "@tweenjs/tween.js";
|
|
7
7
|
import { Group, Tween } from "@tweenjs/tween.js";
|
|
8
8
|
import { CustomLayerInterface, IControl, Map as Map$1, MapEventType } from "@mappedin/outdoor-context";
|
|
9
9
|
import { ANIMATION_TWEENS, PathWidth as PathWidth$2, PathWidth as PathWidth$3, enableTestMode } from "@mappedin/renderer-shared";
|
|
10
10
|
import { MatchInfo, SearchResult as SearchResult$1, Suggestion, Suggestion as Suggestion$1 } from "minisearch";
|
|
11
|
-
import * as
|
|
11
|
+
import * as three1 from "three";
|
|
12
12
|
import { AmbientLight, BatchedMesh, BatchedMeshGeometryRange, Box3, BufferAttribute, BufferGeometry, Camera as Camera$1, Color, DirectionalLight, Group as Group$1, Intersection, LineSegments, Matrix4, Mesh, MeshLambertMaterial, MeshLambertMaterialParameters, Object3D, Object3DEventMap, PerspectiveCamera, Plane, PlaneGeometry, Raycaster, Scene, ShaderMaterial, Texture, TubeGeometry, Vector2, Vector3, WebGLRenderer } from "three";
|
|
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";
|
|
@@ -4256,8 +4256,12 @@ declare class TokenManager {
|
|
|
4256
4256
|
/**
|
|
4257
4257
|
* Get an access token for the current set of API keys. If an access token was passed in, that
|
|
4258
4258
|
* will be returned instead.
|
|
4259
|
+
* @param forceRefresh - When `true`, bypass any cached token and fetch a fresh one. Useful for
|
|
4260
|
+
* recovering from a rejected (e.g. expired) token even if the local expiry bookkeeping still
|
|
4261
|
+
* considers it valid.
|
|
4262
|
+
* @default forceRefresh false
|
|
4259
4263
|
*/
|
|
4260
|
-
getAccessTokenAsync(): Promise<TokenWithExpiration>;
|
|
4264
|
+
getAccessTokenAsync(forceRefresh?: boolean): Promise<TokenWithExpiration>;
|
|
4261
4265
|
/**
|
|
4262
4266
|
* Get SAS tokens for all maps. If any SAS token are expired, all SAS tokens will be refreshed.
|
|
4263
4267
|
*/
|
|
@@ -4426,6 +4430,22 @@ declare class PathSegment$1 implements IFocusable {
|
|
|
4426
4430
|
get distance(): number;
|
|
4427
4431
|
/** @internal */
|
|
4428
4432
|
get focusTarget(): Coordinate[];
|
|
4433
|
+
/**
|
|
4434
|
+
* Serializes the path segment to JSON.
|
|
4435
|
+
*
|
|
4436
|
+
* `isConnectionSegment` and `distance` are computed getters, so they are included explicitly
|
|
4437
|
+
* here — otherwise they would be dropped by `JSON.stringify` (e.g. when a {@link Path} crosses
|
|
4438
|
+
* the React Native / native WebView bridge, where consumers rely on `segment.isConnectionSegment`).
|
|
4439
|
+
*
|
|
4440
|
+
* @returns An object representing the path segment.
|
|
4441
|
+
*/
|
|
4442
|
+
toJSON(): {
|
|
4443
|
+
__type: string;
|
|
4444
|
+
id: string;
|
|
4445
|
+
coordinates: Coordinate[];
|
|
4446
|
+
isConnectionSegment: boolean;
|
|
4447
|
+
distance: number;
|
|
4448
|
+
};
|
|
4429
4449
|
}
|
|
4430
4450
|
/**
|
|
4431
4451
|
* Class representing a path on the {@link MapView}.
|
|
@@ -4490,6 +4510,17 @@ declare class Path implements IFocusable {
|
|
|
4490
4510
|
//#endregion
|
|
4491
4511
|
//#region ../packages/common/interpolate.d.ts
|
|
4492
4512
|
declare const EASING_CURVES: readonly ["ease-in", "ease-out", "ease-in-out", "linear", "ease-out-cubic"];
|
|
4513
|
+
/**
|
|
4514
|
+
* The set of easing curves that can be applied when interpolating a value.
|
|
4515
|
+
*
|
|
4516
|
+
* - `linear`: constant rate of change from start to end.
|
|
4517
|
+
* - `ease-in`: starts slowly, then accelerates.
|
|
4518
|
+
* - `ease-out`: starts quickly, then decelerates.
|
|
4519
|
+
* - `ease-in-out`: starts slowly, accelerates through the middle, then decelerates.
|
|
4520
|
+
* - `ease-out-cubic`: a stronger ease-out using a cubic curve.
|
|
4521
|
+
*
|
|
4522
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timing-function
|
|
4523
|
+
*/
|
|
4493
4524
|
type EasingCurve = (typeof EASING_CURVES)[number];
|
|
4494
4525
|
//#endregion
|
|
4495
4526
|
//#region src/navigation/tethered.d.ts
|
|
@@ -4609,6 +4640,27 @@ type TTrackCoordinateOptions = {
|
|
|
4609
4640
|
* ```
|
|
4610
4641
|
*/
|
|
4611
4642
|
type TCreateMarker = boolean | ((instruction: TDirectionInstruction) => Marker);
|
|
4643
|
+
/**
|
|
4644
|
+
* The role a {@link Marker} plays within a drawn navigation route.
|
|
4645
|
+
*
|
|
4646
|
+
* - `departure` — the pin marking the start of the route.
|
|
4647
|
+
* - `destination` — the flag marking the end of the route.
|
|
4648
|
+
* - `connection` — a marker at a floor change (e.g. stairs, elevator).
|
|
4649
|
+
*/
|
|
4650
|
+
type TNavigationMarkerType = 'departure' | 'destination' | 'connection';
|
|
4651
|
+
/**
|
|
4652
|
+
* A {@link Marker} drawn as part of a navigation route, paired with the role it
|
|
4653
|
+
* plays in that route. Returned by {@link Navigation.markers}.
|
|
4654
|
+
*/
|
|
4655
|
+
type TNavigationMarker = {
|
|
4656
|
+
/**
|
|
4657
|
+
* The underlying {@link Marker}. Pass it to {@link MapView.updateState} to
|
|
4658
|
+
* change its state (for example, `{ enabled: false }` to hide it).
|
|
4659
|
+
*/
|
|
4660
|
+
marker: Marker;
|
|
4661
|
+
/** Which part of the route this marker represents. */
|
|
4662
|
+
type: TNavigationMarkerType;
|
|
4663
|
+
};
|
|
4612
4664
|
/**
|
|
4613
4665
|
* Path options extended with connection-specific overrides for Navigation.
|
|
4614
4666
|
* Connection paths inherit all base path options unless overridden with `__EXPERIMENTAL__CONNECTION_*` properties.
|
|
@@ -4728,6 +4780,7 @@ type NavigationState = {
|
|
|
4728
4780
|
activeDirections?: Directions;
|
|
4729
4781
|
activePath?: Path;
|
|
4730
4782
|
paths: Path[];
|
|
4783
|
+
markers: TNavigationMarker[];
|
|
4731
4784
|
};
|
|
4732
4785
|
/**
|
|
4733
4786
|
* Navigation-specific event types.
|
|
@@ -4784,11 +4837,32 @@ declare class Navigation {
|
|
|
4784
4837
|
getMarkerById(id: string): {
|
|
4785
4838
|
instruction: TDirectionInstruction;
|
|
4786
4839
|
marker: Marker;
|
|
4840
|
+
type: TNavigationMarkerType;
|
|
4787
4841
|
} | undefined;
|
|
4788
4842
|
/**
|
|
4789
4843
|
* @internal
|
|
4790
4844
|
*/
|
|
4791
4845
|
get paths(): Path[];
|
|
4846
|
+
/**
|
|
4847
|
+
* The markers drawn for the currently drawn navigation route: the departure
|
|
4848
|
+
* and destination pins, plus a marker at each connection (floor change).
|
|
4849
|
+
*
|
|
4850
|
+
* Navigation markers are drawn with an `always-visible` collision rank so
|
|
4851
|
+
* they are never dropped by label collision. As a side effect they also stay
|
|
4852
|
+
* visible when the current floor changes. To control their visibility per
|
|
4853
|
+
* floor, combine this with {@link MapView.updateState} and each marker's
|
|
4854
|
+
* {@link Marker.coordinate}.
|
|
4855
|
+
*
|
|
4856
|
+
* @returns An array of {@link TNavigationMarker}, each pairing a {@link Marker} with its role in the route.
|
|
4857
|
+
* @example Hide navigation markers that aren't on the current floor
|
|
4858
|
+
* ```ts
|
|
4859
|
+
* for (const { marker } of mapView.Navigation.markers) {
|
|
4860
|
+
* const onCurrentFloor = marker.coordinate.floorId === mapView.currentFloor?.id;
|
|
4861
|
+
* mapView.updateState(marker, { enabled: onCurrentFloor });
|
|
4862
|
+
* }
|
|
4863
|
+
* ```
|
|
4864
|
+
*/
|
|
4865
|
+
get markers(): TNavigationMarker[];
|
|
4792
4866
|
/**
|
|
4793
4867
|
* The currently active directions.
|
|
4794
4868
|
*/
|
|
@@ -5165,7 +5239,14 @@ declare class FloorObject implements FloorProperties {
|
|
|
5165
5239
|
buildGapFootprint(gapHeight: number, ceilingCuts: Feature$1<Polygon$1, any>[]): void;
|
|
5166
5240
|
getFootprintStyle(): LineStringStyleWithTopColor;
|
|
5167
5241
|
buildFootprint(): void;
|
|
5168
|
-
|
|
5242
|
+
/**
|
|
5243
|
+
* Toggle the consumer geometryText batch (`geometryText-${id}` — labelAll / Text3D.add).
|
|
5244
|
+
* Delegates to Text3DSystem.setBatchVisible so a toggle issued before the lazily-built batch
|
|
5245
|
+
* exists survives.
|
|
5246
|
+
*/
|
|
5247
|
+
setGeometryTextBatchVisible(visible: boolean): void;
|
|
5248
|
+
/** Toggle the baked floorText batch (`floortext-${id}`). Same durable-intent mechanism. */
|
|
5249
|
+
setFloorTextBatchVisible(visible: boolean): void;
|
|
5169
5250
|
}
|
|
5170
5251
|
//#endregion
|
|
5171
5252
|
//#region src/api-geojson/floor-stack-object.d.ts
|
|
@@ -7443,20 +7524,82 @@ declare class MapView {
|
|
|
7443
7524
|
getOptimalVisualDistanceBetweenFloors(floors: Floor[]): number | undefined;
|
|
7444
7525
|
/**
|
|
7445
7526
|
* @internal
|
|
7446
|
-
* @deprecated
|
|
7527
|
+
* @deprecated Use per-floor and per-segment state instead — see {@link MapView.updateState | updateState}.
|
|
7447
7528
|
*
|
|
7448
7529
|
* If true, the map will hide paths not on the current floor.
|
|
7449
7530
|
*
|
|
7531
|
+
* For FLOOR paths, prefer toggling the floor's paths layer directly:
|
|
7532
|
+
* `mapView.updateState(floor, { paths: { visible: false } })`.
|
|
7533
|
+
*
|
|
7534
|
+
* CONNECTION paths span two floors and are not part of any floor's paths layer, so they are
|
|
7535
|
+
* unaffected by the floor toggle above. Hide them per-segment via
|
|
7536
|
+
* `mapView.updateState(segment, { visible: false })`, filtering
|
|
7537
|
+
* `mapView.Navigation.paths[].segments` by `segment.isConnectionSegment`.
|
|
7538
|
+
*
|
|
7450
7539
|
* @default false
|
|
7540
|
+
*
|
|
7541
|
+
* @example
|
|
7542
|
+
* ```ts
|
|
7543
|
+
* // Hide paths on every floor except the current one
|
|
7544
|
+
* for (const floor of mapData.getByType('floor')) {
|
|
7545
|
+
* mapView.updateState(floor, { paths: { visible: floor.id === mapView.currentFloor?.id } });
|
|
7546
|
+
* }
|
|
7547
|
+
*
|
|
7548
|
+
* // Connection segments aren't owned by a floor — hide the ones that don't
|
|
7549
|
+
* // touch the current floor on either end
|
|
7550
|
+
* for (const path of mapView.Navigation.paths) {
|
|
7551
|
+
* for (const segment of path.segments) {
|
|
7552
|
+
* if (!segment.isConnectionSegment) continue;
|
|
7553
|
+
* const touchesCurrentFloor = segment.coordinates.some(
|
|
7554
|
+
* (c) => c.floorId === mapView.currentFloor?.id
|
|
7555
|
+
* );
|
|
7556
|
+
* mapView.updateState(segment, { visible: touchesCurrentFloor });
|
|
7557
|
+
* }
|
|
7558
|
+
* }
|
|
7559
|
+
* ```
|
|
7560
|
+
*
|
|
7561
|
+
* @see {@link MapView.updateState | updateState} to toggle floor and segment visibility.
|
|
7562
|
+
* @see Navigation_-_Path_Visibility.ts for a complete example.
|
|
7451
7563
|
*/
|
|
7452
7564
|
get __INTERNAL__hidePathsNotOnCurrentFloor(): boolean;
|
|
7453
7565
|
/**
|
|
7454
7566
|
* @internal
|
|
7455
|
-
* @deprecated
|
|
7567
|
+
* @deprecated Use per-floor and per-segment state instead — see {@link MapView.updateState | updateState}.
|
|
7456
7568
|
*
|
|
7457
7569
|
* If true, the map will hide paths not on the current floor.
|
|
7458
7570
|
*
|
|
7571
|
+
* For FLOOR paths, prefer toggling the floor's paths layer directly:
|
|
7572
|
+
* `mapView.updateState(floor, { paths: { visible: false } })`.
|
|
7573
|
+
*
|
|
7574
|
+
* CONNECTION paths span two floors and are not part of any floor's paths layer, so they are
|
|
7575
|
+
* unaffected by the floor toggle above. Hide them per-segment via
|
|
7576
|
+
* `mapView.updateState(segment, { visible: false })`, filtering
|
|
7577
|
+
* `mapView.Navigation.paths[].segments` by `segment.isConnectionSegment`.
|
|
7578
|
+
*
|
|
7459
7579
|
* @default false
|
|
7580
|
+
*
|
|
7581
|
+
* @example
|
|
7582
|
+
* ```ts
|
|
7583
|
+
* // Hide paths on every floor except the current one
|
|
7584
|
+
* for (const floor of mapData.getByType('floor')) {
|
|
7585
|
+
* mapView.updateState(floor, { paths: { visible: floor.id === mapView.currentFloor?.id } });
|
|
7586
|
+
* }
|
|
7587
|
+
*
|
|
7588
|
+
* // Connection segments aren't owned by a floor — hide the ones that don't
|
|
7589
|
+
* // touch the current floor on either end
|
|
7590
|
+
* for (const path of mapView.Navigation.paths) {
|
|
7591
|
+
* for (const segment of path.segments) {
|
|
7592
|
+
* if (!segment.isConnectionSegment) continue;
|
|
7593
|
+
* const touchesCurrentFloor = segment.coordinates.some(
|
|
7594
|
+
* (c) => c.floorId === mapView.currentFloor?.id
|
|
7595
|
+
* );
|
|
7596
|
+
* mapView.updateState(segment, { visible: touchesCurrentFloor });
|
|
7597
|
+
* }
|
|
7598
|
+
* }
|
|
7599
|
+
* ```
|
|
7600
|
+
*
|
|
7601
|
+
* @see {@link MapView.updateState | updateState} to toggle floor and segment visibility.
|
|
7602
|
+
* @see Navigation_-_Path_Visibility.ts for a complete example.
|
|
7460
7603
|
*/
|
|
7461
7604
|
set __INTERNAL__hidePathsNotOnCurrentFloor(value: boolean);
|
|
7462
7605
|
/**
|
|
@@ -8991,6 +9134,12 @@ declare const floorStateSchemaPartial: ZodObject<{
|
|
|
8991
9134
|
}, $strip>>;
|
|
8992
9135
|
text3d: ZodOptional<ZodObject<{
|
|
8993
9136
|
visible: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9137
|
+
geometryText: ZodOptional<ZodDefault<ZodObject<{
|
|
9138
|
+
visible: ZodDefault<ZodBoolean>;
|
|
9139
|
+
}, $strip>>>;
|
|
9140
|
+
floorText: ZodOptional<ZodDefault<ZodObject<{
|
|
9141
|
+
visible: ZodDefault<ZodBoolean>;
|
|
9142
|
+
}, $strip>>>;
|
|
8994
9143
|
}, $strip>>;
|
|
8995
9144
|
models: ZodOptional<ZodObject<{
|
|
8996
9145
|
type: ZodOptional<ZodDefault<ZodLiteral<"floor.models">>>;
|
|
@@ -9069,6 +9218,12 @@ declare const floorStateSchemaStrict: ZodObject<{
|
|
|
9069
9218
|
}, $strict>;
|
|
9070
9219
|
text3d: ZodObject<{
|
|
9071
9220
|
visible: ZodDefault<ZodBoolean>;
|
|
9221
|
+
geometryText: ZodDefault<ZodObject<{
|
|
9222
|
+
visible: ZodDefault<ZodBoolean>;
|
|
9223
|
+
}, $strip>>;
|
|
9224
|
+
floorText: ZodDefault<ZodObject<{
|
|
9225
|
+
visible: ZodDefault<ZodBoolean>;
|
|
9226
|
+
}, $strip>>;
|
|
9072
9227
|
}, $strict>;
|
|
9073
9228
|
models: ZodObject<{
|
|
9074
9229
|
type: ZodDefault<ZodLiteral<"floor.models">>;
|
|
@@ -9149,7 +9304,7 @@ type TGeometryUpdateState = output<typeof geometryStateSchemaPartial>;
|
|
|
9149
9304
|
declare const labelStateSchema: ZodObject<{
|
|
9150
9305
|
type: ZodDefault<ZodLiteral<"label">>;
|
|
9151
9306
|
text: ZodString;
|
|
9152
|
-
rank: ZodCustom<"initial" |
|
|
9307
|
+
rank: ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">;
|
|
9153
9308
|
appearance: ZodCustom<LabelAppearance, LabelAppearance>;
|
|
9154
9309
|
interactive: ZodDefault<ZodBoolean>;
|
|
9155
9310
|
enabled: ZodDefault<ZodBoolean>;
|
|
@@ -9172,7 +9327,7 @@ declare const labelStateSchema: ZodObject<{
|
|
|
9172
9327
|
declare const labelStateSchemaPartial: ZodObject<{
|
|
9173
9328
|
type: ZodOptional<ZodDefault<ZodLiteral<"label">>>;
|
|
9174
9329
|
text: ZodOptional<ZodString>;
|
|
9175
|
-
rank: ZodOptional<ZodCustom<"initial" |
|
|
9330
|
+
rank: ZodOptional<ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">>;
|
|
9176
9331
|
appearance: ZodOptional<ZodCustom<LabelAppearance, LabelAppearance>>;
|
|
9177
9332
|
interactive: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9178
9333
|
enabled: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
@@ -9205,7 +9360,7 @@ type TLabelUpdateState = output<typeof labelStateSchemaPartial>;
|
|
|
9205
9360
|
/** @internal */
|
|
9206
9361
|
declare const markerStateSchema: ZodObject<{
|
|
9207
9362
|
type: ZodDefault<ZodLiteral<"marker">>;
|
|
9208
|
-
rank: ZodCustom<"initial" |
|
|
9363
|
+
rank: ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">;
|
|
9209
9364
|
placement: ZodOptional<ZodUnion<readonly [ZodEnum<{
|
|
9210
9365
|
hidden: "hidden";
|
|
9211
9366
|
top: "top";
|
|
@@ -9248,7 +9403,7 @@ declare const markerStateSchemaPartial: ZodObject<{
|
|
|
9248
9403
|
type: ZodOptional<ZodDefault<ZodLiteral<"marker">>>;
|
|
9249
9404
|
enabled: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9250
9405
|
interactive: ZodOptional<ZodDefault<ZodUnion<readonly [ZodBoolean, ZodLiteral<"pointer-events-auto">]>>>;
|
|
9251
|
-
rank: ZodOptional<ZodCustom<"initial" |
|
|
9406
|
+
rank: ZodOptional<ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">>;
|
|
9252
9407
|
occlude: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9253
9408
|
placement: ZodOptional<ZodOptional<ZodUnion<readonly [ZodEnum<{
|
|
9254
9409
|
hidden: "hidden";
|
|
@@ -9306,6 +9461,7 @@ declare const pathStateSchemaPartial: ZodObject<{
|
|
|
9306
9461
|
width: ZodOptional<ZodType<PathWidth$2, unknown, $ZodTypeInternals<PathWidth$2, unknown>>>;
|
|
9307
9462
|
completeFraction: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9308
9463
|
visible: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9464
|
+
interactive: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9309
9465
|
verticalOffset: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9310
9466
|
highlightStartFraction: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9311
9467
|
highlightEndFraction: ZodOptional<ZodDefault<ZodNumber>>;
|
|
@@ -9358,6 +9514,7 @@ declare const pathStateSchemaStrict: ZodObject<{
|
|
|
9358
9514
|
width: ZodType<PathWidth$2>;
|
|
9359
9515
|
completeFraction: ZodDefault<ZodNumber>;
|
|
9360
9516
|
visible: ZodDefault<ZodBoolean>;
|
|
9517
|
+
interactive: ZodDefault<ZodBoolean>;
|
|
9361
9518
|
verticalOffset: ZodDefault<ZodNumber>;
|
|
9362
9519
|
highlightStartFraction: ZodDefault<ZodNumber>;
|
|
9363
9520
|
highlightEndFraction: ZodDefault<ZodNumber>;
|
|
@@ -10725,7 +10882,9 @@ type TEvents = {
|
|
|
10725
10882
|
*/
|
|
10726
10883
|
'outdoor-view-loaded': undefined;
|
|
10727
10884
|
/**
|
|
10728
|
-
* Emitted when the outdoor
|
|
10885
|
+
* Emitted when the outdoor stylesheet finishes loading — on initial outdoor
|
|
10886
|
+
* load and again after `Outdoor.setStyle`. Does not fire for runtime style
|
|
10887
|
+
* mutations such as layer filters used by outdoor building covering.
|
|
10729
10888
|
*/
|
|
10730
10889
|
'outdoor-style-loaded': undefined;
|
|
10731
10890
|
/**
|
|
@@ -11619,7 +11778,7 @@ type TAddText3DOptions = AddText3DOptions$1;
|
|
|
11619
11778
|
/**
|
|
11620
11779
|
* Options for adding 3D text at an anchorable target (e.g., Coordinate).
|
|
11621
11780
|
*/
|
|
11622
|
-
type TAddText3DAnchorableOptions = AddText3DPointOptions;
|
|
11781
|
+
type TAddText3DAnchorableOptions = AddText3DPointOptions$1;
|
|
11623
11782
|
/**
|
|
11624
11783
|
* Options for controlling the behavior of an {@link Image3DView}.
|
|
11625
11784
|
*/
|
|
@@ -12875,8 +13034,8 @@ declare class Area extends DetailedMapData<AreaCollection['features'][number]> i
|
|
|
12875
13034
|
*/
|
|
12876
13035
|
get geoJSON(): {
|
|
12877
13036
|
properties: null;
|
|
12878
|
-
type:
|
|
12879
|
-
geometry:
|
|
13037
|
+
type: _mappedin_mvf_v28.FeatureType;
|
|
13038
|
+
geometry: _mappedin_mvf_v28.Polygon;
|
|
12880
13039
|
};
|
|
12881
13040
|
/** @internal */
|
|
12882
13041
|
get focusTarget(): this;
|
|
@@ -12978,8 +13137,8 @@ declare class Door extends DetailedMapData<EntranceFeature> implements IGeoJSOND
|
|
|
12978
13137
|
*/
|
|
12979
13138
|
get geoJSON(): {
|
|
12980
13139
|
properties: null;
|
|
12981
|
-
type:
|
|
12982
|
-
geometry:
|
|
13140
|
+
type: _mappedin_mvf_v28.FeatureType;
|
|
13141
|
+
geometry: _mappedin_mvf_v28.LineString;
|
|
12983
13142
|
};
|
|
12984
13143
|
/** @internal */
|
|
12985
13144
|
get focusTarget(): Coordinate;
|
|
@@ -13115,8 +13274,8 @@ declare class Space extends DetailedMapData<SpaceFeature> implements IGeoJSONDat
|
|
|
13115
13274
|
*/
|
|
13116
13275
|
get geoJSON(): {
|
|
13117
13276
|
properties: null;
|
|
13118
|
-
type:
|
|
13119
|
-
geometry:
|
|
13277
|
+
type: _mappedin_mvf_v28.FeatureType;
|
|
13278
|
+
geometry: _mappedin_mvf_v28.Point | _mappedin_mvf_v28.LineString | _mappedin_mvf_v28.Polygon;
|
|
13120
13279
|
};
|
|
13121
13280
|
/** @internal */
|
|
13122
13281
|
get focusTarget(): this | Coordinate;
|
|
@@ -13202,7 +13361,7 @@ declare class PointOfInterest extends DetailedMapData<FeatureCollection$1<Point$
|
|
|
13202
13361
|
*/
|
|
13203
13362
|
get geoJSON(): {
|
|
13204
13363
|
properties: null;
|
|
13205
|
-
type:
|
|
13364
|
+
type: _mappedin_mvf_v28.FeatureType;
|
|
13206
13365
|
geometry: Point$1;
|
|
13207
13366
|
};
|
|
13208
13367
|
/**
|
|
@@ -13316,8 +13475,8 @@ declare class Annotation extends DetailedMapData<AnnotationCollection['features'
|
|
|
13316
13475
|
*/
|
|
13317
13476
|
get geoJSON(): {
|
|
13318
13477
|
properties: null;
|
|
13319
|
-
type:
|
|
13320
|
-
geometry:
|
|
13478
|
+
type: _mappedin_mvf_v28.FeatureType;
|
|
13479
|
+
geometry: _mappedin_mvf_v28.Point;
|
|
13321
13480
|
};
|
|
13322
13481
|
/** @internal */
|
|
13323
13482
|
get focusTarget(): Coordinate;
|
|
@@ -13533,8 +13692,8 @@ declare class MapObject extends DetailedMapData<ObstructionFeature> implements I
|
|
|
13533
13692
|
*/
|
|
13534
13693
|
get geoJSON(): {
|
|
13535
13694
|
properties: null;
|
|
13536
|
-
type:
|
|
13537
|
-
geometry:
|
|
13695
|
+
type: _mappedin_mvf_v28.FeatureType;
|
|
13696
|
+
geometry: _mappedin_mvf_v28.LineString | _mappedin_mvf_v28.Polygon;
|
|
13538
13697
|
};
|
|
13539
13698
|
/** @internal */
|
|
13540
13699
|
get anchorTarget(): Coordinate;
|
|
@@ -13847,8 +14006,8 @@ declare class Node extends BaseMetaData implements IGeoJSONData, IFocusable, IAn
|
|
|
13847
14006
|
*/
|
|
13848
14007
|
get geoJSON(): {
|
|
13849
14008
|
properties: null;
|
|
13850
|
-
type:
|
|
13851
|
-
geometry:
|
|
14009
|
+
type: _mappedin_mvf_v28.FeatureType;
|
|
14010
|
+
geometry: _mappedin_mvf_v28.Point;
|
|
13852
14011
|
};
|
|
13853
14012
|
/** @internal */
|
|
13854
14013
|
get focusTarget(): Coordinate;
|
|
@@ -14296,7 +14455,7 @@ declare class EnterpriseLocation extends BaseMetaData implements Omit<Enterprise
|
|
|
14296
14455
|
parentId?: string;
|
|
14297
14456
|
});
|
|
14298
14457
|
/** @internal */
|
|
14299
|
-
get focusTarget():
|
|
14458
|
+
get focusTarget(): Coordinate[] | Space[];
|
|
14300
14459
|
/** @internal */
|
|
14301
14460
|
get navigationTarget(): Space[];
|
|
14302
14461
|
/**
|
|
@@ -14571,9 +14730,9 @@ declare class EnterpriseVenue extends BaseMetaData implements EnterpriseVenue$1
|
|
|
14571
14730
|
//#endregion
|
|
14572
14731
|
//#region src/query/types.d.ts
|
|
14573
14732
|
/**
|
|
14574
|
-
*
|
|
14733
|
+
* The map data object types that can be passed in the `include` array of a {@link Query.nearest} search.
|
|
14575
14734
|
*/
|
|
14576
|
-
type TQueriables = PointOfInterest | Door | Annotation | Node | Space | EnterpriseLocation;
|
|
14735
|
+
type TQueriables = PointOfInterest | Door | Annotation | Node | Space | EnterpriseLocation | MapObject | LocationProfile | Connection | Area | Facade;
|
|
14577
14736
|
/**
|
|
14578
14737
|
* Types that can be returned from Query.at() - geometry objects at a coordinate
|
|
14579
14738
|
*/
|
|
@@ -15904,7 +16063,7 @@ declare class MapData {
|
|
|
15904
16063
|
* console.log(`Current language: ${language.name} (${language.code})`);
|
|
15905
16064
|
* ```
|
|
15906
16065
|
*/
|
|
15907
|
-
get currentLanguage():
|
|
16066
|
+
get currentLanguage(): _mappedin_mvf_v28.Language | undefined;
|
|
15908
16067
|
/**
|
|
15909
16068
|
* Gets the natural bearing of the map.
|
|
15910
16069
|
*
|
|
@@ -15931,18 +16090,29 @@ declare class MapData {
|
|
|
15931
16090
|
* @param from The starting location(s).
|
|
15932
16091
|
* @param to The destination location(s).
|
|
15933
16092
|
* @param options Optional configuration for the directions calculation.
|
|
15934
|
-
* @returns A {@link Directions} object containing the route, or undefined if no route is found.
|
|
16093
|
+
* @returns A {@link Directions} object containing the route, or `undefined` if no route is found.
|
|
15935
16094
|
*
|
|
15936
|
-
* @
|
|
16095
|
+
* @remarks
|
|
16096
|
+
* When the origin and destination resolve to the same location — for example a {@link Coordinate}
|
|
16097
|
+
* inside a {@link Space} routed to that same space, the caller is already at the destination.
|
|
16098
|
+
* In that case a **defined** {@link Directions} is still returned, but it has a `distance` of `0`
|
|
16099
|
+
* and an empty `coordinates` array (there is no path to draw or follow).
|
|
16100
|
+
* This is distinct from `undefined`, which means no route could be found at all. To detect this case,
|
|
16101
|
+
* check `directions.coordinates.length === 0` (or `directions.distance === 0`).
|
|
16102
|
+
*
|
|
16103
|
+
* @example Get directions between two spaces, handling the "already at destination" case
|
|
15937
16104
|
* ```ts
|
|
15938
16105
|
* const space1 = mapData.getById('space', 'space-123');
|
|
15939
16106
|
* const space2 = mapData.getById('space', 'space-456');
|
|
15940
16107
|
*
|
|
15941
16108
|
* if (space1 && space2) {
|
|
15942
16109
|
* const directions = await mapData.getDirections(space1, space2);
|
|
15943
|
-
* if (directions) {
|
|
16110
|
+
* if (!directions) {
|
|
16111
|
+
* console.log('No route found');
|
|
16112
|
+
* } else if (directions.coordinates.length === 0) {
|
|
16113
|
+
* console.log('Already at destination — nothing to draw');
|
|
16114
|
+
* } else {
|
|
15944
16115
|
* console.log(`Distance: ${directions.distance}m`);
|
|
15945
|
-
* console.log(`Duration: ${directions.duration}s`);
|
|
15946
16116
|
* directions.instructions.forEach(instruction => {
|
|
15947
16117
|
* console.log(instruction.action.type);
|
|
15948
16118
|
* });
|
|
@@ -17167,7 +17337,7 @@ declare class ModelComponent {
|
|
|
17167
17337
|
/**
|
|
17168
17338
|
* The model scene that was loaded from GLB, minus the hole-fill-mesh business.
|
|
17169
17339
|
*/
|
|
17170
|
-
get modelScene(): Object3D<
|
|
17340
|
+
get modelScene(): Object3D<three1.Object3DEventMap> | Geometry3DObject3D | undefined;
|
|
17171
17341
|
position: Vector3;
|
|
17172
17342
|
get altitude(): number;
|
|
17173
17343
|
set altitude(value: number);
|
|
@@ -17697,7 +17867,7 @@ declare class CustomGeometryComponent {
|
|
|
17697
17867
|
get opacity(): number;
|
|
17698
17868
|
color: Color;
|
|
17699
17869
|
setColor(color: string): void;
|
|
17700
|
-
get position():
|
|
17870
|
+
get position(): three1.Vector3;
|
|
17701
17871
|
get altitude(): number;
|
|
17702
17872
|
set altitude(value: number);
|
|
17703
17873
|
get renderOrder(): number;
|
|
@@ -19096,7 +19266,7 @@ declare class CameraSystem extends PubSub<CameraEvents> {
|
|
|
19096
19266
|
convertZoomLevelToAltitude: (zoomLevel: number) => number;
|
|
19097
19267
|
private completeTween;
|
|
19098
19268
|
static CAMERA_FRAME_PADDING_SIDES: readonly ["top", "bottom", "left", "right"];
|
|
19099
|
-
debugContainer: Object3D<
|
|
19269
|
+
debugContainer: Object3D<three1.Object3DEventMap>;
|
|
19100
19270
|
getCameraFrameForCoordinates(pointCloud: Vector3[], options: CameraFocusOnOptions & {
|
|
19101
19271
|
padding: InsetPadding$2;
|
|
19102
19272
|
}): {
|
|
@@ -19702,6 +19872,7 @@ declare class GeometryInFocusSystem extends PubSub<{
|
|
|
19702
19872
|
private viewfinder;
|
|
19703
19873
|
private screenBoundsMap;
|
|
19704
19874
|
private screenDiagonal;
|
|
19875
|
+
private lastPublishedEntities?;
|
|
19705
19876
|
constructor(state: RendererState, camera: Camera$1);
|
|
19706
19877
|
resize(): void;
|
|
19707
19878
|
/**
|
|
@@ -19737,6 +19908,37 @@ declare class GeometryInFocusSystem extends PubSub<{
|
|
|
19737
19908
|
}
|
|
19738
19909
|
//#endregion
|
|
19739
19910
|
//#region ../renderer-three/src/systems/outdoor-layers/system.d.ts
|
|
19911
|
+
/**
|
|
19912
|
+
* Hides OSM basemap features (buildings) sitting under indoor footprints by writing a single cumulative
|
|
19913
|
+
* exclusion filter (`['!', ['in', ['id'], ['literal', ids]]]`) onto the target MapLibre layers.
|
|
19914
|
+
*
|
|
19915
|
+
* The design is dictated by how vector tiles and features relate:
|
|
19916
|
+
* - Tiles are a fixed `z/x/y` world grid; a tile's bounds are pure arithmetic (`tileToLngLatBBox`).
|
|
19917
|
+
* Footprints are world-fixed too, so the tiles that can contain a covered building are static —
|
|
19918
|
+
* only a tile overlapping a footprint can add a match (`#isTileRelevant` gate on `sourcedata`).
|
|
19919
|
+
* - Features live *inside* tiles, so new geometry only arrives via a tile load — hence recompute is
|
|
19920
|
+
* driven by `sourcedata` (with `e.tile`), not the camera. Do not gate on MapLibre `load`: that event
|
|
19921
|
+
* fires once on first settle and never again; `sourcedata` already covers pre- and post-load tiles,
|
|
19922
|
+
* and `queryRenderedFeatures` returns `[]` (safe no-op) before the style exists.
|
|
19923
|
+
* - A feature larger than a tile is clipped into per-tile fragments that all share one `id`, and
|
|
19924
|
+
* `queryRenderedFeatures` returns them per-tile (duplicate ids). So a non-match by id can flip to a
|
|
19925
|
+
* match once a *different, later-rendered* fragment arrives — non-matches must stay retryable, and
|
|
19926
|
+
* they cannot be cached by id alone.
|
|
19927
|
+
* - The layer filter is applied at bucket-populate, so a hidden feature drops out of
|
|
19928
|
+
* `queryRenderedFeatures`. `#matchedFeatureIds` is therefore the *only* record of what's hidden: it
|
|
19929
|
+
* accumulates, every `setFilter` writes the full cumulative set, and it resets only on genuine
|
|
19930
|
+
* invalidation (new polygons / style change) — otherwise prior matches un-hide and the
|
|
19931
|
+
* `setFilter → source reload → sourcedata` loop never converges.
|
|
19932
|
+
* - `queryRenderedFeatures` reflects *rendered* tiles, but `sourcedata` fires on *load*; the gap is
|
|
19933
|
+
* render lag, covered by {@link OUTDOOR_COVERING_DEBOUNCE_MS} that coalesces the tile stream.
|
|
19934
|
+
* The window stays short because matches accumulate and `setFilter` is skipped when nothing new
|
|
19935
|
+
* matched — a short debounce only batches tile arrivals, it cannot un-hide or thrash.
|
|
19936
|
+
* - The per-footprint sweep is chunked one-polygon-per-`idleQueue`-job so a many-footprint venue never
|
|
19937
|
+
* blocks the frame in a single synchronous pass. A live compute session is aborted (partial matches
|
|
19938
|
+
* rolled back, queue cleared) when a new compute takes over, so a novel tile is never lost to a
|
|
19939
|
+
* dropped in-flight request; the cumulative `setFilter` still runs once, in the queue's
|
|
19940
|
+
* `onComplete`, and only on successful completion (never after abort).
|
|
19941
|
+
*/
|
|
19740
19942
|
declare class OutdoorLayers extends PubSub<{}> {
|
|
19741
19943
|
#private;
|
|
19742
19944
|
idleQueue: IdleQueue;
|
|
@@ -19803,9 +20005,28 @@ declare class Text3DSystem extends PubSub<{
|
|
|
19803
20005
|
textSet: Set<string>;
|
|
19804
20006
|
batchedTextMap: Map<GroupContainerObject3D, Promise<BatchedText>>;
|
|
19805
20007
|
private resolvedBatchedTextMap;
|
|
20008
|
+
/**
|
|
20009
|
+
* Desired `BatchedText.visible` per parent group. Batches are created lazily over render
|
|
20010
|
+
* frames, so a toggle issued before the batch exists must be remembered here (not on the
|
|
20011
|
+
* generic GroupContainer) and applied at creation. Default when unset: `true`.
|
|
20012
|
+
*/
|
|
20013
|
+
private batchVisibleByGroup;
|
|
19806
20014
|
useWorker: boolean;
|
|
19807
20015
|
remove(id: string): void;
|
|
19808
20016
|
getBatchedText(group: GroupContainerObject3D): BatchedText | undefined;
|
|
20017
|
+
/**
|
|
20018
|
+
* Desired visibility for the `BatchedText` parented to `group`. Survives until the batch is
|
|
20019
|
+
* created; also applies immediately if a batch (or its promise) already exists.
|
|
20020
|
+
* @param group - Parent group container that owns the batch
|
|
20021
|
+
* @param visible - Whether the batch should be visible
|
|
20022
|
+
*/
|
|
20023
|
+
setBatchVisible(group: GroupContainerObject3D, visible: boolean): void;
|
|
20024
|
+
/**
|
|
20025
|
+
* Returns the durable desired visibility for `group`'s batch (`true` when never set).
|
|
20026
|
+
* @param group - Parent group container that owns the batch
|
|
20027
|
+
* @returns Desired batch visibility
|
|
20028
|
+
*/
|
|
20029
|
+
getBatchVisible(group: GroupContainerObject3D): boolean;
|
|
19809
20030
|
constructor(rendererState: RendererState, convertTo3DMapPosition: Core['convertTo3DMapPosition'], useWorker?: boolean);
|
|
19810
20031
|
update(cameraRotationRadians: number): Promise<void[] | undefined>;
|
|
19811
20032
|
/**
|
|
@@ -21361,6 +21582,14 @@ type RendererCoreOptions$2 = Partial<{
|
|
|
21361
21582
|
style?: string;
|
|
21362
21583
|
enabled: boolean;
|
|
21363
21584
|
lowDpi?: boolean;
|
|
21585
|
+
/**
|
|
21586
|
+
* Called when an outdoor tile request is rejected with an auth error (HTTP 401/403),
|
|
21587
|
+
* typically because the tiles token has expired. Should resolve to a fresh tiles token
|
|
21588
|
+
* (or `undefined` if one cannot be obtained). The renderer swaps the new token into the
|
|
21589
|
+
* tile request headers and reloads the outdoor source so the basemap recovers without a
|
|
21590
|
+
* page reload.
|
|
21591
|
+
*/
|
|
21592
|
+
refreshToken?: () => Promise<string | undefined>;
|
|
21364
21593
|
};
|
|
21365
21594
|
gl?: WebGLRenderingContext;
|
|
21366
21595
|
map?: Map$1;
|
|
@@ -21796,7 +22025,9 @@ type MapEvent = {
|
|
|
21796
22025
|
*/
|
|
21797
22026
|
'outdoor-view-loaded': undefined;
|
|
21798
22027
|
/**
|
|
21799
|
-
* If outdoor view is enabled,
|
|
22028
|
+
* If outdoor view is enabled, fired when the outdoor stylesheet finishes
|
|
22029
|
+
* loading (initial load and after `setStyle`). Not fired for runtime style
|
|
22030
|
+
* mutations such as `setFilter` from outdoor building covering.
|
|
21800
22031
|
*/
|
|
21801
22032
|
'outdoor-style-loaded': undefined;
|
|
21802
22033
|
/**
|
|
@@ -22086,21 +22317,29 @@ declare const MAPPEDIN_COLORS: {
|
|
|
22086
22317
|
//#endregion
|
|
22087
22318
|
//#region ../packages/common/Mappedin.Logger.d.ts
|
|
22088
22319
|
/**
|
|
22089
|
-
* SDK logging verbosity. Ordered from most verbose to least
|
|
22090
|
-
* enables that level plus every level after it.
|
|
22320
|
+
* SDK logging verbosity. Ordered from most verbose to least (`debug < info < warn < error`) —
|
|
22321
|
+
* selecting a level enables that level plus every level after it. `SILENT` suppresses all output.
|
|
22091
22322
|
*/
|
|
22092
22323
|
declare enum E_SDK_LOG_LEVEL {
|
|
22324
|
+
/** @deprecated Renamed to {@link E_SDK_LOG_LEVEL.DEBUG}. Kept as an alias for back-compat. */
|
|
22093
22325
|
LOG = 0,
|
|
22094
|
-
|
|
22095
|
-
|
|
22096
|
-
|
|
22326
|
+
DEBUG = 0,
|
|
22327
|
+
INFO = 1,
|
|
22328
|
+
WARN = 2,
|
|
22329
|
+
ERROR = 3,
|
|
22330
|
+
SILENT = 4,
|
|
22097
22331
|
}
|
|
22332
|
+
type TLogLevelName = 'debug' | 'info' | 'log' | 'warn' | 'error' | 'silent';
|
|
22333
|
+
/** Resolve a case-insensitive level name to an {@link E_SDK_LOG_LEVEL}; `undefined` if unrecognized. */
|
|
22334
|
+
declare function parseLogLevel(level: string): E_SDK_LOG_LEVEL | undefined;
|
|
22098
22335
|
/**
|
|
22099
22336
|
* Set the SDK's global log verbosity. Lower levels include all higher-numbered levels;
|
|
22100
|
-
* `SILENT` suppresses all output.
|
|
22101
|
-
* @param level - The desired verbosity
|
|
22337
|
+
* `SILENT` suppresses all output. Defaults to `INFO` (`DEBUG` is opt-in).
|
|
22338
|
+
* @param level - The desired verbosity: a case-insensitive level name (`'debug'`, `'info'`,
|
|
22339
|
+
* `'warn'`, `'error'`, `'silent'`) or an {@link E_SDK_LOG_LEVEL} value. An unrecognized or
|
|
22340
|
+
* out-of-range value warns rather than silently no-ops.
|
|
22102
22341
|
*/
|
|
22103
|
-
declare function setLoggerLevel(level: E_SDK_LOG_LEVEL): void;
|
|
22342
|
+
declare function setLoggerLevel(level: E_SDK_LOG_LEVEL | TLogLevelName): void;
|
|
22104
22343
|
//#endregion
|
|
22105
22344
|
//#region src/utils/convert-renderer-core-options.d.ts
|
|
22106
22345
|
/**
|
|
@@ -22141,6 +22380,12 @@ type FootprintConfig = {
|
|
|
22141
22380
|
outline: boolean;
|
|
22142
22381
|
/** Whether spaces open to below (ceiling cutouts) are enabled. */
|
|
22143
22382
|
spacesOpenToBelowEnabled: boolean;
|
|
22383
|
+
/**
|
|
22384
|
+
* Resolve the "floor above" by nearest-higher elevation instead of exact `elevation + 1`,
|
|
22385
|
+
* so open-to-below voids cut across non-contiguous ordinals (physically adjacent floors
|
|
22386
|
+
* numbered e.g. 0,1,3,5,6). See design/0001-noncontiguous-void-adjacency.md.
|
|
22387
|
+
*/
|
|
22388
|
+
disableGapFilling?: boolean;
|
|
22144
22389
|
spacesOpenToBelowVisualEffectEnabled?: boolean;
|
|
22145
22390
|
spacesOpenToBelowVisualEffectDarkenAmount?: number;
|
|
22146
22391
|
spacesOpenToBelowVisualEffectDarkenUseDepth?: boolean;
|
|
@@ -22270,8 +22515,6 @@ type TShow3DMapOptions = {
|
|
|
22270
22515
|
watermark?: TWatermarkOptions;
|
|
22271
22516
|
/**
|
|
22272
22517
|
* Options for the attribution control.
|
|
22273
|
-
*
|
|
22274
|
-
* @hidden
|
|
22275
22518
|
*/
|
|
22276
22519
|
attribution?: {
|
|
22277
22520
|
/**
|
|
@@ -22615,4 +22858,4 @@ declare const getVersion: () => string | undefined;
|
|
|
22615
22858
|
*/
|
|
22616
22859
|
declare const show3dMapGeojson: (el: HTMLElement, mapData: MapData, options?: TShow3DMapOptions) => Promise<MapView>;
|
|
22617
22860
|
//#endregion
|
|
22618
|
-
export { ACTION_TYPE, ANIMATION_TWEENS, type AddText3DOptions, 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, 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 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 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 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 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, parseMVFv2 as parseMVF, preloadFont, setLoggerLevel, setUseEnterpriseAPI, setWorkersUrl, shouldForceEnterpriseLocations, show3dMap, show3dMapGeojson, unzipAndParseMVFv2, unzipMVFv2 as unzipMVF };
|
|
22861
|
+
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 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 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 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 };
|