@mappedin/mappedin-js 6.22.0 → 6.24.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 +84 -8
- package/lib/esm/{GLTFExporter-OLQZHCIZ.js → GLTFExporter-7JO7KU2J.js} +1 -1
- package/lib/esm/{GLTFLoader-HBIO7H5X.js → GLTFLoader-YNTRF3U5.js} +1 -1
- package/lib/esm/chunk-B3VG275M.js +968 -0
- package/lib/esm/chunk-C3N7HQI7.js +661 -0
- package/lib/esm/{chunk-JVDXHWBF.js → chunk-EIF63KEB.js} +1 -1
- package/lib/esm/{chunk-NGRMTFSH.js → chunk-ITXZXFZZ.js} +1 -1
- package/lib/esm/{chunk-WQRLPX6X.js → chunk-VJRVK75J.js} +57 -57
- package/lib/esm/index.d.ts +413 -198
- package/lib/esm/index.js +1 -1
- package/lib/esm/{inspector-AMP3NR2S.js → inspector-LHEBDO45.js} +2 -2
- package/lib/esm/{internal-IGFIO7YL.js → internal-4G5ODHLV.js} +1 -1
- package/lib/esm/{src-PNDJGPPX.js → src-75CCWRAE.js} +1 -1
- package/lib/esm/{text3d-4ZJNCN6Y.js → text3d-G7QFRZO4.js} +1 -1
- package/package.json +1 -1
- package/lib/esm/chunk-HYINSTT6.js +0 -968
- package/lib/esm/chunk-Q25YCNKX.js +0 -660
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _mappedin_mvf_v22 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
|
+
import * as three0 from "three";
|
|
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";
|
|
4
6
|
import * as _mappedin_renderer_three0 from "@mappedin/renderer-three";
|
|
5
7
|
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
8
|
import * as _tweenjs_tween_js0 from "@tweenjs/tween.js";
|
|
7
|
-
import { Group, Tween } from "@tweenjs/tween.js";
|
|
9
|
+
import { Group as Group$1, Tween } from "@tweenjs/tween.js";
|
|
8
10
|
import { CustomLayerInterface, IControl, Map as Map$1, MapEventType } from "@mappedin/outdoor-context";
|
|
9
11
|
import { ANIMATION_TWEENS, PathWidth as PathWidth$2, PathWidth as PathWidth$3, enableTestMode } from "@mappedin/renderer-shared";
|
|
10
12
|
import { MatchInfo, SearchResult as SearchResult$1, Suggestion, Suggestion as Suggestion$1 } from "minisearch";
|
|
11
|
-
import * as three0 from "three";
|
|
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";
|
|
15
15
|
import "../../renderer-three/src/styles/html-controls.scss";
|
|
@@ -209,6 +209,11 @@ type TSearchOptions = {
|
|
|
209
209
|
*/
|
|
210
210
|
enabled: boolean;
|
|
211
211
|
};
|
|
212
|
+
/**
|
|
213
|
+
* A pre-resolved (typically signed) MVF bundle URL, or a function that returns one.
|
|
214
|
+
* The function form supports re-resolution when a signed URL expires.
|
|
215
|
+
*/
|
|
216
|
+
type TBundleUri = string | (() => string | Promise<string>);
|
|
212
217
|
/**
|
|
213
218
|
* Options shared by every {@link getMapData} call regardless of authentication mode.
|
|
214
219
|
* Carries the target `mapId` and optional overrides such as environment, base URL,
|
|
@@ -235,6 +240,23 @@ type TGetMapDataSharedOptions = {
|
|
|
235
240
|
* @internal
|
|
236
241
|
*/
|
|
237
242
|
customAuthUri?: string;
|
|
243
|
+
/**
|
|
244
|
+
* A pre-resolved (typically signed) MVF bundle URL, or a function that returns one.
|
|
245
|
+
*
|
|
246
|
+
* When set, credentials are optional: the SDK downloads from this URL instead of
|
|
247
|
+
* resolving one via the Mappedin API, and takes precedence over both the Maker and
|
|
248
|
+
* enterprise resolvers. Obtaining the URL remains the caller's responsibility — this
|
|
249
|
+
* is not an auth bypass.
|
|
250
|
+
*
|
|
251
|
+
* The function form supports re-resolution when a signed URL expires.
|
|
252
|
+
*
|
|
253
|
+
* Declared here as well as required on {@link TGetMapDataWithBundleUriOptions} so that
|
|
254
|
+
* combining it with credentials (`{ key, secret, mapId, bundleUri }`) survives excess
|
|
255
|
+
* property checking — without it that object matches no member of the union.
|
|
256
|
+
* @hidden
|
|
257
|
+
* @internal
|
|
258
|
+
*/
|
|
259
|
+
bundleUri?: TBundleUri;
|
|
238
260
|
/**
|
|
239
261
|
* Callback for when the Mappedin map data has been fetched and parsed as Mappedin Venue Format (MVF) data.
|
|
240
262
|
* @param mvf Parsed MVF data.
|
|
@@ -364,10 +386,25 @@ type TGetMapDataWithAccessTokenOptions = {
|
|
|
364
386
|
accessToken: string;
|
|
365
387
|
} & TGetMapDataSharedOptions;
|
|
366
388
|
/**
|
|
367
|
-
*
|
|
368
|
-
*
|
|
389
|
+
* {@link getMapData} options that supply a pre-resolved bundle URL.
|
|
390
|
+
* Credentials are optional — the URL itself is the download source.
|
|
391
|
+
* @interface
|
|
392
|
+
* @hidden
|
|
393
|
+
* @internal
|
|
394
|
+
*/
|
|
395
|
+
type TGetMapDataWithBundleUriOptions = {
|
|
396
|
+
/**
|
|
397
|
+
* A pre-resolved (typically signed) MVF bundle URL, or a function that returns one.
|
|
398
|
+
* @hidden
|
|
399
|
+
* @internal
|
|
400
|
+
*/
|
|
401
|
+
bundleUri: TBundleUri;
|
|
402
|
+
} & TGetMapDataSharedOptions;
|
|
403
|
+
/**
|
|
404
|
+
* Options accepted by {@link getMapData}. Supply credentials (`key`/`secret`) or an
|
|
405
|
+
* `accessToken` alongside the shared options.
|
|
369
406
|
*/
|
|
370
|
-
type TGetMapDataOptions = TGetMapDataWithCredentialsOptions | TGetMapDataWithAccessTokenOptions;
|
|
407
|
+
type TGetMapDataOptions = TGetMapDataWithCredentialsOptions | TGetMapDataWithAccessTokenOptions | TGetMapDataWithBundleUriOptions;
|
|
371
408
|
/**
|
|
372
409
|
* @internal
|
|
373
410
|
*/
|
|
@@ -492,6 +529,50 @@ type THydrateMapDataBundle = {
|
|
|
492
529
|
*/
|
|
493
530
|
declare const hydrateMapData: (backup: THydrateMapDataBundle | ParsedMVF, userOptions?: TGetMapDataOptions) => Promise<MapData>;
|
|
494
531
|
//#endregion
|
|
532
|
+
//#region ../packages/common/Mappedin.Logger.d.ts
|
|
533
|
+
/**
|
|
534
|
+
* SDK logging verbosity. Ordered from most verbose to least (`debug < info < warn < error`) —
|
|
535
|
+
* selecting a level enables that level plus every level after it. `SILENT` suppresses all output.
|
|
536
|
+
*/
|
|
537
|
+
declare enum E_SDK_LOG_LEVEL {
|
|
538
|
+
/** @deprecated Renamed to {@link E_SDK_LOG_LEVEL.DEBUG}. Kept as an alias for back-compat. */
|
|
539
|
+
LOG = 0,
|
|
540
|
+
DEBUG = 0,
|
|
541
|
+
INFO = 1,
|
|
542
|
+
WARN = 2,
|
|
543
|
+
ERROR = 3,
|
|
544
|
+
SILENT = 4,
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* Case-insensitive string names for {@link E_SDK_LOG_LEVEL}, accepted anywhere a log level can be set.
|
|
548
|
+
* `'log'` is a deprecated alias for `'debug'`, and `'silent'` suppresses all output.
|
|
549
|
+
*/
|
|
550
|
+
type TLogLevelName = 'debug' | 'info' | 'log' | 'warn' | 'error' | 'silent';
|
|
551
|
+
/** Resolve a case-insensitive level name to an {@link E_SDK_LOG_LEVEL}; `undefined` if unrecognized. */
|
|
552
|
+
declare function parseLogLevel(level: string): E_SDK_LOG_LEVEL | undefined;
|
|
553
|
+
/**
|
|
554
|
+
* Set the SDK's global log verbosity. Lower levels include all higher-numbered levels;
|
|
555
|
+
* `SILENT` suppresses all output. Defaults to `INFO` (`DEBUG` is opt-in).
|
|
556
|
+
* @param level - The desired verbosity: a case-insensitive level name (`'debug'`, `'info'`,
|
|
557
|
+
* `'warn'`, `'error'`, `'silent'`) or an {@link E_SDK_LOG_LEVEL} value. An unrecognized or
|
|
558
|
+
* out-of-range value warns rather than silently no-ops.
|
|
559
|
+
*/
|
|
560
|
+
declare function setLoggerLevel(level: E_SDK_LOG_LEVEL | TLogLevelName): void;
|
|
561
|
+
//#endregion
|
|
562
|
+
//#region ../packages/common/errors.d.ts
|
|
563
|
+
/**
|
|
564
|
+
* @internal
|
|
565
|
+
*/
|
|
566
|
+
declare class MappedinError extends Error {
|
|
567
|
+
constructor(message: string, label?: string);
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* @internal
|
|
571
|
+
*/
|
|
572
|
+
declare class MappedinRenderError extends MappedinError {
|
|
573
|
+
constructor(message: string, label?: string);
|
|
574
|
+
}
|
|
575
|
+
//#endregion
|
|
495
576
|
//#region ../packages/common/async.d.ts
|
|
496
577
|
/**
|
|
497
578
|
* A debounced function with a cancel method
|
|
@@ -504,6 +585,111 @@ interface DebouncedFunction<T$1 extends (...args: any[]) => void> {
|
|
|
504
585
|
cancel: () => void;
|
|
505
586
|
}
|
|
506
587
|
//#endregion
|
|
588
|
+
//#region ../packages/common/pubsub.d.ts
|
|
589
|
+
/**
|
|
590
|
+
* Generic PubSub class implementing the Publish-Subscribe pattern for event handling.
|
|
591
|
+
*
|
|
592
|
+
* @template EVENT_PAYLOAD - The type of the event payload.
|
|
593
|
+
* @template EVENT - The type of the event.
|
|
594
|
+
*/
|
|
595
|
+
declare class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD = keyof EVENT_PAYLOAD> {
|
|
596
|
+
/**
|
|
597
|
+
* @private
|
|
598
|
+
* @internal
|
|
599
|
+
*/
|
|
600
|
+
private _subscribers;
|
|
601
|
+
/**
|
|
602
|
+
* @private
|
|
603
|
+
* @internal
|
|
604
|
+
* AbortController for managing lifecycle and cleanup
|
|
605
|
+
*/
|
|
606
|
+
private _abortController;
|
|
607
|
+
/**
|
|
608
|
+
* Returns the AbortSignal for this PubSub instance.
|
|
609
|
+
* Use this signal with APIs that support cancellation (fetch, addEventListener, etc.)
|
|
610
|
+
* When the PubSub is destroyed, the signal will be aborted and all listeners using it will be automatically removed.
|
|
611
|
+
*
|
|
612
|
+
* @example
|
|
613
|
+
* ```typescript
|
|
614
|
+
* // Automatically cleaned up when PubSub is destroyed
|
|
615
|
+
* pubsub.addEventListener(window, 'resize', handler, { signal: pubsub.signal });
|
|
616
|
+
* ```
|
|
617
|
+
*/
|
|
618
|
+
get signal(): AbortSignal;
|
|
619
|
+
/**
|
|
620
|
+
* @private
|
|
621
|
+
* @internal
|
|
622
|
+
*/
|
|
623
|
+
publish<EVENT_NAME extends EVENT>(eventName: EVENT_NAME, data?: EVENT_PAYLOAD[EVENT_NAME]): void;
|
|
624
|
+
/**
|
|
625
|
+
* Subscribe a function to be called when the signal is aborted.
|
|
626
|
+
* @param fn The function to call when the signal is aborted.
|
|
627
|
+
*/
|
|
628
|
+
onAbort<T$1 extends (...args: any[]) => void>(fn: T$1): void;
|
|
629
|
+
/**
|
|
630
|
+
* Subscribe a function to an event.
|
|
631
|
+
*
|
|
632
|
+
* @param eventName An event name which, when fired, will call the provided
|
|
633
|
+
* function.
|
|
634
|
+
* @param fn A callback that gets called when the corresponding event is fired. The
|
|
635
|
+
* callback will get passed an argument with a type that's one of event payloads.
|
|
636
|
+
* @param options Optional options object. If a signal is provided, the subscription will be
|
|
637
|
+
* automatically cleaned up when that signal is aborted.
|
|
638
|
+
* @returns A cleanup function that unsubscribes the event listener when called.
|
|
639
|
+
* @example
|
|
640
|
+
* // Subscribe to the 'click' event
|
|
641
|
+
* const handler = (event) => {
|
|
642
|
+
* const { coordinate } = event;
|
|
643
|
+
* const { latitude, longitude } = coordinate;
|
|
644
|
+
* console.log(`Map was clicked at ${latitude}, ${longitude}`);
|
|
645
|
+
* };
|
|
646
|
+
* map.on('click', handler);
|
|
647
|
+
*/
|
|
648
|
+
on<EVENT_NAME extends EVENT>(eventName: EVENT_NAME, fn: (payload: EVENT_PAYLOAD[EVENT_NAME] extends {
|
|
649
|
+
data: null;
|
|
650
|
+
} ? EVENT_PAYLOAD[EVENT_NAME]['data'] : EVENT_PAYLOAD[EVENT_NAME]) => void, options?: {
|
|
651
|
+
signal?: AbortSignal;
|
|
652
|
+
}): () => void;
|
|
653
|
+
/**
|
|
654
|
+
* Unsubscribe a function previously subscribed with {@link on}
|
|
655
|
+
*
|
|
656
|
+
* @param eventName An event name to which the provided function was previously
|
|
657
|
+
* subscribed.
|
|
658
|
+
* @param fn A function that was previously passed to {@link on}. The function must
|
|
659
|
+
* have the same reference as the function that was subscribed.
|
|
660
|
+
* @example
|
|
661
|
+
* // Unsubscribe from the 'click' event
|
|
662
|
+
* const handler = (event) => {
|
|
663
|
+
* console.log('Map was clicked', event);
|
|
664
|
+
* };
|
|
665
|
+
* map.off('click', handler);
|
|
666
|
+
*/
|
|
667
|
+
off<EVENT_NAME extends EVENT>(eventName: EVENT_NAME, fn: (payload: EVENT_PAYLOAD[EVENT_NAME] extends {
|
|
668
|
+
data: null;
|
|
669
|
+
} ? EVENT_PAYLOAD[EVENT_NAME]['data'] : EVENT_PAYLOAD[EVENT_NAME]) => void): void;
|
|
670
|
+
/**
|
|
671
|
+
* @private
|
|
672
|
+
* @internal
|
|
673
|
+
* Destroys the PubSub instance and automatically unsubscribes all listeners registered via on().
|
|
674
|
+
*/
|
|
675
|
+
destroy(): void;
|
|
676
|
+
}
|
|
677
|
+
//#endregion
|
|
678
|
+
//#region ../packages/common/interpolate.d.ts
|
|
679
|
+
declare const EASING_CURVES: readonly ["ease-in", "ease-out", "ease-in-out", "linear", "ease-out-cubic"];
|
|
680
|
+
/**
|
|
681
|
+
* The set of easing curves that can be applied when interpolating a value.
|
|
682
|
+
*
|
|
683
|
+
* - `linear`: constant rate of change from start to end.
|
|
684
|
+
* - `ease-in`: starts slowly, then accelerates.
|
|
685
|
+
* - `ease-out`: starts quickly, then decelerates.
|
|
686
|
+
* - `ease-in-out`: starts slowly, accelerates through the middle, then decelerates.
|
|
687
|
+
* - `ease-out-cubic`: a stronger ease-out using a cubic curve.
|
|
688
|
+
*
|
|
689
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timing-function
|
|
690
|
+
*/
|
|
691
|
+
type EasingCurve = (typeof EASING_CURVES)[number];
|
|
692
|
+
//#endregion
|
|
507
693
|
//#region src/analytics/customer.d.ts
|
|
508
694
|
/**
|
|
509
695
|
* Valid track-analytics API contexts. These should match the expected values of that endpoint or the requests will fail.
|
|
@@ -3147,6 +3333,7 @@ declare const labelAppearanceSchemaBase: ZodObject<{
|
|
|
3147
3333
|
easing: ZodDefault<ZodString>;
|
|
3148
3334
|
}, $strip>]>>;
|
|
3149
3335
|
iconPadding: ZodDefault<ZodNumber>;
|
|
3336
|
+
iconBorderRadiusFactor: ZodDefault<ZodNumber>;
|
|
3150
3337
|
iconFit: ZodDefault<ZodEnum<{
|
|
3151
3338
|
fill: "fill";
|
|
3152
3339
|
contain: "contain";
|
|
@@ -3191,8 +3378,9 @@ declare const labelAppearanceSchemaBase: ZodObject<{
|
|
|
3191
3378
|
* | `iconSize` | `number` | Size of the icon in pixels. Requires `icon` to be set. | 20 |
|
|
3192
3379
|
* | `iconScale` | `number` \| {@link Interpolation} | Scale the icon uniformly. Specify a number or an {@link Interpolation} object. | 1 |
|
|
3193
3380
|
* | `iconPadding` | `number` | Padding between the icon and the pin's border in pixels. | 2 |
|
|
3381
|
+
* | `iconBorderRadiusFactor` | `number` | How round the icon pin's corners are, as a fraction of half the pin's size. `1` is a circle, `0` is a square. | 1 |
|
|
3194
3382
|
* | `iconFit` | `'fill'` \| `'contain'` \| `'cover'` | How the icon should fit inside the pin. Options: `fill` (stretch to fill), `cover` (maintain aspect ratio and fill), `contain` (maintain aspect ratio and fit inside). | `cover` |
|
|
3195
|
-
* | `iconOverflow` | `'visible'` \| `'hidden'` | Whether the icon should overflow the
|
|
3383
|
+
* | `iconOverflow` | `'visible'` \| `'hidden'` | Whether the icon should overflow the pin shape. | `hidden` |
|
|
3196
3384
|
* | `iconVisible` | `boolean` \| `number` | Controls icon visibility. If boolean, directly shows/hides the icon. If number, defines the zoom level at which the icon becomes visible. | `true` |
|
|
3197
3385
|
* | `opacity` | `number` | The opacity of the Label when it is enabled and visible. | `1` |
|
|
3198
3386
|
*
|
|
@@ -3254,6 +3442,7 @@ declare const labelAppearanceSchema: ZodPipe<ZodObject<{
|
|
|
3254
3442
|
easing: ZodDefault<ZodString>;
|
|
3255
3443
|
}, $strip>]>>;
|
|
3256
3444
|
iconPadding: ZodDefault<ZodNumber>;
|
|
3445
|
+
iconBorderRadiusFactor: ZodDefault<ZodNumber>;
|
|
3257
3446
|
iconFit: ZodDefault<ZodEnum<{
|
|
3258
3447
|
fill: "fill";
|
|
3259
3448
|
contain: "contain";
|
|
@@ -3291,6 +3480,7 @@ declare const labelAppearanceSchema: ZodPipe<ZodObject<{
|
|
|
3291
3480
|
easing: string;
|
|
3292
3481
|
};
|
|
3293
3482
|
iconPadding: number;
|
|
3483
|
+
iconBorderRadiusFactor: number;
|
|
3294
3484
|
iconFit: "fill" | "contain" | "cover";
|
|
3295
3485
|
iconOverflow: "hidden" | "visible";
|
|
3296
3486
|
iconVisible: number | boolean;
|
|
@@ -3656,96 +3846,6 @@ type Entity2DHTMLDivElement = HTMLDivElement & {
|
|
|
3656
3846
|
};
|
|
3657
3847
|
};
|
|
3658
3848
|
//#endregion
|
|
3659
|
-
//#region ../packages/common/pubsub.d.ts
|
|
3660
|
-
/**
|
|
3661
|
-
* Generic PubSub class implementing the Publish-Subscribe pattern for event handling.
|
|
3662
|
-
*
|
|
3663
|
-
* @template EVENT_PAYLOAD - The type of the event payload.
|
|
3664
|
-
* @template EVENT - The type of the event.
|
|
3665
|
-
*/
|
|
3666
|
-
declare class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD = keyof EVENT_PAYLOAD> {
|
|
3667
|
-
/**
|
|
3668
|
-
* @private
|
|
3669
|
-
* @internal
|
|
3670
|
-
*/
|
|
3671
|
-
private _subscribers;
|
|
3672
|
-
/**
|
|
3673
|
-
* @private
|
|
3674
|
-
* @internal
|
|
3675
|
-
* AbortController for managing lifecycle and cleanup
|
|
3676
|
-
*/
|
|
3677
|
-
private _abortController;
|
|
3678
|
-
/**
|
|
3679
|
-
* Returns the AbortSignal for this PubSub instance.
|
|
3680
|
-
* Use this signal with APIs that support cancellation (fetch, addEventListener, etc.)
|
|
3681
|
-
* When the PubSub is destroyed, the signal will be aborted and all listeners using it will be automatically removed.
|
|
3682
|
-
*
|
|
3683
|
-
* @example
|
|
3684
|
-
* ```typescript
|
|
3685
|
-
* // Automatically cleaned up when PubSub is destroyed
|
|
3686
|
-
* pubsub.addEventListener(window, 'resize', handler, { signal: pubsub.signal });
|
|
3687
|
-
* ```
|
|
3688
|
-
*/
|
|
3689
|
-
get signal(): AbortSignal;
|
|
3690
|
-
/**
|
|
3691
|
-
* @private
|
|
3692
|
-
* @internal
|
|
3693
|
-
*/
|
|
3694
|
-
publish<EVENT_NAME extends EVENT>(eventName: EVENT_NAME, data?: EVENT_PAYLOAD[EVENT_NAME]): void;
|
|
3695
|
-
/**
|
|
3696
|
-
* Subscribe a function to be called when the signal is aborted.
|
|
3697
|
-
* @param fn The function to call when the signal is aborted.
|
|
3698
|
-
*/
|
|
3699
|
-
onAbort<T$1 extends (...args: any[]) => void>(fn: T$1): void;
|
|
3700
|
-
/**
|
|
3701
|
-
* Subscribe a function to an event.
|
|
3702
|
-
*
|
|
3703
|
-
* @param eventName An event name which, when fired, will call the provided
|
|
3704
|
-
* function.
|
|
3705
|
-
* @param fn A callback that gets called when the corresponding event is fired. The
|
|
3706
|
-
* callback will get passed an argument with a type that's one of event payloads.
|
|
3707
|
-
* @param options Optional options object. If a signal is provided, the subscription will be
|
|
3708
|
-
* automatically cleaned up when that signal is aborted.
|
|
3709
|
-
* @returns A cleanup function that unsubscribes the event listener when called.
|
|
3710
|
-
* @example
|
|
3711
|
-
* // Subscribe to the 'click' event
|
|
3712
|
-
* const handler = (event) => {
|
|
3713
|
-
* const { coordinate } = event;
|
|
3714
|
-
* const { latitude, longitude } = coordinate;
|
|
3715
|
-
* console.log(`Map was clicked at ${latitude}, ${longitude}`);
|
|
3716
|
-
* };
|
|
3717
|
-
* map.on('click', handler);
|
|
3718
|
-
*/
|
|
3719
|
-
on<EVENT_NAME extends EVENT>(eventName: EVENT_NAME, fn: (payload: EVENT_PAYLOAD[EVENT_NAME] extends {
|
|
3720
|
-
data: null;
|
|
3721
|
-
} ? EVENT_PAYLOAD[EVENT_NAME]['data'] : EVENT_PAYLOAD[EVENT_NAME]) => void, options?: {
|
|
3722
|
-
signal?: AbortSignal;
|
|
3723
|
-
}): () => void;
|
|
3724
|
-
/**
|
|
3725
|
-
* Unsubscribe a function previously subscribed with {@link on}
|
|
3726
|
-
*
|
|
3727
|
-
* @param eventName An event name to which the provided function was previously
|
|
3728
|
-
* subscribed.
|
|
3729
|
-
* @param fn A function that was previously passed to {@link on}. The function must
|
|
3730
|
-
* have the same reference as the function that was subscribed.
|
|
3731
|
-
* @example
|
|
3732
|
-
* // Unsubscribe from the 'click' event
|
|
3733
|
-
* const handler = (event) => {
|
|
3734
|
-
* console.log('Map was clicked', event);
|
|
3735
|
-
* };
|
|
3736
|
-
* map.off('click', handler);
|
|
3737
|
-
*/
|
|
3738
|
-
off<EVENT_NAME extends EVENT>(eventName: EVENT_NAME, fn: (payload: EVENT_PAYLOAD[EVENT_NAME] extends {
|
|
3739
|
-
data: null;
|
|
3740
|
-
} ? EVENT_PAYLOAD[EVENT_NAME]['data'] : EVENT_PAYLOAD[EVENT_NAME]) => void): void;
|
|
3741
|
-
/**
|
|
3742
|
-
* @private
|
|
3743
|
-
* @internal
|
|
3744
|
-
* Destroys the PubSub instance and automatically unsubscribes all listeners registered via on().
|
|
3745
|
-
*/
|
|
3746
|
-
destroy(): void;
|
|
3747
|
-
}
|
|
3748
|
-
//#endregion
|
|
3749
3849
|
//#region ../2d-labels-markers/lib/esm/systems/collision/system.d.ts
|
|
3750
3850
|
type TCollisionSystemEvent = {
|
|
3751
3851
|
'visibility-changed': undefined;
|
|
@@ -4256,8 +4356,12 @@ declare class TokenManager {
|
|
|
4256
4356
|
/**
|
|
4257
4357
|
* Get an access token for the current set of API keys. If an access token was passed in, that
|
|
4258
4358
|
* will be returned instead.
|
|
4359
|
+
* @param forceRefresh - When `true`, bypass any cached token and fetch a fresh one. Useful for
|
|
4360
|
+
* recovering from a rejected (e.g. expired) token even if the local expiry bookkeeping still
|
|
4361
|
+
* considers it valid.
|
|
4362
|
+
* @default forceRefresh false
|
|
4259
4363
|
*/
|
|
4260
|
-
getAccessTokenAsync(): Promise<TokenWithExpiration>;
|
|
4364
|
+
getAccessTokenAsync(forceRefresh?: boolean): Promise<TokenWithExpiration>;
|
|
4261
4365
|
/**
|
|
4262
4366
|
* Get SAS tokens for all maps. If any SAS token are expired, all SAS tokens will be refreshed.
|
|
4263
4367
|
*/
|
|
@@ -4504,21 +4608,6 @@ declare class Path implements IFocusable {
|
|
|
4504
4608
|
};
|
|
4505
4609
|
}
|
|
4506
4610
|
//#endregion
|
|
4507
|
-
//#region ../packages/common/interpolate.d.ts
|
|
4508
|
-
declare const EASING_CURVES: readonly ["ease-in", "ease-out", "ease-in-out", "linear", "ease-out-cubic"];
|
|
4509
|
-
/**
|
|
4510
|
-
* The set of easing curves that can be applied when interpolating a value.
|
|
4511
|
-
*
|
|
4512
|
-
* - `linear`: constant rate of change from start to end.
|
|
4513
|
-
* - `ease-in`: starts slowly, then accelerates.
|
|
4514
|
-
* - `ease-out`: starts quickly, then decelerates.
|
|
4515
|
-
* - `ease-in-out`: starts slowly, accelerates through the middle, then decelerates.
|
|
4516
|
-
* - `ease-out-cubic`: a stronger ease-out using a cubic curve.
|
|
4517
|
-
*
|
|
4518
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timing-function
|
|
4519
|
-
*/
|
|
4520
|
-
type EasingCurve = (typeof EASING_CURVES)[number];
|
|
4521
|
-
//#endregion
|
|
4522
4611
|
//#region src/navigation/tethered.d.ts
|
|
4523
4612
|
/**
|
|
4524
4613
|
* Preset visual styles for the connector line drawn from the tracked
|
|
@@ -5235,7 +5324,14 @@ declare class FloorObject implements FloorProperties {
|
|
|
5235
5324
|
buildGapFootprint(gapHeight: number, ceilingCuts: Feature$1<Polygon$1, any>[]): void;
|
|
5236
5325
|
getFootprintStyle(): LineStringStyleWithTopColor;
|
|
5237
5326
|
buildFootprint(): void;
|
|
5238
|
-
|
|
5327
|
+
/**
|
|
5328
|
+
* Toggle the consumer geometryText batch (`geometryText-${id}` — labelAll / Text3D.add).
|
|
5329
|
+
* Delegates to Text3DSystem.setBatchVisible so a toggle issued before the lazily-built batch
|
|
5330
|
+
* exists survives.
|
|
5331
|
+
*/
|
|
5332
|
+
setGeometryTextBatchVisible(visible: boolean): void;
|
|
5333
|
+
/** Toggle the baked floorText batch (`floortext-${id}`). Same durable-intent mechanism. */
|
|
5334
|
+
setFloorTextBatchVisible(visible: boolean): void;
|
|
5239
5335
|
}
|
|
5240
5336
|
//#endregion
|
|
5241
5337
|
//#region src/api-geojson/floor-stack-object.d.ts
|
|
@@ -5283,6 +5379,20 @@ declare class FloorStackObject implements Omit<FloorStack$1, 'maps' | 'floors' |
|
|
|
5283
5379
|
}
|
|
5284
5380
|
//#endregion
|
|
5285
5381
|
//#region src/api-geojson/map-object.d.ts
|
|
5382
|
+
/**
|
|
5383
|
+
* Handler that intercepts `setFloor` between `floor-change-start` and the internal
|
|
5384
|
+
* commit (currentFloor assignment + `floor-change` emission). Replaces the default
|
|
5385
|
+
* `processFloorChange` + `setVisible` path entirely while installed.
|
|
5386
|
+
*
|
|
5387
|
+
* A handler may run synchronously or return a promise. `setFloor` only
|
|
5388
|
+
* defers the floor-change commit when the handler actually returns a thenable — a synchronous
|
|
5389
|
+
* handler commits inline, with no microtask, so callers that do no async work don't pay an await.
|
|
5390
|
+
*/
|
|
5391
|
+
type SetFloorHandler = (floor: Floor, context: {
|
|
5392
|
+
reason?: TFloorChangeReason;
|
|
5393
|
+
previousFloor?: Floor;
|
|
5394
|
+
signal: AbortSignal;
|
|
5395
|
+
}) => void | Promise<void>;
|
|
5286
5396
|
declare class GeojsonApiMapObject extends PubSub<{
|
|
5287
5397
|
'floor-change': {
|
|
5288
5398
|
reason?: TFloorChangeReason;
|
|
@@ -5314,7 +5424,13 @@ declare class GeojsonApiMapObject extends PubSub<{
|
|
|
5314
5424
|
get currentFloor(): FloorObject;
|
|
5315
5425
|
/** @deprecated use `currentFloorStack.floorObjects` or `floorsById` instead */
|
|
5316
5426
|
get floors(): FloorObject[];
|
|
5317
|
-
|
|
5427
|
+
/**
|
|
5428
|
+
* @param fromStackId - the stack we're transitioning *from* (the previously-committed stack).
|
|
5429
|
+
* Passed explicitly rather than read off `currentFloorStackId` because the latter now reflects
|
|
5430
|
+
* intent — it already points at the target stack by the time this runs, so it can't tell us
|
|
5431
|
+
* whether this is a cross-stack transition.
|
|
5432
|
+
*/
|
|
5433
|
+
processFloorChange(floorId: string, fromStackId: string): void;
|
|
5318
5434
|
/**
|
|
5319
5435
|
* Merges the given effect fields into the stored multiFloorView options
|
|
5320
5436
|
* and re-applies floor states so the change is visible immediately.
|
|
@@ -7495,15 +7611,31 @@ declare class MapView {
|
|
|
7495
7611
|
/**
|
|
7496
7612
|
* @internal
|
|
7497
7613
|
* @hidden
|
|
7498
|
-
*
|
|
7614
|
+
* When `true`, floor changes skip the automatic hide-other-floors logic, leaving floor
|
|
7615
|
+
* visibility under the caller's control. Derived from whether a setFloor handler is installed: a
|
|
7616
|
+
* real {@link __EXPERIMENTAL__overrideSetFloorHandler} handler reports `true` here too.
|
|
7499
7617
|
*/
|
|
7500
7618
|
get manualFloorVisibility(): boolean;
|
|
7501
7619
|
/**
|
|
7502
7620
|
* @internal
|
|
7503
7621
|
* @hidden
|
|
7504
|
-
*
|
|
7622
|
+
* When `true`, floor changes skip the automatic hide-other-floors logic, leaving floor
|
|
7623
|
+
* visibility under the caller's control. Setting `true` installs a synchronous no-op handler when
|
|
7624
|
+
* none exists (a real handler is left untouched); setting `false` clears the handler — "not
|
|
7625
|
+
* manual" means no handler.
|
|
7505
7626
|
*/
|
|
7506
7627
|
set manualFloorVisibility(value: boolean);
|
|
7628
|
+
/**
|
|
7629
|
+
* **Super experimental — this API may change or be removed in any release without notice.
|
|
7630
|
+
* Do not depend on it in production.**
|
|
7631
|
+
*
|
|
7632
|
+
* Last-writer-wins: installing while one is already registered logs a warning and replaces it.
|
|
7633
|
+
* Pass `undefined` to clear.
|
|
7634
|
+
*
|
|
7635
|
+
* @internal
|
|
7636
|
+
* @hidden
|
|
7637
|
+
*/
|
|
7638
|
+
__EXPERIMENTAL__overrideSetFloorHandler(handler: SetFloorHandler | undefined): void;
|
|
7507
7639
|
/**
|
|
7508
7640
|
* @internal
|
|
7509
7641
|
* @hidden
|
|
@@ -8006,7 +8138,7 @@ type CurrentMapGetter$6 = () => GeojsonApiMapObject | undefined;
|
|
|
8006
8138
|
* - Automatic rotation and positioning
|
|
8007
8139
|
* - Batch operations for adding all labels at once
|
|
8008
8140
|
*
|
|
8009
|
-
* > **Best Practice:** Use the `rank` option to control label visibility priority. Use `interactive: true` to enable click/hover events for important labels.
|
|
8141
|
+
* > **Best Practice:** Use the `rank` option to control label visibility priority. Use `interactive: true` to enable click/hover events for important labels. Prefer `low` / `medium` / `high` when labels should yield to BlueDot's `enable2DCollisions` shield — `always-visible` labels never yield and can still cover the BlueDot.
|
|
8010
8142
|
*
|
|
8011
8143
|
* ### Example Usage
|
|
8012
8144
|
* ```ts
|
|
@@ -9123,6 +9255,12 @@ declare const floorStateSchemaPartial: ZodObject<{
|
|
|
9123
9255
|
}, $strip>>;
|
|
9124
9256
|
text3d: ZodOptional<ZodObject<{
|
|
9125
9257
|
visible: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9258
|
+
geometryText: ZodOptional<ZodDefault<ZodObject<{
|
|
9259
|
+
visible: ZodDefault<ZodBoolean>;
|
|
9260
|
+
}, $strip>>>;
|
|
9261
|
+
floorText: ZodOptional<ZodDefault<ZodObject<{
|
|
9262
|
+
visible: ZodDefault<ZodBoolean>;
|
|
9263
|
+
}, $strip>>>;
|
|
9126
9264
|
}, $strip>>;
|
|
9127
9265
|
models: ZodOptional<ZodObject<{
|
|
9128
9266
|
type: ZodOptional<ZodDefault<ZodLiteral<"floor.models">>>;
|
|
@@ -9201,6 +9339,12 @@ declare const floorStateSchemaStrict: ZodObject<{
|
|
|
9201
9339
|
}, $strict>;
|
|
9202
9340
|
text3d: ZodObject<{
|
|
9203
9341
|
visible: ZodDefault<ZodBoolean>;
|
|
9342
|
+
geometryText: ZodDefault<ZodObject<{
|
|
9343
|
+
visible: ZodDefault<ZodBoolean>;
|
|
9344
|
+
}, $strip>>;
|
|
9345
|
+
floorText: ZodDefault<ZodObject<{
|
|
9346
|
+
visible: ZodDefault<ZodBoolean>;
|
|
9347
|
+
}, $strip>>;
|
|
9204
9348
|
}, $strict>;
|
|
9205
9349
|
models: ZodObject<{
|
|
9206
9350
|
type: ZodDefault<ZodLiteral<"floor.models">>;
|
|
@@ -9281,7 +9425,7 @@ type TGeometryUpdateState = output<typeof geometryStateSchemaPartial>;
|
|
|
9281
9425
|
declare const labelStateSchema: ZodObject<{
|
|
9282
9426
|
type: ZodDefault<ZodLiteral<"label">>;
|
|
9283
9427
|
text: ZodString;
|
|
9284
|
-
rank: ZodCustom<
|
|
9428
|
+
rank: ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>;
|
|
9285
9429
|
appearance: ZodCustom<LabelAppearance, LabelAppearance>;
|
|
9286
9430
|
interactive: ZodDefault<ZodBoolean>;
|
|
9287
9431
|
enabled: ZodDefault<ZodBoolean>;
|
|
@@ -9304,7 +9448,7 @@ declare const labelStateSchema: ZodObject<{
|
|
|
9304
9448
|
declare const labelStateSchemaPartial: ZodObject<{
|
|
9305
9449
|
type: ZodOptional<ZodDefault<ZodLiteral<"label">>>;
|
|
9306
9450
|
text: ZodOptional<ZodString>;
|
|
9307
|
-
rank: ZodOptional<ZodCustom<
|
|
9451
|
+
rank: ZodOptional<ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>>;
|
|
9308
9452
|
appearance: ZodOptional<ZodCustom<LabelAppearance, LabelAppearance>>;
|
|
9309
9453
|
interactive: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9310
9454
|
enabled: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
@@ -9337,7 +9481,7 @@ type TLabelUpdateState = output<typeof labelStateSchemaPartial>;
|
|
|
9337
9481
|
/** @internal */
|
|
9338
9482
|
declare const markerStateSchema: ZodObject<{
|
|
9339
9483
|
type: ZodDefault<ZodLiteral<"marker">>;
|
|
9340
|
-
rank: ZodCustom<
|
|
9484
|
+
rank: ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>;
|
|
9341
9485
|
placement: ZodOptional<ZodUnion<readonly [ZodEnum<{
|
|
9342
9486
|
hidden: "hidden";
|
|
9343
9487
|
top: "top";
|
|
@@ -9379,7 +9523,9 @@ declare const markerStateSchema: ZodObject<{
|
|
|
9379
9523
|
declare const markerStateSchemaPartial: ZodObject<{
|
|
9380
9524
|
type: ZodOptional<ZodDefault<ZodLiteral<"marker">>>;
|
|
9381
9525
|
enabled: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9382
|
-
|
|
9526
|
+
interactive: ZodOptional<ZodDefault<ZodUnion<readonly [ZodBoolean, ZodLiteral<"pointer-events-auto">]>>>;
|
|
9527
|
+
rank: ZodOptional<ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>>;
|
|
9528
|
+
occlude: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9383
9529
|
placement: ZodOptional<ZodOptional<ZodUnion<readonly [ZodEnum<{
|
|
9384
9530
|
hidden: "hidden";
|
|
9385
9531
|
top: "top";
|
|
@@ -9403,7 +9549,6 @@ declare const markerStateSchemaPartial: ZodObject<{
|
|
|
9403
9549
|
"bottom-left": "bottom-left";
|
|
9404
9550
|
"bottom-right": "bottom-right";
|
|
9405
9551
|
}>>]>>>;
|
|
9406
|
-
interactive: ZodOptional<ZodDefault<ZodUnion<readonly [ZodBoolean, ZodLiteral<"pointer-events-auto">]>>>;
|
|
9407
9552
|
dynamicResize: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9408
9553
|
zIndex: ZodOptional<ZodOptional<ZodNumber>>;
|
|
9409
9554
|
lowPriorityPin: ZodOptional<ZodOptional<ZodObject<{
|
|
@@ -9412,7 +9557,6 @@ declare const markerStateSchemaPartial: ZodObject<{
|
|
|
9412
9557
|
color: ZodOptional<ZodString>;
|
|
9413
9558
|
}, $strip>>>;
|
|
9414
9559
|
contentHTML: ZodOptional<ZodString>;
|
|
9415
|
-
occlude: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9416
9560
|
animated: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9417
9561
|
}, $strip>;
|
|
9418
9562
|
/**
|
|
@@ -9847,6 +9991,14 @@ declare class GeoJsonApi extends PubSub<TNavigationEvents> {
|
|
|
9847
9991
|
* MapView.on() and MapView.off().
|
|
9848
9992
|
*/
|
|
9849
9993
|
externalPubSub: PubSub<TEvents>;
|
|
9994
|
+
get __EXPERIMENTAL__floorHandler(): SetFloorHandler | undefined;
|
|
9995
|
+
__EXPERIMENTAL__overrideSetFloorHandler(handler: SetFloorHandler | undefined): void;
|
|
9996
|
+
/**
|
|
9997
|
+
* Whether floor changes skip the automatic hide-other-floors logic, leaving floor visibility
|
|
9998
|
+
* under the caller's control. Derived state: a handler is installed ⇒ manual; no handler ⇒ not
|
|
9999
|
+
* manual. A real override handler (e.g. dynamic-focus) implies manual visibility; the setter
|
|
10000
|
+
* below installs a synchronous no-op for the flag-only case.
|
|
10001
|
+
*/
|
|
9850
10002
|
get manualFloorVisibility(): boolean;
|
|
9851
10003
|
set manualFloorVisibility(value: boolean);
|
|
9852
10004
|
get hidePathsNotOnCurrentFloor(): boolean;
|
|
@@ -10665,20 +10817,6 @@ declare class Text3DView {
|
|
|
10665
10817
|
static is(instance: object): instance is Text3DView;
|
|
10666
10818
|
}
|
|
10667
10819
|
//#endregion
|
|
10668
|
-
//#region ../packages/common/errors.d.ts
|
|
10669
|
-
/**
|
|
10670
|
-
* @internal
|
|
10671
|
-
*/
|
|
10672
|
-
declare class MappedinError extends Error {
|
|
10673
|
-
constructor(message: string, label?: string);
|
|
10674
|
-
}
|
|
10675
|
-
/**
|
|
10676
|
-
* @internal
|
|
10677
|
-
*/
|
|
10678
|
-
declare class MappedinRenderError extends MappedinError {
|
|
10679
|
-
constructor(message: string, label?: string);
|
|
10680
|
-
}
|
|
10681
|
-
//#endregion
|
|
10682
10820
|
//#region src/events.d.ts
|
|
10683
10821
|
/**
|
|
10684
10822
|
* Free-form context string passed to `MapView.setFloor` (via {@link TSetFloorOptions})
|
|
@@ -10859,7 +10997,9 @@ type TEvents = {
|
|
|
10859
10997
|
*/
|
|
10860
10998
|
'outdoor-view-loaded': undefined;
|
|
10861
10999
|
/**
|
|
10862
|
-
* Emitted when the outdoor
|
|
11000
|
+
* Emitted when the outdoor stylesheet finishes loading — on initial outdoor
|
|
11001
|
+
* load and again after `Outdoor.setStyle`. Does not fire for runtime style
|
|
11002
|
+
* mutations such as layer filters used by outdoor building covering.
|
|
10863
11003
|
*/
|
|
10864
11004
|
'outdoor-style-loaded': undefined;
|
|
10865
11005
|
/**
|
|
@@ -11504,7 +11644,7 @@ type TConnectionPathOptions = TAddPathOptions & {
|
|
|
11504
11644
|
* | low | Colliders with this ranking have a low visibility priority and will be hidden in favor of higher-ranked colliders in crowded areas. |
|
|
11505
11645
|
* | medium | Colliders with this ranking have a standard visibility priority and may be hidden in favor of higher-ranked colliders in crowded areas. |
|
|
11506
11646
|
* | high | These colliders are given higher visibility priority than 'medium' priority. |
|
|
11507
|
-
* | always-visible | Colliders with this ranking will not be hidden, ensuring their constant visibility regardless of crowding. |
|
|
11647
|
+
* | always-visible | Colliders with this ranking will not be hidden, ensuring their constant visibility regardless of crowding. Labels with this rank also will not yield to BlueDot's `enable2DCollisions` shield and can still paint over the BlueDot. |
|
|
11508
11648
|
*
|
|
11509
11649
|
* Use this type to fine-tune the visibility of colliders, enhancing map readability and user experience by prioritizing important information.
|
|
11510
11650
|
*/
|
|
@@ -13009,8 +13149,8 @@ declare class Area extends DetailedMapData<AreaCollection['features'][number]> i
|
|
|
13009
13149
|
*/
|
|
13010
13150
|
get geoJSON(): {
|
|
13011
13151
|
properties: null;
|
|
13012
|
-
type:
|
|
13013
|
-
geometry:
|
|
13152
|
+
type: _mappedin_mvf_v22.FeatureType;
|
|
13153
|
+
geometry: _mappedin_mvf_v22.Polygon;
|
|
13014
13154
|
};
|
|
13015
13155
|
/** @internal */
|
|
13016
13156
|
get focusTarget(): this;
|
|
@@ -13112,8 +13252,8 @@ declare class Door extends DetailedMapData<EntranceFeature> implements IGeoJSOND
|
|
|
13112
13252
|
*/
|
|
13113
13253
|
get geoJSON(): {
|
|
13114
13254
|
properties: null;
|
|
13115
|
-
type:
|
|
13116
|
-
geometry:
|
|
13255
|
+
type: _mappedin_mvf_v22.FeatureType;
|
|
13256
|
+
geometry: _mappedin_mvf_v22.LineString;
|
|
13117
13257
|
};
|
|
13118
13258
|
/** @internal */
|
|
13119
13259
|
get focusTarget(): Coordinate;
|
|
@@ -13249,8 +13389,8 @@ declare class Space extends DetailedMapData<SpaceFeature> implements IGeoJSONDat
|
|
|
13249
13389
|
*/
|
|
13250
13390
|
get geoJSON(): {
|
|
13251
13391
|
properties: null;
|
|
13252
|
-
type:
|
|
13253
|
-
geometry:
|
|
13392
|
+
type: _mappedin_mvf_v22.FeatureType;
|
|
13393
|
+
geometry: _mappedin_mvf_v22.Point | _mappedin_mvf_v22.LineString | _mappedin_mvf_v22.Polygon;
|
|
13254
13394
|
};
|
|
13255
13395
|
/** @internal */
|
|
13256
13396
|
get focusTarget(): this | Coordinate;
|
|
@@ -13336,7 +13476,7 @@ declare class PointOfInterest extends DetailedMapData<FeatureCollection$1<Point$
|
|
|
13336
13476
|
*/
|
|
13337
13477
|
get geoJSON(): {
|
|
13338
13478
|
properties: null;
|
|
13339
|
-
type:
|
|
13479
|
+
type: _mappedin_mvf_v22.FeatureType;
|
|
13340
13480
|
geometry: Point$1;
|
|
13341
13481
|
};
|
|
13342
13482
|
/**
|
|
@@ -13450,8 +13590,8 @@ declare class Annotation extends DetailedMapData<AnnotationCollection['features'
|
|
|
13450
13590
|
*/
|
|
13451
13591
|
get geoJSON(): {
|
|
13452
13592
|
properties: null;
|
|
13453
|
-
type:
|
|
13454
|
-
geometry:
|
|
13593
|
+
type: _mappedin_mvf_v22.FeatureType;
|
|
13594
|
+
geometry: _mappedin_mvf_v22.Point;
|
|
13455
13595
|
};
|
|
13456
13596
|
/** @internal */
|
|
13457
13597
|
get focusTarget(): Coordinate;
|
|
@@ -13667,8 +13807,8 @@ declare class MapObject extends DetailedMapData<ObstructionFeature> implements I
|
|
|
13667
13807
|
*/
|
|
13668
13808
|
get geoJSON(): {
|
|
13669
13809
|
properties: null;
|
|
13670
|
-
type:
|
|
13671
|
-
geometry:
|
|
13810
|
+
type: _mappedin_mvf_v22.FeatureType;
|
|
13811
|
+
geometry: _mappedin_mvf_v22.LineString | _mappedin_mvf_v22.Polygon;
|
|
13672
13812
|
};
|
|
13673
13813
|
/** @internal */
|
|
13674
13814
|
get anchorTarget(): Coordinate;
|
|
@@ -13981,8 +14121,8 @@ declare class Node extends BaseMetaData implements IGeoJSONData, IFocusable, IAn
|
|
|
13981
14121
|
*/
|
|
13982
14122
|
get geoJSON(): {
|
|
13983
14123
|
properties: null;
|
|
13984
|
-
type:
|
|
13985
|
-
geometry:
|
|
14124
|
+
type: _mappedin_mvf_v22.FeatureType;
|
|
14125
|
+
geometry: _mappedin_mvf_v22.Point;
|
|
13986
14126
|
};
|
|
13987
14127
|
/** @internal */
|
|
13988
14128
|
get focusTarget(): Coordinate;
|
|
@@ -14705,9 +14845,9 @@ declare class EnterpriseVenue extends BaseMetaData implements EnterpriseVenue$1
|
|
|
14705
14845
|
//#endregion
|
|
14706
14846
|
//#region src/query/types.d.ts
|
|
14707
14847
|
/**
|
|
14708
|
-
*
|
|
14848
|
+
* The map data object types that can be passed in the `include` array of a {@link Query.nearest} search.
|
|
14709
14849
|
*/
|
|
14710
|
-
type TQueriables = PointOfInterest | Door | Annotation | Node | Space | EnterpriseLocation;
|
|
14850
|
+
type TQueriables = PointOfInterest | Door | Annotation | Node | Space | EnterpriseLocation | MapObject | LocationProfile | Connection | Area | Facade;
|
|
14711
14851
|
/**
|
|
14712
14852
|
* Types that can be returned from Query.at() - geometry objects at a coordinate
|
|
14713
14853
|
*/
|
|
@@ -16038,7 +16178,7 @@ declare class MapData {
|
|
|
16038
16178
|
* console.log(`Current language: ${language.name} (${language.code})`);
|
|
16039
16179
|
* ```
|
|
16040
16180
|
*/
|
|
16041
|
-
get currentLanguage():
|
|
16181
|
+
get currentLanguage(): _mappedin_mvf_v22.Language | undefined;
|
|
16042
16182
|
/**
|
|
16043
16183
|
* Gets the natural bearing of the map.
|
|
16044
16184
|
*
|
|
@@ -17290,7 +17430,7 @@ type UpdateModelState = Omit<InitializeModelState$2, 'url'> & {
|
|
|
17290
17430
|
};
|
|
17291
17431
|
declare class ModelComponent {
|
|
17292
17432
|
#private;
|
|
17293
|
-
mesh?: Geometry3DObject3D | Group
|
|
17433
|
+
mesh?: Geometry3DObject3D | Group;
|
|
17294
17434
|
readonly type = "model";
|
|
17295
17435
|
positionDirty: boolean;
|
|
17296
17436
|
outline?: LineSegments;
|
|
@@ -18044,7 +18184,7 @@ type ClippingPlane = {
|
|
|
18044
18184
|
* bit, so the counting passes must also be skipped to avoid leaving the bit
|
|
18045
18185
|
* set and corrupting other stencil-based features (e.g. underground mask).
|
|
18046
18186
|
*/
|
|
18047
|
-
holeFillGroup?: Group
|
|
18187
|
+
holeFillGroup?: Group;
|
|
18048
18188
|
topColor?: string;
|
|
18049
18189
|
needsRebuild: boolean;
|
|
18050
18190
|
topVisible?: boolean;
|
|
@@ -18065,7 +18205,7 @@ declare class ClippingPlaneComponent implements ClippingPlane {
|
|
|
18065
18205
|
verticalOffset: number;
|
|
18066
18206
|
plane?: Plane;
|
|
18067
18207
|
holeFillMesh?: Mesh;
|
|
18068
|
-
holeFillGroup?: Group
|
|
18208
|
+
holeFillGroup?: Group;
|
|
18069
18209
|
topColor?: string;
|
|
18070
18210
|
topVisible: boolean;
|
|
18071
18211
|
bboxCenter?: {
|
|
@@ -19693,6 +19833,10 @@ declare class CustomGeometrySystem {
|
|
|
19693
19833
|
*/
|
|
19694
19834
|
declare class IdleQueue {
|
|
19695
19835
|
#private;
|
|
19836
|
+
/**
|
|
19837
|
+
* @param maxDelay - Forced idle-callback timeout in ms (default {@link FORCE_IDLE_CALLBACK_TIMEOUT}).
|
|
19838
|
+
*/
|
|
19839
|
+
constructor(maxDelay?: number);
|
|
19696
19840
|
/**
|
|
19697
19841
|
* Returns the current number of pending jobs in the queue
|
|
19698
19842
|
*/
|
|
@@ -19736,8 +19880,11 @@ declare class OutlineInterpolationSystem extends PubSub<{
|
|
|
19736
19880
|
*/
|
|
19737
19881
|
outlineOpacitiesDirty: boolean;
|
|
19738
19882
|
/**
|
|
19739
|
-
* Use IdleQueue to ensure the thread isn't blocked by building outlines
|
|
19740
|
-
*
|
|
19883
|
+
* Use IdleQueue to ensure the thread isn't blocked by building outlines.
|
|
19884
|
+
* When false, the build + bounding-sphere recompute run inline. Internal unit-test affordance,
|
|
19885
|
+
* decoupled from the public `__TEST_synchronousIdleWork` option (which now only caps the idle
|
|
19886
|
+
* timeout via `idleMaxDelay`); not driven by show3dMap.
|
|
19887
|
+
* @internal for tests only
|
|
19741
19888
|
*/
|
|
19742
19889
|
useIdleFramesOnly: boolean;
|
|
19743
19890
|
get geometries3DDirty(): boolean;
|
|
@@ -19755,8 +19902,10 @@ declare class OutlineInterpolationSystem extends PubSub<{
|
|
|
19755
19902
|
* Creates a new OutlineInterpolationSystem
|
|
19756
19903
|
* @param rendererState - The renderer state
|
|
19757
19904
|
* @param options - Optional configuration for outline rendering
|
|
19905
|
+
* @param useIdleFramesOnly - When false, build outlines/bounding spheres inline instead of on idle frames (test-only)
|
|
19906
|
+
* @param idleMaxDelay - Forced idle-callback timeout (ms) applied to the build/bounding-sphere queues
|
|
19758
19907
|
*/
|
|
19759
|
-
constructor(rendererState: RendererState, options?: OutlinesOptions$1);
|
|
19908
|
+
constructor(rendererState: RendererState, options?: OutlinesOptions$1, useIdleFramesOnly?: boolean, idleMaxDelay?: number);
|
|
19760
19909
|
buildOutlines(geometryGroupEntity: FeatureCollectionObject3D): void;
|
|
19761
19910
|
/**
|
|
19762
19911
|
* Update the outline color of all entities with an outline component.
|
|
@@ -19883,11 +20032,48 @@ declare class GeometryInFocusSystem extends PubSub<{
|
|
|
19883
20032
|
}
|
|
19884
20033
|
//#endregion
|
|
19885
20034
|
//#region ../renderer-three/src/systems/outdoor-layers/system.d.ts
|
|
20035
|
+
/**
|
|
20036
|
+
* Hides OSM basemap features (buildings) sitting under indoor footprints by writing a single cumulative
|
|
20037
|
+
* exclusion filter (`['!', ['in', ['id'], ['literal', ids]]]`) onto the target MapLibre layers.
|
|
20038
|
+
*
|
|
20039
|
+
* The design is dictated by how vector tiles and features relate:
|
|
20040
|
+
* - Tiles are a fixed `z/x/y` world grid; a tile's bounds are pure arithmetic (`tileToLngLatBBox`).
|
|
20041
|
+
* Footprints are world-fixed too, so the tiles that can contain a covered building are static —
|
|
20042
|
+
* only a tile overlapping a footprint can add a match (`#isTileRelevant` gate on `sourcedata`).
|
|
20043
|
+
* - Features live *inside* tiles, so new geometry only arrives via a tile load — hence recompute is
|
|
20044
|
+
* driven by `sourcedata` (with `e.tile`), not the camera. Do not gate on MapLibre `load`: that event
|
|
20045
|
+
* fires once on first settle and never again; `sourcedata` already covers pre- and post-load tiles,
|
|
20046
|
+
* and `queryRenderedFeatures` returns `[]` (safe no-op) before the style exists.
|
|
20047
|
+
* - A feature larger than a tile is clipped into per-tile fragments that all share one `id`, and
|
|
20048
|
+
* `queryRenderedFeatures` returns them per-tile (duplicate ids). So a non-match by id can flip to a
|
|
20049
|
+
* match once a *different, later-rendered* fragment arrives — non-matches must stay retryable, and
|
|
20050
|
+
* they cannot be cached by id alone.
|
|
20051
|
+
* - The layer filter is applied at bucket-populate, so a hidden feature drops out of
|
|
20052
|
+
* `queryRenderedFeatures`. `#matchedFeatureIds` is therefore the *only* record of what's hidden: it
|
|
20053
|
+
* accumulates, every `setFilter` writes the full cumulative set, and it resets only on genuine
|
|
20054
|
+
* invalidation (new polygons / style change) — otherwise prior matches un-hide and the
|
|
20055
|
+
* `setFilter → source reload → sourcedata` loop never converges.
|
|
20056
|
+
* - `queryRenderedFeatures` reflects *rendered* tiles, but `sourcedata` fires on *load*; the gap is
|
|
20057
|
+
* render lag, covered by {@link OUTDOOR_COVERING_DEBOUNCE_MS} that coalesces the tile stream.
|
|
20058
|
+
* The window stays short because matches accumulate and `setFilter` is skipped when nothing new
|
|
20059
|
+
* matched — a short debounce only batches tile arrivals, it cannot un-hide or thrash.
|
|
20060
|
+
* - The per-footprint sweep is chunked one-polygon-per-`idleQueue`-job so a many-footprint venue never
|
|
20061
|
+
* blocks the frame in a single synchronous pass. A live compute session is aborted (partial matches
|
|
20062
|
+
* rolled back, queue cleared) when a new compute takes over, so a novel tile is never lost to a
|
|
20063
|
+
* dropped in-flight request; the cumulative `setFilter` still runs once, in the queue's
|
|
20064
|
+
* `onComplete`, and only on successful completion (never after abort).
|
|
20065
|
+
*/
|
|
19886
20066
|
declare class OutdoorLayers extends PubSub<{}> {
|
|
19887
20067
|
#private;
|
|
19888
20068
|
idleQueue: IdleQueue;
|
|
19889
20069
|
hideLayersIntersectingPolygons(polygons: GeoJSON.Feature<GeoJSON.Polygon | GeoJSON.MultiPolygon, any>[], layers: string[]): void;
|
|
19890
|
-
|
|
20070
|
+
/**
|
|
20071
|
+
* @param map - The MapLibre map to cover OSM buildings on.
|
|
20072
|
+
* @param idleMaxDelay - Forced idle-callback timeout (ms) for the covering-sweep queue. The e2e
|
|
20073
|
+
* harness caps it so the sweep settles inside a screenshot's settle wait instead of drifting out
|
|
20074
|
+
* to {@link FORCE_IDLE_CALLBACK_TIMEOUT} on a load-starved runner.
|
|
20075
|
+
*/
|
|
20076
|
+
constructor(map?: Map$1, idleMaxDelay?: number);
|
|
19891
20077
|
destroy(): void;
|
|
19892
20078
|
}
|
|
19893
20079
|
//#endregion
|
|
@@ -19949,9 +20135,28 @@ declare class Text3DSystem extends PubSub<{
|
|
|
19949
20135
|
textSet: Set<string>;
|
|
19950
20136
|
batchedTextMap: Map<GroupContainerObject3D, Promise<BatchedText>>;
|
|
19951
20137
|
private resolvedBatchedTextMap;
|
|
20138
|
+
/**
|
|
20139
|
+
* Desired `BatchedText.visible` per parent group. Batches are created lazily over render
|
|
20140
|
+
* frames, so a toggle issued before the batch exists must be remembered here (not on the
|
|
20141
|
+
* generic GroupContainer) and applied at creation. Default when unset: `true`.
|
|
20142
|
+
*/
|
|
20143
|
+
private batchVisibleByGroup;
|
|
19952
20144
|
useWorker: boolean;
|
|
19953
20145
|
remove(id: string): void;
|
|
19954
20146
|
getBatchedText(group: GroupContainerObject3D): BatchedText | undefined;
|
|
20147
|
+
/**
|
|
20148
|
+
* Desired visibility for the `BatchedText` parented to `group`. Survives until the batch is
|
|
20149
|
+
* created; also applies immediately if a batch (or its promise) already exists.
|
|
20150
|
+
* @param group - Parent group container that owns the batch
|
|
20151
|
+
* @param visible - Whether the batch should be visible
|
|
20152
|
+
*/
|
|
20153
|
+
setBatchVisible(group: GroupContainerObject3D, visible: boolean): void;
|
|
20154
|
+
/**
|
|
20155
|
+
* Returns the durable desired visibility for `group`'s batch (`true` when never set).
|
|
20156
|
+
* @param group - Parent group container that owns the batch
|
|
20157
|
+
* @returns Desired batch visibility
|
|
20158
|
+
*/
|
|
20159
|
+
getBatchVisible(group: GroupContainerObject3D): boolean;
|
|
19955
20160
|
constructor(rendererState: RendererState, convertTo3DMapPosition: Core['convertTo3DMapPosition'], useWorker?: boolean);
|
|
19956
20161
|
update(cameraRotationRadians: number): Promise<void[] | undefined>;
|
|
19957
20162
|
/**
|
|
@@ -20124,16 +20329,6 @@ declare class Debug$1 {
|
|
|
20124
20329
|
}
|
|
20125
20330
|
//#endregion
|
|
20126
20331
|
//#region ../renderer-three/src/systems/2d-occlusion/system.d.ts
|
|
20127
|
-
/**
|
|
20128
|
-
* Set to `true` by the visual regression harness (see `e2e/visual/fixtures.ts`)
|
|
20129
|
-
* before page load. When set we bypass the throttle so screenshots are
|
|
20130
|
-
* deterministic. Anything else leaves the throttle in effect.
|
|
20131
|
-
*/
|
|
20132
|
-
declare global {
|
|
20133
|
-
interface Window {
|
|
20134
|
-
__MAPPEDIN_E2E__?: boolean;
|
|
20135
|
-
}
|
|
20136
|
-
}
|
|
20137
20332
|
declare class Occlusion2DSystem {
|
|
20138
20333
|
private state;
|
|
20139
20334
|
private renderer;
|
|
@@ -21288,8 +21483,8 @@ declare class Core extends PubSub<MapEvent> {
|
|
|
21288
21483
|
*/
|
|
21289
21484
|
getInternalState(): RendererState;
|
|
21290
21485
|
/** @internal */
|
|
21291
|
-
getInternalTweenGroup(): Group;
|
|
21292
|
-
getExternalTweenGroup(): Group;
|
|
21486
|
+
getInternalTweenGroup(): Group$1;
|
|
21487
|
+
getExternalTweenGroup(): Group$1;
|
|
21293
21488
|
computeMinZOffsetBetweenContainers(lowerContainer: GroupContainerObject3D, upperContainer: GroupContainerObject3D, debug?: boolean): number;
|
|
21294
21489
|
/**
|
|
21295
21490
|
* Subscribe a function to an event.
|
|
@@ -21507,6 +21702,14 @@ type RendererCoreOptions$2 = Partial<{
|
|
|
21507
21702
|
style?: string;
|
|
21508
21703
|
enabled: boolean;
|
|
21509
21704
|
lowDpi?: boolean;
|
|
21705
|
+
/**
|
|
21706
|
+
* Called when an outdoor tile request is rejected with an auth error (HTTP 401/403),
|
|
21707
|
+
* typically because the tiles token has expired. Should resolve to a fresh tiles token
|
|
21708
|
+
* (or `undefined` if one cannot be obtained). The renderer swaps the new token into the
|
|
21709
|
+
* tile request headers and reloads the outdoor source so the basemap recovers without a
|
|
21710
|
+
* page reload.
|
|
21711
|
+
*/
|
|
21712
|
+
refreshToken?: () => Promise<string | undefined>;
|
|
21510
21713
|
};
|
|
21511
21714
|
gl?: WebGLRenderingContext;
|
|
21512
21715
|
map?: Map$1;
|
|
@@ -21558,7 +21761,23 @@ type RendererCoreOptions$2 = Partial<{
|
|
|
21558
21761
|
* - An object with `maxOpacity` and/or `darkenFactor` allows fine-grained control
|
|
21559
21762
|
*/
|
|
21560
21763
|
outlines?: boolean | OutlinesOptions$1;
|
|
21764
|
+
/**
|
|
21765
|
+
* Caps the forced `requestIdleCallback` timeout for renderer-three's idle-deferred work (outline
|
|
21766
|
+
* build + bounding-sphere recompute, OutdoorLayers covering sweep). Idle scheduling stays on, but a
|
|
21767
|
+
* lower `maxDelay` forces the work to settle quickly so e2e screenshots don't race a half-built scene.
|
|
21768
|
+
* @internal test-only; when unset the queues use the default 3000 ms timeout.
|
|
21769
|
+
*/
|
|
21770
|
+
__TEST_synchronousIdleWork?: IdleWorkTestOptions;
|
|
21561
21771
|
}>;
|
|
21772
|
+
/**
|
|
21773
|
+
* Bounded-idle test knob. `enabled` opts in; `maxDelay` (ms) caps the idle-callback forced timeout.
|
|
21774
|
+
* @internal test-only
|
|
21775
|
+
*/
|
|
21776
|
+
type IdleWorkTestOptions = {
|
|
21777
|
+
enabled: boolean;
|
|
21778
|
+
/** @default 3000 */
|
|
21779
|
+
maxDelay?: number;
|
|
21780
|
+
};
|
|
21562
21781
|
/**
|
|
21563
21782
|
* Outline rendering configuration options
|
|
21564
21783
|
*/
|
|
@@ -21942,7 +22161,9 @@ type MapEvent = {
|
|
|
21942
22161
|
*/
|
|
21943
22162
|
'outdoor-view-loaded': undefined;
|
|
21944
22163
|
/**
|
|
21945
|
-
* If outdoor view is enabled,
|
|
22164
|
+
* If outdoor view is enabled, fired when the outdoor stylesheet finishes
|
|
22165
|
+
* loading (initial load and after `setStyle`). Not fired for runtime style
|
|
22166
|
+
* mutations such as `setFilter` from outdoor building covering.
|
|
21946
22167
|
*/
|
|
21947
22168
|
'outdoor-style-loaded': undefined;
|
|
21948
22169
|
/**
|
|
@@ -22036,9 +22257,9 @@ type RendererState = {
|
|
|
22036
22257
|
canvasWidth: number;
|
|
22037
22258
|
canvasHeight: number;
|
|
22038
22259
|
/** Group for all tweens that are created internally by the SDK */
|
|
22039
|
-
internalTweenGroup: Group;
|
|
22260
|
+
internalTweenGroup: Group$1;
|
|
22040
22261
|
/** Group for all tweens that are created externally, such as from animateState */
|
|
22041
|
-
externalTweenGroup: Group;
|
|
22262
|
+
externalTweenGroup: Group$1;
|
|
22042
22263
|
cameraObject: Camera$1;
|
|
22043
22264
|
naturalBearing: number;
|
|
22044
22265
|
containerOffset: [number, number];
|
|
@@ -22230,24 +22451,6 @@ declare const MAPPEDIN_COLORS: {
|
|
|
22230
22451
|
lightTeal: string;
|
|
22231
22452
|
};
|
|
22232
22453
|
//#endregion
|
|
22233
|
-
//#region ../packages/common/Mappedin.Logger.d.ts
|
|
22234
|
-
/**
|
|
22235
|
-
* SDK logging verbosity. Ordered from most verbose to least — selecting a level
|
|
22236
|
-
* enables that level plus every level after it.
|
|
22237
|
-
*/
|
|
22238
|
-
declare enum E_SDK_LOG_LEVEL {
|
|
22239
|
-
LOG = 0,
|
|
22240
|
-
WARN = 1,
|
|
22241
|
-
ERROR = 2,
|
|
22242
|
-
SILENT = 3,
|
|
22243
|
-
}
|
|
22244
|
-
/**
|
|
22245
|
-
* Set the SDK's global log verbosity. Lower levels include all higher-numbered levels;
|
|
22246
|
-
* `SILENT` suppresses all output.
|
|
22247
|
-
* @param level - The desired verbosity from {@link E_SDK_LOG_LEVEL}.
|
|
22248
|
-
*/
|
|
22249
|
-
declare function setLoggerLevel(level: E_SDK_LOG_LEVEL): void;
|
|
22250
|
-
//#endregion
|
|
22251
22454
|
//#region src/utils/convert-renderer-core-options.d.ts
|
|
22252
22455
|
/**
|
|
22253
22456
|
* Converts TShow3DMapOptions to RendererCoreOptions format.
|
|
@@ -22641,6 +22844,18 @@ type TShow3DMapOptions = {
|
|
|
22641
22844
|
* @default false
|
|
22642
22845
|
*/
|
|
22643
22846
|
disableUpdateStateValidation?: boolean;
|
|
22847
|
+
/**
|
|
22848
|
+
* @internal
|
|
22849
|
+
*
|
|
22850
|
+
* Caps the forced `requestIdleCallback` timeout for renderer-three's idle-scheduled render work
|
|
22851
|
+
* (outline building, OutdoorLayers covering sweep). Idle scheduling stays on; a lower `maxDelay`
|
|
22852
|
+
* forces the work to settle quickly so e2e visual screenshots don't race a half-built scene.
|
|
22853
|
+
* Test-only: defaults on under the e2e harness (`window.__MAPPEDIN_E2E__`) with `maxDelay` 100.
|
|
22854
|
+
*/
|
|
22855
|
+
__TEST_synchronousIdleWork?: {
|
|
22856
|
+
enabled: boolean;
|
|
22857
|
+
maxDelay?: number;
|
|
22858
|
+
};
|
|
22644
22859
|
};
|
|
22645
22860
|
/**
|
|
22646
22861
|
* @internal
|
|
@@ -22765,4 +22980,4 @@ declare const getVersion: () => string | undefined;
|
|
|
22765
22980
|
*/
|
|
22766
22981
|
declare const show3dMapGeojson: (el: HTMLElement, mapData: MapData, options?: TShow3DMapOptions) => Promise<MapView>;
|
|
22767
22982
|
//#endregion
|
|
22768
|
-
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 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, parseMVFv2 as parseMVF, preloadFont, setLoggerLevel, setUseEnterpriseAPI, setWorkersUrl, shouldForceEnterpriseLocations, show3dMap, show3dMapGeojson, unzipAndParseMVFv2, unzipMVFv2 as unzipMVF };
|
|
22983
|
+
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 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 };
|