@mappedin/mappedin-js 6.0.1-beta.10 → 6.0.1-beta.12
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 +1 -1
- package/lib/esm/{GLTFExporter-XOP3B7V5.js → GLTFExporter-HSPBCS24.js} +1 -1
- package/lib/esm/{GLTFLoader-HKCKJXQO.js → GLTFLoader-55WKPMRN.js} +1 -1
- package/lib/esm/{browser-4BG3CNXW.js → browser-2NJLGV4C.js} +1 -1
- package/lib/esm/chunk-G4N5XJZG.js +1 -0
- package/lib/esm/{chunk-X4O3T5J7.js → chunk-G7WXEQJ3.js} +1 -1
- package/lib/esm/{chunk-GLHDHW4V.js → chunk-GZ7LZ5UP.js} +1 -1
- package/lib/esm/{chunk-CBWWQFNR.js → chunk-NLGPMWPZ.js} +1 -1
- package/lib/esm/{chunk-A6QTJRY4.js → chunk-QKN6JD4F.js} +1 -1
- package/lib/esm/{chunk-TKFKQMTK.js → chunk-SQXYZZBW.js} +1 -1
- package/lib/esm/index.d.ts +86 -49
- package/lib/esm/index.js +1 -1
- package/lib/esm/{inspector-TH36X7KS.js → inspector-JU5BF2M5.js} +1 -1
- package/lib/esm/{internal-3SSHRPBM.js → internal-OAZHYFPJ.js} +1 -1
- package/lib/esm/{outdoor-context-v4-6FK55GUT.js → outdoor-context-v4-W7UZ2JSB.js} +1 -1
- package/package.json +5 -5
- package/lib/esm/chunk-7P6SMTYY.js +0 -1
package/lib/esm/index.d.ts
CHANGED
|
@@ -146,6 +146,11 @@ declare module '@mappedin/mappedin-js' {
|
|
|
146
146
|
*/
|
|
147
147
|
autoRenderBeauty?: boolean;
|
|
148
148
|
};
|
|
149
|
+
/**
|
|
150
|
+
* @interface
|
|
151
|
+
* Options for the watermark.
|
|
152
|
+
*/
|
|
153
|
+
export type TWatermarkOptions = Omit<WatermarkOptions, 'visible'>;
|
|
149
154
|
/**
|
|
150
155
|
* Options for showing a 3D map.
|
|
151
156
|
*
|
|
@@ -219,18 +224,22 @@ declare module '@mappedin/mappedin-js' {
|
|
|
219
224
|
*
|
|
220
225
|
* @hidden
|
|
221
226
|
*/
|
|
222
|
-
watermark?:
|
|
227
|
+
watermark?: TWatermarkOptions;
|
|
223
228
|
/**
|
|
224
229
|
* Options for the attribution control.
|
|
225
230
|
*
|
|
226
231
|
* @hidden
|
|
227
232
|
*/
|
|
228
233
|
attribution?: {
|
|
234
|
+
/**
|
|
235
|
+
* Custom attribution content.
|
|
236
|
+
*/
|
|
237
|
+
custom?: string[];
|
|
229
238
|
/**
|
|
230
239
|
* Attribution position.
|
|
231
240
|
* @default 'bottom-right'
|
|
232
241
|
*/
|
|
233
|
-
position
|
|
242
|
+
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
234
243
|
};
|
|
235
244
|
/**
|
|
236
245
|
* First floor to be rendered.
|
|
@@ -502,7 +511,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
|
|
|
502
511
|
/**
|
|
503
512
|
* Changes the language of the map data.
|
|
504
513
|
*
|
|
505
|
-
* @param localeCode The ISO 639-1 language code to change to (e.g., 'en' for English, 'fr' for French). Check
|
|
514
|
+
* @param localeCode The ISO 639-1 language code to change to (e.g., 'en' for English, 'fr' for French). Check ({@link EnterpriseVenue.languages}) for available languages
|
|
506
515
|
* @returns A promise that resolves when the language change is complete.
|
|
507
516
|
* @throws An error if the language change fails.
|
|
508
517
|
* @example
|
|
@@ -846,7 +855,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
846
855
|
}
|
|
847
856
|
|
|
848
857
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-view' {
|
|
849
|
-
import type { RendererCore,
|
|
858
|
+
import type { RendererCore, WatermarkUpdateOptions } from '@mappedin/core-sdk';
|
|
850
859
|
import { PubSub } from '@packages/internal/common';
|
|
851
860
|
import { type TEvents, type TShow3DMapOptions } from '@mappedin/mappedin-js/mappedin-js/src';
|
|
852
861
|
import type { Navigation } from '@mappedin/mappedin-js/mappedin-js/src/navigation';
|
|
@@ -981,7 +990,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view' {
|
|
|
981
990
|
* @param options {WatermarkOptions}
|
|
982
991
|
* @hidden
|
|
983
992
|
*/
|
|
984
|
-
updateWatermark(options:
|
|
993
|
+
updateWatermark(options: WatermarkUpdateOptions): void;
|
|
985
994
|
getState<T extends Space | MapObject | Label | Marker | Image | string>(target: T): TGetState<T> | undefined;
|
|
986
995
|
setHoverColor(c: string): void;
|
|
987
996
|
getHoverColor(): string | undefined;
|
|
@@ -1106,7 +1115,7 @@ declare module '@mappedin/mappedin-js/geojson/src' {
|
|
|
1106
1115
|
export { mountSceneGraphVisualizer };
|
|
1107
1116
|
export type { EntityId, EntityState, LineStyle, PaintStyle, ModelStyle, ModelProperties, Shading } from '@mappedin/mappedin-js/geojson/src/types';
|
|
1108
1117
|
export type * from 'geojson';
|
|
1109
|
-
export type { WatermarkOptions, WatermarkPosition } from '@mappedin/mappedin-js/geojson/src/systems/watermark/system';
|
|
1118
|
+
export type { WatermarkUpdateOptions, WatermarkOptions, WatermarkPosition } from '@mappedin/mappedin-js/geojson/src/systems/watermark/system';
|
|
1110
1119
|
export type { GLTFExportOptions } from '@mappedin/mappedin-js/geojson/src/systems/exporter';
|
|
1111
1120
|
export type { AttributionControlOptions, AttributionPosition } from '@mappedin/mappedin-js/geojson/src/systems/html-controls/system';
|
|
1112
1121
|
export { ATTRIBUTION_POSITIONS } from '@mappedin/mappedin-js/geojson/src/systems/html-controls/system';
|
|
@@ -3656,6 +3665,11 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
|
|
|
3656
3665
|
*/
|
|
3657
3666
|
autoRenderBeauty?: boolean;
|
|
3658
3667
|
};
|
|
3668
|
+
/**
|
|
3669
|
+
* @interface
|
|
3670
|
+
* Options for the watermark.
|
|
3671
|
+
*/
|
|
3672
|
+
export type TWatermarkOptions = Omit<WatermarkOptions, 'visible'>;
|
|
3659
3673
|
/**
|
|
3660
3674
|
* Options for showing a 3D map.
|
|
3661
3675
|
*
|
|
@@ -3729,18 +3743,22 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
|
|
|
3729
3743
|
*
|
|
3730
3744
|
* @hidden
|
|
3731
3745
|
*/
|
|
3732
|
-
watermark?:
|
|
3746
|
+
watermark?: TWatermarkOptions;
|
|
3733
3747
|
/**
|
|
3734
3748
|
* Options for the attribution control.
|
|
3735
3749
|
*
|
|
3736
3750
|
* @hidden
|
|
3737
3751
|
*/
|
|
3738
3752
|
attribution?: {
|
|
3753
|
+
/**
|
|
3754
|
+
* Custom attribution content.
|
|
3755
|
+
*/
|
|
3756
|
+
custom?: string[];
|
|
3739
3757
|
/**
|
|
3740
3758
|
* Attribution position.
|
|
3741
3759
|
* @default 'bottom-right'
|
|
3742
3760
|
*/
|
|
3743
|
-
position
|
|
3761
|
+
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
3744
3762
|
};
|
|
3745
3763
|
/**
|
|
3746
3764
|
* First floor to be rendered.
|
|
@@ -5568,7 +5586,7 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
|
|
|
5568
5586
|
import type { GeometryGroupState } from '@mappedin/mappedin-js/geojson/src/entities/geometry-group';
|
|
5569
5587
|
import { DOMResizeSystem } from '@mappedin/mappedin-js/geojson/src/systems/dom-resize/system';
|
|
5570
5588
|
import { Camera } from '@mappedin/mappedin-js/geojson/src/camera';
|
|
5571
|
-
import { type
|
|
5589
|
+
import { type WatermarkUpdateOptions, WatermarkSystem } from '@mappedin/mappedin-js/geojson/src/systems/watermark/system';
|
|
5572
5590
|
import { PanBoundsSystem } from '@mappedin/mappedin-js/geojson/src/systems/pan-bounds/system';
|
|
5573
5591
|
import { HTMLControlsSystem } from '@mappedin/mappedin-js/geojson/src/systems/html-controls/system';
|
|
5574
5592
|
import { type CustomGeometryBuilder, type ShapeState } from '@mappedin/mappedin-js/geojson/src/components/custom';
|
|
@@ -5702,9 +5720,9 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
|
|
|
5702
5720
|
/**
|
|
5703
5721
|
* Updates the watermark on the map.
|
|
5704
5722
|
*
|
|
5705
|
-
* @param options {
|
|
5723
|
+
* @param options {WatermarkUpdateOptions}
|
|
5706
5724
|
*/
|
|
5707
|
-
updateWatermark(options:
|
|
5725
|
+
updateWatermark(options: WatermarkUpdateOptions): void;
|
|
5708
5726
|
/**
|
|
5709
5727
|
* Remove an entity from the renderer and release associated resources.
|
|
5710
5728
|
*/
|
|
@@ -6234,6 +6252,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/watermark/system' {
|
|
|
6234
6252
|
import { PubSub } from '@packages/internal/common';
|
|
6235
6253
|
import type { Geometry2D } from '@mappedin/mappedin-js/geojson/src/entities';
|
|
6236
6254
|
import type { QuadTree } from '@packages/internal/quad-tree';
|
|
6255
|
+
import type { RendererState } from '@mappedin/mappedin-js/geojson/src/renderer';
|
|
6237
6256
|
export type WatermarkPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center' | 'top' | 'bottom' | 'left' | 'right';
|
|
6238
6257
|
export type WatermarkOptions = {
|
|
6239
6258
|
/**
|
|
@@ -6268,18 +6287,26 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/watermark/system' {
|
|
|
6268
6287
|
scale?: number;
|
|
6269
6288
|
/**
|
|
6270
6289
|
* Callback when the watermark is clicked.
|
|
6290
|
+
* @hidden
|
|
6271
6291
|
*/
|
|
6272
6292
|
onClick?: () => void;
|
|
6293
|
+
/**
|
|
6294
|
+
* Whether the watermark should be visible.
|
|
6295
|
+
* @hidden
|
|
6296
|
+
* @default true
|
|
6297
|
+
*/
|
|
6298
|
+
visible?: boolean;
|
|
6273
6299
|
};
|
|
6300
|
+
export type WatermarkUpdateOptions = Omit<WatermarkOptions, 'onClick' | 'visible'>;
|
|
6274
6301
|
export class WatermarkSystem extends PubSub<{
|
|
6275
6302
|
'texture-loaded': void;
|
|
6276
6303
|
}> {
|
|
6277
6304
|
#private;
|
|
6278
6305
|
dirty: boolean;
|
|
6279
|
-
get options(): WatermarkOptions
|
|
6280
|
-
set options(options:
|
|
6306
|
+
get options(): Required<WatermarkOptions>;
|
|
6307
|
+
set options(options: WatermarkUpdateOptions);
|
|
6281
6308
|
get icon(): string;
|
|
6282
|
-
constructor(cameraObject: PerspectiveCamera,
|
|
6309
|
+
constructor(cameraObject: PerspectiveCamera, rendererState: RendererState, options?: Partial<WatermarkOptions>);
|
|
6283
6310
|
get width(): number;
|
|
6284
6311
|
get height(): number;
|
|
6285
6312
|
getPositionAlignedOffset(width: number, height: number): {
|
|
@@ -6301,6 +6328,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/watermark/system' {
|
|
|
6301
6328
|
}>): void;
|
|
6302
6329
|
resize(canvasWidth: number, canvasHeight: number): void;
|
|
6303
6330
|
update(): void;
|
|
6331
|
+
destroy(): void;
|
|
6304
6332
|
}
|
|
6305
6333
|
}
|
|
6306
6334
|
|
|
@@ -6317,7 +6345,8 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/html-controls/system'
|
|
|
6317
6345
|
export const ATTRIBUTION_POSITIONS: readonly ["top-left", "top-right", "bottom-left", "bottom-right"];
|
|
6318
6346
|
export type AttributionPosition = (typeof ATTRIBUTION_POSITIONS)[number];
|
|
6319
6347
|
export type AttributionControlOptions = {
|
|
6320
|
-
|
|
6348
|
+
custom?: string[];
|
|
6349
|
+
position?: AttributionPosition;
|
|
6321
6350
|
};
|
|
6322
6351
|
export class HTMLControlsSystem {
|
|
6323
6352
|
controlContainerEl: HTMLDivElement;
|
|
@@ -6328,6 +6357,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/html-controls/system'
|
|
|
6328
6357
|
attribButtonEl?: HTMLElement;
|
|
6329
6358
|
feedbackLinkEl?: HTMLAnchorElement;
|
|
6330
6359
|
attribHTML: string;
|
|
6360
|
+
customAttributions: string[];
|
|
6331
6361
|
constructor(container: HTMLElement);
|
|
6332
6362
|
addAttributionControl(options?: AttributionControlOptions): void;
|
|
6333
6363
|
toggleAttribution: (e: MouseEvent) => void;
|
|
@@ -6511,6 +6541,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/path' {
|
|
|
6511
6541
|
* The label's id
|
|
6512
6542
|
*/
|
|
6513
6543
|
id: string;
|
|
6544
|
+
/**
|
|
6545
|
+
* The promise that resolves when the current path animation is complete.
|
|
6546
|
+
*/
|
|
6547
|
+
animation: Promise<void>;
|
|
6514
6548
|
/**
|
|
6515
6549
|
* @internal
|
|
6516
6550
|
*/
|
|
@@ -6518,7 +6552,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/path' {
|
|
|
6518
6552
|
/**
|
|
6519
6553
|
* @internal
|
|
6520
6554
|
*/
|
|
6521
|
-
constructor(id: string);
|
|
6555
|
+
constructor(id: string, drawAnimation: Promise<void>);
|
|
6522
6556
|
}
|
|
6523
6557
|
}
|
|
6524
6558
|
|
|
@@ -6561,7 +6595,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/map-object' {
|
|
|
6561
6595
|
import type { Position, AddLabelOptions, RendererCore, PathState, MarkerState, LineStyle, PaintStyle, EntityId } from '@mappedin/core-sdk';
|
|
6562
6596
|
import { FloorObject } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object';
|
|
6563
6597
|
import type { Coordinate, TAddMarkerOptions, TAddPathOptions, TShow3DMapOptions } from '@mappedin/mappedin-js/mappedin-js/src';
|
|
6564
|
-
import type { GLTFExportOptions, TAnimationOptions, TAddModelOptions, TAddModel, TAddImageOptions
|
|
6598
|
+
import type { GLTFExportOptions, TAnimationOptions, TAddModelOptions, TAddModel, TAddImageOptions } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
6565
6599
|
import { type AggregatedStyleMap } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils';
|
|
6566
6600
|
import { StackedMaps } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/stacked-maps/stacked-maps';
|
|
6567
6601
|
import type { TFloorChangeReason } from '@mappedin/mappedin-js/mappedin-js/src/events';
|
|
@@ -6627,7 +6661,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/map-object' {
|
|
|
6627
6661
|
removeAll: () => void;
|
|
6628
6662
|
};
|
|
6629
6663
|
Paths: {
|
|
6630
|
-
add: (coordinates: Coordinate[], options?: TAddPathOptions) =>
|
|
6664
|
+
add: (coordinates: Coordinate[], options?: TAddPathOptions) => {
|
|
6665
|
+
paths: EntityId<PathState>[];
|
|
6666
|
+
animation: Promise<void>;
|
|
6667
|
+
};
|
|
6631
6668
|
remove: (entityIds: string[]) => void;
|
|
6632
6669
|
};
|
|
6633
6670
|
constructor(id: string, mvf: any, styleMap: AggregatedStyleMap, options: TShow3DMapOptions | undefined, renderer: RendererCore);
|
|
@@ -7054,7 +7091,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/paths' {
|
|
|
7054
7091
|
* // Add a red path to the map
|
|
7055
7092
|
* map.Paths.add(coordinate, { color: '#ff0000' });
|
|
7056
7093
|
*/
|
|
7057
|
-
add(coordinate: Coordinate[], options?: TAddPathOptions):
|
|
7094
|
+
add(coordinate: Coordinate[], options?: TAddPathOptions): Path;
|
|
7058
7095
|
/**
|
|
7059
7096
|
* Removes a specific path ({@link Path}) from the map.
|
|
7060
7097
|
* @param path The path to be removed.
|
|
@@ -7142,9 +7179,9 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions' {
|
|
|
7142
7179
|
/**
|
|
7143
7180
|
* @hidden
|
|
7144
7181
|
*/
|
|
7145
|
-
constructor({ nodes,
|
|
7182
|
+
constructor({ nodes, geojsonCollection, connections, groupBy, }: {
|
|
7146
7183
|
nodes: ParsedMVF['node.geojson'];
|
|
7147
|
-
|
|
7184
|
+
geojsonCollection: ParsedMVF['obstruction'] | ParsedMVF['space'];
|
|
7148
7185
|
connections: ParsedMVF['connection.json'];
|
|
7149
7186
|
groupBy?: string;
|
|
7150
7187
|
});
|
|
@@ -8075,8 +8112,8 @@ declare module '@mappedin/mappedin-js/geojson/src/entities' {
|
|
|
8075
8112
|
declare module '@mappedin/mappedin-js/geojson/src/types/options' {
|
|
8076
8113
|
import type { Position } from '@mappedin/mappedin-js/geojson/src/types/geometry';
|
|
8077
8114
|
import type { Map as MapLibreMap } from '@mappedin/mappedin-js/packages/outdoor-context-v4';
|
|
8078
|
-
import type { WatermarkOptions } from '@mappedin/mappedin-js/geojson/src/systems/watermark/system';
|
|
8079
8115
|
import type { AttributionControlOptions } from '@mappedin/mappedin-js/geojson/src/systems/html-controls/system';
|
|
8116
|
+
import type { WatermarkOptions } from '@mappedin/mappedin-js/geojson/src';
|
|
8080
8117
|
export type RendererCoreOptions = Partial<{
|
|
8081
8118
|
center?: Position;
|
|
8082
8119
|
zoomLevel?: number;
|
|
@@ -8208,7 +8245,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/collisions/system' {
|
|
|
8208
8245
|
import { PubSub } from '@mappedin/mappedin-js/packages/common/pubsub';
|
|
8209
8246
|
import type { RendererState } from '@mappedin/mappedin-js/geojson/src/renderer';
|
|
8210
8247
|
import type { TSerializedCollider, TSerializedColliderResponse } from '@mappedin/mappedin-js/geojson/src/systems/collisions/collider-processor';
|
|
8211
|
-
import { WatermarkPosition } from '@mappedin/mappedin-js/geojson/src/systems/watermark/system';
|
|
8248
|
+
import type { WatermarkPosition } from '@mappedin/mappedin-js/geojson/src/systems/watermark/system';
|
|
8212
8249
|
export type TMessageEvent = MessageEvent<{
|
|
8213
8250
|
msgId: string;
|
|
8214
8251
|
colliders: TSerializedColliderResponse[];
|
|
@@ -8941,6 +8978,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
|
|
|
8941
8978
|
import type { TDoorsState, TMarkerState, TWallsState } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
8942
8979
|
import type { Image } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
|
|
8943
8980
|
import type { GeoJsonApi } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api';
|
|
8981
|
+
import type TWEEN from '@tweenjs/tween.js';
|
|
8944
8982
|
export function convertCoordinateToPosition(coord: Coordinate): Position;
|
|
8945
8983
|
export function convertPositionToCoordinate(coord: Position): Coordinate;
|
|
8946
8984
|
export const cutEntrancesFromLineStrings: (lineStrings: ObstructionCollection["features"], entranceCollection: EntranceCollection["features"]) => {
|
|
@@ -8968,6 +9006,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
|
|
|
8968
9006
|
export function groupGeometryByStyle(features: Feature<LineString | Polygon | Point, SpaceProperties | ObstructionProperties>[], styleMap: AggregatedStyleMap): Map<WithId<PolygonStyle> | WithId<LineStringStyle> | WithId<PointStyle>, Feature<Point | LineString | Polygon, WithPolygonImage<SpaceProperties> | WithPolygonImage<ObstructionProperties>>[]>;
|
|
8969
9007
|
export function translateToCoreStyle(style: PolygonStyle | LineStringStyle, userOptions?: TShow3DMapOptions): PaintStyle | LineStyle;
|
|
8970
9008
|
export const getTargetID: <T extends Space | MapObject | Label | Marker | Model | Image | string>(target: T, api: GeoJsonApi) => string | undefined;
|
|
9009
|
+
export function tweenToPromise(tween: TWEEN.Tween): Promise<void>;
|
|
8971
9010
|
}
|
|
8972
9011
|
|
|
8973
9012
|
declare module '@mappedin/mappedin-js/geojson/src/components/style' {
|
|
@@ -17658,6 +17697,7 @@ declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/navigator/n
|
|
|
17658
17697
|
import type { Position, Feature, MultiPolygon, Polygon } from 'geojson';
|
|
17659
17698
|
import type { NodeCollection, NodeFeature } from '@mappedin/mappedin-js/packages/geojson-navigator/src/types/node';
|
|
17660
17699
|
import type { ObstructionCollection } from '@mappedin/mappedin-js/packages/geojson-navigator/src/types/obstruction';
|
|
17700
|
+
import type { SpaceCollection } from '@mappedin/mappedin-js/packages/geojson-navigator/src/types/space';
|
|
17661
17701
|
import type { DirectionsCollection } from '@mappedin/mappedin-js/packages/geojson-navigator/src/types/directions';
|
|
17662
17702
|
import type { CoordinateFeature } from '@mappedin/mappedin-js/packages/geojson-navigator/src/types/coordinate';
|
|
17663
17703
|
/**
|
|
@@ -17695,17 +17735,19 @@ declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/navigator/n
|
|
|
17695
17735
|
*
|
|
17696
17736
|
* @param {NodeCollection} nodes - Collection of nodes for the navigation graph.
|
|
17697
17737
|
* @param {ObstructionCollection} [obstructions] - Optional collection of obstructions that could block paths.
|
|
17738
|
+
* @param {SpaceCollection} [spaces] - Optional collection of spaces that could block paths.
|
|
17698
17739
|
* @param {string} [groupBy] - Optional property name to group nodes and paths for differentiated processing.
|
|
17699
17740
|
*/
|
|
17700
|
-
constructor({ nodes,
|
|
17741
|
+
constructor({ nodes, geojsonCollection, groupBy, }: {
|
|
17701
17742
|
nodes: NodeCollection;
|
|
17702
|
-
|
|
17743
|
+
geojsonCollection?: ObstructionCollection | SpaceCollection;
|
|
17703
17744
|
groupBy?: string;
|
|
17704
17745
|
});
|
|
17705
17746
|
findNearestNode: (feature: CoordinateFeature) => NodeFeature | null;
|
|
17706
17747
|
/**
|
|
17707
17748
|
* Calculates and returns a set of directions from origin nodes to destination nodes, including detailed properties.
|
|
17708
17749
|
*
|
|
17750
|
+
* @param {DirectionsZone[]} zones - special zones for navigation operations.
|
|
17709
17751
|
* @param {string[]} originIds - IDs of origin nodes.
|
|
17710
17752
|
* @param {string[]} destinationNodeIds - IDs of destination nodes.
|
|
17711
17753
|
* @param {string[]} [excludedNodeIds] - IDs of nodes to exclude from pathfinding.
|
|
@@ -17786,32 +17828,15 @@ declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/types/node'
|
|
|
17786
17828
|
}
|
|
17787
17829
|
|
|
17788
17830
|
declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/types/obstruction' {
|
|
17789
|
-
import type { LineString,
|
|
17790
|
-
|
|
17791
|
-
* Properties specific to obstruction features in a geospatial context.
|
|
17792
|
-
* Includes a mandatory unique identifier and allows for any additional custom properties.
|
|
17793
|
-
*/
|
|
17794
|
-
export type ObstructionProperties = {
|
|
17795
|
-
/**
|
|
17796
|
-
* Unique identifier for the obstruction.
|
|
17797
|
-
*/
|
|
17798
|
-
id: string;
|
|
17799
|
-
/**
|
|
17800
|
-
* Additional property specific to the navigator based on the 'groupBy' option.
|
|
17801
|
-
* */
|
|
17802
|
-
[name: string]: any;
|
|
17803
|
-
};
|
|
17831
|
+
import type { LineString, Polygon, Feature } from 'geojson';
|
|
17832
|
+
import type { ObstructionProperties, ObstructionCollection } from '@mappedin/mvf';
|
|
17804
17833
|
/**
|
|
17805
|
-
|
|
17806
|
-
|
|
17807
|
-
|
|
17808
|
-
|
|
17809
|
-
/**
|
|
17810
|
-
* A GeoJSON feature representing an obstruction, which can be either a line string or a polygon.
|
|
17811
|
-
* This type is crucial for mapping and managing areas that impede or restrict movement, such as barriers or restricted zones.
|
|
17812
|
-
*
|
|
17813
|
-
*/
|
|
17834
|
+
* A GeoJSON feature representing an obstruction, which can be either a line string or a polygon.
|
|
17835
|
+
* This type is crucial for mapping and managing areas that impede or restrict movement, such as barriers or restricted zones.
|
|
17836
|
+
*
|
|
17837
|
+
*/
|
|
17814
17838
|
export type ObstructionFeature = Feature<LineString | Polygon, ObstructionProperties>;
|
|
17839
|
+
export { ObstructionCollection, ObstructionProperties };
|
|
17815
17840
|
}
|
|
17816
17841
|
|
|
17817
17842
|
declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/types/directions' {
|
|
@@ -21446,6 +21471,18 @@ declare module '@mappedin/mappedin-js/packages/outdoor-context-v4/ui/handler/tap
|
|
|
21446
21471
|
}
|
|
21447
21472
|
}
|
|
21448
21473
|
|
|
21474
|
+
declare module '@mappedin/mappedin-js/packages/geojson-navigator/src/types/space' {
|
|
21475
|
+
import type { LineString, Polygon, Point, Feature } from 'geojson';
|
|
21476
|
+
import type { SpaceProperties, SpaceCollection } from '@mappedin/mvf';
|
|
21477
|
+
/**
|
|
21478
|
+
* A GeoJSON feature representing a space, which can be either a line string or a polygon.
|
|
21479
|
+
* This type is crucial for mapping and managing areas that impede or restrict movement, such as barriers or restricted zones.
|
|
21480
|
+
*
|
|
21481
|
+
*/
|
|
21482
|
+
export type SpaceFeature = Feature<LineString | Polygon | Point, SpaceProperties>;
|
|
21483
|
+
export { SpaceCollection, SpaceProperties };
|
|
21484
|
+
}
|
|
21485
|
+
|
|
21449
21486
|
declare module '@mappedin/mappedin-js/geojson/src/systems/camera/helpers/input-set' {
|
|
21450
21487
|
import type { Vector2 } from 'three';
|
|
21451
21488
|
class InputSet {
|
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as y,B as z,C as A,D as B,a,b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,q as p,r as q,s as r,t as s,u as t,v as u,x as v,y as w,z as x}from"./chunk-
|
|
1
|
+
import{A as y,B as z,C as A,D as B,a,b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,q as p,r as q,s as r,t as s,u as t,v as u,x as v,y as w,z as x}from"./chunk-G4N5XJZG.js";import"./chunk-NLGPMWPZ.js";import"./chunk-G7WXEQJ3.js";import"./chunk-QKN6JD4F.js";import"./chunk-SQXYZZBW.js";import"./chunk-GZ7LZ5UP.js";export{n as Annotation,j as Connection,e as Coordinate,t as DOORS,g as Door,a as E_SDK_LOG_LEVEL,q as EnterpriseCategory,p as EnterpriseLocation,r as EnterpriseVenue,i as Floor,o as FloorStack,f as Hyperlink,l as Image,k as MapObject,m as PointOfInterest,h as Space,s as WALLS,z as createMapLibreOverlay,u as enableTestMode,x as getMapData,y as getMapDataEnterprise,v as hydrateMapDataFromMVF,c as parseMVF,b as setLoggerLevel,w as setUseEnterpriseAPI,B as show3dMap,A as show3dMapGeojson,d as unzipMVF};
|