@mappedin/mappedin-js 6.0.1-beta.40 → 6.0.1-beta.41
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 +57 -598
- package/lib/esm/{GLTFExporter-U2ZAHZZC.js → GLTFExporter-KTOVIOEP.js} +1 -1
- package/lib/esm/{GLTFLoader-YZIFAXQW.js → GLTFLoader-27GHL672.js} +1 -1
- package/lib/esm/{browser-ERERARHG.js → browser-HJJPOQZ3.js} +1 -1
- package/lib/esm/{chunk-7OMFVB52.js → chunk-ERH6UBJK.js} +1 -1
- package/lib/esm/chunk-HH7HMNDW.js +1 -0
- package/lib/esm/chunk-K3YNXHST.js +1 -0
- package/lib/esm/{chunk-EZ2BKVTT.js → chunk-RJTPVVPZ.js} +1 -1
- package/lib/esm/{chunk-WEYCT3B2.js → chunk-YXZOAYFJ.js} +1 -1
- package/lib/esm/{chunk-PJ42DHEC.js → chunk-ZKST35SK.js} +1 -1
- package/lib/esm/index.d.ts +191 -81
- package/lib/esm/index.js +1 -1
- package/lib/esm/{inspector-6WIUJQUZ.js → inspector-MC5DPTXA.js} +1 -1
- package/lib/esm/{internal-J2QCTPPY.js → internal-SB6CKAWY.js} +1 -1
- package/lib/esm/{outdoor-context-v4-B6XIY6PX.js → outdoor-context-v4-E5AHLHIP.js} +1 -1
- package/lib/esm/{text3d-AK6F2J7Q.js → text3d-46AG4T7E.js} +1 -1
- package/package.json +2 -2
- package/lib/esm/chunk-EIFDHIDV.js +0 -1
- package/lib/esm/chunk-EKZRERNS.js +0 -1
package/lib/esm/index.d.ts
CHANGED
|
@@ -381,7 +381,7 @@ declare module '@mappedin/mappedin-js' {
|
|
|
381
381
|
export { parseMVF, unzipMVF, enableTestMode, preloadFont, MAPPEDIN_COLORS };
|
|
382
382
|
export type { MapView, MapData, MapViewState, MappedinMapLibreOverlay, TMappedinMapLibreOverlayEvents, TBlueDotEvents, TBlueDotAction, TBlueDotState, GeolocationPositionExtended, TStackedMapsEvents, TExpandOptions, TStackedMapsState, TFollowMode, TFollowCameraOptions, TEvents, TEventPayload, TFloorChangeReason, TClickPayload, THoverPayload, TShow3DMapOptions, TGetMapDataOptions, TGetMapDataWithAccessTokenOptions, TGetMapDataWithCredentialsOptions, TGetMapDataSharedOptions, TAntialiasingOptions, TMVF, PaintStyle, LineStyle, EnvMapOptions, Shading, TMVFStyleCollection, TMVFStyle, TMVFLineStringStyle, TMVFPolygonStyle, TMVFPointStyle, Environment, InsetPadding, InsetPaddingOption, OperationHours, SiblingGroup, LocationState, Text3DState, AddText3DOptions, UpdatableText3DState, InitializeText3DState, UpdateModelState, InitializeModelState, };
|
|
383
383
|
export type * from 'geojson';
|
|
384
|
-
export type { TUpdateState, TUpdateStates, TLabelState, TGeometryState, TModelState, TShapeState, TDoorsState, TImageState, TWallsState, TCameraAnimationOptions, TAnimationOptions, TFocusOnOptions, TEasingFunction, TCameraTarget, TNavigationTarget, TDirectionZone, TAddMarkerOptions, TAddPathOptions, TLabelAppearance, TAddLabelOptions, TAddModelOptions, TAddModel, TAddImageOptions, TGetDirectionsOptions, TCollisionRankingTier, TMarkerAnchor, TDirectionInstruction, TDirectionInstructionAction, TGetState, TMarkerState, TBlueDotOptions, TBlueDotPositionUpdate, TFocusTarget, IFocusable, IAnchorable, TMapDataObjectTypes, } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
384
|
+
export type { TUpdateState, TUpdateStates, TLabelState, TGeometryState, TModelState, TShapeState, TDoorsState, TImageState, TWallsState, TCameraAnimationOptions, TAnimationOptions, TFocusOnOptions, TEasingFunction, TCameraTarget, TNavigationTarget, TDirectionZone, TAddMarkerOptions, TAddPathOptions, TLabelAppearance, TAddLabelOptions, TAddModelOptions, TAddModel, TAddImageOptions, TGetDirectionsOptions, TCollisionRankingTier, TMarkerAnchor, TDirectionInstruction, TDirectionInstructionAction, TGetState, TMarkerState, TBlueDotOptions, TBlueDotPositionUpdate, TFocusTarget, IFocusable, IAnchorable, TMapDataObjectTypes, TFloorState, } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
385
385
|
export { WALLS, DOORS } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
386
386
|
export type { Label, Marker, Path, PathSegment, Shape, CameraTransform, Model, Image, Text3D, } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
|
|
387
387
|
export type { Debug } from '@mappedin/mappedin-js/mappedin-js/src/debug';
|
|
@@ -1307,7 +1307,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view' {
|
|
|
1307
1307
|
* // Update the color of a space to red.
|
|
1308
1308
|
* map.updateState(space, { color: 'red' });
|
|
1309
1309
|
*/
|
|
1310
|
-
updateState<T extends Space | Text3DView | MapObject | Label | Marker | Shape | Door | Facade | WALLS | DOORS | Model | Path | PathSegment>(target: T, state: TUpdateState<T>): any;
|
|
1310
|
+
updateState<T extends Space | Text3DView | MapObject | Label | Marker | Shape | Door | Facade | Floor | WALLS | DOORS | Model | Path | PathSegment>(target: T, state: TUpdateState<T>): any;
|
|
1311
1311
|
updateState<T extends string & NonNullable<unknown>>(target: T, state: TUpdateStates): any;
|
|
1312
1312
|
/**
|
|
1313
1313
|
* Update global state of the MapView
|
|
@@ -1375,7 +1375,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view' {
|
|
|
1375
1375
|
* @hidden
|
|
1376
1376
|
*/
|
|
1377
1377
|
updateWatermark(options: WatermarkUpdateOptions): void;
|
|
1378
|
-
getState<T extends Space | Model | Text3DView | MapObject | Label | Marker | Image | Shape | Path | PathSegment | string>(target: T): TGetState<T>;
|
|
1378
|
+
getState<T extends Space | Model | Text3DView | MapObject | Label | Marker | Image | Shape | Path | PathSegment | Floor | string>(target: T): TGetState<T>;
|
|
1379
1379
|
setHoverColor(c: string): void;
|
|
1380
1380
|
getHoverColor(): string | undefined;
|
|
1381
1381
|
/**
|
|
@@ -2024,6 +2024,18 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
|
|
|
2024
2024
|
};
|
|
2025
2025
|
flipImageToFaceCamera?: boolean;
|
|
2026
2026
|
};
|
|
2027
|
+
export type TFloorState = {
|
|
2028
|
+
type: 'floor';
|
|
2029
|
+
/**
|
|
2030
|
+
* State of the geometry on the floor.
|
|
2031
|
+
*/
|
|
2032
|
+
geometry: {
|
|
2033
|
+
/**
|
|
2034
|
+
* Opacity of the floor geometry.
|
|
2035
|
+
*/
|
|
2036
|
+
opacity: number;
|
|
2037
|
+
};
|
|
2038
|
+
};
|
|
2027
2039
|
export enum WALLS {
|
|
2028
2040
|
Exterior = "exterior-walls",
|
|
2029
2041
|
Interior = "interior-walls"
|
|
@@ -2035,9 +2047,9 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
|
|
|
2035
2047
|
/**
|
|
2036
2048
|
* The type for updating the state of map elements (colors, texts, etc.).
|
|
2037
2049
|
*/
|
|
2038
|
-
export type TUpdateState<T> = T extends WALLS ? Partial<TWallsState> : T extends DOORS | Door ? Partial<TDoorsState> : T extends Model ? Partial<UpdateModelState> : T extends Marker ? Partial<TMarkerState> : T extends Label ? Partial<TLabelState> : T extends Space | MapObject | Facade ? Partial<TGeometryState> : T extends Shape ? Partial<Omit<TShapeState, 'height' | 'type'>> : T extends Text3D ? UpdatableText3DState : T extends Path ? Partial<TPathState> : T extends PathSegment ? Partial<TPathState> : T extends string ? Record<string, any> : never;
|
|
2050
|
+
export type TUpdateState<T> = T extends WALLS ? Partial<TWallsState> : T extends DOORS | Door ? Partial<TDoorsState> : T extends Model ? Partial<UpdateModelState> : T extends Marker ? Partial<TMarkerState> : T extends Label ? Partial<TLabelState> : T extends Space | MapObject | Facade ? Partial<TGeometryState> : T extends Floor ? Partial<TFloorState> : T extends Shape ? Partial<Omit<TShapeState, 'height' | 'type'>> : T extends Text3D ? UpdatableText3DState : T extends Path ? Partial<TPathState> : T extends PathSegment ? Partial<TPathState> : T extends string ? Record<string, any> : never;
|
|
2039
2051
|
export type TUpdateStates = Partial<Omit<TGeometryState, 'interactive' | 'hoverColor' | 'type'>> | Partial<TMarkerState> | Partial<TLabelState> | Partial<TGeometryState> | Partial<TPathState>;
|
|
2040
|
-
export type TGetState<T> = T extends WALLS ? TWallsState | undefined : T extends DOORS ? TDoorsState | undefined : T extends Marker ? TMarkerState | undefined : T extends Shape ? TShapeState | undefined : T extends Model ? TModelState | undefined : T extends Label ? TLabelState | undefined : T extends Image ? TImageState | undefined : T extends Text3D ? Text3DState | undefined : T extends Space | MapObject ? TGeometryState | undefined : T extends Path ? TPathState | undefined : T extends PathSegment ? TPathState | undefined : T extends string ? TLabelState | TGeometryState | TMarkerState | TModelState | TPathState | undefined : never;
|
|
2052
|
+
export type TGetState<T> = T extends WALLS ? TWallsState | undefined : T extends DOORS ? TDoorsState | undefined : T extends Marker ? TMarkerState | undefined : T extends Shape ? TShapeState | undefined : T extends Model ? TModelState | undefined : T extends Label ? TLabelState | undefined : T extends Image ? TImageState | undefined : T extends Text3D ? Text3DState | undefined : T extends Space | MapObject ? TGeometryState | undefined : T extends Floor ? TFloorState | undefined : T extends Path ? TPathState | undefined : T extends PathSegment ? TPathState | undefined : T extends string ? TLabelState | TGeometryState | TMarkerState | TModelState | TPathState | undefined : never;
|
|
2041
2053
|
/**
|
|
2042
2054
|
* Options for {@link Camera} animations on the map.
|
|
2043
2055
|
*/
|
|
@@ -2213,6 +2225,14 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
|
|
|
2213
2225
|
* @defaultValue 0.4
|
|
2214
2226
|
*/
|
|
2215
2227
|
farRadius?: number;
|
|
2228
|
+
/**
|
|
2229
|
+
* The zoom level at which the path should be at its near radius. This will default to the Camera maxZoomLevel.
|
|
2230
|
+
*/
|
|
2231
|
+
nearZoomLevel?: number;
|
|
2232
|
+
/**
|
|
2233
|
+
* The zoom level at which the path should be at its far radius. This will default to the Camera minZoomLevel.
|
|
2234
|
+
*/
|
|
2235
|
+
farZoomLevel?: number;
|
|
2216
2236
|
/**
|
|
2217
2237
|
* Duration of path drawing in milliseconds.
|
|
2218
2238
|
*
|
|
@@ -2714,6 +2734,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
|
|
|
2714
2734
|
}
|
|
2715
2735
|
|
|
2716
2736
|
declare module '@mappedin/mappedin-js/mappedin-js/src/constants' {
|
|
2737
|
+
export const FLOOR_HEIGHT = 10;
|
|
2717
2738
|
/**
|
|
2718
2739
|
* Default map options used if no custom options are provided.
|
|
2719
2740
|
*
|
|
@@ -2735,6 +2756,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/constants' {
|
|
|
2735
2756
|
mode: "default";
|
|
2736
2757
|
};
|
|
2737
2758
|
flipImagesToFaceCamera: true;
|
|
2759
|
+
multiFloorView: {
|
|
2760
|
+
enabled: false;
|
|
2761
|
+
floorHeight: number;
|
|
2762
|
+
};
|
|
2738
2763
|
};
|
|
2739
2764
|
export const EXTERIOR_WALLS_ID = "ExteriorWalls";
|
|
2740
2765
|
export const WALLS_ID = "Walls";
|
|
@@ -3174,11 +3199,19 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/navigation' {
|
|
|
3174
3199
|
* @default 0.25
|
|
3175
3200
|
*/
|
|
3176
3201
|
nearRadius?: number;
|
|
3202
|
+
/**
|
|
3203
|
+
* The zoom level at which the path should be at its near radius. This will default to the Camera maxZoomLevel.
|
|
3204
|
+
*/
|
|
3205
|
+
nearZoomLevel?: number;
|
|
3177
3206
|
/**
|
|
3178
3207
|
* The radius of the path far from the markers.
|
|
3179
3208
|
* @default 1
|
|
3180
3209
|
*/
|
|
3181
3210
|
farRadius?: number;
|
|
3211
|
+
/**
|
|
3212
|
+
* The zoom level at which the path should be at its far radius. This will default to the Camera minZoomLevel.
|
|
3213
|
+
*/
|
|
3214
|
+
farZoomLevel?: number;
|
|
3182
3215
|
/**
|
|
3183
3216
|
* Controls whether arrows are displayed on the path.
|
|
3184
3217
|
* @default false
|
|
@@ -3220,11 +3253,19 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/navigation' {
|
|
|
3220
3253
|
* @default 0.25
|
|
3221
3254
|
*/
|
|
3222
3255
|
nearRadius?: number;
|
|
3256
|
+
/**
|
|
3257
|
+
* The zoom level at which the path should be at its near radius. This will default to the Camera maxZoomLevel.
|
|
3258
|
+
*/
|
|
3259
|
+
nearZoomLevel?: number;
|
|
3223
3260
|
/**
|
|
3224
3261
|
* The radius of the path far from the markers.
|
|
3225
3262
|
* @default 1
|
|
3226
3263
|
*/
|
|
3227
3264
|
farRadius?: number;
|
|
3265
|
+
/**
|
|
3266
|
+
* The zoom level at which the path should be at its far radius. This will default to the Camera minZoomLevel.
|
|
3267
|
+
*/
|
|
3268
|
+
farZoomLevel?: number;
|
|
3228
3269
|
/**
|
|
3229
3270
|
* Controls whether arrows are displayed on the path.
|
|
3230
3271
|
* @default false
|
|
@@ -3927,7 +3968,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
|
|
|
3927
3968
|
export { parseMVF, unzipMVF, enableTestMode, preloadFont, MAPPEDIN_COLORS };
|
|
3928
3969
|
export type { MapView, MapData, MapViewState, MappedinMapLibreOverlay, TMappedinMapLibreOverlayEvents, TBlueDotEvents, TBlueDotAction, TBlueDotState, GeolocationPositionExtended, TStackedMapsEvents, TExpandOptions, TStackedMapsState, TFollowMode, TFollowCameraOptions, TEvents, TEventPayload, TFloorChangeReason, TClickPayload, THoverPayload, TShow3DMapOptions, TGetMapDataOptions, TGetMapDataWithAccessTokenOptions, TGetMapDataWithCredentialsOptions, TGetMapDataSharedOptions, TAntialiasingOptions, TMVF, PaintStyle, LineStyle, EnvMapOptions, Shading, TMVFStyleCollection, TMVFStyle, TMVFLineStringStyle, TMVFPolygonStyle, TMVFPointStyle, Environment, InsetPadding, InsetPaddingOption, OperationHours, SiblingGroup, LocationState, Text3DState, AddText3DOptions, UpdatableText3DState, InitializeText3DState, UpdateModelState, InitializeModelState, };
|
|
3929
3970
|
export type * from 'geojson';
|
|
3930
|
-
export type { TUpdateState, TUpdateStates, TLabelState, TGeometryState, TModelState, TShapeState, TDoorsState, TImageState, TWallsState, TCameraAnimationOptions, TAnimationOptions, TFocusOnOptions, TEasingFunction, TCameraTarget, TNavigationTarget, TDirectionZone, TAddMarkerOptions, TAddPathOptions, TLabelAppearance, TAddLabelOptions, TAddModelOptions, TAddModel, TAddImageOptions, TGetDirectionsOptions, TCollisionRankingTier, TMarkerAnchor, TDirectionInstruction, TDirectionInstructionAction, TGetState, TMarkerState, TBlueDotOptions, TBlueDotPositionUpdate, TFocusTarget, IFocusable, IAnchorable, TMapDataObjectTypes, } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
3971
|
+
export type { TUpdateState, TUpdateStates, TLabelState, TGeometryState, TModelState, TShapeState, TDoorsState, TImageState, TWallsState, TCameraAnimationOptions, TAnimationOptions, TFocusOnOptions, TEasingFunction, TCameraTarget, TNavigationTarget, TDirectionZone, TAddMarkerOptions, TAddPathOptions, TLabelAppearance, TAddLabelOptions, TAddModelOptions, TAddModel, TAddImageOptions, TGetDirectionsOptions, TCollisionRankingTier, TMarkerAnchor, TDirectionInstruction, TDirectionInstructionAction, TGetState, TMarkerState, TBlueDotOptions, TBlueDotPositionUpdate, TFocusTarget, IFocusable, IAnchorable, TMapDataObjectTypes, TFloorState, } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
3931
3972
|
export { WALLS, DOORS } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
3932
3973
|
export type { Label, Marker, Path, PathSegment, Shape, CameraTransform, Model, Image, Text3D, } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
|
|
3933
3974
|
export type { Debug } from '@mappedin/mappedin-js/mappedin-js/src/debug';
|
|
@@ -6408,10 +6449,18 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
6408
6449
|
* The radius of the path when zoomed in
|
|
6409
6450
|
*/
|
|
6410
6451
|
nearRadius: number;
|
|
6452
|
+
/**
|
|
6453
|
+
* The zoom level at which the near radius is applied
|
|
6454
|
+
*/
|
|
6455
|
+
nearZoomLevel?: number;
|
|
6411
6456
|
/**
|
|
6412
6457
|
* The radius of the path when zoomed out
|
|
6413
6458
|
*/
|
|
6414
6459
|
farRadius: number;
|
|
6460
|
+
/**
|
|
6461
|
+
* The zoom level at which the far radius is applied
|
|
6462
|
+
*/
|
|
6463
|
+
farZoomLevel?: number;
|
|
6415
6464
|
};
|
|
6416
6465
|
export type AddPathOptions = {
|
|
6417
6466
|
/**
|
|
@@ -6427,10 +6476,18 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
6427
6476
|
* The radius of the path when zoomed in
|
|
6428
6477
|
*/
|
|
6429
6478
|
nearRadius?: number;
|
|
6479
|
+
/**
|
|
6480
|
+
* The zoom level at which the near radius is applied
|
|
6481
|
+
*/
|
|
6482
|
+
nearZoomLevel?: number;
|
|
6430
6483
|
/**
|
|
6431
6484
|
* The radius of the path when zoomed out
|
|
6432
6485
|
*/
|
|
6433
6486
|
farRadius?: number;
|
|
6487
|
+
/**
|
|
6488
|
+
* The zoom level at which the far radius is applied
|
|
6489
|
+
*/
|
|
6490
|
+
farZoomLevel?: number;
|
|
6434
6491
|
/**
|
|
6435
6492
|
* The color of the path.
|
|
6436
6493
|
*/
|
|
@@ -6456,6 +6513,8 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
6456
6513
|
accentColor: z.ZodOptional<z.ZodString>;
|
|
6457
6514
|
displayArrowsOnPath: z.ZodOptional<z.ZodBoolean>;
|
|
6458
6515
|
animateArrowsOnPath: z.ZodOptional<z.ZodBoolean>;
|
|
6516
|
+
nearZoomLevel: z.ZodOptional<z.ZodNumber>;
|
|
6517
|
+
farZoomLevel: z.ZodOptional<z.ZodNumber>;
|
|
6459
6518
|
}, "strip", z.ZodTypeAny, {
|
|
6460
6519
|
id?: string | undefined;
|
|
6461
6520
|
interactive?: boolean | undefined;
|
|
@@ -6463,7 +6522,9 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
6463
6522
|
displayArrowsOnPath?: boolean | undefined;
|
|
6464
6523
|
animateArrowsOnPath?: boolean | undefined;
|
|
6465
6524
|
nearRadius?: number | undefined;
|
|
6525
|
+
nearZoomLevel?: number | undefined;
|
|
6466
6526
|
farRadius?: number | undefined;
|
|
6527
|
+
farZoomLevel?: number | undefined;
|
|
6467
6528
|
}, {
|
|
6468
6529
|
id?: string | undefined;
|
|
6469
6530
|
interactive?: boolean | undefined;
|
|
@@ -6471,7 +6532,9 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
6471
6532
|
displayArrowsOnPath?: boolean | undefined;
|
|
6472
6533
|
animateArrowsOnPath?: boolean | undefined;
|
|
6473
6534
|
nearRadius?: number | undefined;
|
|
6535
|
+
nearZoomLevel?: number | undefined;
|
|
6474
6536
|
farRadius?: number | undefined;
|
|
6537
|
+
farZoomLevel?: number | undefined;
|
|
6475
6538
|
}>;
|
|
6476
6539
|
export const featureSchema: z.ZodObject<{
|
|
6477
6540
|
type: z.ZodEnum<["Feature"]>;
|
|
@@ -6523,6 +6586,10 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
6523
6586
|
options: AddPathOptions;
|
|
6524
6587
|
nearRadius: number;
|
|
6525
6588
|
farRadius: number;
|
|
6589
|
+
nearZoomLevel?: number;
|
|
6590
|
+
farZoomLevel?: number;
|
|
6591
|
+
nearZoomAltitude?: number;
|
|
6592
|
+
farZoomAltitude?: number;
|
|
6526
6593
|
accentColor: string;
|
|
6527
6594
|
completeFraction: number;
|
|
6528
6595
|
altitudeAdjustment: number;
|
|
@@ -7126,6 +7193,10 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/group-container' {
|
|
|
7126
7193
|
*/
|
|
7127
7194
|
altitude: number;
|
|
7128
7195
|
interactive: boolean;
|
|
7196
|
+
/**
|
|
7197
|
+
* The opacity of the group container, which sets the opacity of all its children
|
|
7198
|
+
*/
|
|
7199
|
+
opacity: number;
|
|
7129
7200
|
};
|
|
7130
7201
|
export class GroupContainerObject3D extends Object3D {
|
|
7131
7202
|
childrenIds: Set<string | number>;
|
|
@@ -7138,6 +7209,9 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/group-container' {
|
|
|
7138
7209
|
occluderDirty: boolean;
|
|
7139
7210
|
occluderId?: number;
|
|
7140
7211
|
occluderFeature?: Feature<Polygon | MultiPolygon, any>;
|
|
7212
|
+
opacity: number;
|
|
7213
|
+
/** The effective opacity of the entity after all parent containers have been considered. */
|
|
7214
|
+
computedOpacity: number;
|
|
7141
7215
|
};
|
|
7142
7216
|
components: [StackComponent?, InteractionComponent?];
|
|
7143
7217
|
constructor(id: string);
|
|
@@ -7147,6 +7221,8 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/group-container' {
|
|
|
7147
7221
|
setVisible(visible: boolean): void;
|
|
7148
7222
|
setAltitude(altitude: number): void;
|
|
7149
7223
|
get altitude(): number;
|
|
7224
|
+
setOpacity(opacity: number): void;
|
|
7225
|
+
get opacity(): number;
|
|
7150
7226
|
}
|
|
7151
7227
|
}
|
|
7152
7228
|
|
|
@@ -7586,6 +7662,7 @@ declare module '@mappedin/mappedin-js/geojson/src/types' {
|
|
|
7586
7662
|
tweenGroup: TweenGroup;
|
|
7587
7663
|
cameraObject: Camera;
|
|
7588
7664
|
naturalBearing: number;
|
|
7665
|
+
containerOffset: [number, number];
|
|
7589
7666
|
};
|
|
7590
7667
|
/**
|
|
7591
7668
|
* All of the entities in the scene
|
|
@@ -8439,7 +8516,10 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
|
|
|
8439
8516
|
/**
|
|
8440
8517
|
* Project a screen coordinate to a geographic coordinate
|
|
8441
8518
|
*/
|
|
8442
|
-
projectScreenXYToCoordinate: (x: number, y: number) =>
|
|
8519
|
+
projectScreenXYToCoordinate: (x: number, y: number, useWorldPlane?: boolean) => {
|
|
8520
|
+
coordinate: Position;
|
|
8521
|
+
groupContainers: GroupContainerObject3D[] | undefined;
|
|
8522
|
+
} | undefined;
|
|
8443
8523
|
/**
|
|
8444
8524
|
* Project a geographic coordinate to a screen coordinate
|
|
8445
8525
|
*/
|
|
@@ -8587,7 +8667,6 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
|
|
|
8587
8667
|
}
|
|
8588
8668
|
|
|
8589
8669
|
declare module '@mappedin/mappedin-js/geojson/src/camera' {
|
|
8590
|
-
import type { Mesh } from 'three';
|
|
8591
8670
|
import { Vector3 } from 'three';
|
|
8592
8671
|
import type { RendererCore } from '@mappedin/mappedin-js/geojson/src';
|
|
8593
8672
|
import type { Position as GeoJSONPosition } from 'geojson';
|
|
@@ -8630,7 +8709,7 @@ declare module '@mappedin/mappedin-js/geojson/src/camera' {
|
|
|
8630
8709
|
/**
|
|
8631
8710
|
* @internal
|
|
8632
8711
|
*/
|
|
8633
|
-
constructor(core: RendererCore, systems: Systems, state: RendererState
|
|
8712
|
+
constructor(core: RendererCore, systems: Systems, state: RendererState);
|
|
8634
8713
|
/**
|
|
8635
8714
|
* The camera's current center in [longitude, latitude] degrees.
|
|
8636
8715
|
*/
|
|
@@ -9268,10 +9347,12 @@ declare module '@mappedin/mappedin-js/geojson/src/utils' {
|
|
|
9268
9347
|
import type { Object3D, Camera as THREECamera } from 'three';
|
|
9269
9348
|
import { MercatorCoordinate } from '@mappedin/mappedin-js/packages/outdoor-context-v4';
|
|
9270
9349
|
import type { CustomLayerInterface } from '@mappedin/mappedin-js/packages/outdoor-context-v4';
|
|
9271
|
-
import
|
|
9350
|
+
import { GroupContainerObject3D } from '@mappedin/mappedin-js/geojson/src/entities/group-container';
|
|
9272
9351
|
import type { Geometry2D } from '@mappedin/mappedin-js/geojson/src/entities/geometry2d';
|
|
9352
|
+
import type { Geometry3DTypes } from '@mappedin/mappedin-js/geojson/src/entities/geometry3d';
|
|
9273
9353
|
import type { Position, RendererState } from '@mappedin/mappedin-js/geojson/src/renderer';
|
|
9274
9354
|
import type { Camera } from '@mappedin/mappedin-js/geojson/src/camera';
|
|
9355
|
+
import { GeometryGroupObject3D } from '@mappedin/mappedin-js/geojson/src/entities/geometry-group';
|
|
9275
9356
|
export { isFiniteBox } from '@packages/internal/common';
|
|
9276
9357
|
export function cartesianToGeographic(centerLat: number, centerLon: number, x: number, y: number): {
|
|
9277
9358
|
lat: number;
|
|
@@ -9347,6 +9428,7 @@ declare module '@mappedin/mappedin-js/geojson/src/utils' {
|
|
|
9347
9428
|
export { transformRequest } from '@mappedin/mappedin-js/geojson/src/utils/tranform-request';
|
|
9348
9429
|
export { normalizeAngle } from '@mappedin/mappedin-js/geojson/src/utils/math';
|
|
9349
9430
|
export function shouldExpandZoomLevel(minZoomFromCurrentPanBounds: number, cameraZoomLevel: number): boolean;
|
|
9431
|
+
export function getGroupContainerOpacity(entity: Geometry3DTypes | GeometryGroupObject3D): number;
|
|
9350
9432
|
}
|
|
9351
9433
|
|
|
9352
9434
|
declare module '@mappedin/mappedin-js/geojson/src/utils/constants' {
|
|
@@ -9585,64 +9667,71 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api' {
|
|
|
9585
9667
|
import { Text3D } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/text3d';
|
|
9586
9668
|
import { PathSegment } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/path';
|
|
9587
9669
|
export class GeoJsonApi {
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9670
|
+
core: RendererCore;
|
|
9671
|
+
mapObjects: GeojsonApiMapObject[];
|
|
9672
|
+
id: string;
|
|
9673
|
+
mapDataExternal: {
|
|
9674
|
+
[key in string]: MapData;
|
|
9675
|
+
};
|
|
9676
|
+
mapData?: MapData;
|
|
9677
|
+
currentMap: GeojsonApiMapObject;
|
|
9678
|
+
hiddenOutdoorGeometries: [
|
|
9679
|
+
BBox,
|
|
9680
|
+
polygons: GeoJSON.Feature<GeoJSON.Polygon | GeoJSON.MultiPolygon, any>[],
|
|
9681
|
+
layers: string[]
|
|
9682
|
+
][];
|
|
9683
|
+
mapView: MapView;
|
|
9684
|
+
Camera: Camera;
|
|
9685
|
+
Labels: Labels;
|
|
9686
|
+
Text3D: Text3D;
|
|
9687
|
+
Markers: Markers;
|
|
9688
|
+
Models: Models;
|
|
9689
|
+
Paths: Paths;
|
|
9690
|
+
Exporter: Exporter;
|
|
9691
|
+
Navigation: Navigation;
|
|
9692
|
+
Outdoor: Outdoor;
|
|
9693
|
+
BlueDot: BlueDot;
|
|
9694
|
+
Shapes: Shapes;
|
|
9695
|
+
Style: Style;
|
|
9696
|
+
Images: Images;
|
|
9697
|
+
get DynamicFocus(): import("..").DynamicFocus;
|
|
9698
|
+
get StackedMaps(): import("..").StackedMaps;
|
|
9699
|
+
constructor(rendererCore: RendererCore, mapView: MapView);
|
|
9700
|
+
updateState<T extends Space | Text3DView | MapObject | Label | Shape | Marker | Model | Door | Facade | Floor | WALLS | DOORS | Path | PathSegment | (string & NonNullable<unknown>)>(target: T, state: TUpdateState<T>): void;
|
|
9701
|
+
update: () => void;
|
|
9702
|
+
getMapDataInternal(): MapDataInternal | undefined;
|
|
9703
|
+
getMapData(): MapData | undefined;
|
|
9704
|
+
addMap(mapData: MapData, options?: TShow3DMapOptions): Promise<MapData>;
|
|
9705
|
+
setFloor(floor: Floor | string, reason?: TFloorChangeReason): void;
|
|
9706
|
+
setFloorStack(floorStack: FloorStack | string): void;
|
|
9707
|
+
updateWatermark(options: WatermarkUpdateOptions): void;
|
|
9708
|
+
get currentFloorStack(): FloorStack;
|
|
9709
|
+
get currentFloor(): Floor;
|
|
9710
|
+
getState<T extends Space | Text3DView | MapObject | Label | Marker | Image | Shape | Model | Path | PathSegment | Floor | string>(target: T): TGetState<T>;
|
|
9711
|
+
setHoverColor(c: string): void;
|
|
9712
|
+
getHoverColor(): string | undefined;
|
|
9713
|
+
/**
|
|
9714
|
+
* Create a coordinate from a screen coordinate
|
|
9715
|
+
* @param x - The x coordinate of the screen
|
|
9716
|
+
* @param y - The y coordinate of the screen
|
|
9717
|
+
* @param floor - The floor to use for the coordinate
|
|
9718
|
+
* @returns The coordinate
|
|
9719
|
+
*/
|
|
9720
|
+
createCoordinateFromScreenCoordinate(x: number, y: number, floor?: Floor): Coordinate | undefined;
|
|
9721
|
+
getScreenCoordinateFromCoordinate(coordinate: Coordinate): {
|
|
9722
|
+
x: number;
|
|
9723
|
+
y: number;
|
|
9724
|
+
};
|
|
9725
|
+
isInView(target: Space | MapObject | Label | Marker | string): boolean;
|
|
9726
|
+
auto(): {
|
|
9727
|
+
labels: Label[];
|
|
9728
|
+
};
|
|
9729
|
+
/**
|
|
9730
|
+
* @internal
|
|
9731
|
+
*/
|
|
9732
|
+
get __core(): RendererCore;
|
|
9733
|
+
clear(): void;
|
|
9734
|
+
destroy(): void;
|
|
9646
9735
|
}
|
|
9647
9736
|
}
|
|
9648
9737
|
|
|
@@ -9663,7 +9752,6 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/map-object' {
|
|
|
9663
9752
|
import { type GeoJsonApi } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api';
|
|
9664
9753
|
import { FloorStackObject } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-stack-object';
|
|
9665
9754
|
import { DynamicFocus } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/dynamic-focus';
|
|
9666
|
-
export const FLOOR_HEIGHT = 5;
|
|
9667
9755
|
import type { Text3DState } from '@mappedin/core-sdk/src/components/text3d';
|
|
9668
9756
|
export class GeojsonApiMapObject extends PubSub<{
|
|
9669
9757
|
'floor-change': {
|
|
@@ -9748,7 +9836,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/map-object' {
|
|
|
9748
9836
|
onCreate: (labelId: string | number, text: string, target: IAnchorable) => void;
|
|
9749
9837
|
labelOptions?: TAddLabelOptions;
|
|
9750
9838
|
}) => void;
|
|
9751
|
-
add: (coordinate:
|
|
9839
|
+
add: (coordinate: Coordinate, text: string, opts?: AddLabelOptions & {
|
|
9752
9840
|
floorId?: string;
|
|
9753
9841
|
parentId?: string;
|
|
9754
9842
|
verticalOffset?: number;
|
|
@@ -10044,7 +10132,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/text3d' {
|
|
|
10044
10132
|
|
|
10045
10133
|
declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/camera' {
|
|
10046
10134
|
import type { IFocusable, TCameraAnimationOptions, TCameraTarget, TFocusOnOptions, TCameraInteractionsSetOptions } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
10047
|
-
import type { InsetPadding } from '@mappedin/
|
|
10135
|
+
import type { InsetPadding } from '@mappedin/mappedin-js/geojson/src';
|
|
10048
10136
|
import { Coordinate } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
10049
10137
|
import type { GeoJsonApi } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api';
|
|
10050
10138
|
/**
|
|
@@ -10590,11 +10678,19 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/navigation/index' {
|
|
|
10590
10678
|
* @default 0.25
|
|
10591
10679
|
*/
|
|
10592
10680
|
nearRadius?: number;
|
|
10681
|
+
/**
|
|
10682
|
+
* The zoom level at which the path should be at its near radius. This will default to the Camera maxZoomLevel.
|
|
10683
|
+
*/
|
|
10684
|
+
nearZoomLevel?: number;
|
|
10593
10685
|
/**
|
|
10594
10686
|
* The radius of the path far from the markers.
|
|
10595
10687
|
* @default 1
|
|
10596
10688
|
*/
|
|
10597
10689
|
farRadius?: number;
|
|
10690
|
+
/**
|
|
10691
|
+
* The zoom level at which the path should be at its far radius. This will default to the Camera minZoomLevel.
|
|
10692
|
+
*/
|
|
10693
|
+
farZoomLevel?: number;
|
|
10598
10694
|
/**
|
|
10599
10695
|
* Controls whether arrows are displayed on the path.
|
|
10600
10696
|
* @default false
|
|
@@ -10636,11 +10732,19 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/navigation/index' {
|
|
|
10636
10732
|
* @default 0.25
|
|
10637
10733
|
*/
|
|
10638
10734
|
nearRadius?: number;
|
|
10735
|
+
/**
|
|
10736
|
+
* The zoom level at which the path should be at its near radius. This will default to the Camera maxZoomLevel.
|
|
10737
|
+
*/
|
|
10738
|
+
nearZoomLevel?: number;
|
|
10639
10739
|
/**
|
|
10640
10740
|
* The radius of the path far from the markers.
|
|
10641
10741
|
* @default 1
|
|
10642
10742
|
*/
|
|
10643
10743
|
farRadius?: number;
|
|
10744
|
+
/**
|
|
10745
|
+
* The zoom level at which the path should be at its far radius. This will default to the Camera minZoomLevel.
|
|
10746
|
+
*/
|
|
10747
|
+
farZoomLevel?: number;
|
|
10644
10748
|
/**
|
|
10645
10749
|
* Controls whether arrows are displayed on the path.
|
|
10646
10750
|
* @default false
|
|
@@ -12859,6 +12963,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/2d-occlusion/system' {
|
|
|
12859
12963
|
import type { Position as GeoJsonPosition } from 'geojson';
|
|
12860
12964
|
export function fillArrayWithColor(array: Float32Array | Uint8Array, count: number, color: number): void;
|
|
12861
12965
|
export class Occlusion2DSystem {
|
|
12966
|
+
backgroundId: number;
|
|
12862
12967
|
constructor(state: RendererState, convertTo3DMapPosition: (position: GeoJsonPosition) => Vector3, renderer?: Renderer);
|
|
12863
12968
|
reserveOccluderId(): number;
|
|
12864
12969
|
enable(): void;
|
|
@@ -12947,7 +13052,7 @@ declare module '@mappedin/mappedin-js/geojson/src/utils/ecs' {
|
|
|
12947
13052
|
import { Box3, Vector3 } from 'three';
|
|
12948
13053
|
import type RendererCore from '@mappedin/mappedin-js/geojson/src/renderer';
|
|
12949
13054
|
export function getGeometryByGeometryId(state: RendererState, geometryOrGeometryId?: string | number | Record<string, any>): Geometry3DTypes | GeometryGroupObject3D | GroupContainerObject3D | Geometry2D | undefined;
|
|
12950
|
-
export function getVerticesOfEntity(core: RendererCore, geometryOrGeometryId?: string | number | EntityId<EntityState>, vertices?: Vector3[], bounds?: Box3): Vector3[];
|
|
13055
|
+
export function getVerticesOfEntity(core: RendererCore, geometryOrGeometryId?: string | number | EntityId<EntityState>, vertices?: Vector3[], bounds?: Box3, zOffset?: number): Vector3[];
|
|
12951
13056
|
}
|
|
12952
13057
|
|
|
12953
13058
|
declare module '@mappedin/mappedin-js/geojson/src/utils/get-pixel-ratio' {
|
|
@@ -13341,17 +13446,18 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object'
|
|
|
13341
13446
|
}
|
|
13342
13447
|
|
|
13343
13448
|
declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
|
|
13344
|
-
import { Coordinate, type MapObject, type Space } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
13449
|
+
import { Coordinate, type Floor, type MapObject, type Space } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
13345
13450
|
import type { EntranceCollection, LineString, Polygon, Point, SpaceProperties, ObstructionProperties, StyleCollection, PolygonStyle, LineStringStyle, Feature, ObstructionCollection, PointStyle } from '@mappedin/mvf';
|
|
13346
13451
|
import type { PolygonFeatureProperties } from '@packages/internal/mvf-utils';
|
|
13347
13452
|
import type { BBox, FeatureCollection, MultiLineString } from 'geojson';
|
|
13348
|
-
import type { LabelState, MarkerState, GeometryState, CollisionRankingTier, LineStyle, PaintStyle, Position } from '@mappedin/core-sdk';
|
|
13453
|
+
import type { LabelState, MarkerState, GeometryState, CollisionRankingTier, LineStyle, PaintStyle, Position, GroupContainerState } from '@mappedin/core-sdk';
|
|
13349
13454
|
import { type TGeometryState, type TLabelState, type TDirectionInstructionAction, type TShow3DMapOptions, type Label, type Marker, type Model } from '@mappedin/mappedin-js/mappedin-js/src';
|
|
13350
|
-
import type { TDoorsState, TMarkerState, TWallsState } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
13455
|
+
import type { TDoorsState, TFloorState, TMarkerState, TWallsState } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
13351
13456
|
import type { Image, Path, Shape, Text3D } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
|
|
13352
13457
|
import type { GeoJsonApi } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api';
|
|
13353
13458
|
import type { Tween } from '@tweenjs/tween.js';
|
|
13354
13459
|
import type { PathSegment } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/path';
|
|
13460
|
+
import { FloorObject } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object';
|
|
13355
13461
|
export function convertCoordinateToPosition(coord: Coordinate): Position;
|
|
13356
13462
|
export function convertPositionToCoordinate(coord: Position): Coordinate;
|
|
13357
13463
|
export const cutEntrancesFromLineStrings: (lineStrings: ObstructionCollection["features"], entranceCollection: EntranceCollection["features"]) => {
|
|
@@ -13363,6 +13469,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
|
|
|
13363
13469
|
export function translateDoorsStateToGeojsonCore(state: Partial<TDoorsState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
|
|
13364
13470
|
export function translateWallsStateToGeojsonCore(state: Partial<TWallsState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
|
|
13365
13471
|
export function translateSpaceStateToGeojsonCore(state: Partial<TGeometryState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
|
|
13472
|
+
export function translateFloorGeometryStateToGeojsonCore(state: TFloorState['geometry']): Partial<GroupContainerState>;
|
|
13366
13473
|
export function differenceBetweenAngles(a: number, b: number): number;
|
|
13367
13474
|
export function getRelativeBearing(relativeBearingAngle: number, threshold: number): TDirectionInstructionAction['bearing'];
|
|
13368
13475
|
export function convertCollisionRankingTeirToNumber(tier: CollisionRankingTier): number;
|
|
@@ -13378,11 +13485,12 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
|
|
|
13378
13485
|
};
|
|
13379
13486
|
export function groupGeometryByStyle(features: Feature<LineString | Polygon | Point, PolygonFeatureProperties<SpaceProperties | ObstructionProperties>>[], styleMap: AggregatedStyleMap): Map<WithId<PolygonStyle> | WithId<LineStringStyle> | WithId<PointStyle>, Feature<Polygon | LineString | Point, PolygonFeatureProperties<SpaceProperties | ObstructionProperties>>[]>;
|
|
13380
13487
|
export function translateToCoreStyle(style: PolygonStyle | LineStringStyle, userOptions?: TShow3DMapOptions): PaintStyle | LineStyle;
|
|
13381
|
-
export const getTargetID: <T extends Space | Shape | MapObject | Label | Text3D | Marker | Model | Path | PathSegment | Image | string>(target: T, api: GeoJsonApi) => string | undefined;
|
|
13488
|
+
export const getTargetID: <T extends Space | Shape | MapObject | Label | Text3D | Marker | Model | Path | PathSegment | Image | Floor | string>(target: T, api: GeoJsonApi) => string | undefined;
|
|
13382
13489
|
export function tweenToPromise(tween: Tween): Promise<void>;
|
|
13383
13490
|
export function getBoundingBox(geometry: GeoJSON.Feature<GeoJSON.Polygon | GeoJSON.MultiPolygon, any>): BBox;
|
|
13384
13491
|
export function expandBbox(bbox: BBox, bboxToExpand: BBox): number[];
|
|
13385
13492
|
export function unique<T>(array: T[]): T[];
|
|
13493
|
+
export function getTargetFloorObject(coordinate: Coordinate, floorsById: Map<string, FloorObject>, defaultFloor: FloorObject): FloorObject;
|
|
13386
13494
|
}
|
|
13387
13495
|
|
|
13388
13496
|
declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-stack-object' {
|
|
@@ -13513,7 +13621,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/collisions/collider-pr
|
|
|
13513
13621
|
|
|
13514
13622
|
declare module '@mappedin/mappedin-js/geojson/src/systems/interactions/system' {
|
|
13515
13623
|
import { PerspectiveCamera, Vector3, Object3D, Mesh, Intersection, Object3DEventMap } from 'three';
|
|
13516
|
-
import { Raycaster } from 'three';
|
|
13624
|
+
import { Raycaster, Vector2 } from 'three';
|
|
13517
13625
|
import type { Geometry2D } from '@mappedin/mappedin-js/geojson/src/entities/geometry2d';
|
|
13518
13626
|
import { QuadTree } from '@packages/internal/quad-tree';
|
|
13519
13627
|
import type { Geometry3D } from '@mappedin/mappedin-js/geojson/src/entities/geometry3d';
|
|
@@ -13562,7 +13670,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/interactions/system' {
|
|
|
13562
13670
|
entityId: Geometry2D['id'];
|
|
13563
13671
|
}>;
|
|
13564
13672
|
_container: HTMLCanvasElement;
|
|
13565
|
-
constructor(container: HTMLCanvasElement, coreState: RendererState, camera: PerspectiveCamera,
|
|
13673
|
+
constructor(container: HTMLCanvasElement, coreState: RendererState, camera: PerspectiveCamera, worldPlane: Mesh, isUserInteracting: () => boolean);
|
|
13566
13674
|
updateQuadtree(takeIT: QuadTree<{
|
|
13567
13675
|
entityId: Geometry2D['id'];
|
|
13568
13676
|
}>): void;
|
|
@@ -13570,6 +13678,8 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/interactions/system' {
|
|
|
13570
13678
|
hasTouched: boolean;
|
|
13571
13679
|
onPointerMoveRaf: (event: PointerEvent) => void;
|
|
13572
13680
|
tapsControl: TapsController;
|
|
13681
|
+
getThreeDIntersectsFromXY(point: Vector2): Intersection<Object3D<Object3DEventMap>>[];
|
|
13682
|
+
getGroupContainerIntersectsFromXY(point: Vector2): any;
|
|
13573
13683
|
handleHover(e?: PointerEvent): void;
|
|
13574
13684
|
dirty3D: boolean;
|
|
13575
13685
|
get _hitBoxes(): {
|
|
@@ -13585,14 +13695,12 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/interactions/system' {
|
|
|
13585
13695
|
hovered2DEntity: Geometry2D | undefined;
|
|
13586
13696
|
hovered3DContainers: GroupContainerObject3D[] | undefined;
|
|
13587
13697
|
lastHover: Geometry3D | undefined;
|
|
13588
|
-
containerOffset: [top: number, left: number];
|
|
13589
13698
|
interaction: InteractionState;
|
|
13590
13699
|
};
|
|
13591
13700
|
/**
|
|
13592
13701
|
* Get the current cursor type determined by the interaction.
|
|
13593
13702
|
*/
|
|
13594
13703
|
getCursor(): CursorTypes;
|
|
13595
|
-
resize: () => void;
|
|
13596
13704
|
}
|
|
13597
13705
|
export function findModelParent(object: Object3D): Object3D<Object3DEventMap> | undefined;
|
|
13598
13706
|
export {};
|
|
@@ -22105,6 +22213,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/path/system' {
|
|
|
22105
22213
|
import type { RendererState } from '@mappedin/mappedin-js/geojson/src/renderer';
|
|
22106
22214
|
import type { RendererCore } from '@mappedin/mappedin-js/geojson/src';
|
|
22107
22215
|
import { PubSub } from '@packages/internal/common';
|
|
22216
|
+
import type { CameraSystem } from '@mappedin/mappedin-js/geojson/src/systems/camera';
|
|
22108
22217
|
/**
|
|
22109
22218
|
* A system for drawing and controlling the visual state of paths
|
|
22110
22219
|
*/
|
|
@@ -22114,7 +22223,8 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/path/system' {
|
|
|
22114
22223
|
altitudeDirty: boolean;
|
|
22115
22224
|
convertTo3DMapPosition: RendererCore['convertTo3DMapPosition'];
|
|
22116
22225
|
getParentContainer: RendererCore['getParentContainer'];
|
|
22117
|
-
|
|
22226
|
+
convertZoomLevelToAltitude: CameraSystem['convertZoomLevelToAltitude'];
|
|
22227
|
+
constructor(rendererState: RendererState, convertTo3DMapPosition: RendererCore['convertTo3DMapPosition'], getParentContainer: RendererCore['getParentContainer'], convertZoomLevelToAltitude: CameraSystem['convertZoomLevelToAltitude']);
|
|
22118
22228
|
update(minZoomAltitude: number, maxZoomAltitude: number, currentZoomAltitude: number): void;
|
|
22119
22229
|
}
|
|
22120
22230
|
}
|
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as C,B as D,C as E,D as F,E as G,F as H,G as I,H as J,I as K,a as c,b as d,c as e,d as f,e as g,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p,o as q,p as r,q as s,r as t,s as u,t as v,u as w,v as x,w as z,y as A,z as B}from"./chunk-
|
|
1
|
+
import{A as C,B as D,C as E,D as F,E as G,F as H,G as I,H as J,I as K,a as c,b as d,c as e,d as f,e as g,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p,o as q,p as r,q as s,r as t,s as u,t as v,u as w,v as x,w as z,y as A,z as B}from"./chunk-K3YNXHST.js";import{Fa as y,a,b}from"./chunk-HH7HMNDW.js";import"./chunk-ZKST35SK.js";import"./chunk-ERH6UBJK.js";import"./chunk-RJTPVVPZ.js";import"./chunk-YXZOAYFJ.js";import"./chunk-HALSTKAB.js";export{o as Annotation,g as Area,l as Connection,c as Coordinate,B as DOORS,h as Door,a as E_SDK_LOG_LEVEL,s as EnterpriseCategory,r as EnterpriseLocation,t as EnterpriseVenue,q as Facade,j as Floor,p as FloorStack,e as Hyperlink,f as ImageData,x as LocationCategory,w as LocationProfile,k as MAPPEDIN_COLORS,m as MapObject,d as Node,n as PointOfInterest,i as Space,A as WALLS,C as __setWatermarkOnClickFn,I as createMapLibreOverlay,z as enableTestMode,G as getMapData,H as getMapDataEnterprise,F as hydrateMapData,D as hydrateMapDataFromMVF,u as parseMVF,y as preloadFont,b as setLoggerLevel,E as setUseEnterpriseAPI,J as show3dMap,K as show3dMapGeojson,v as unzipMVF};
|