@mappedin/mappedin-js 6.25.0 → 6.26.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 +121 -0
- package/lib/esm/{GLTFExporter-2YKLBCPY.js → GLTFExporter-2K7DG5JL.js} +1 -1
- package/lib/esm/{GLTFLoader-VF2YNOHD.js → GLTFLoader-KAQCOFOB.js} +1 -1
- package/lib/esm/{chunk-CO4ZOCZ7.js → chunk-3P7B76SS.js} +1 -1
- package/lib/esm/{chunk-FYSWNSO7.js → chunk-6PIWF5Q5.js} +7 -7
- package/lib/esm/{chunk-R4YYWOA4.js → chunk-GP5WKEWH.js} +1 -1
- package/lib/esm/chunk-O2I4AFRG.js +1230 -0
- package/lib/esm/{chunk-I5GYZORE.js → chunk-WHNMZZSC.js} +3 -3
- package/lib/esm/index.d.ts +192 -30
- package/lib/esm/index.js +1 -1
- package/lib/esm/{inspector-RHOYG5KR.js → inspector-GUU4LZSY.js} +3 -3
- package/lib/esm/{internal-4S5IPA5O.js → internal-B77FNKFN.js} +1 -1
- package/lib/esm/{src-2BZUPZLG.js → src-KCRI64F4.js} +1 -1
- package/lib/esm/{text3d-NPU3WI3W.js → text3d-VRT45WDN.js} +1 -1
- package/package.json +2 -1
- package/lib/esm/chunk-2ZEZ2HG5.js +0 -1230
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _mappedin_mvf_v24 from "@mappedin/mvf-v2";
|
|
2
2
|
import { AnnotationCollection, AnnotationSymbol, AreaCollection, AreaId, BaseTextAreaProperties, Category, CategoryId, Connection as Connection$1, Details, EnterpriseCategory as EnterpriseCategory$1, EnterpriseCategoryId, EnterpriseLocation as EnterpriseLocation$1, EnterpriseLocationId, EnterpriseLocationInstance, EnterpriseTexture, EnterpriseVenue as EnterpriseVenue$1, EnterpriseVenueType, EntranceCollection, EntranceFeature, Facade as Facade$1, Feature as Feature$1, FeatureCollection as FeatureCollection$1, FloatingFloorTextProperties, FloorCollection, FloorId, FloorProperties, FloorStack as FloorStack$1, FloorTextCommonProperties, Geometry as Geometry$1, Hyperlink as Hyperlink$1, Image, Language, LineStringStyle, LineStringStyle as TMVFLineStringStyle, Location, LocationId, LocationLink, LocationSocial, LocationSocial as LocationSocial$1, LocationState, LocationState as LocationState$1, MVFv2_STANDARD_MVFv3, MultiPolygon as MultiPolygon$1, NavigationFlagDeclarations, NodeCollection, NodeId, ObstructionCollection, ObstructionCollection as ObstructionCollection$1, ObstructionFeature, ObstructionId, OpeningHoursSpecification, OperationHours, OperationHours as OperationHours$1, ParsedMVF, ParsedMVF as TMVF, ParsedMVFLocalePack, Point as Point$1, PointStyle, PointStyle as TMVFPointStyle, Polygon as Polygon$1, PolygonStyle, PolygonStyle as TMVFPolygonStyle, SiblingGroup, SiblingGroup as SiblingGroup$1, SpaceCollection, SpaceCollection as SpaceCollection$1, SpaceFeature, SpaceId, SpaceProperties, Style as TMVFStyle, StyleCollection, StyleCollection as TMVFStyleCollection, TilesetStyle } from "@mappedin/mvf-v2";
|
|
3
3
|
import { MVFv2_STANDARD_MVFv3 as MVFv2_STANDARD_MVFv3$1, ParsedMVF as ParsedMVF$1, RawMVF } from "@mappedin/mvf-v2/no-validator-lite";
|
|
4
4
|
import * as three0 from "three";
|
|
@@ -3840,6 +3840,32 @@ interface TwoDPipelineState {
|
|
|
3840
3840
|
* @returns Screen-space position or null if off-screen
|
|
3841
3841
|
*/
|
|
3842
3842
|
type ProjectFn = (worldX: number, worldY: number, worldZ: number) => Vec2 | null;
|
|
3843
|
+
/**
|
|
3844
|
+
* Aggregate counts and byte size for a single 2D draw cache.
|
|
3845
|
+
* @internal - For diagnostic tooling only.
|
|
3846
|
+
*/
|
|
3847
|
+
interface TwoDCacheStats {
|
|
3848
|
+
/** Number of entries in the cache. */
|
|
3849
|
+
entryCount: number;
|
|
3850
|
+
/** Number of canvases held by the cache (0 for image caches). */
|
|
3851
|
+
canvasCount: number;
|
|
3852
|
+
/** Total memory rasterized by the cache's canvases/images, in bytes (RGBA). */
|
|
3853
|
+
memoryBytes: number;
|
|
3854
|
+
}
|
|
3855
|
+
/**
|
|
3856
|
+
* Aggregate cache statistics across every cache owned by the 2D draw system.
|
|
3857
|
+
* @internal - For diagnostic tooling only.
|
|
3858
|
+
*/
|
|
3859
|
+
interface TwoDDrawSystemCacheStats {
|
|
3860
|
+
textCache: TwoDCacheStats;
|
|
3861
|
+
pinCache: TwoDCacheStats;
|
|
3862
|
+
wrapperCache: TwoDCacheStats;
|
|
3863
|
+
imageCache: TwoDCacheStats;
|
|
3864
|
+
/** Bytes of the full-screen label canvas (held as the draw system's collider canvas). */
|
|
3865
|
+
labelCanvasBytes: number;
|
|
3866
|
+
/** Sum of all per-cache bytes plus the label canvas bytes. */
|
|
3867
|
+
totalMemoryBytes: number;
|
|
3868
|
+
}
|
|
3843
3869
|
type Entity2DHTMLDivElement = HTMLDivElement & {
|
|
3844
3870
|
userData: {
|
|
3845
3871
|
entityId: string | number;
|
|
@@ -3972,6 +3998,21 @@ declare class TwoDDrawSystem extends PubSub<{
|
|
|
3972
3998
|
};
|
|
3973
3999
|
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
4000
|
cacheImage: (label: LabelComponent) => void;
|
|
4001
|
+
/**
|
|
4002
|
+
* Byte size of a single canvas assuming 4 bytes per pixel (RGBA).
|
|
4003
|
+
*/
|
|
4004
|
+
private static canvasBytes;
|
|
4005
|
+
/**
|
|
4006
|
+
* Byte size of a cached image. Prefers the decoded natural dimensions
|
|
4007
|
+
* (HTMLImageElement) and falls back to `width`/`height` (ImageBitmap).
|
|
4008
|
+
*/
|
|
4009
|
+
private static imageBytes;
|
|
4010
|
+
/**
|
|
4011
|
+
* Returns aggregate per-cache counts and byte sizes for every cache owned
|
|
4012
|
+
* by the draw system, plus the full-screen label canvas.
|
|
4013
|
+
* @internal - For diagnostic tooling only.
|
|
4014
|
+
*/
|
|
4015
|
+
getCacheStats(): TwoDDrawSystemCacheStats;
|
|
3975
4016
|
createPinCanvas: (label: LabelComponent, pinSize: number, backgroundColor: string, foregroundColor: string, maxIconScale?: number) => HTMLCanvasElement | OffscreenCanvas;
|
|
3976
4017
|
prepare: (label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D) => void;
|
|
3977
4018
|
/**
|
|
@@ -7774,7 +7815,7 @@ declare class MapView {
|
|
|
7774
7815
|
* path, and 2D systems, but before `DrawSystem` and `paint()`).
|
|
7775
7816
|
*
|
|
7776
7817
|
* @param plugin - An object implementing {@link ISystemPlugin}. Must have an
|
|
7777
|
-
* `update(state: TRendererState)` method.
|
|
7818
|
+
* `update(state: TRendererState, systems)` method.
|
|
7778
7819
|
*
|
|
7779
7820
|
* @example
|
|
7780
7821
|
* ### Standalone mode — add a spinning cube
|
|
@@ -7785,7 +7826,7 @@ declare class MapView {
|
|
|
7785
7826
|
* class CubePlugin implements ISystemPlugin {
|
|
7786
7827
|
* private cube: Mesh | null = null;
|
|
7787
7828
|
*
|
|
7788
|
-
* update(state: TRendererState): void {
|
|
7829
|
+
* update(state: TRendererState, systems): void {
|
|
7789
7830
|
* if (!this.cube) {
|
|
7790
7831
|
* this.cube = new Mesh(
|
|
7791
7832
|
* new BoxGeometry(5, 5, 5),
|
|
@@ -7810,7 +7851,7 @@ declare class MapView {
|
|
|
7810
7851
|
* class SpherePlugin implements ISystemPlugin {
|
|
7811
7852
|
* private sphere: Mesh | null = null;
|
|
7812
7853
|
*
|
|
7813
|
-
* update(state: TRendererState): void {
|
|
7854
|
+
* update(state: TRendererState, systems): void {
|
|
7814
7855
|
* if (!this.sphere) {
|
|
7815
7856
|
* this.sphere = new Mesh(
|
|
7816
7857
|
* new SphereGeometry(3, 32, 32),
|
|
@@ -9461,7 +9502,7 @@ type TGeometryUpdateState = output<typeof geometryStateSchemaPartial>;
|
|
|
9461
9502
|
declare const labelStateSchema: ZodObject<{
|
|
9462
9503
|
type: ZodDefault<ZodLiteral<"label">>;
|
|
9463
9504
|
text: ZodString;
|
|
9464
|
-
rank: ZodCustom<"initial" |
|
|
9505
|
+
rank: ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">;
|
|
9465
9506
|
appearance: ZodCustom<LabelAppearance, LabelAppearance>;
|
|
9466
9507
|
interactive: ZodDefault<ZodBoolean>;
|
|
9467
9508
|
enabled: ZodDefault<ZodBoolean>;
|
|
@@ -9484,7 +9525,7 @@ declare const labelStateSchema: ZodObject<{
|
|
|
9484
9525
|
declare const labelStateSchemaPartial: ZodObject<{
|
|
9485
9526
|
type: ZodOptional<ZodDefault<ZodLiteral<"label">>>;
|
|
9486
9527
|
text: ZodOptional<ZodString>;
|
|
9487
|
-
rank: ZodOptional<ZodCustom<"initial" |
|
|
9528
|
+
rank: ZodOptional<ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">>;
|
|
9488
9529
|
appearance: ZodOptional<ZodCustom<LabelAppearance, LabelAppearance>>;
|
|
9489
9530
|
interactive: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9490
9531
|
enabled: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
@@ -9517,7 +9558,7 @@ type TLabelUpdateState = output<typeof labelStateSchemaPartial>;
|
|
|
9517
9558
|
/** @internal */
|
|
9518
9559
|
declare const markerStateSchema: ZodObject<{
|
|
9519
9560
|
type: ZodDefault<ZodLiteral<"marker">>;
|
|
9520
|
-
rank: ZodCustom<"initial" |
|
|
9561
|
+
rank: ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">;
|
|
9521
9562
|
placement: ZodOptional<ZodUnion<readonly [ZodEnum<{
|
|
9522
9563
|
hidden: "hidden";
|
|
9523
9564
|
top: "top";
|
|
@@ -9558,10 +9599,10 @@ declare const markerStateSchema: ZodObject<{
|
|
|
9558
9599
|
/** @internal */
|
|
9559
9600
|
declare const markerStateSchemaPartial: ZodObject<{
|
|
9560
9601
|
type: ZodOptional<ZodDefault<ZodLiteral<"marker">>>;
|
|
9602
|
+
enabled: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9561
9603
|
interactive: ZodOptional<ZodDefault<ZodUnion<readonly [ZodBoolean, ZodLiteral<"pointer-events-auto">]>>>;
|
|
9562
|
-
rank: ZodOptional<ZodCustom<"initial" |
|
|
9604
|
+
rank: ZodOptional<ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">>;
|
|
9563
9605
|
occlude: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9564
|
-
enabled: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9565
9606
|
placement: ZodOptional<ZodOptional<ZodUnion<readonly [ZodEnum<{
|
|
9566
9607
|
hidden: "hidden";
|
|
9567
9608
|
top: "top";
|
|
@@ -10318,7 +10359,8 @@ declare class NavigationGraph {
|
|
|
10318
10359
|
getShortestEuclideanDistance(origin: NodeFeature, destinations: NodeFeature[]): number;
|
|
10319
10360
|
hasLineOfSight: (origin: Position, destination: Position, edges?: Position[][], bufferRadius?: number) => boolean;
|
|
10320
10361
|
/**
|
|
10321
|
-
* Performs a Dijkstra search to find nodes within a given travel distance that satisfy a goal function
|
|
10362
|
+
* Performs a Dijkstra search to find nodes within a given travel distance that satisfy a goal function.
|
|
10363
|
+
* Results are popped in non-decreasing distance order from the min-heap, so no final sort is needed.
|
|
10322
10364
|
*
|
|
10323
10365
|
* @param originId - Origin node ID.
|
|
10324
10366
|
* @param maxTravelDistance - The maximum travel distance.
|
|
@@ -13265,8 +13307,8 @@ declare class Area extends DetailedMapData<AreaCollection['features'][number]> i
|
|
|
13265
13307
|
*/
|
|
13266
13308
|
get geoJSON(): {
|
|
13267
13309
|
properties: null;
|
|
13268
|
-
type:
|
|
13269
|
-
geometry:
|
|
13310
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
13311
|
+
geometry: _mappedin_mvf_v24.Polygon;
|
|
13270
13312
|
};
|
|
13271
13313
|
/** @internal */
|
|
13272
13314
|
get focusTarget(): this;
|
|
@@ -13368,8 +13410,8 @@ declare class Door extends DetailedMapData<EntranceFeature> implements IGeoJSOND
|
|
|
13368
13410
|
*/
|
|
13369
13411
|
get geoJSON(): {
|
|
13370
13412
|
properties: null;
|
|
13371
|
-
type:
|
|
13372
|
-
geometry:
|
|
13413
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
13414
|
+
geometry: _mappedin_mvf_v24.LineString;
|
|
13373
13415
|
};
|
|
13374
13416
|
/** @internal */
|
|
13375
13417
|
get focusTarget(): Coordinate;
|
|
@@ -13505,8 +13547,8 @@ declare class Space extends DetailedMapData<SpaceFeature> implements IGeoJSONDat
|
|
|
13505
13547
|
*/
|
|
13506
13548
|
get geoJSON(): {
|
|
13507
13549
|
properties: null;
|
|
13508
|
-
type:
|
|
13509
|
-
geometry:
|
|
13550
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
13551
|
+
geometry: _mappedin_mvf_v24.Point | _mappedin_mvf_v24.LineString | _mappedin_mvf_v24.Polygon;
|
|
13510
13552
|
};
|
|
13511
13553
|
/** @internal */
|
|
13512
13554
|
get focusTarget(): this | Coordinate;
|
|
@@ -13592,7 +13634,7 @@ declare class PointOfInterest extends DetailedMapData<FeatureCollection$1<Point$
|
|
|
13592
13634
|
*/
|
|
13593
13635
|
get geoJSON(): {
|
|
13594
13636
|
properties: null;
|
|
13595
|
-
type:
|
|
13637
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
13596
13638
|
geometry: Point$1;
|
|
13597
13639
|
};
|
|
13598
13640
|
/**
|
|
@@ -13706,8 +13748,8 @@ declare class Annotation extends DetailedMapData<AnnotationCollection['features'
|
|
|
13706
13748
|
*/
|
|
13707
13749
|
get geoJSON(): {
|
|
13708
13750
|
properties: null;
|
|
13709
|
-
type:
|
|
13710
|
-
geometry:
|
|
13751
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
13752
|
+
geometry: _mappedin_mvf_v24.Point;
|
|
13711
13753
|
};
|
|
13712
13754
|
/** @internal */
|
|
13713
13755
|
get focusTarget(): Coordinate;
|
|
@@ -13923,8 +13965,8 @@ declare class MapObject extends DetailedMapData<ObstructionFeature> implements I
|
|
|
13923
13965
|
*/
|
|
13924
13966
|
get geoJSON(): {
|
|
13925
13967
|
properties: null;
|
|
13926
|
-
type:
|
|
13927
|
-
geometry:
|
|
13968
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
13969
|
+
geometry: _mappedin_mvf_v24.LineString | _mappedin_mvf_v24.Polygon;
|
|
13928
13970
|
};
|
|
13929
13971
|
/** @internal */
|
|
13930
13972
|
get anchorTarget(): Coordinate;
|
|
@@ -14237,8 +14279,8 @@ declare class Node extends BaseMetaData implements IGeoJSONData, IFocusable, IAn
|
|
|
14237
14279
|
*/
|
|
14238
14280
|
get geoJSON(): {
|
|
14239
14281
|
properties: null;
|
|
14240
|
-
type:
|
|
14241
|
-
geometry:
|
|
14282
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
14283
|
+
geometry: _mappedin_mvf_v24.Point;
|
|
14242
14284
|
};
|
|
14243
14285
|
/** @internal */
|
|
14244
14286
|
get focusTarget(): Coordinate;
|
|
@@ -16294,7 +16336,7 @@ declare class MapData {
|
|
|
16294
16336
|
* console.log(`Current language: ${language.name} (${language.code})`);
|
|
16295
16337
|
* ```
|
|
16296
16338
|
*/
|
|
16297
|
-
get currentLanguage():
|
|
16339
|
+
get currentLanguage(): _mappedin_mvf_v24.Language | undefined;
|
|
16298
16340
|
/**
|
|
16299
16341
|
* Gets the natural bearing of the map.
|
|
16300
16342
|
*
|
|
@@ -18709,6 +18751,11 @@ declare class Renderer {
|
|
|
18709
18751
|
height: number;
|
|
18710
18752
|
options: TRendererOptions;
|
|
18711
18753
|
renderer?: WebGLRenderer;
|
|
18754
|
+
/**
|
|
18755
|
+
* Render statistics for the most recent frame, summed across both render
|
|
18756
|
+
* passes (main and always-on-top).
|
|
18757
|
+
*/
|
|
18758
|
+
frameStats: RenderFrameStats;
|
|
18712
18759
|
constructor(renderOptions: TRendererOptions);
|
|
18713
18760
|
/**
|
|
18714
18761
|
* Dispose of the renderer and its buffers.
|
|
@@ -20127,6 +20174,18 @@ declare class OutlineInterpolationSystem extends PubSub<{
|
|
|
20127
20174
|
destroy(): void;
|
|
20128
20175
|
}
|
|
20129
20176
|
//#endregion
|
|
20177
|
+
//#region ../renderer-three/src/systems/image/constants.d.ts
|
|
20178
|
+
/** Target dimensions for each LOD level when using resize worker */
|
|
20179
|
+
declare const LOD_DIMENSIONS: {
|
|
20180
|
+
readonly 1: 2048;
|
|
20181
|
+
readonly 0.5: 1024;
|
|
20182
|
+
readonly 0.25: 512;
|
|
20183
|
+
readonly 0.125: 256;
|
|
20184
|
+
};
|
|
20185
|
+
//#endregion
|
|
20186
|
+
//#region ../renderer-three/src/systems/image/types.d.ts
|
|
20187
|
+
type LODDimension = (typeof LOD_DIMENSIONS)[keyof typeof LOD_DIMENSIONS];
|
|
20188
|
+
//#endregion
|
|
20130
20189
|
//#region ../renderer-three/src/systems/image/system.d.ts
|
|
20131
20190
|
declare class ImageSystem extends PubSub<{
|
|
20132
20191
|
'image-loaded': void;
|
|
@@ -20181,6 +20240,18 @@ declare class ImageSystem extends PubSub<{
|
|
|
20181
20240
|
* Disposes all cached textures and clears state. Called on renderer destroy to prevent GPU leaks.
|
|
20182
20241
|
*/
|
|
20183
20242
|
destroy(): void;
|
|
20243
|
+
/**
|
|
20244
|
+
* Returns cache statistics for all image overlays. Delegates to the LOD controller.
|
|
20245
|
+
* @internal - For diagnostic tooling only.
|
|
20246
|
+
*/
|
|
20247
|
+
getCacheStats(): Map<string, {
|
|
20248
|
+
url: string;
|
|
20249
|
+
base: three0.Texture | null;
|
|
20250
|
+
hi: three0.Texture | null;
|
|
20251
|
+
hiLod: LODDimension | null;
|
|
20252
|
+
isResizable: boolean;
|
|
20253
|
+
maxLongEdge: number;
|
|
20254
|
+
}>;
|
|
20184
20255
|
updateImageScreenBBoxes(meshComponent: MeshComponent | ImageComponent): void;
|
|
20185
20256
|
}
|
|
20186
20257
|
//#endregion
|
|
@@ -20755,7 +20826,7 @@ declare class ClippingPlaneSystem {
|
|
|
20755
20826
|
* class SpherePlugin implements ISystemPlugin {
|
|
20756
20827
|
* private sphere: Mesh | null = null;
|
|
20757
20828
|
*
|
|
20758
|
-
* update(state: TRendererState): void {
|
|
20829
|
+
* update(state: TRendererState, systems): void {
|
|
20759
20830
|
* // One-time setup — add a sphere to the scene
|
|
20760
20831
|
* if (!this.sphere) {
|
|
20761
20832
|
* const geo = new SphereGeometry(3, 32, 32);
|
|
@@ -20775,7 +20846,7 @@ declare class ClippingPlaneSystem {
|
|
|
20775
20846
|
* ### Reading ECS component data
|
|
20776
20847
|
* ```ts
|
|
20777
20848
|
* class InspectorPlugin implements ISystemPlugin {
|
|
20778
|
-
* update(state: TRendererState): void {
|
|
20849
|
+
* update(state: TRendererState, systems): void {
|
|
20779
20850
|
* for (const geometry of state.geometry3DsInScene) {
|
|
20780
20851
|
* const style = geometry.getComponent('style');
|
|
20781
20852
|
* if (style) {
|
|
@@ -20790,7 +20861,7 @@ declare class ClippingPlaneSystem {
|
|
|
20790
20861
|
* ### Mutating ECS styles (mark dirty to apply)
|
|
20791
20862
|
* ```ts
|
|
20792
20863
|
* class HighlightPlugin implements ISystemPlugin {
|
|
20793
|
-
* update(state: TRendererState): void {
|
|
20864
|
+
* update(state: TRendererState, systems): void {
|
|
20794
20865
|
* for (const geometry of state.geometry3DMap.values()) {
|
|
20795
20866
|
* const style = geometry.getComponent('style');
|
|
20796
20867
|
* if (style) {
|
|
@@ -20806,14 +20877,16 @@ declare class ClippingPlaneSystem {
|
|
|
20806
20877
|
*/
|
|
20807
20878
|
interface ISystemPlugin$2 {
|
|
20808
20879
|
/**
|
|
20809
|
-
* Called every frame with the current renderer state.
|
|
20880
|
+
* Called every frame with the current renderer state and all renderer systems.
|
|
20810
20881
|
*
|
|
20811
20882
|
* @param state - The renderer state snapshot for this frame. Contains Three.js objects
|
|
20812
20883
|
* (`threeJSScene`, `renderer`, `cameraObject`, `directionalLight`, `ambientLight`),
|
|
20813
20884
|
* the geometry scene graph (`geometryScene`), and all ECS entity maps
|
|
20814
20885
|
* (`geometry3DMap`, `geometry3DsInScene`, `geometry2DMap`, `geometry2DsInScene`).
|
|
20886
|
+
* @param systems - All renderer systems (`modelSystem`, `imageSystem`, `cameraSystem`,
|
|
20887
|
+
* `drawSystem`, etc.). Use this to read or drive system state directly from a plugin.
|
|
20815
20888
|
*/
|
|
20816
|
-
update(state: RendererState): void;
|
|
20889
|
+
update(state: RendererState, systems: Systems): void;
|
|
20817
20890
|
}
|
|
20818
20891
|
/**
|
|
20819
20892
|
* Manages registered {@link ISystemPlugin} instances and invokes them each frame.
|
|
@@ -20828,7 +20901,7 @@ declare class PluginSystem {
|
|
|
20828
20901
|
/** @internal */
|
|
20829
20902
|
unregisterPlugin(plugin: ISystemPlugin$2): void;
|
|
20830
20903
|
/** @internal */
|
|
20831
|
-
update(state: RendererState): void;
|
|
20904
|
+
update(state: RendererState, systems: Systems): void;
|
|
20832
20905
|
}
|
|
20833
20906
|
//#endregion
|
|
20834
20907
|
//#region ../renderer-three/src/systems/shadows/system.d.ts
|
|
@@ -21092,6 +21165,29 @@ declare class ModelSystem extends PubSub<{
|
|
|
21092
21165
|
* Hides the model instancing debug UI
|
|
21093
21166
|
*/
|
|
21094
21167
|
hideDebug(): void;
|
|
21168
|
+
/**
|
|
21169
|
+
* Returns a map of model batch stats keyed by URL hash, aggregating count/maxCount across
|
|
21170
|
+
* all batches sharing the same URL hash. For diagnostic tooling only.
|
|
21171
|
+
* @internal - For diagnostic tooling only.
|
|
21172
|
+
*/
|
|
21173
|
+
getBatchStats(): Map<number, {
|
|
21174
|
+
urlHash: number;
|
|
21175
|
+
count: number;
|
|
21176
|
+
maxCount: number;
|
|
21177
|
+
opacity: number;
|
|
21178
|
+
}>;
|
|
21179
|
+
/**
|
|
21180
|
+
* Returns a map of non-instanced model entity IDs to their URL hash.
|
|
21181
|
+
* @internal - For diagnostic tooling only.
|
|
21182
|
+
*/
|
|
21183
|
+
getNonInstancedModels(): Map<string | number, {
|
|
21184
|
+
urlHash: number;
|
|
21185
|
+
}>;
|
|
21186
|
+
/**
|
|
21187
|
+
* Returns a map of URL hashes to the original model URLs.
|
|
21188
|
+
* @internal - For diagnostic tooling only.
|
|
21189
|
+
*/
|
|
21190
|
+
getModelUrls(): Map<number, string>;
|
|
21095
21191
|
/**
|
|
21096
21192
|
* Lazily loads and returns the GLTFLoader instance
|
|
21097
21193
|
* @returns The GLTFLoader instance
|
|
@@ -21301,6 +21397,14 @@ declare class TwoDEntitySystem {
|
|
|
21301
21397
|
* @param id - The entity ID
|
|
21302
21398
|
*/
|
|
21303
21399
|
deleteTextCacheEntry(id: string | number): void;
|
|
21400
|
+
/**
|
|
21401
|
+
* Reports aggregate 2D label cache statistics plus per-label cached-membership
|
|
21402
|
+
* flags for every label in the scene. Shared caches (pin/wrapper/image) are
|
|
21403
|
+
* not attributed per-label (to avoid double-counting) — only text canvas
|
|
21404
|
+
* bytes are directly attributed.
|
|
21405
|
+
* @internal - For diagnostic tooling only.
|
|
21406
|
+
*/
|
|
21407
|
+
getLabelCacheStats(): LabelCacheStats;
|
|
21304
21408
|
/** Enables the debug overlay that draws visible collision boxes. */
|
|
21305
21409
|
showCollisionBoxes(): void;
|
|
21306
21410
|
/** Disables the debug overlay and clears the canvas. */
|
|
@@ -22417,6 +22521,58 @@ type MapEvent = {
|
|
|
22417
22521
|
* All entities in 3D
|
|
22418
22522
|
*/
|
|
22419
22523
|
type All3DTypes = Geometry3DTypes | FeatureCollectionObject3D | GroupContainerObject3D;
|
|
22524
|
+
/**
|
|
22525
|
+
* Per-frame render statistics summed across every render pass in a frame
|
|
22526
|
+
* (the main pass and the always-on-top pass). Read from Three.js
|
|
22527
|
+
* `WebGLRenderer.info.render` so plugins (such as the render-cost-analyzer)
|
|
22528
|
+
* can inspect the cost of the current frame.
|
|
22529
|
+
*/
|
|
22530
|
+
interface RenderFrameStats {
|
|
22531
|
+
drawCalls: number;
|
|
22532
|
+
triangles: number;
|
|
22533
|
+
lines: number;
|
|
22534
|
+
points: number;
|
|
22535
|
+
}
|
|
22536
|
+
/**
|
|
22537
|
+
* Per-label diagnostic entry reporting cache membership and attributable memory.
|
|
22538
|
+
* @internal - For diagnostic tooling only.
|
|
22539
|
+
*/
|
|
22540
|
+
interface LabelCacheEntry {
|
|
22541
|
+
/** The label's id (also the textCache key). */
|
|
22542
|
+
id: string;
|
|
22543
|
+
/** The label's text content. */
|
|
22544
|
+
text: string;
|
|
22545
|
+
/** Screen-space projection of the label anchor. */
|
|
22546
|
+
screenPosition: {
|
|
22547
|
+
x: number;
|
|
22548
|
+
y: number;
|
|
22549
|
+
};
|
|
22550
|
+
/** Rasterized text dimensions. */
|
|
22551
|
+
dimensions: {
|
|
22552
|
+
width: number;
|
|
22553
|
+
height: number;
|
|
22554
|
+
};
|
|
22555
|
+
/** Whether the label's text canvases are present in the text cache. */
|
|
22556
|
+
textCached: boolean;
|
|
22557
|
+
/** Whether the label's pin canvases are present in the pin cache. */
|
|
22558
|
+
pinCached: boolean;
|
|
22559
|
+
/** Whether the label's icon image is present in the image cache. */
|
|
22560
|
+
imageCached: boolean;
|
|
22561
|
+
/** Bytes of the label's own text canvases (directly attributable). */
|
|
22562
|
+
textMemoryBytes: number;
|
|
22563
|
+
/** Total attributable bytes for this label (currently equal to textMemoryBytes). */
|
|
22564
|
+
totalMemoryBytes: number;
|
|
22565
|
+
}
|
|
22566
|
+
/**
|
|
22567
|
+
* Aggregate label cache statistics plus per-label membership flags.
|
|
22568
|
+
* @internal - For diagnostic tooling only.
|
|
22569
|
+
*/
|
|
22570
|
+
interface LabelCacheStats {
|
|
22571
|
+
/** Aggregate per-cache counts and byte sizes from the 2D draw system. */
|
|
22572
|
+
cacheStats: TwoDDrawSystemCacheStats;
|
|
22573
|
+
/** Per-label entries for every label currently in the scene. */
|
|
22574
|
+
labels: LabelCacheEntry[];
|
|
22575
|
+
}
|
|
22420
22576
|
/**
|
|
22421
22577
|
* Snapshot of the renderer's internal state passed to {@link ISystemPlugin}
|
|
22422
22578
|
* instances on every frame. Exposes the Three.js scene, camera and geometry
|
|
@@ -22490,6 +22646,12 @@ type RendererState = {
|
|
|
22490
22646
|
outlinesOptions?: OutlinesOptions$1;
|
|
22491
22647
|
/** State shared with the 2D labels/markers pipeline */
|
|
22492
22648
|
geometry2DState: TwoDPipelineState;
|
|
22649
|
+
/**
|
|
22650
|
+
* Per-frame render statistics (draw calls, triangles, lines, points)
|
|
22651
|
+
* summed across both render passes. Populated each frame by the render
|
|
22652
|
+
* system from the renderer service.
|
|
22653
|
+
*/
|
|
22654
|
+
renderStats: RenderFrameStats;
|
|
22493
22655
|
};
|
|
22494
22656
|
/**
|
|
22495
22657
|
* All of the entities in the scene
|
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-6PIWF5Q5.js";import{x as L,z as M}from"./chunk-O2I4AFRG.js";import{Ea as J,Q as H,Z as I,a,b,d as c,pb as K}from"./chunk-WHNMZZSC.js";import"./chunk-GP5WKEWH.js";import"./chunk-3P7B76SS.js";import"./chunk-PWEV3AFA.js";export{z as ACTION_TYPE,H as ANIMATION_TWEENS,q as Annotation,j as Area,A as BEARING_TYPE,B as CONNECTION_TYPE,n as Connection,d as Coordinate,D as DOORS,h as DetailedMapData,E as Directions,k as Door,a as E_SDK_LOG_LEVEL,u as EnterpriseCategory,t as EnterpriseLocation,v as EnterpriseVenue,s as Facade,m as Floor,r as FloorStack,f as Hyperlink,g as ImageMetaData,G as LocationCategory,F as LocationProfile,i as MAPPEDIN_COLORS,o as MapObject,Q as MapView,e as Node,p as PointOfInterest,l 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,w as parseMVF,K as preloadFont,c as setLoggerLevel,W as setUseEnterpriseAPI,P as setWorkersUrl,Y as shouldForceEnterpriseLocations,aa as show3dMap,ca as show3dMapGeojson,y as unzipAndParseMVFv2,x as unzipMVF};
|