@mappedin/mappedin-js 6.25.0 → 6.27.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 +128 -8
- package/lib/esm/{GLTFExporter-2YKLBCPY.js → GLTFExporter-ML6CP3AF.js} +1 -1
- package/lib/esm/{GLTFLoader-VF2YNOHD.js → GLTFLoader-TK6DA3DY.js} +1 -1
- package/lib/esm/chunk-BM2RB7WJ.js +661 -0
- package/lib/esm/{chunk-R4YYWOA4.js → chunk-FHFIN6MU.js} +1 -1
- package/lib/esm/chunk-LOAM3DPE.js +1230 -0
- package/lib/esm/{chunk-I5GYZORE.js → chunk-OYQCSZIS.js} +5 -5
- package/lib/esm/{chunk-CO4ZOCZ7.js → chunk-SKYT6FEZ.js} +1 -1
- package/lib/esm/index.d.ts +261 -11
- package/lib/esm/index.js +1 -1
- package/lib/esm/{inspector-RHOYG5KR.js → inspector-D5OSBVDF.js} +3 -3
- package/lib/esm/{internal-4S5IPA5O.js → internal-B67N2RH3.js} +1 -1
- package/lib/esm/{src-2BZUPZLG.js → src-7QUO56ZS.js} +1 -1
- package/lib/esm/{text3d-NPU3WI3W.js → text3d-QKSTP5EW.js} +1 -1
- package/package.json +2 -1
- package/lib/esm/chunk-2ZEZ2HG5.js +0 -1230
- package/lib/esm/chunk-FYSWNSO7.js +0 -661
package/lib/esm/index.d.ts
CHANGED
|
@@ -484,6 +484,11 @@ type THydrateMapDataBundle = {
|
|
|
484
484
|
localePack: Uint8Array;
|
|
485
485
|
}[];
|
|
486
486
|
main: Uint8Array;
|
|
487
|
+
/**
|
|
488
|
+
* The `updated_at` timestamp reported by the API when this bundle was fetched,
|
|
489
|
+
* used to restore `MapData.updatedAt` on hydrate.
|
|
490
|
+
*/
|
|
491
|
+
updatedAt?: string;
|
|
487
492
|
} | {
|
|
488
493
|
type: 'json';
|
|
489
494
|
options?: {
|
|
@@ -503,6 +508,11 @@ type THydrateMapDataBundle = {
|
|
|
503
508
|
localePack: ParsedMVFLocalePack;
|
|
504
509
|
}[];
|
|
505
510
|
main: ParsedMVF;
|
|
511
|
+
/**
|
|
512
|
+
* The `updated_at` timestamp reported by the API when this bundle was fetched,
|
|
513
|
+
* used to restore `MapData.updatedAt` on hydrate.
|
|
514
|
+
*/
|
|
515
|
+
updatedAt?: string;
|
|
506
516
|
};
|
|
507
517
|
/**
|
|
508
518
|
* Load a MapData instance from a backup bundle (zip file or parsed MVF).
|
|
@@ -3840,6 +3850,32 @@ interface TwoDPipelineState {
|
|
|
3840
3850
|
* @returns Screen-space position or null if off-screen
|
|
3841
3851
|
*/
|
|
3842
3852
|
type ProjectFn = (worldX: number, worldY: number, worldZ: number) => Vec2 | null;
|
|
3853
|
+
/**
|
|
3854
|
+
* Aggregate counts and byte size for a single 2D draw cache.
|
|
3855
|
+
* @internal - For diagnostic tooling only.
|
|
3856
|
+
*/
|
|
3857
|
+
interface TwoDCacheStats {
|
|
3858
|
+
/** Number of entries in the cache. */
|
|
3859
|
+
entryCount: number;
|
|
3860
|
+
/** Number of canvases held by the cache (0 for image caches). */
|
|
3861
|
+
canvasCount: number;
|
|
3862
|
+
/** Total memory rasterized by the cache's canvases/images, in bytes (RGBA). */
|
|
3863
|
+
memoryBytes: number;
|
|
3864
|
+
}
|
|
3865
|
+
/**
|
|
3866
|
+
* Aggregate cache statistics across every cache owned by the 2D draw system.
|
|
3867
|
+
* @internal - For diagnostic tooling only.
|
|
3868
|
+
*/
|
|
3869
|
+
interface TwoDDrawSystemCacheStats {
|
|
3870
|
+
textCache: TwoDCacheStats;
|
|
3871
|
+
pinCache: TwoDCacheStats;
|
|
3872
|
+
wrapperCache: TwoDCacheStats;
|
|
3873
|
+
imageCache: TwoDCacheStats;
|
|
3874
|
+
/** Bytes of the full-screen label canvas (held as the draw system's collider canvas). */
|
|
3875
|
+
labelCanvasBytes: number;
|
|
3876
|
+
/** Sum of all per-cache bytes plus the label canvas bytes. */
|
|
3877
|
+
totalMemoryBytes: number;
|
|
3878
|
+
}
|
|
3843
3879
|
type Entity2DHTMLDivElement = HTMLDivElement & {
|
|
3844
3880
|
userData: {
|
|
3845
3881
|
entityId: string | number;
|
|
@@ -3972,6 +4008,21 @@ declare class TwoDDrawSystem extends PubSub<{
|
|
|
3972
4008
|
};
|
|
3973
4009
|
textToCanvas: (textDrawFn: (ctx: CanvasRenderingContext2D, x: number, y: number) => void, size: number, textAlign: TEXTALIGN, width: number, height: number, foregroundColor: string, backgroundColor: string) => HTMLCanvasElement | OffscreenCanvas | undefined;
|
|
3974
4010
|
cacheImage: (label: LabelComponent) => void;
|
|
4011
|
+
/**
|
|
4012
|
+
* Byte size of a single canvas assuming 4 bytes per pixel (RGBA).
|
|
4013
|
+
*/
|
|
4014
|
+
private static canvasBytes;
|
|
4015
|
+
/**
|
|
4016
|
+
* Byte size of a cached image. Prefers the decoded natural dimensions
|
|
4017
|
+
* (HTMLImageElement) and falls back to `width`/`height` (ImageBitmap).
|
|
4018
|
+
*/
|
|
4019
|
+
private static imageBytes;
|
|
4020
|
+
/**
|
|
4021
|
+
* Returns aggregate per-cache counts and byte sizes for every cache owned
|
|
4022
|
+
* by the draw system, plus the full-screen label canvas.
|
|
4023
|
+
* @internal - For diagnostic tooling only.
|
|
4024
|
+
*/
|
|
4025
|
+
getCacheStats(): TwoDDrawSystemCacheStats;
|
|
3975
4026
|
createPinCanvas: (label: LabelComponent, pinSize: number, backgroundColor: string, foregroundColor: string, maxIconScale?: number) => HTMLCanvasElement | OffscreenCanvas;
|
|
3976
4027
|
prepare: (label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D) => void;
|
|
3977
4028
|
/**
|
|
@@ -7774,7 +7825,7 @@ declare class MapView {
|
|
|
7774
7825
|
* path, and 2D systems, but before `DrawSystem` and `paint()`).
|
|
7775
7826
|
*
|
|
7776
7827
|
* @param plugin - An object implementing {@link ISystemPlugin}. Must have an
|
|
7777
|
-
* `update(state: TRendererState)` method.
|
|
7828
|
+
* `update(state: TRendererState, systems)` method.
|
|
7778
7829
|
*
|
|
7779
7830
|
* @example
|
|
7780
7831
|
* ### Standalone mode — add a spinning cube
|
|
@@ -7785,7 +7836,7 @@ declare class MapView {
|
|
|
7785
7836
|
* class CubePlugin implements ISystemPlugin {
|
|
7786
7837
|
* private cube: Mesh | null = null;
|
|
7787
7838
|
*
|
|
7788
|
-
* update(state: TRendererState): void {
|
|
7839
|
+
* update(state: TRendererState, systems): void {
|
|
7789
7840
|
* if (!this.cube) {
|
|
7790
7841
|
* this.cube = new Mesh(
|
|
7791
7842
|
* new BoxGeometry(5, 5, 5),
|
|
@@ -7810,7 +7861,7 @@ declare class MapView {
|
|
|
7810
7861
|
* class SpherePlugin implements ISystemPlugin {
|
|
7811
7862
|
* private sphere: Mesh | null = null;
|
|
7812
7863
|
*
|
|
7813
|
-
* update(state: TRendererState): void {
|
|
7864
|
+
* update(state: TRendererState, systems): void {
|
|
7814
7865
|
* if (!this.sphere) {
|
|
7815
7866
|
* this.sphere = new Mesh(
|
|
7816
7867
|
* new SphereGeometry(3, 32, 32),
|
|
@@ -10318,7 +10369,8 @@ declare class NavigationGraph {
|
|
|
10318
10369
|
getShortestEuclideanDistance(origin: NodeFeature, destinations: NodeFeature[]): number;
|
|
10319
10370
|
hasLineOfSight: (origin: Position, destination: Position, edges?: Position[][], bufferRadius?: number) => boolean;
|
|
10320
10371
|
/**
|
|
10321
|
-
* Performs a Dijkstra search to find nodes within a given travel distance that satisfy a goal function
|
|
10372
|
+
* Performs a Dijkstra search to find nodes within a given travel distance that satisfy a goal function.
|
|
10373
|
+
* Results are popped in non-decreasing distance order from the min-heap, so no final sort is needed.
|
|
10322
10374
|
*
|
|
10323
10375
|
* @param originId - Origin node ID.
|
|
10324
10376
|
* @param maxTravelDistance - The maximum travel distance.
|
|
@@ -10971,6 +11023,16 @@ type TClickPayload = {
|
|
|
10971
11023
|
* @see {@link TClickPayload}
|
|
10972
11024
|
*/
|
|
10973
11025
|
type THoverPayload = Omit<TClickPayload, 'pointerEvent'>;
|
|
11026
|
+
/**
|
|
11027
|
+
* The payload for a long-press (tap and hold) event on the map.
|
|
11028
|
+
*
|
|
11029
|
+
* Identical in shape to {@link TClickPayload} — it contains the geographic
|
|
11030
|
+
* coordinate of the press and all visible interactive map elements that were
|
|
11031
|
+
* under the pointer at the time of the event.
|
|
11032
|
+
*
|
|
11033
|
+
* @see {@link TClickPayload}
|
|
11034
|
+
*/
|
|
11035
|
+
type TLongPressPayload = TClickPayload;
|
|
10974
11036
|
/**
|
|
10975
11037
|
* used to sync state to RN SDK
|
|
10976
11038
|
* @internal
|
|
@@ -11033,6 +11095,10 @@ type TEvents = {
|
|
|
11033
11095
|
* Emitted when the map is clicked or tapped on a touch screen.
|
|
11034
11096
|
*/
|
|
11035
11097
|
click: TClickPayload;
|
|
11098
|
+
/**
|
|
11099
|
+
* Emitted when the map is long-pressed (tap and hold).
|
|
11100
|
+
*/
|
|
11101
|
+
'long-press': TLongPressPayload;
|
|
11036
11102
|
/**
|
|
11037
11103
|
* Emitted when the map is hovered over with a mouse.
|
|
11038
11104
|
*/
|
|
@@ -11811,6 +11877,12 @@ type TGetDirectionsOptions = {
|
|
|
11811
11877
|
* - `'rdp'`: Uses Ramer-Douglas-Peucker preprocessing + line-of-sight validation + door buffer nodes. Better for paths with doors and complex geometry. Medium speed.
|
|
11812
11878
|
* - `'dp-optimal'`: Dynamic Programming for globally optimal simplification. Slowest but highest quality, O(n²) complexity. Best when path quality is critical.
|
|
11813
11879
|
*
|
|
11880
|
+
* **Limitations:**
|
|
11881
|
+
* Smoothing never removes a node flagged `preventSmoothing` — such nodes are always preserved as
|
|
11882
|
+
* waypoints (e.g. doors and floor-transition nodes). On platform/Maker maps, outdoor nodes are flagged
|
|
11883
|
+
* `preventSmoothing`, so outdoor route segments are not simplified and `smoothing` has no visible effect
|
|
11884
|
+
* on them.
|
|
11885
|
+
*
|
|
11814
11886
|
* @default true for non-enterprise mode, false for enterprise mode
|
|
11815
11887
|
*
|
|
11816
11888
|
* @example
|
|
@@ -13992,6 +14064,7 @@ type TMapDataInternalOptions = {
|
|
|
13992
14064
|
tokenManager?: TokenManager;
|
|
13993
14065
|
getMapDataOptions?: TGetMapDataOptions;
|
|
13994
14066
|
mvf3?: MVFv2_STANDARD_MVFv3;
|
|
14067
|
+
updatedAt?: string;
|
|
13995
14068
|
};
|
|
13996
14069
|
type MVFNodeFeature = NodeCollection['features'][number];
|
|
13997
14070
|
type MVFFloorFeature = FloorCollection['features'][number];
|
|
@@ -15283,6 +15356,10 @@ declare class MapDataInternal extends PubSub<{
|
|
|
15283
15356
|
binaryBundle?: Uint8Array;
|
|
15284
15357
|
envControl: EnvControl;
|
|
15285
15358
|
getMapDataOptions?: TGetMapDataOptions;
|
|
15359
|
+
/**
|
|
15360
|
+
* The `updated_at` timestamp reported by the API when this map data was loaded.
|
|
15361
|
+
*/
|
|
15362
|
+
updatedAt?: string;
|
|
15286
15363
|
/**
|
|
15287
15364
|
* @internal
|
|
15288
15365
|
*/
|
|
@@ -15834,6 +15911,44 @@ declare class MapData {
|
|
|
15834
15911
|
* ```
|
|
15835
15912
|
*/
|
|
15836
15913
|
getAccessToken(): string | undefined;
|
|
15914
|
+
/**
|
|
15915
|
+
* The `updated_at` timestamp reported by the API when this map data was loaded.
|
|
15916
|
+
*
|
|
15917
|
+
* @returns {string | undefined} The timestamp, or `undefined` if unavailable. Keyless `bundleUri` loads yield an empty string (`''`).
|
|
15918
|
+
*/
|
|
15919
|
+
get updatedAt(): string | undefined;
|
|
15920
|
+
/**
|
|
15921
|
+
* Check whether the map data has changed since it was loaded.
|
|
15922
|
+
*
|
|
15923
|
+
* Performs a lightweight resolve against the Mappedin API (without re-downloading
|
|
15924
|
+
* the bundle) and compares the live `updated_at` timestamp to the one captured
|
|
15925
|
+
* when this `MapData` was loaded.
|
|
15926
|
+
*
|
|
15927
|
+
* The check re-authenticates using the same credentials that originally created this
|
|
15928
|
+
* `MapData`: enterprise maps resolve via their key/secret (Basic auth), and Maker maps
|
|
15929
|
+
* refresh their access token from the original key/secret via the internal token manager.
|
|
15930
|
+
* For access-token-only loads (no key/secret), the token cannot be refreshed once it
|
|
15931
|
+
* expires and the check will fail.
|
|
15932
|
+
*
|
|
15933
|
+
* Note: this requires the map to have been loaded via {@link getMapData}, which records a
|
|
15934
|
+
* load-time `updated_at` timestamp. Maps hydrated from a local bundle via `hydrateMapData()`
|
|
15935
|
+
* do not have this timestamp and will throw.
|
|
15936
|
+
*
|
|
15937
|
+
* @returns {Promise<{ hasChanges: boolean; updatedAt: string }>} An object describing whether the data changed and the current timestamp.
|
|
15938
|
+
*
|
|
15939
|
+
* @example Check for updates and reload if changed
|
|
15940
|
+
* ```ts
|
|
15941
|
+
* const { hasChanges } = await mapData.checkForUpdates();
|
|
15942
|
+
* if (hasChanges) {
|
|
15943
|
+
* const freshMapData = await getMapData({ key, secret, mapId });
|
|
15944
|
+
* // re-render with freshMapData
|
|
15945
|
+
* }
|
|
15946
|
+
* ```
|
|
15947
|
+
*/
|
|
15948
|
+
checkForUpdates(): Promise<{
|
|
15949
|
+
hasChanges: boolean;
|
|
15950
|
+
updatedAt: string;
|
|
15951
|
+
}>;
|
|
15837
15952
|
/**
|
|
15838
15953
|
* The name of the map.
|
|
15839
15954
|
*
|
|
@@ -18709,6 +18824,11 @@ declare class Renderer {
|
|
|
18709
18824
|
height: number;
|
|
18710
18825
|
options: TRendererOptions;
|
|
18711
18826
|
renderer?: WebGLRenderer;
|
|
18827
|
+
/**
|
|
18828
|
+
* Render statistics for the most recent frame, summed across both render
|
|
18829
|
+
* passes (main and always-on-top).
|
|
18830
|
+
*/
|
|
18831
|
+
frameStats: RenderFrameStats;
|
|
18712
18832
|
constructor(renderOptions: TRendererOptions);
|
|
18713
18833
|
/**
|
|
18714
18834
|
* Dispose of the renderer and its buffers.
|
|
@@ -18808,6 +18928,7 @@ type InteractionPayload = {
|
|
|
18808
18928
|
type InteractionEvents = {
|
|
18809
18929
|
click: InteractionPayload;
|
|
18810
18930
|
hover: Omit<InteractionPayload, 'pointerEvent'>;
|
|
18931
|
+
'long-press': InteractionPayload;
|
|
18811
18932
|
'singletap-with-twofinger': PointerEvent;
|
|
18812
18933
|
'doubletap-with-onefinger': PointerEvent;
|
|
18813
18934
|
};
|
|
@@ -18851,6 +18972,16 @@ declare class InteractionSystem extends PubSub<InteractionEvents> {
|
|
|
18851
18972
|
getGroupContainerIntersectsFromXY(point: Vector2): any;
|
|
18852
18973
|
private onPointerDown;
|
|
18853
18974
|
private clickTimeout;
|
|
18975
|
+
private pressTimeout;
|
|
18976
|
+
private pressTriggered;
|
|
18977
|
+
private clearPressTimer;
|
|
18978
|
+
/**
|
|
18979
|
+
* Fires a `press` (long-press) if the pointer is still held in place: the
|
|
18980
|
+
* mouse-down is still active, the gesture has not become a pan, it has not
|
|
18981
|
+
* moved past the click distance threshold, and it is a single pointer (not a
|
|
18982
|
+
* pinch / two-finger gesture). Publishes the same payload shape as `click`.
|
|
18983
|
+
*/
|
|
18984
|
+
private maybeFirePress;
|
|
18854
18985
|
private onPointerUp;
|
|
18855
18986
|
private flush;
|
|
18856
18987
|
handleHover(e?: PointerEvent): void;
|
|
@@ -20127,6 +20258,18 @@ declare class OutlineInterpolationSystem extends PubSub<{
|
|
|
20127
20258
|
destroy(): void;
|
|
20128
20259
|
}
|
|
20129
20260
|
//#endregion
|
|
20261
|
+
//#region ../renderer-three/src/systems/image/constants.d.ts
|
|
20262
|
+
/** Target dimensions for each LOD level when using resize worker */
|
|
20263
|
+
declare const LOD_DIMENSIONS: {
|
|
20264
|
+
readonly 1: 2048;
|
|
20265
|
+
readonly 0.5: 1024;
|
|
20266
|
+
readonly 0.25: 512;
|
|
20267
|
+
readonly 0.125: 256;
|
|
20268
|
+
};
|
|
20269
|
+
//#endregion
|
|
20270
|
+
//#region ../renderer-three/src/systems/image/types.d.ts
|
|
20271
|
+
type LODDimension = (typeof LOD_DIMENSIONS)[keyof typeof LOD_DIMENSIONS];
|
|
20272
|
+
//#endregion
|
|
20130
20273
|
//#region ../renderer-three/src/systems/image/system.d.ts
|
|
20131
20274
|
declare class ImageSystem extends PubSub<{
|
|
20132
20275
|
'image-loaded': void;
|
|
@@ -20181,6 +20324,18 @@ declare class ImageSystem extends PubSub<{
|
|
|
20181
20324
|
* Disposes all cached textures and clears state. Called on renderer destroy to prevent GPU leaks.
|
|
20182
20325
|
*/
|
|
20183
20326
|
destroy(): void;
|
|
20327
|
+
/**
|
|
20328
|
+
* Returns cache statistics for all image overlays. Delegates to the LOD controller.
|
|
20329
|
+
* @internal - For diagnostic tooling only.
|
|
20330
|
+
*/
|
|
20331
|
+
getCacheStats(): Map<string, {
|
|
20332
|
+
url: string;
|
|
20333
|
+
base: three0.Texture | null;
|
|
20334
|
+
hi: three0.Texture | null;
|
|
20335
|
+
hiLod: LODDimension | null;
|
|
20336
|
+
isResizable: boolean;
|
|
20337
|
+
maxLongEdge: number;
|
|
20338
|
+
}>;
|
|
20184
20339
|
updateImageScreenBBoxes(meshComponent: MeshComponent | ImageComponent): void;
|
|
20185
20340
|
}
|
|
20186
20341
|
//#endregion
|
|
@@ -20755,7 +20910,7 @@ declare class ClippingPlaneSystem {
|
|
|
20755
20910
|
* class SpherePlugin implements ISystemPlugin {
|
|
20756
20911
|
* private sphere: Mesh | null = null;
|
|
20757
20912
|
*
|
|
20758
|
-
* update(state: TRendererState): void {
|
|
20913
|
+
* update(state: TRendererState, systems): void {
|
|
20759
20914
|
* // One-time setup — add a sphere to the scene
|
|
20760
20915
|
* if (!this.sphere) {
|
|
20761
20916
|
* const geo = new SphereGeometry(3, 32, 32);
|
|
@@ -20775,7 +20930,7 @@ declare class ClippingPlaneSystem {
|
|
|
20775
20930
|
* ### Reading ECS component data
|
|
20776
20931
|
* ```ts
|
|
20777
20932
|
* class InspectorPlugin implements ISystemPlugin {
|
|
20778
|
-
* update(state: TRendererState): void {
|
|
20933
|
+
* update(state: TRendererState, systems): void {
|
|
20779
20934
|
* for (const geometry of state.geometry3DsInScene) {
|
|
20780
20935
|
* const style = geometry.getComponent('style');
|
|
20781
20936
|
* if (style) {
|
|
@@ -20790,7 +20945,7 @@ declare class ClippingPlaneSystem {
|
|
|
20790
20945
|
* ### Mutating ECS styles (mark dirty to apply)
|
|
20791
20946
|
* ```ts
|
|
20792
20947
|
* class HighlightPlugin implements ISystemPlugin {
|
|
20793
|
-
* update(state: TRendererState): void {
|
|
20948
|
+
* update(state: TRendererState, systems): void {
|
|
20794
20949
|
* for (const geometry of state.geometry3DMap.values()) {
|
|
20795
20950
|
* const style = geometry.getComponent('style');
|
|
20796
20951
|
* if (style) {
|
|
@@ -20806,14 +20961,16 @@ declare class ClippingPlaneSystem {
|
|
|
20806
20961
|
*/
|
|
20807
20962
|
interface ISystemPlugin$2 {
|
|
20808
20963
|
/**
|
|
20809
|
-
* Called every frame with the current renderer state.
|
|
20964
|
+
* Called every frame with the current renderer state and all renderer systems.
|
|
20810
20965
|
*
|
|
20811
20966
|
* @param state - The renderer state snapshot for this frame. Contains Three.js objects
|
|
20812
20967
|
* (`threeJSScene`, `renderer`, `cameraObject`, `directionalLight`, `ambientLight`),
|
|
20813
20968
|
* the geometry scene graph (`geometryScene`), and all ECS entity maps
|
|
20814
20969
|
* (`geometry3DMap`, `geometry3DsInScene`, `geometry2DMap`, `geometry2DsInScene`).
|
|
20970
|
+
* @param systems - All renderer systems (`modelSystem`, `imageSystem`, `cameraSystem`,
|
|
20971
|
+
* `drawSystem`, etc.). Use this to read or drive system state directly from a plugin.
|
|
20815
20972
|
*/
|
|
20816
|
-
update(state: RendererState): void;
|
|
20973
|
+
update(state: RendererState, systems: Systems): void;
|
|
20817
20974
|
}
|
|
20818
20975
|
/**
|
|
20819
20976
|
* Manages registered {@link ISystemPlugin} instances and invokes them each frame.
|
|
@@ -20828,7 +20985,7 @@ declare class PluginSystem {
|
|
|
20828
20985
|
/** @internal */
|
|
20829
20986
|
unregisterPlugin(plugin: ISystemPlugin$2): void;
|
|
20830
20987
|
/** @internal */
|
|
20831
|
-
update(state: RendererState): void;
|
|
20988
|
+
update(state: RendererState, systems: Systems): void;
|
|
20832
20989
|
}
|
|
20833
20990
|
//#endregion
|
|
20834
20991
|
//#region ../renderer-three/src/systems/shadows/system.d.ts
|
|
@@ -21092,6 +21249,29 @@ declare class ModelSystem extends PubSub<{
|
|
|
21092
21249
|
* Hides the model instancing debug UI
|
|
21093
21250
|
*/
|
|
21094
21251
|
hideDebug(): void;
|
|
21252
|
+
/**
|
|
21253
|
+
* Returns a map of model batch stats keyed by URL hash, aggregating count/maxCount across
|
|
21254
|
+
* all batches sharing the same URL hash. For diagnostic tooling only.
|
|
21255
|
+
* @internal - For diagnostic tooling only.
|
|
21256
|
+
*/
|
|
21257
|
+
getBatchStats(): Map<number, {
|
|
21258
|
+
urlHash: number;
|
|
21259
|
+
count: number;
|
|
21260
|
+
maxCount: number;
|
|
21261
|
+
opacity: number;
|
|
21262
|
+
}>;
|
|
21263
|
+
/**
|
|
21264
|
+
* Returns a map of non-instanced model entity IDs to their URL hash.
|
|
21265
|
+
* @internal - For diagnostic tooling only.
|
|
21266
|
+
*/
|
|
21267
|
+
getNonInstancedModels(): Map<string | number, {
|
|
21268
|
+
urlHash: number;
|
|
21269
|
+
}>;
|
|
21270
|
+
/**
|
|
21271
|
+
* Returns a map of URL hashes to the original model URLs.
|
|
21272
|
+
* @internal - For diagnostic tooling only.
|
|
21273
|
+
*/
|
|
21274
|
+
getModelUrls(): Map<number, string>;
|
|
21095
21275
|
/**
|
|
21096
21276
|
* Lazily loads and returns the GLTFLoader instance
|
|
21097
21277
|
* @returns The GLTFLoader instance
|
|
@@ -21301,6 +21481,14 @@ declare class TwoDEntitySystem {
|
|
|
21301
21481
|
* @param id - The entity ID
|
|
21302
21482
|
*/
|
|
21303
21483
|
deleteTextCacheEntry(id: string | number): void;
|
|
21484
|
+
/**
|
|
21485
|
+
* Reports aggregate 2D label cache statistics plus per-label cached-membership
|
|
21486
|
+
* flags for every label in the scene. Shared caches (pin/wrapper/image) are
|
|
21487
|
+
* not attributed per-label (to avoid double-counting) — only text canvas
|
|
21488
|
+
* bytes are directly attributed.
|
|
21489
|
+
* @internal - For diagnostic tooling only.
|
|
21490
|
+
*/
|
|
21491
|
+
getLabelCacheStats(): LabelCacheStats;
|
|
21304
21492
|
/** Enables the debug overlay that draws visible collision boxes. */
|
|
21305
21493
|
showCollisionBoxes(): void;
|
|
21306
21494
|
/** Disables the debug overlay and clears the canvas. */
|
|
@@ -22363,6 +22551,10 @@ type MapEvent = {
|
|
|
22363
22551
|
* Fired when the user clicks on an interactive entity on the map.
|
|
22364
22552
|
*/
|
|
22365
22553
|
click: ClickPayload;
|
|
22554
|
+
/**
|
|
22555
|
+
* Fired when the user long-presses (taps and holds) on the map.
|
|
22556
|
+
*/
|
|
22557
|
+
'long-press': ClickPayload;
|
|
22366
22558
|
/**
|
|
22367
22559
|
* Fired when the camera moves, either by user interaction or programmatic change.
|
|
22368
22560
|
*/
|
|
@@ -22417,6 +22609,58 @@ type MapEvent = {
|
|
|
22417
22609
|
* All entities in 3D
|
|
22418
22610
|
*/
|
|
22419
22611
|
type All3DTypes = Geometry3DTypes | FeatureCollectionObject3D | GroupContainerObject3D;
|
|
22612
|
+
/**
|
|
22613
|
+
* Per-frame render statistics summed across every render pass in a frame
|
|
22614
|
+
* (the main pass and the always-on-top pass). Read from Three.js
|
|
22615
|
+
* `WebGLRenderer.info.render` so plugins (such as the render-cost-analyzer)
|
|
22616
|
+
* can inspect the cost of the current frame.
|
|
22617
|
+
*/
|
|
22618
|
+
interface RenderFrameStats {
|
|
22619
|
+
drawCalls: number;
|
|
22620
|
+
triangles: number;
|
|
22621
|
+
lines: number;
|
|
22622
|
+
points: number;
|
|
22623
|
+
}
|
|
22624
|
+
/**
|
|
22625
|
+
* Per-label diagnostic entry reporting cache membership and attributable memory.
|
|
22626
|
+
* @internal - For diagnostic tooling only.
|
|
22627
|
+
*/
|
|
22628
|
+
interface LabelCacheEntry {
|
|
22629
|
+
/** The label's id (also the textCache key). */
|
|
22630
|
+
id: string;
|
|
22631
|
+
/** The label's text content. */
|
|
22632
|
+
text: string;
|
|
22633
|
+
/** Screen-space projection of the label anchor. */
|
|
22634
|
+
screenPosition: {
|
|
22635
|
+
x: number;
|
|
22636
|
+
y: number;
|
|
22637
|
+
};
|
|
22638
|
+
/** Rasterized text dimensions. */
|
|
22639
|
+
dimensions: {
|
|
22640
|
+
width: number;
|
|
22641
|
+
height: number;
|
|
22642
|
+
};
|
|
22643
|
+
/** Whether the label's text canvases are present in the text cache. */
|
|
22644
|
+
textCached: boolean;
|
|
22645
|
+
/** Whether the label's pin canvases are present in the pin cache. */
|
|
22646
|
+
pinCached: boolean;
|
|
22647
|
+
/** Whether the label's icon image is present in the image cache. */
|
|
22648
|
+
imageCached: boolean;
|
|
22649
|
+
/** Bytes of the label's own text canvases (directly attributable). */
|
|
22650
|
+
textMemoryBytes: number;
|
|
22651
|
+
/** Total attributable bytes for this label (currently equal to textMemoryBytes). */
|
|
22652
|
+
totalMemoryBytes: number;
|
|
22653
|
+
}
|
|
22654
|
+
/**
|
|
22655
|
+
* Aggregate label cache statistics plus per-label membership flags.
|
|
22656
|
+
* @internal - For diagnostic tooling only.
|
|
22657
|
+
*/
|
|
22658
|
+
interface LabelCacheStats {
|
|
22659
|
+
/** Aggregate per-cache counts and byte sizes from the 2D draw system. */
|
|
22660
|
+
cacheStats: TwoDDrawSystemCacheStats;
|
|
22661
|
+
/** Per-label entries for every label currently in the scene. */
|
|
22662
|
+
labels: LabelCacheEntry[];
|
|
22663
|
+
}
|
|
22420
22664
|
/**
|
|
22421
22665
|
* Snapshot of the renderer's internal state passed to {@link ISystemPlugin}
|
|
22422
22666
|
* instances on every frame. Exposes the Three.js scene, camera and geometry
|
|
@@ -22490,6 +22734,12 @@ type RendererState = {
|
|
|
22490
22734
|
outlinesOptions?: OutlinesOptions$1;
|
|
22491
22735
|
/** State shared with the 2D labels/markers pipeline */
|
|
22492
22736
|
geometry2DState: TwoDPipelineState;
|
|
22737
|
+
/**
|
|
22738
|
+
* Per-frame render statistics (draw calls, triangles, lines, points)
|
|
22739
|
+
* summed across both render passes. Populated each frame by the render
|
|
22740
|
+
* system from the renderer service.
|
|
22741
|
+
*/
|
|
22742
|
+
renderStats: RenderFrameStats;
|
|
22493
22743
|
};
|
|
22494
22744
|
/**
|
|
22495
22745
|
* All of the entities in the scene
|
|
@@ -23191,4 +23441,4 @@ declare const getVersion: () => string | undefined;
|
|
|
23191
23441
|
*/
|
|
23192
23442
|
declare const show3dMapGeojson: (el: HTMLElement, mapData: MapData, options?: TShow3DMapOptions) => Promise<MapView>;
|
|
23193
23443
|
//#endregion
|
|
23194
|
-
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 TExperimentalDashStyleOptions, 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 };
|
|
23444
|
+
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 TExperimentalDashStyleOptions, type TFacadeState, type TFacadeUpdateState, type TFindNearestOptions, type TFindNearestResult, type TFindPreferredLanguageInVenueOptions, type TFloorAltitudeData, type TFloorChangePayload, type TFloorChangeReason, type TFloorState, type TFloorUpdateState, type TFocusOnOptions, type TFocusTarget, type TGeometryState, type TGeometryUpdateState, type TGetDirectionsOptions, type TGetMapDataOptions, type TGetMapDataSharedOptions, type TGetMapDataWithAccessTokenOptions, type TGetMapDataWithCredentialsOptions, type TGetState, type THoverPayload, type THydrateMapDataBundle, type TImage3DState as TImageState, type TImage3DUpdateState as TImageUpdateState, type TLabelState, type TLabelUpdateState, type TLogLevelName, type TLongPressPayload, type TMVF, type TMVFLineStringStyle, type TMVFPointStyle, type TMVFPolygonStyle, type TMVFStyle, type TMVFStyleCollection, type TMapDataEvents, type TMapDataObjectTypes, type TMapFeatureTypes, type TMapViewObjectTypes, type TMarkerPlacement, type TMarkerState, type TMarkerUpdateState, type TModelState, type TModelUpdateState, type TMultiFloorViewOptions, type TNavigationMarker, type TNavigationMarkerType, type TNavigationOptions, type TNavigationPathOptions, type TNavigationTarget, type TOutsideThresholdPathStyle, type TPathSectionHighlightOptions, type TPathState, type TPathUpdateState, type TQueriables, type TQueryAtResult, type RendererState as TRendererState, type TSearchOptions, type TSetFloorOptions, type TShapeState, type TShapeUpdateState, type TShow3DMapOptions, type TSpaceType, type TStateChangedInternalPayload, type TTakeScreenshotOptions, type TTetheredOptions as TTetherOptions, type TText3DState, type TText3DUpdateState, type TTrackCoordinateOptions, type TTravelledOptions, type TUpdateState, type TWallsState, type TWallsUpdateState, TWatermarkOptions, type Text3D, type Text3DView, type UpdateGlobalState, type VisibilityState, WALLS, type WithState, MAPPEDIN_LAYER_ID as __INTERNAL__MAPPEDIN_LAYER_ID, MapLibreOverlay as __INTERNAL__MapLibreOverlay, Core as __INTERNAL__RendererCore, convertToRendererCoreOptions as __INTERNAL__convertToRendererCoreOptions, __setWatermarkOnClickFn, checkWorkerUrls, disableText3DWorker, enableTestMode, findPreferredLanguageInVenue, forceEnterpriseLocations, getMapData, getMapDataEnterprise, getMultiFloorState, getVersion, hydrateMapData, hydrateMapDataFromMVF, parseLogLevel, parseMVFv2 as parseMVF, preloadFont, setLoggerLevel, setUseEnterpriseAPI, setWorkersUrl, shouldForceEnterpriseLocations, show3dMap, show3dMapGeojson, unzipAndParseMVFv2, unzipMVFv2 as unzipMVF };
|
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as D,B as E,C as F,D as G,E as N,F as O,I as P,J as Q,K as R,L as S,M as T,N as U,O as V,P as W,Q as X,R as Y,S as Z,T as _,U as $,V as aa,W as ba,X as ca,a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as v,t as w,u as x,v as y,w as z,x as A,y as B,z as C}from"./chunk-
|
|
1
|
+
import{A as D,B as E,C as F,D as G,E as N,F as O,I as P,J as Q,K as R,L as S,M as T,N as U,O as V,P as W,Q as X,R as Y,S as Z,T as _,U as $,V as aa,W as ba,X as ca,a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as v,t as w,u as x,v as y,w as z,x as A,y as B,z as C}from"./chunk-BM2RB7WJ.js";import{x as L,z as M}from"./chunk-LOAM3DPE.js";import{Ea as J,Q as H,Z as I,a,b,d as c,pb as K}from"./chunk-OYQCSZIS.js";import"./chunk-FHFIN6MU.js";import"./chunk-SKYT6FEZ.js";import"./chunk-PWEV3AFA.js";export{z as ACTION_TYPE,H as ANIMATION_TWEENS,t as Annotation,m as Area,A as BEARING_TYPE,B as CONNECTION_TYPE,q as Connection,g as Coordinate,D as DOORS,k as DetailedMapData,E as Directions,n as Door,a as E_SDK_LOG_LEVEL,x as EnterpriseCategory,w as EnterpriseLocation,y as EnterpriseVenue,v as Facade,p as Floor,u as FloorStack,i as Hyperlink,j as ImageMetaData,G as LocationCategory,F as LocationProfile,l as MAPPEDIN_COLORS,r as MapObject,Q as MapView,h as Node,s as PointOfInterest,o as Space,C as WALLS,J as __INTERNAL__MAPPEDIN_LAYER_ID,M as __INTERNAL__MapLibreOverlay,L as __INTERNAL__RendererCore,S as __INTERNAL__convertToRendererCoreOptions,U as __setWatermarkOnClickFn,$ as checkWorkerUrls,O as disableText3DWorker,I as enableTestMode,T as findPreferredLanguageInVenue,X as forceEnterpriseLocations,Z as getMapData,_ as getMapDataEnterprise,N as getMultiFloorState,ba as getVersion,R as hydrateMapData,V as hydrateMapDataFromMVF,b as parseLogLevel,d as parseMVF,K as preloadFont,c as setLoggerLevel,W as setUseEnterpriseAPI,P as setWorkersUrl,Y as shouldForceEnterpriseLocations,aa as show3dMap,ca as show3dMapGeojson,f as unzipAndParseMVFv2,e as unzipMVF};
|