@mappedin/mappedin-js 6.24.1 → 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 +136 -14
- package/lib/esm/{GLTFExporter-2HULTKRH.js → GLTFExporter-2K7DG5JL.js} +1 -1
- package/lib/esm/{GLTFLoader-NHQ4QXKB.js → GLTFLoader-KAQCOFOB.js} +1 -1
- package/lib/esm/{chunk-KVOE73GU.js → chunk-3P7B76SS.js} +2 -2
- package/lib/esm/chunk-6PIWF5Q5.js +661 -0
- package/lib/esm/{chunk-G2JJ2YLB.js → chunk-GP5WKEWH.js} +1 -1
- package/lib/esm/chunk-O2I4AFRG.js +1230 -0
- package/lib/esm/{chunk-BZRV2IXY.js → chunk-WHNMZZSC.js} +8 -8
- package/lib/esm/index.d.ts +398 -34
- package/lib/esm/index.js +1 -1
- package/lib/esm/{inspector-XIQ7ZRNS.js → inspector-GUU4LZSY.js} +3 -3
- package/lib/esm/{internal-Y76T47KY.js → internal-B77FNKFN.js} +1 -1
- package/lib/esm/{src-DUHGJJAE.js → src-KCRI64F4.js} +1 -1
- package/lib/esm/{text3d-KPBRUHPQ.js → text3d-VRT45WDN.js} +1 -1
- package/package.json +2 -1
- package/lib/esm/chunk-4723PBN2.js +0 -661
- package/lib/esm/chunk-66VPLG5U.js +0 -968
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
|
/**
|
|
@@ -4756,6 +4797,16 @@ type TNavigationPathOptions = TAddPathOptions & {
|
|
|
4756
4797
|
* If not specified, connection paths use the main `color` property.
|
|
4757
4798
|
*/
|
|
4758
4799
|
__EXPERIMENTAL__CONNECTION_COLOR?: string;
|
|
4800
|
+
/**
|
|
4801
|
+
* @experimental Override width for connection paths (vertical paths between floors).
|
|
4802
|
+
* Accepts the same values as `width`:
|
|
4803
|
+
* - `number` — meters
|
|
4804
|
+
* - `'Npx'` — screen-space pixels (ribbon geometry only)
|
|
4805
|
+
* - `Interpolation` — zoom-interpolated meters or pixels
|
|
4806
|
+
*
|
|
4807
|
+
* If not specified, connection paths use the main `width` property.
|
|
4808
|
+
*/
|
|
4809
|
+
__EXPERIMENTAL__CONNECTION_WIDTH?: PathWidth$1;
|
|
4759
4810
|
/**
|
|
4760
4811
|
* @experimental Amount in meters to shorten connection path from each end.
|
|
4761
4812
|
* Prevents visual overlap with floor paths at junctions.
|
|
@@ -4768,6 +4819,32 @@ type TNavigationPathOptions = TAddPathOptions & {
|
|
|
4768
4819
|
* If not specified, connection paths use the main `dashed` property.
|
|
4769
4820
|
*/
|
|
4770
4821
|
__EXPERIMENTAL__CONNECTION_DASHED?: boolean;
|
|
4822
|
+
/**
|
|
4823
|
+
* @experimental Override how connection-path dashes are drawn — a painted
|
|
4824
|
+
* mask, or discrete dashes. Mirrors
|
|
4825
|
+
* `__EXPERIMENTAL_DASH_OPTIONS.__EXPERIMENTAL_DASH_STYLE`. If not specified,
|
|
4826
|
+
* connection paths use the main dash style.
|
|
4827
|
+
*
|
|
4828
|
+
* `'discrete'` renders connections flat regardless of
|
|
4829
|
+
* {@link __EXPERIMENTAL__CONNECTION_GEOMETRY}.
|
|
4830
|
+
*/
|
|
4831
|
+
__EXPERIMENTAL__CONNECTION_DASH_STYLE?: 'mask' | 'discrete';
|
|
4832
|
+
/**
|
|
4833
|
+
* @experimental Override arrow flow animation for connection paths (vertical
|
|
4834
|
+
* paths between floors). When `false`, connection paths keep their arrow
|
|
4835
|
+
* flow static while floor paths can still animate. If not specified,
|
|
4836
|
+
* connection paths use the main `animateArrowsOnPath` property.
|
|
4837
|
+
*/
|
|
4838
|
+
__EXPERIMENTAL__CONNECTION_ANIMATE_ARROWS_ON_PATH?: boolean;
|
|
4839
|
+
/**
|
|
4840
|
+
* @experimental Override arrow display for connection paths (vertical paths
|
|
4841
|
+
* between floors). When `false`, connection paths render without directional
|
|
4842
|
+
* arrows (plain dashes/ribbon) while floor paths can still show arrows.
|
|
4843
|
+
* Animation is independent: arrow flow follows `animateArrowsOnPath`. If
|
|
4844
|
+
* not specified, connection paths use the main `displayArrowsOnPath`
|
|
4845
|
+
* property.
|
|
4846
|
+
*/
|
|
4847
|
+
__EXPERIMENTAL__CONNECTION_DISPLAY_ARROWS_ON_PATH?: boolean;
|
|
4771
4848
|
/**
|
|
4772
4849
|
* @experimental Override geometry type for connection paths.
|
|
4773
4850
|
* - 'tube': Original tube geometry with 8 radial segments
|
|
@@ -7738,7 +7815,7 @@ declare class MapView {
|
|
|
7738
7815
|
* path, and 2D systems, but before `DrawSystem` and `paint()`).
|
|
7739
7816
|
*
|
|
7740
7817
|
* @param plugin - An object implementing {@link ISystemPlugin}. Must have an
|
|
7741
|
-
* `update(state: TRendererState)` method.
|
|
7818
|
+
* `update(state: TRendererState, systems)` method.
|
|
7742
7819
|
*
|
|
7743
7820
|
* @example
|
|
7744
7821
|
* ### Standalone mode — add a spinning cube
|
|
@@ -7749,7 +7826,7 @@ declare class MapView {
|
|
|
7749
7826
|
* class CubePlugin implements ISystemPlugin {
|
|
7750
7827
|
* private cube: Mesh | null = null;
|
|
7751
7828
|
*
|
|
7752
|
-
* update(state: TRendererState): void {
|
|
7829
|
+
* update(state: TRendererState, systems): void {
|
|
7753
7830
|
* if (!this.cube) {
|
|
7754
7831
|
* this.cube = new Mesh(
|
|
7755
7832
|
* new BoxGeometry(5, 5, 5),
|
|
@@ -7774,7 +7851,7 @@ declare class MapView {
|
|
|
7774
7851
|
* class SpherePlugin implements ISystemPlugin {
|
|
7775
7852
|
* private sphere: Mesh | null = null;
|
|
7776
7853
|
*
|
|
7777
|
-
* update(state: TRendererState): void {
|
|
7854
|
+
* update(state: TRendererState, systems): void {
|
|
7778
7855
|
* if (!this.sphere) {
|
|
7779
7856
|
* this.sphere = new Mesh(
|
|
7780
7857
|
* new SphereGeometry(3, 32, 32),
|
|
@@ -9425,7 +9502,7 @@ type TGeometryUpdateState = output<typeof geometryStateSchemaPartial>;
|
|
|
9425
9502
|
declare const labelStateSchema: ZodObject<{
|
|
9426
9503
|
type: ZodDefault<ZodLiteral<"label">>;
|
|
9427
9504
|
text: ZodString;
|
|
9428
|
-
rank: ZodCustom<"initial" |
|
|
9505
|
+
rank: ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">;
|
|
9429
9506
|
appearance: ZodCustom<LabelAppearance, LabelAppearance>;
|
|
9430
9507
|
interactive: ZodDefault<ZodBoolean>;
|
|
9431
9508
|
enabled: ZodDefault<ZodBoolean>;
|
|
@@ -9448,7 +9525,7 @@ declare const labelStateSchema: ZodObject<{
|
|
|
9448
9525
|
declare const labelStateSchemaPartial: ZodObject<{
|
|
9449
9526
|
type: ZodOptional<ZodDefault<ZodLiteral<"label">>>;
|
|
9450
9527
|
text: ZodOptional<ZodString>;
|
|
9451
|
-
rank: ZodOptional<ZodCustom<"initial" |
|
|
9528
|
+
rank: ZodOptional<ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">>;
|
|
9452
9529
|
appearance: ZodOptional<ZodCustom<LabelAppearance, LabelAppearance>>;
|
|
9453
9530
|
interactive: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9454
9531
|
enabled: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
@@ -9481,7 +9558,7 @@ type TLabelUpdateState = output<typeof labelStateSchemaPartial>;
|
|
|
9481
9558
|
/** @internal */
|
|
9482
9559
|
declare const markerStateSchema: ZodObject<{
|
|
9483
9560
|
type: ZodDefault<ZodLiteral<"marker">>;
|
|
9484
|
-
rank: ZodCustom<"initial" |
|
|
9561
|
+
rank: ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">;
|
|
9485
9562
|
placement: ZodOptional<ZodUnion<readonly [ZodEnum<{
|
|
9486
9563
|
hidden: "hidden";
|
|
9487
9564
|
top: "top";
|
|
@@ -9524,7 +9601,7 @@ declare const markerStateSchemaPartial: ZodObject<{
|
|
|
9524
9601
|
type: ZodOptional<ZodDefault<ZodLiteral<"marker">>>;
|
|
9525
9602
|
enabled: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9526
9603
|
interactive: ZodOptional<ZodDefault<ZodUnion<readonly [ZodBoolean, ZodLiteral<"pointer-events-auto">]>>>;
|
|
9527
|
-
rank: ZodOptional<ZodCustom<"initial" |
|
|
9604
|
+
rank: ZodOptional<ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">>;
|
|
9528
9605
|
occlude: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9529
9606
|
placement: ZodOptional<ZodOptional<ZodUnion<readonly [ZodEnum<{
|
|
9530
9607
|
hidden: "hidden";
|
|
@@ -9575,6 +9652,13 @@ type TMarkerUpdateState = output<typeof markerStateSchemaPartial>;
|
|
|
9575
9652
|
* @internal
|
|
9576
9653
|
*/
|
|
9577
9654
|
type BorderColor = LiteralUnion<'darken', string>;
|
|
9655
|
+
/**
|
|
9656
|
+
* Core-side path fields that {@link translatePathStateToGeojsonCore} rewrites from
|
|
9657
|
+
* `__EXPERIMENTAL_*` option names. A `Partial` slice of the renderer's `PathState`,
|
|
9658
|
+
* so it stays in sync with the core type instead of being hand-maintained.
|
|
9659
|
+
* @internal
|
|
9660
|
+
*/
|
|
9661
|
+
|
|
9578
9662
|
/** @internal */
|
|
9579
9663
|
declare const pathStateSchemaPartial: ZodObject<{
|
|
9580
9664
|
type: ZodOptional<ZodDefault<ZodLiteral<"path">>>;
|
|
@@ -9596,15 +9680,32 @@ declare const pathStateSchemaPartial: ZodObject<{
|
|
|
9596
9680
|
__EXPERIMENTAL_SMOOTHING_TENSION: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9597
9681
|
__EXPERIMENTAL_SMOOTHING_CORNER_RADIUS: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9598
9682
|
dashed: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9683
|
+
dashDiscrete: ZodOptional<ZodDefault<ZodBoolean>>;
|
|
9684
|
+
dashCornerRadius: ZodOptional<ZodDefault<ZodNumber>>;
|
|
9599
9685
|
__EXPERIMENTAL_DASH_OPTIONS: ZodOptional<ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
9686
|
+
__EXPERIMENTAL_DASH_STYLE: ZodDefault<ZodEnum<{
|
|
9687
|
+
mask: "mask";
|
|
9688
|
+
discrete: "discrete";
|
|
9689
|
+
}>>;
|
|
9690
|
+
__EXPERIMENTAL_DASH_CORNER_RADIUS: ZodDefault<ZodNumber>;
|
|
9600
9691
|
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"length-scaling">;
|
|
9601
9692
|
__EXPERIMENTAL_DASH_LENGTH: ZodDefault<ZodNumber>;
|
|
9602
9693
|
__EXPERIMENTAL_DASH_GAP: ZodDefault<ZodNumber>;
|
|
9603
9694
|
}, $strip>, ZodObject<{
|
|
9695
|
+
__EXPERIMENTAL_DASH_STYLE: ZodDefault<ZodEnum<{
|
|
9696
|
+
mask: "mask";
|
|
9697
|
+
discrete: "discrete";
|
|
9698
|
+
}>>;
|
|
9699
|
+
__EXPERIMENTAL_DASH_CORNER_RADIUS: ZodDefault<ZodNumber>;
|
|
9604
9700
|
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"width-scaling">;
|
|
9605
9701
|
__EXPERIMENTAL_DASH_SIZE: ZodDefault<ZodNumber>;
|
|
9606
9702
|
__EXPERIMENTAL_GAP_SIZE: ZodDefault<ZodNumber>;
|
|
9607
9703
|
}, $strip>, ZodObject<{
|
|
9704
|
+
__EXPERIMENTAL_DASH_STYLE: ZodDefault<ZodEnum<{
|
|
9705
|
+
mask: "mask";
|
|
9706
|
+
discrete: "discrete";
|
|
9707
|
+
}>>;
|
|
9708
|
+
__EXPERIMENTAL_DASH_CORNER_RADIUS: ZodDefault<ZodNumber>;
|
|
9608
9709
|
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"absolute">;
|
|
9609
9710
|
__EXPERIMENTAL_DASH_METERS: ZodDefault<ZodNumber>;
|
|
9610
9711
|
__EXPERIMENTAL_GAP_METERS: ZodDefault<ZodNumber>;
|
|
@@ -9649,15 +9750,32 @@ declare const pathStateSchemaStrict: ZodObject<{
|
|
|
9649
9750
|
__EXPERIMENTAL_SMOOTHING_TENSION: ZodDefault<ZodNumber>;
|
|
9650
9751
|
__EXPERIMENTAL_SMOOTHING_CORNER_RADIUS: ZodDefault<ZodNumber>;
|
|
9651
9752
|
dashed: ZodDefault<ZodBoolean>;
|
|
9753
|
+
dashDiscrete: ZodDefault<ZodBoolean>;
|
|
9754
|
+
dashCornerRadius: ZodDefault<ZodNumber>;
|
|
9652
9755
|
__EXPERIMENTAL_DASH_OPTIONS: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
9756
|
+
__EXPERIMENTAL_DASH_STYLE: ZodDefault<ZodEnum<{
|
|
9757
|
+
mask: "mask";
|
|
9758
|
+
discrete: "discrete";
|
|
9759
|
+
}>>;
|
|
9760
|
+
__EXPERIMENTAL_DASH_CORNER_RADIUS: ZodDefault<ZodNumber>;
|
|
9653
9761
|
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"length-scaling">;
|
|
9654
9762
|
__EXPERIMENTAL_DASH_LENGTH: ZodDefault<ZodNumber>;
|
|
9655
9763
|
__EXPERIMENTAL_DASH_GAP: ZodDefault<ZodNumber>;
|
|
9656
9764
|
}, $strip>, ZodObject<{
|
|
9765
|
+
__EXPERIMENTAL_DASH_STYLE: ZodDefault<ZodEnum<{
|
|
9766
|
+
mask: "mask";
|
|
9767
|
+
discrete: "discrete";
|
|
9768
|
+
}>>;
|
|
9769
|
+
__EXPERIMENTAL_DASH_CORNER_RADIUS: ZodDefault<ZodNumber>;
|
|
9657
9770
|
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"width-scaling">;
|
|
9658
9771
|
__EXPERIMENTAL_DASH_SIZE: ZodDefault<ZodNumber>;
|
|
9659
9772
|
__EXPERIMENTAL_GAP_SIZE: ZodDefault<ZodNumber>;
|
|
9660
9773
|
}, $strip>, ZodObject<{
|
|
9774
|
+
__EXPERIMENTAL_DASH_STYLE: ZodDefault<ZodEnum<{
|
|
9775
|
+
mask: "mask";
|
|
9776
|
+
discrete: "discrete";
|
|
9777
|
+
}>>;
|
|
9778
|
+
__EXPERIMENTAL_DASH_CORNER_RADIUS: ZodDefault<ZodNumber>;
|
|
9661
9779
|
__EXPERIMENTAL_DASH_MODE: ZodLiteral<"absolute">;
|
|
9662
9780
|
__EXPERIMENTAL_DASH_METERS: ZodDefault<ZodNumber>;
|
|
9663
9781
|
__EXPERIMENTAL_GAP_METERS: ZodDefault<ZodNumber>;
|
|
@@ -10241,7 +10359,8 @@ declare class NavigationGraph {
|
|
|
10241
10359
|
getShortestEuclideanDistance(origin: NodeFeature, destinations: NodeFeature[]): number;
|
|
10242
10360
|
hasLineOfSight: (origin: Position, destination: Position, edges?: Position[][], bufferRadius?: number) => boolean;
|
|
10243
10361
|
/**
|
|
10244
|
-
* 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.
|
|
10245
10364
|
*
|
|
10246
10365
|
* @param originId - Origin node ID.
|
|
10247
10366
|
* @param maxTravelDistance - The maximum travel distance.
|
|
@@ -11374,12 +11493,47 @@ type TDirectionZone = {
|
|
|
11374
11493
|
*/
|
|
11375
11494
|
floor?: Floor;
|
|
11376
11495
|
};
|
|
11496
|
+
/**
|
|
11497
|
+
* @experimental
|
|
11498
|
+
* How a dash is drawn, independent of how it is sized. Available in every dash
|
|
11499
|
+
* mode, so the sizing axis ({@link TExperimentalDashOptions}) and the appearance
|
|
11500
|
+
* axis stay orthogonal.
|
|
11501
|
+
*/
|
|
11502
|
+
type TExperimentalDashStyleOptions = {
|
|
11503
|
+
/**
|
|
11504
|
+
* How each dash is rendered.
|
|
11505
|
+
* - `'mask'`: the dash pattern is painted onto one continuous path (default)
|
|
11506
|
+
* - `'discrete'`: each dash is its own rounded-rectangle primitive, with its own
|
|
11507
|
+
* travel arrow and zoom LOD, and keeps its exact shape around sharp corners
|
|
11508
|
+
*
|
|
11509
|
+
* `'discrete'` implies flat (ribbon) rendering — a dash has no tube analogue — so
|
|
11510
|
+
* it overrides {@link TAddPathOptions.__EXPERIMENTAL_GEOMETRY}.
|
|
11511
|
+
*
|
|
11512
|
+
* @default 'mask'
|
|
11513
|
+
*/
|
|
11514
|
+
__EXPERIMENTAL_DASH_STYLE?: 'mask' | 'discrete';
|
|
11515
|
+
/**
|
|
11516
|
+
* Corner rounding of each dash, from `0` (sharp rectangle) to `1` (fully
|
|
11517
|
+
* rounded), as a fraction of the dash's short half-side — the same idea as a
|
|
11518
|
+
* CSS `border-radius` in percent, so it stays proportional as the dash resizes
|
|
11519
|
+
* with zoom. When the dash's length equals its width, `1` renders a circle and
|
|
11520
|
+
* `0` renders a square.
|
|
11521
|
+
*
|
|
11522
|
+
* Only meaningful when `__EXPERIMENTAL_DASH_STYLE` is `'discrete'`.
|
|
11523
|
+
*
|
|
11524
|
+
* @default 1
|
|
11525
|
+
*/
|
|
11526
|
+
__EXPERIMENTAL_DASH_CORNER_RADIUS?: number;
|
|
11527
|
+
};
|
|
11377
11528
|
/**
|
|
11378
11529
|
* @experimental
|
|
11379
11530
|
* Dash configuration options for dashed paths.
|
|
11380
11531
|
* Uses discriminated union - mode determines which properties are valid.
|
|
11532
|
+
*
|
|
11533
|
+
* The mode picks how dashes are *sized*; {@link TExperimentalDashStyleOptions}
|
|
11534
|
+
* picks how they are *drawn*, and applies to every mode.
|
|
11381
11535
|
*/
|
|
11382
|
-
type TExperimentalDashOptions = {
|
|
11536
|
+
type TExperimentalDashOptions = TExperimentalDashStyleOptions & ({
|
|
11383
11537
|
/**
|
|
11384
11538
|
* Length-scaling mode: dash/gap as fractions of path length (0-1)
|
|
11385
11539
|
*/
|
|
@@ -11424,7 +11578,7 @@ type TExperimentalDashOptions = {
|
|
|
11424
11578
|
* @default 0.5
|
|
11425
11579
|
*/
|
|
11426
11580
|
__EXPERIMENTAL_GAP_METERS?: number;
|
|
11427
|
-
};
|
|
11581
|
+
});
|
|
11428
11582
|
/**
|
|
11429
11583
|
* Options for controlling the behavior of a {@link Path}.
|
|
11430
11584
|
*/
|
|
@@ -11512,7 +11666,7 @@ type TAddPathOptions = {
|
|
|
11512
11666
|
*/
|
|
11513
11667
|
verticalOffset?: number;
|
|
11514
11668
|
/**
|
|
11515
|
-
* Whether the path should be
|
|
11669
|
+
* Whether the path should be broken into dashes.
|
|
11516
11670
|
*
|
|
11517
11671
|
* @defaultValue false
|
|
11518
11672
|
*/
|
|
@@ -11580,6 +11734,10 @@ type TAddPathOptions = {
|
|
|
11580
11734
|
* - 'tube': Original tube geometry with 8 radial segments (default)
|
|
11581
11735
|
* - 'ribbon': Flat ribbon geometry with 2 vertices per segment
|
|
11582
11736
|
*
|
|
11737
|
+
* Ignored when `__EXPERIMENTAL_DASH_OPTIONS.__EXPERIMENTAL_DASH_STYLE` is
|
|
11738
|
+
* `'discrete'`: a dash is a flat screen-facing quad with no tube analogue, so the
|
|
11739
|
+
* discrete-dash style always renders flat.
|
|
11740
|
+
*
|
|
11583
11741
|
* @defaultValue 'tube'
|
|
11584
11742
|
*/
|
|
11585
11743
|
__EXPERIMENTAL_GEOMETRY?: 'tube' | 'ribbon';
|
|
@@ -13149,8 +13307,8 @@ declare class Area extends DetailedMapData<AreaCollection['features'][number]> i
|
|
|
13149
13307
|
*/
|
|
13150
13308
|
get geoJSON(): {
|
|
13151
13309
|
properties: null;
|
|
13152
|
-
type:
|
|
13153
|
-
geometry:
|
|
13310
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
13311
|
+
geometry: _mappedin_mvf_v24.Polygon;
|
|
13154
13312
|
};
|
|
13155
13313
|
/** @internal */
|
|
13156
13314
|
get focusTarget(): this;
|
|
@@ -13252,8 +13410,8 @@ declare class Door extends DetailedMapData<EntranceFeature> implements IGeoJSOND
|
|
|
13252
13410
|
*/
|
|
13253
13411
|
get geoJSON(): {
|
|
13254
13412
|
properties: null;
|
|
13255
|
-
type:
|
|
13256
|
-
geometry:
|
|
13413
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
13414
|
+
geometry: _mappedin_mvf_v24.LineString;
|
|
13257
13415
|
};
|
|
13258
13416
|
/** @internal */
|
|
13259
13417
|
get focusTarget(): Coordinate;
|
|
@@ -13389,8 +13547,8 @@ declare class Space extends DetailedMapData<SpaceFeature> implements IGeoJSONDat
|
|
|
13389
13547
|
*/
|
|
13390
13548
|
get geoJSON(): {
|
|
13391
13549
|
properties: null;
|
|
13392
|
-
type:
|
|
13393
|
-
geometry:
|
|
13550
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
13551
|
+
geometry: _mappedin_mvf_v24.Point | _mappedin_mvf_v24.LineString | _mappedin_mvf_v24.Polygon;
|
|
13394
13552
|
};
|
|
13395
13553
|
/** @internal */
|
|
13396
13554
|
get focusTarget(): this | Coordinate;
|
|
@@ -13476,7 +13634,7 @@ declare class PointOfInterest extends DetailedMapData<FeatureCollection$1<Point$
|
|
|
13476
13634
|
*/
|
|
13477
13635
|
get geoJSON(): {
|
|
13478
13636
|
properties: null;
|
|
13479
|
-
type:
|
|
13637
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
13480
13638
|
geometry: Point$1;
|
|
13481
13639
|
};
|
|
13482
13640
|
/**
|
|
@@ -13590,8 +13748,8 @@ declare class Annotation extends DetailedMapData<AnnotationCollection['features'
|
|
|
13590
13748
|
*/
|
|
13591
13749
|
get geoJSON(): {
|
|
13592
13750
|
properties: null;
|
|
13593
|
-
type:
|
|
13594
|
-
geometry:
|
|
13751
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
13752
|
+
geometry: _mappedin_mvf_v24.Point;
|
|
13595
13753
|
};
|
|
13596
13754
|
/** @internal */
|
|
13597
13755
|
get focusTarget(): Coordinate;
|
|
@@ -13807,8 +13965,8 @@ declare class MapObject extends DetailedMapData<ObstructionFeature> implements I
|
|
|
13807
13965
|
*/
|
|
13808
13966
|
get geoJSON(): {
|
|
13809
13967
|
properties: null;
|
|
13810
|
-
type:
|
|
13811
|
-
geometry:
|
|
13968
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
13969
|
+
geometry: _mappedin_mvf_v24.LineString | _mappedin_mvf_v24.Polygon;
|
|
13812
13970
|
};
|
|
13813
13971
|
/** @internal */
|
|
13814
13972
|
get anchorTarget(): Coordinate;
|
|
@@ -14121,8 +14279,8 @@ declare class Node extends BaseMetaData implements IGeoJSONData, IFocusable, IAn
|
|
|
14121
14279
|
*/
|
|
14122
14280
|
get geoJSON(): {
|
|
14123
14281
|
properties: null;
|
|
14124
|
-
type:
|
|
14125
|
-
geometry:
|
|
14282
|
+
type: _mappedin_mvf_v24.FeatureType;
|
|
14283
|
+
geometry: _mappedin_mvf_v24.Point;
|
|
14126
14284
|
};
|
|
14127
14285
|
/** @internal */
|
|
14128
14286
|
get focusTarget(): Coordinate;
|
|
@@ -16178,7 +16336,7 @@ declare class MapData {
|
|
|
16178
16336
|
* console.log(`Current language: ${language.name} (${language.code})`);
|
|
16179
16337
|
* ```
|
|
16180
16338
|
*/
|
|
16181
|
-
get currentLanguage():
|
|
16339
|
+
get currentLanguage(): _mappedin_mvf_v24.Language | undefined;
|
|
16182
16340
|
/**
|
|
16183
16341
|
* Gets the natural bearing of the map.
|
|
16184
16342
|
*
|
|
@@ -17617,6 +17775,20 @@ type PathState$1 = {
|
|
|
17617
17775
|
* Whether the path should be rendered as a dashed line.
|
|
17618
17776
|
*/
|
|
17619
17777
|
dashed: boolean;
|
|
17778
|
+
/**
|
|
17779
|
+
* Whether the path should be rendered as a discrete-dash line: each dash becomes its
|
|
17780
|
+
* own rounded-rectangle primitive. The dash sizing options define both the
|
|
17781
|
+
* dash's length along the path (the "on" size) and the gap between dashes. Only
|
|
17782
|
+
* supported with ribbon geometry.
|
|
17783
|
+
*/
|
|
17784
|
+
dashDiscrete: boolean;
|
|
17785
|
+
/**
|
|
17786
|
+
* Corner rounding of each dash, from 0 (sharp rectangle) to 1 (fully rounded).
|
|
17787
|
+
* Expressed as a fraction of the dash's short half-side, like a CSS
|
|
17788
|
+
* border-radius in percent, so it stays proportional as the dash resizes with
|
|
17789
|
+
* zoom. When the dash's length equals its width, 1 renders a circle.
|
|
17790
|
+
*/
|
|
17791
|
+
dashCornerRadius: number;
|
|
17620
17792
|
/**
|
|
17621
17793
|
* Length of each dash segment as fraction of path (0-1).
|
|
17622
17794
|
*/
|
|
@@ -17730,6 +17902,21 @@ type AddPathOptions = {
|
|
|
17730
17902
|
* Whether the path should be dashed.
|
|
17731
17903
|
*/
|
|
17732
17904
|
dashed?: boolean;
|
|
17905
|
+
/**
|
|
17906
|
+
* Whether the path should be discrete-dash: each dash becomes its own
|
|
17907
|
+
* rounded-rectangle primitive. Dash sizing defines the dash's length and gap.
|
|
17908
|
+
* Only supported with ribbon geometry.
|
|
17909
|
+
*/
|
|
17910
|
+
dashDiscrete?: boolean;
|
|
17911
|
+
/**
|
|
17912
|
+
* Corner rounding of each dash, from 0 (sharp rectangle) to 1 (fully rounded).
|
|
17913
|
+
* Expressed as a fraction of the dash's short half-side, like a CSS
|
|
17914
|
+
* border-radius in percent. When the dash's length equals its width, 1 renders
|
|
17915
|
+
* a circle and 0 renders a square.
|
|
17916
|
+
*
|
|
17917
|
+
* @defaultValue 1
|
|
17918
|
+
*/
|
|
17919
|
+
dashCornerRadius?: number;
|
|
17733
17920
|
/**
|
|
17734
17921
|
* How much the path hovers above the floor plane in meters.
|
|
17735
17922
|
*/
|
|
@@ -17890,6 +18077,18 @@ declare class PathComponent {
|
|
|
17890
18077
|
travelledEndFraction: number;
|
|
17891
18078
|
travelledColor: string;
|
|
17892
18079
|
dashed: boolean;
|
|
18080
|
+
/** Max dash instances baked into the discrete-dash geometry. Set at build
|
|
18081
|
+
* time; the per-frame `dashCount` uniform derives the effective count from it. */
|
|
18082
|
+
maxDashCount: number;
|
|
18083
|
+
dashCapWarned: boolean;
|
|
18084
|
+
/** Smoothed + endcap-extended curve length in metres. The per-frame
|
|
18085
|
+
* effective dash count is derived from this, not the raw `pathLength`
|
|
18086
|
+
* uniform (which is the un-smoothed input polyline) — the dashes ride the
|
|
18087
|
+
* smoothed curve, so the count's denominator must match the curve they're
|
|
18088
|
+
* placed on or the gap drifts. */
|
|
18089
|
+
curveLength: number;
|
|
18090
|
+
dashDiscrete: boolean;
|
|
18091
|
+
dashCornerRadius: number;
|
|
17893
18092
|
smoothingTension: number;
|
|
17894
18093
|
smoothingCornerRadius: number;
|
|
17895
18094
|
dashLength: number;
|
|
@@ -17913,6 +18112,17 @@ declare class PathComponent {
|
|
|
17913
18112
|
materialDirty: boolean;
|
|
17914
18113
|
constructor(feature: FeatureCollection<Point, PathProperties>, options?: AddPathOptions);
|
|
17915
18114
|
updateScreenSpaceState(): void;
|
|
18115
|
+
/**
|
|
18116
|
+
* True when this path renders as a flat strip (ribbon mode) rather than an
|
|
18117
|
+
* extruded tube — the mode that supports screen-space pixel width, billboarding,
|
|
18118
|
+
* and discrete dashes. A discrete-dash path is always flat: a dash is a
|
|
18119
|
+
* screen-facing quad with no tube analogue, so `dashDiscrete` implies ribbon
|
|
18120
|
+
* regardless of `__EXPERIMENTAL_GEOMETRY`. The single source of truth for flat
|
|
18121
|
+
* vs tube; prefer this over re-deriving `=== 'ribbon'` from the geometry option.
|
|
18122
|
+
* Read by `buildPath` as `component.isFlat` — a plain-object mock cast as
|
|
18123
|
+
* `PathComponent` must define this getter, or it reads `undefined` (tube).
|
|
18124
|
+
*/
|
|
18125
|
+
get isFlat(): boolean;
|
|
17916
18126
|
setColor(): void;
|
|
17917
18127
|
setOpacity(): void;
|
|
17918
18128
|
set visible(visible: boolean);
|
|
@@ -18248,7 +18458,9 @@ declare class Geometry3DObject3D extends Object3D {
|
|
|
18248
18458
|
type PathMaterial = ShaderMaterial & {
|
|
18249
18459
|
uniforms: PathUniforms;
|
|
18250
18460
|
};
|
|
18251
|
-
type PathMesh = Mesh<TubeGeometry | BufferGeometry, PathMaterial, Object3DEventMap
|
|
18461
|
+
type PathMesh = Mesh<TubeGeometry | BufferGeometry, PathMaterial, Object3DEventMap> & {
|
|
18462
|
+
userData: Geometry3DObject3D['userData'];
|
|
18463
|
+
};
|
|
18252
18464
|
declare class PatMeshContainer extends Geometry3DObject3D {
|
|
18253
18465
|
children: [PathMesh, PathMesh];
|
|
18254
18466
|
}
|
|
@@ -18449,6 +18661,32 @@ interface PathUniforms {
|
|
|
18449
18661
|
type: 'b';
|
|
18450
18662
|
value: boolean;
|
|
18451
18663
|
};
|
|
18664
|
+
isDiscreteDash: {
|
|
18665
|
+
type: 'b';
|
|
18666
|
+
value: boolean;
|
|
18667
|
+
};
|
|
18668
|
+
/** Dash corner rounding, 0 = sharp rectangle, 1 = fully rounded (circle when square). */
|
|
18669
|
+
dashCornerRadius: {
|
|
18670
|
+
type: 'f';
|
|
18671
|
+
value: number;
|
|
18672
|
+
};
|
|
18673
|
+
/** Curve samples (positions row 0, tangents row 1) used to re-place flowing dashes. */
|
|
18674
|
+
curveTexture: {
|
|
18675
|
+
type: 't';
|
|
18676
|
+
value: Texture | null;
|
|
18677
|
+
};
|
|
18678
|
+
/** Number of samples (texels) along the curve texture's width. */
|
|
18679
|
+
curveTextureSize: {
|
|
18680
|
+
type: 'f';
|
|
18681
|
+
value: number;
|
|
18682
|
+
};
|
|
18683
|
+
/** Effective number of dashes to render. Driven per frame from the dash sizing
|
|
18684
|
+
* config and current zoom (for screen-space paths); surplus baked instances
|
|
18685
|
+
* are culled in the vertex shader. */
|
|
18686
|
+
dashCount: {
|
|
18687
|
+
type: 'f';
|
|
18688
|
+
value: number;
|
|
18689
|
+
};
|
|
18452
18690
|
billboardThreshold: {
|
|
18453
18691
|
type: 'f';
|
|
18454
18692
|
value: number;
|
|
@@ -18485,6 +18723,12 @@ interface PathUniforms {
|
|
|
18485
18723
|
type: 'f';
|
|
18486
18724
|
value: number;
|
|
18487
18725
|
};
|
|
18726
|
+
/** Minimum path width in meters. Screen-space (pixel) paths are floored at this
|
|
18727
|
+
* value so their dash count stays bounded on zoom-in. See ADR 0005. */
|
|
18728
|
+
minPathWidthMeters: {
|
|
18729
|
+
type: 'f';
|
|
18730
|
+
value: number;
|
|
18731
|
+
};
|
|
18488
18732
|
}
|
|
18489
18733
|
//#endregion
|
|
18490
18734
|
//#region ../renderer-three/src/services/renderer.d.ts
|
|
@@ -18507,6 +18751,11 @@ declare class Renderer {
|
|
|
18507
18751
|
height: number;
|
|
18508
18752
|
options: TRendererOptions;
|
|
18509
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;
|
|
18510
18759
|
constructor(renderOptions: TRendererOptions);
|
|
18511
18760
|
/**
|
|
18512
18761
|
* Dispose of the renderer and its buffers.
|
|
@@ -19925,6 +20174,18 @@ declare class OutlineInterpolationSystem extends PubSub<{
|
|
|
19925
20174
|
destroy(): void;
|
|
19926
20175
|
}
|
|
19927
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
|
|
19928
20189
|
//#region ../renderer-three/src/systems/image/system.d.ts
|
|
19929
20190
|
declare class ImageSystem extends PubSub<{
|
|
19930
20191
|
'image-loaded': void;
|
|
@@ -19979,6 +20240,18 @@ declare class ImageSystem extends PubSub<{
|
|
|
19979
20240
|
* Disposes all cached textures and clears state. Called on renderer destroy to prevent GPU leaks.
|
|
19980
20241
|
*/
|
|
19981
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
|
+
}>;
|
|
19982
20255
|
updateImageScreenBBoxes(meshComponent: MeshComponent | ImageComponent): void;
|
|
19983
20256
|
}
|
|
19984
20257
|
//#endregion
|
|
@@ -20553,7 +20826,7 @@ declare class ClippingPlaneSystem {
|
|
|
20553
20826
|
* class SpherePlugin implements ISystemPlugin {
|
|
20554
20827
|
* private sphere: Mesh | null = null;
|
|
20555
20828
|
*
|
|
20556
|
-
* update(state: TRendererState): void {
|
|
20829
|
+
* update(state: TRendererState, systems): void {
|
|
20557
20830
|
* // One-time setup — add a sphere to the scene
|
|
20558
20831
|
* if (!this.sphere) {
|
|
20559
20832
|
* const geo = new SphereGeometry(3, 32, 32);
|
|
@@ -20573,7 +20846,7 @@ declare class ClippingPlaneSystem {
|
|
|
20573
20846
|
* ### Reading ECS component data
|
|
20574
20847
|
* ```ts
|
|
20575
20848
|
* class InspectorPlugin implements ISystemPlugin {
|
|
20576
|
-
* update(state: TRendererState): void {
|
|
20849
|
+
* update(state: TRendererState, systems): void {
|
|
20577
20850
|
* for (const geometry of state.geometry3DsInScene) {
|
|
20578
20851
|
* const style = geometry.getComponent('style');
|
|
20579
20852
|
* if (style) {
|
|
@@ -20588,7 +20861,7 @@ declare class ClippingPlaneSystem {
|
|
|
20588
20861
|
* ### Mutating ECS styles (mark dirty to apply)
|
|
20589
20862
|
* ```ts
|
|
20590
20863
|
* class HighlightPlugin implements ISystemPlugin {
|
|
20591
|
-
* update(state: TRendererState): void {
|
|
20864
|
+
* update(state: TRendererState, systems): void {
|
|
20592
20865
|
* for (const geometry of state.geometry3DMap.values()) {
|
|
20593
20866
|
* const style = geometry.getComponent('style');
|
|
20594
20867
|
* if (style) {
|
|
@@ -20604,14 +20877,16 @@ declare class ClippingPlaneSystem {
|
|
|
20604
20877
|
*/
|
|
20605
20878
|
interface ISystemPlugin$2 {
|
|
20606
20879
|
/**
|
|
20607
|
-
* Called every frame with the current renderer state.
|
|
20880
|
+
* Called every frame with the current renderer state and all renderer systems.
|
|
20608
20881
|
*
|
|
20609
20882
|
* @param state - The renderer state snapshot for this frame. Contains Three.js objects
|
|
20610
20883
|
* (`threeJSScene`, `renderer`, `cameraObject`, `directionalLight`, `ambientLight`),
|
|
20611
20884
|
* the geometry scene graph (`geometryScene`), and all ECS entity maps
|
|
20612
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.
|
|
20613
20888
|
*/
|
|
20614
|
-
update(state: RendererState): void;
|
|
20889
|
+
update(state: RendererState, systems: Systems): void;
|
|
20615
20890
|
}
|
|
20616
20891
|
/**
|
|
20617
20892
|
* Manages registered {@link ISystemPlugin} instances and invokes them each frame.
|
|
@@ -20626,7 +20901,7 @@ declare class PluginSystem {
|
|
|
20626
20901
|
/** @internal */
|
|
20627
20902
|
unregisterPlugin(plugin: ISystemPlugin$2): void;
|
|
20628
20903
|
/** @internal */
|
|
20629
|
-
update(state: RendererState): void;
|
|
20904
|
+
update(state: RendererState, systems: Systems): void;
|
|
20630
20905
|
}
|
|
20631
20906
|
//#endregion
|
|
20632
20907
|
//#region ../renderer-three/src/systems/shadows/system.d.ts
|
|
@@ -20890,6 +21165,29 @@ declare class ModelSystem extends PubSub<{
|
|
|
20890
21165
|
* Hides the model instancing debug UI
|
|
20891
21166
|
*/
|
|
20892
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>;
|
|
20893
21191
|
/**
|
|
20894
21192
|
* Lazily loads and returns the GLTFLoader instance
|
|
20895
21193
|
* @returns The GLTFLoader instance
|
|
@@ -21099,6 +21397,14 @@ declare class TwoDEntitySystem {
|
|
|
21099
21397
|
* @param id - The entity ID
|
|
21100
21398
|
*/
|
|
21101
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;
|
|
21102
21408
|
/** Enables the debug overlay that draws visible collision boxes. */
|
|
21103
21409
|
showCollisionBoxes(): void;
|
|
21104
21410
|
/** Disables the debug overlay and clears the canvas. */
|
|
@@ -22215,6 +22521,58 @@ type MapEvent = {
|
|
|
22215
22521
|
* All entities in 3D
|
|
22216
22522
|
*/
|
|
22217
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
|
+
}
|
|
22218
22576
|
/**
|
|
22219
22577
|
* Snapshot of the renderer's internal state passed to {@link ISystemPlugin}
|
|
22220
22578
|
* instances on every frame. Exposes the Three.js scene, camera and geometry
|
|
@@ -22288,6 +22646,12 @@ type RendererState = {
|
|
|
22288
22646
|
outlinesOptions?: OutlinesOptions$1;
|
|
22289
22647
|
/** State shared with the 2D labels/markers pipeline */
|
|
22290
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;
|
|
22291
22655
|
};
|
|
22292
22656
|
/**
|
|
22293
22657
|
* All of the entities in the scene
|
|
@@ -22989,4 +23353,4 @@ declare const getVersion: () => string | undefined;
|
|
|
22989
23353
|
*/
|
|
22990
23354
|
declare const show3dMapGeojson: (el: HTMLElement, mapData: MapData, options?: TShow3DMapOptions) => Promise<MapView>;
|
|
22991
23355
|
//#endregion
|
|
22992
|
-
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 };
|
|
23356
|
+
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 };
|