@mappedin/mappedin-js 6.0.1-alpha.20 → 6.0.1-alpha.21

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.
@@ -3,9 +3,12 @@
3
3
  // ../maker/@mappedin/mvf
4
4
  // ../maker/geojson
5
5
  // ../maker/three
6
+ // ../maker/@mappedin/core-sdk
6
7
  // ../maker/minisearch
7
8
  // ../maker/@turf/turf
8
9
  // ../maker/@tweenjs/tween.js
10
+ // ../maker/lil-gui
11
+ // ../maker/@packages/internal/common
9
12
  // ../maker/n8ao
10
13
  // ../maker/postprocessing
11
14
 
@@ -828,6 +831,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects' {
828
831
  import Hyperlink from '@mappedin/mappedin-js/maker/src/map-data-objects/hyperlink';
829
832
  import Image from '@mappedin/mappedin-js/maker/src/map-data-objects/image';
830
833
  import { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, Map as MVFMap } from '@mappedin/mvf';
834
+ import { MapDataObjects } from '@mappedin/mappedin-js/maker/src/map-data-objects/types';
831
835
  /**
832
836
  * Internal class representing detailed map data.
833
837
  *
@@ -932,6 +936,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects' {
932
936
  getById(type: 'object', id: string): MapObject | undefined;
933
937
  getById(type: 'point-of-interest', id: string): PointOfInterest | undefined;
934
938
  getById(type: 'annotation', id: string): Annotation | undefined;
939
+ getMapDataById(id: string): MapDataObjects | undefined;
935
940
  /**
936
941
  * Retrieves a feature by its type and ID from the Mappedin Venue Format (MVF) data.
937
942
  *
@@ -956,6 +961,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects' {
956
961
  }
957
962
  export { MapDataInternal, Space, Floor, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink, Image, };
958
963
  export type { TSpaceType } from '@mappedin/mappedin-js/maker/src/map-data-objects/space';
964
+ export type { MapDataObjects };
959
965
  }
960
966
 
961
967
  declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/controllers/WatermarkController' {
@@ -1030,18 +1036,20 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-geojson' {
1030
1036
  import { GeoJSONTEvents as TEvents } from '@mappedin/mappedin-js/maker/src/events';
1031
1037
  import { Floor, MapObject, Space } from '@mappedin/mappedin-js/maker/src/map-data-objects';
1032
1038
  import MapData from '@mappedin/mappedin-js/maker/src/map-data';
1033
- import { ICamera, ILabels, IMapView, IMarkers, IPaths, TUpdateState, INavigation, TNavigationTarget, TGetDirectionsOptions } from '@mappedin/mappedin-js/maker/src/map-view-interface';
1039
+ import { ICamera, IMapView, IMarkers, IPaths, TUpdateState, INavigation, TNavigationTarget, TGetDirectionsOptions, TGeometryState, TLabelState } from '@mappedin/mappedin-js/maker/src/map-view-interface';
1034
1040
  import { Directions, Label } from '@mappedin/mappedin-js/maker/src/map-view-objects';
1041
+ import type { RendererCore } from '@mappedin/core-sdk';
1042
+ import { LabelsApi } from '@mappedin/mappedin-js/maker/src/api-geojson/labels';
1043
+ import { Inspector } from '@mappedin/mappedin-js/maker/src/api-geojson';
1035
1044
  /**
1036
1045
  * Represents a map with all the interactive features, controls, and actions.
1037
1046
  */
1038
1047
  export class MapViewGeoJson extends PubSub<TEvents> implements IMapView {
1039
- #private;
1040
1048
  /**
1041
1049
  * Controls for the map's labels *{@link ILabels}).
1042
1050
  * @type {ILabels}
1043
1051
  */
1044
- Labels: ILabels;
1052
+ Labels: LabelsApi;
1045
1053
  /**
1046
1054
  * Controls for the map's markers ({@link IMarkers}).
1047
1055
  * @type {IMarkers}
@@ -1062,6 +1070,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-geojson' {
1062
1070
  * @type {INavigation}
1063
1071
  */
1064
1072
  Navigation: INavigation;
1073
+ Inspector: Inspector;
1065
1074
  /**
1066
1075
  * Constructs a {@link MapView} instance
1067
1076
  *
@@ -1069,7 +1078,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-geojson' {
1069
1078
  * @param options The options to customize the map display.
1070
1079
  * @internal
1071
1080
  */
1072
- constructor(el: HTMLElement, options?: any);
1081
+ constructor(rendererCore: RendererCore);
1073
1082
  /**
1074
1083
  * @internal - unused until we use GeoJSON API underneath
1075
1084
  */
@@ -1091,20 +1100,11 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-geojson' {
1091
1100
  * // Update the color of a space to red.
1092
1101
  * map.updateState(space, { color: 'red' });
1093
1102
  */
1094
- updateState<T extends Space | MapObject | Label>(target: T, state: TUpdateState<T>): void;
1103
+ updateState<T extends Space | MapObject | Label | string>(target: T, state: TUpdateState<T>): void;
1095
1104
  setHoverColor(c: string): void;
1096
1105
  getHoverColor(): string | undefined;
1097
- getState(target: Space | Label | MapObject): {
1098
- appearance: import("../../geojson/src/components/label").LabelAppearance | undefined;
1099
- interactive: boolean | undefined;
1100
- opacity: number;
1101
- color?: undefined;
1102
- } | {
1103
- interactive: boolean | undefined;
1104
- color: string;
1105
- opacity: number;
1106
- appearance?: undefined;
1107
- } | undefined;
1106
+ getState(id: string): TGeometryState | TLabelState | undefined;
1107
+ getState(target: Space | Label | MapObject): TGeometryState | TLabelState;
1108
1108
  /**
1109
1109
  * Retrieves the current floor of the map.
1110
1110
  *
@@ -1171,7 +1171,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
1171
1171
  * // Add all the labels to the map
1172
1172
  * map.Labels.all();
1173
1173
  */
1174
- all: () => void;
1174
+ all: () => Label[];
1175
1175
  /**
1176
1176
  * Adds a label to the map.
1177
1177
  *
@@ -1198,7 +1198,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
1198
1198
  * @example
1199
1199
  * map.Labels.removeAll();
1200
1200
  */
1201
- removeAll: () => void;
1201
+ removeAll: () => Label[];
1202
1202
  }
1203
1203
  /**
1204
1204
  * Interface defining the controls and actions for markers ({@link Marker}) on the map.
@@ -1279,6 +1279,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
1279
1279
  * Defines the state for a label when its appearance is updated.
1280
1280
  */
1281
1281
  export type TLabelState = {
1282
+ type: 'label';
1282
1283
  /**
1283
1284
  * Appearance settings for the label.
1284
1285
  */
@@ -1287,11 +1288,13 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
1287
1288
  * Priority level of the label, used for determining display order.
1288
1289
  */
1289
1290
  priority: number | 'initial';
1291
+ interactive: boolean;
1290
1292
  };
1291
1293
  /**
1292
1294
  * Defines the state for geometry elements like {@link Space} when updated.
1293
1295
  */
1294
1296
  export type TGeometryState = {
1297
+ type: 'geometry';
1295
1298
  /**
1296
1299
  * Color of the geometry element. Color can be set using CSS colors names `DarkGoldenRod`, as Hex strings `#0000FF` or the rgb values `rgb(255,0,0)`.
1297
1300
  */
@@ -1308,7 +1311,8 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
1308
1311
  /**
1309
1312
  * The type for updating the state of map elements (colors, texts, etc.).
1310
1313
  */
1311
- export type TUpdateState<T> = T extends ILabel ? Partial<TLabelState> : T extends Space | MapObject ? Partial<TGeometryState> : never;
1314
+ export type TUpdateState<T> = T extends ILabel ? Partial<TLabelState> : T extends Space | MapObject ? Partial<TGeometryState> : T extends string ? Record<string, any> : never;
1315
+ export type TGetState<T> = T extends Label ? TLabelState : T extends Space | MapObject ? TGeometryState : T extends string ? TLabelState | TGeometryState | undefined : never;
1312
1316
  /**
1313
1317
  * Options for {@link ICamera} animations on the map.
1314
1318
  */
@@ -1755,7 +1759,7 @@ declare module '@mappedin/mappedin-js/maker/src/map-view-interface' {
1755
1759
  * - `fill` will stretch the icon to fill the marker.
1756
1760
  * - `cover` will maintain aspect ratio and fill the marker.
1757
1761
  * - `contain` will maintain aspect ratio and fit the icon inside the marker.
1758
- * @default 'fill'
1762
+ * @default 'cover'
1759
1763
  */
1760
1764
  iconFit?: 'contain' | 'fill' | 'cover';
1761
1765
  /**
@@ -4968,6 +4972,18 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/image' {
4968
4972
  export default Image;
4969
4973
  }
4970
4974
 
4975
+ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/types' {
4976
+ import Door from '@mappedin/mappedin-js/maker/src/map-data-objects/door';
4977
+ import Floor from '@mappedin/mappedin-js/maker/src/map-data-objects/floor';
4978
+ import Node from '@mappedin/mappedin-js/maker/src/map-data-objects/node';
4979
+ import Space from '@mappedin/mappedin-js/maker/src/map-data-objects/space';
4980
+ import PointOfInterest from '@mappedin/mappedin-js/maker/src/map-data-objects/poi';
4981
+ import Annotation from '@mappedin/mappedin-js/maker/src/map-data-objects/annotation';
4982
+ import Connection from '@mappedin/mappedin-js/maker/src/map-data-objects/connection';
4983
+ import MapObject from '@mappedin/mappedin-js/maker/src/map-data-objects/object';
4984
+ export type MapDataObjects = Space | Floor | Node | Door | Connection | MapObject | PointOfInterest | Annotation;
4985
+ }
4986
+
4971
4987
  declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/Core.interface' {
4972
4988
  import { Color, Vector2, Vector3, Mesh } from 'three';
4973
4989
  import type { TPadding, TGetPolygonsAtCoordinateOptions, TMapViewOptions, TileManager, BillboardManager, StackedMapsController, SmartCollisionEngine, OutdoorViewController, LayerController } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
@@ -5251,6 +5267,36 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/private/Core.inte
5251
5267
  }
5252
5268
  }
5253
5269
 
5270
+ declare module '@mappedin/mappedin-js/maker/src/api-geojson/labels' {
5271
+ import { ILabels, TAddLabelOptions } from '@mappedin/mappedin-js/maker/src/map-view-interface';
5272
+ import { Label } from '@mappedin/mappedin-js/maker/src/map-view-objects';
5273
+ import { GeojsonApiMapObject } from '@mappedin/mappedin-js/maker/src/api-geojson/map-object';
5274
+ import { PointOfInterest, MapObject } from '@mappedin/mappedin-js/maker/src';
5275
+ import { Space, Door, Coordinate } from '@mappedin/mappedin-js/maker/src/map-data-objects';
5276
+ export class LabelsApi implements ILabels {
5277
+ get currentMap(): GeojsonApiMapObject | undefined;
5278
+ constructor({ currentMapGetter }: {
5279
+ currentMapGetter: CurrentMapGetter;
5280
+ });
5281
+ getById(id: string): {
5282
+ label: Label;
5283
+ entityId: string;
5284
+ } | undefined;
5285
+ add(target: Space | Door | Coordinate | PointOfInterest | MapObject, text: string, options?: TAddLabelOptions | undefined): Label;
5286
+ all(): Label[];
5287
+ remove(label: Label): void;
5288
+ removeAll(): Label[];
5289
+ }
5290
+ type CurrentMapGetter = () => GeojsonApiMapObject | undefined;
5291
+ export {};
5292
+ }
5293
+
5294
+ declare module '@mappedin/mappedin-js/maker/src/api-geojson' {
5295
+ export { GeoJsonApi } from '@mappedin/mappedin-js/maker/src/api-geojson/api';
5296
+ export { convertPriorityToCollisionTier } from '@mappedin/mappedin-js/maker/src/api-geojson/utils';
5297
+ export { Inspector } from '@mappedin/mappedin-js/maker/src/api-geojson/inspector';
5298
+ }
5299
+
5254
5300
  declare module '@mappedin/mappedin-js/maker/src/map-view-objects/label' {
5255
5301
  import { ILabel } from '@mappedin/mappedin-js/maker/src/map-view-interface';
5256
5302
  /**
@@ -6916,29 +6962,33 @@ declare module '@mappedin/mappedin-js/packages/legacy-renderer/internal/json-sce
6916
6962
  import { MappedinMap, MappedinPolygon } from '@mappedin/mappedin-js/packages/legacy-renderer/internal';
6917
6963
  import { MAP_RENDER_MODE } from '@mappedin/mappedin-js/packages/legacy-renderer/MapView.enums';
6918
6964
  class JSONSceneLoader {
6919
- defaultExtrudeSettings: {
6920
- amount: number;
6921
- bevelEnabled: boolean;
6922
- };
6923
- materials: {};
6924
- scale: number;
6925
- assetManager: DefaultAssetManager;
6926
- setAssetManager<T extends DefaultAssetManager>(am: T): void;
6927
- overlayHeight: number;
6928
- /**
6929
- Takes in either an object containing polygons and generates a 3D scene based
6930
- on it, or a string URL to fetch those polygons from.
6931
- **/
6932
- load(polygons: string | MappedinPolygon[], mapClass: MappedinMap, mapLoadingStrategy?: MAP_RENDER_MODE): Promise<{
6933
- container: Group<import("three").Object3DEventMap>;
6934
- elements: (Element | null)[];
6935
- visibleLayers: Set<unknown>;
6936
- }>;
6937
- _build(polygons: MappedinPolygon[], mapClass: MappedinMap, mapLoadingStrategy?: MAP_RENDER_MODE): Promise<{
6938
- container: Group<import("three").Object3DEventMap>;
6939
- elements: (Element | null)[];
6940
- visibleLayers: Set<unknown>;
6941
- }>;
6965
+ defaultExtrudeSettings: {
6966
+ amount: number;
6967
+ bevelEnabled: boolean;
6968
+ };
6969
+ materials: {};
6970
+ scale: number;
6971
+ assetManager: DefaultAssetManager;
6972
+ setAssetManager<T extends DefaultAssetManager>(am: T): void;
6973
+ overlayHeight: number;
6974
+ /**
6975
+ Takes in either an object containing polygons and generates a 3D scene based
6976
+ on it, or a string URL to fetch those polygons from.
6977
+ **/
6978
+ load(polygons: string | MappedinPolygon[], mapClass: MappedinMap, mapLoadingStrategy?: MAP_RENDER_MODE, allLayersVisible?: boolean): Promise<{
6979
+ container: Group<import("three").Object3DEventMap>;
6980
+ elements: (Element | null)[];
6981
+ visibleLayers: Set<unknown>;
6982
+ }>;
6983
+ _build(polygons: MappedinPolygon[], mapClass: MappedinMap, mapLoadingStrategy?: MAP_RENDER_MODE,
6984
+ /**
6985
+ * If true, sets all layers to be visible. If false, uses the layer visibility from the mapClass.
6986
+ */
6987
+ allLayersVisible?: boolean): Promise<{
6988
+ container: Group<import("three").Object3DEventMap>;
6989
+ elements: (Element | null)[];
6990
+ visibleLayers: Set<unknown>;
6991
+ }>;
6942
6992
  }
6943
6993
  const _default: JSONSceneLoader;
6944
6994
  export default _default;
@@ -12977,6 +13027,138 @@ declare module '@mappedin/mappedin-js/maker/src/map-data-objects/base-metadata-o
12977
13027
  }
12978
13028
  }
12979
13029
 
13030
+ declare module '@mappedin/mappedin-js/maker/src/api-geojson/map-object' {
13031
+ import { ParsedMVF } from '@mappedin/mvf';
13032
+ import { FloorObject } from '@mappedin/mappedin-js/maker/src/api-geojson/floor-object';
13033
+ import { AddLabelOptions } from '@mappedin/core-sdk';
13034
+ import { Position } from '@mappedin/core-sdk';
13035
+ import { TAddMarkerOptions } from '@mappedin/mappedin-js/maker/src';
13036
+ import { Geometry2D, RendererCore } from '@mappedin/core-sdk';
13037
+ export class GeojsonApiMapObject {
13038
+ floors: FloorObject[];
13039
+ currentFloorId: string;
13040
+ renderer: RendererCore;
13041
+ mvf: ParsedMVF;
13042
+ get currentFloor(): FloorObject;
13043
+ setFloor(floorId: string): void;
13044
+ Markers: {
13045
+ add: (coordinate: Position, html: string, opts?: TAddMarkerOptions & {
13046
+ floorId?: string;
13047
+ }) => import("@mappedin/core-sdk").Marker;
13048
+ remove: (_id: string) => void;
13049
+ getContentEl: (id: string) => HTMLDivElement | null;
13050
+ removeAll: () => void;
13051
+ all({ onCreate }: {
13052
+ onCreate: (entity: Geometry2D) => void;
13053
+ }): void;
13054
+ };
13055
+ Labels: {
13056
+ all: ({ onCreate }: {
13057
+ onCreate: (labelId: string | number, text: string) => void;
13058
+ }) => void;
13059
+ add: (coordinate: Position, text: string, opts?: AddLabelOptions & {
13060
+ floorId?: string;
13061
+ }) => {
13062
+ id: string | number;
13063
+ type: 'label';
13064
+ };
13065
+ remove: (targetId: string) => void;
13066
+ removeAll: () => void;
13067
+ };
13068
+ Paths: {
13069
+ add: (coordinates: {
13070
+ floor: string;
13071
+ longitude: number;
13072
+ latitude: number;
13073
+ }[]) => void;
13074
+ };
13075
+ constructor(id: string, mvf: any, renderer: RendererCore);
13076
+ }
13077
+ }
13078
+
13079
+ declare module '@mappedin/mappedin-js/maker/src/api-geojson/api' {
13080
+ /**
13081
+ * integrating V6 api
13082
+ * Note:
13083
+ * - We are not handling multi-building yet
13084
+ */
13085
+ import MapData from '@mappedin/mappedin-js/maker/src/map-data';
13086
+ import { Coordinate, Floor, MapDataInternal, Space, MapObject } from '@mappedin/mappedin-js/maker/src/map-data-objects';
13087
+ import { ICamera, IMapView, INavigation, TGetState, TUpdateState } from '@mappedin/mappedin-js/maker/src/map-view-interface';
13088
+ import { CameraTransform, Label, Path } from '@mappedin/mappedin-js/maker/src/map-view-objects';
13089
+ import { RendererCore, InteractionPayload } from '@mappedin/core-sdk';
13090
+ import { GeojsonApiMapObject } from '@mappedin/mappedin-js/maker/src/api-geojson/map-object';
13091
+ import GUI from 'lil-gui';
13092
+ import { PubSub } from '@packages/internal/common';
13093
+ import { LabelsApi } from '@mappedin/mappedin-js/maker/src/api-geojson/labels';
13094
+ import { MarkersApi } from '@mappedin/mappedin-js/maker/src/api-geojson/markers';
13095
+ export class GeoJsonApi extends PubSub<{
13096
+ 'camera-change': CameraTransform;
13097
+ hover: InteractionPayload;
13098
+ click: InteractionPayload;
13099
+ }> implements IMapView {
13100
+ #private;
13101
+ outdoors: GeojsonApiMapObject;
13102
+ id: string;
13103
+ mapDataExternal: {
13104
+ [key in string]: MapData;
13105
+ };
13106
+ currentMap?: GeojsonApiMapObject;
13107
+ Camera: ICamera;
13108
+ Labels: LabelsApi;
13109
+ Markers: MarkersApi;
13110
+ constructor(rendererCore: RendererCore, _options?: any);
13111
+ updateStackState: RendererCore['updateStackState'];
13112
+ updateState<T extends Space | MapObject | Label | string>(target: T, state: TUpdateState<T>): void;
13113
+ update: () => void;
13114
+ getMapData(): MapDataInternal | undefined;
13115
+ addMap(mapData: MapData): Promise<MapData>;
13116
+ setFloor(floor: Floor | string): void;
13117
+ get currentFloor(): Floor;
13118
+ Paths: {
13119
+ add: (_coordinates: Coordinate[]) => Path;
13120
+ remove: (_label: any) => void;
13121
+ removeAll: () => void;
13122
+ };
13123
+ getState<T extends Space | MapObject | Label | string>(target: T): TGetState<T> | undefined;
13124
+ setHoverColor(c: string): void;
13125
+ getHoverColor(): string | undefined;
13126
+ getDirections: IMapView['getDirections'];
13127
+ Navigation: INavigation;
13128
+ createCoordinate(latitude: number, longitude: number, floor?: Floor): Coordinate;
13129
+ createCoordinateFromScreenCoordinate(): Coordinate;
13130
+ auto(): void;
13131
+ Outdoor: {
13132
+ setStyle: (style: any) => void;
13133
+ };
13134
+ debug(gui: GUI): void;
13135
+ /**
13136
+ * @internal
13137
+ */
13138
+ get __core(): RendererCore;
13139
+ }
13140
+ }
13141
+
13142
+ declare module '@mappedin/mappedin-js/maker/src/api-geojson/utils' {
13143
+ import { Coordinate } from '@mappedin/mappedin-js/maker/src/map-data-objects';
13144
+ import type { Position, EntranceCollection, LineString, ObstructionProperties } from '@mappedin/mvf';
13145
+ import { FeatureCollection } from '@turf/turf';
13146
+ import { Feature, MultiLineString } from 'geojson';
13147
+ import { CollisionRankingTier, LabelState } from '@mappedin/core-sdk';
13148
+ import { TGeometryState, TLabelState } from '@mappedin/mappedin-js/maker/src';
13149
+ import { GeometryState } from '@mappedin/core-sdk';
13150
+ export function convertCoordinateToPosition(coord: Coordinate): Position;
13151
+ export function convertPositionToCoordinate(coord: Position): Coordinate;
13152
+ export const cutEntracesFromLineStrings: (lineStrings: FeatureCollection<LineString, ObstructionProperties>['features'], entranceCollection: EntranceCollection['features']) => Feature<MultiLineString, any>;
13153
+ export function convertPriorityToCollisionTier(priority: TLabelState['priority']): CollisionRankingTier;
13154
+ export function translateLabelStateToGeojsonCore(state: Partial<TLabelState>): Partial<LabelState>;
13155
+ export function translateSpaceStateToGeojsonCore(state: Partial<TGeometryState>): Partial<GeometryState>;
13156
+ }
13157
+
13158
+ declare module '@mappedin/mappedin-js/maker/src/api-geojson/inspector' {
13159
+ export { Inspector } from '@mappedin/mappedin-js/maker/src/api-geojson/inspector/debug';
13160
+ }
13161
+
12980
13162
  declare module '@mappedin/mappedin-js/maker/src/api-cms/api-cms' {
12981
13163
  import { MapData, TShow3DMapOptions } from '@mappedin/mappedin-js/maker/src';
12982
13164
  import { IDirectionsResult, MappedinMap } from '@mappedin/mappedin-js/packages/get-venue';
@@ -12989,7 +13171,7 @@ declare module '@mappedin/mappedin-js/maker/src/api-cms/api-cms' {
12989
13171
  import { Marker, Directions, Label } from '@mappedin/mappedin-js/maker/src/map-view-objects';
12990
13172
  import { DefaultTheme } from '@mappedin/mappedin-js/maker/src/themes/default';
12991
13173
  import { Navigation } from '@mappedin/mappedin-js/maker/src/navigation';
12992
- export function getMappedinCoordinate(coordinate: Coordinate, mvCore: Core): import("../../../packages/get-venue").MappedinCoordinate;
13174
+ export function getMappedinCoordinate(coordinate: Coordinate, mvCore: Core): import("@packages/internal/get-venue/MappedinCoordinate").MappedinCoordinate;
12993
13175
  export class CMSAPI implements IMapView {
12994
13176
  mvCore: Core;
12995
13177
  el: HTMLElement;
@@ -13018,7 +13200,7 @@ declare module '@mappedin/mappedin-js/maker/src/api-cms/api-cms' {
13018
13200
  createCoordinateFromScreenCoordinate(x: number, y: number, floor?: Floor | undefined): Coordinate;
13019
13201
  convertMappedinXYToCoordinate(x: number, y: number, map: MappedinMap | string): Coordinate;
13020
13202
  updateState<T extends Space | MapObject | Label>(object: T, state: TUpdateState<T>): void;
13021
- getNearestNodeToCoordinate(coordinate: Coordinate): import("../../../packages/get-venue").MappedinNode;
13203
+ getNearestNodeToCoordinate(coordinate: Coordinate): import("@packages/internal/get-venue/MappedinNode").MappedinNode;
13022
13204
  getDestinationNodesFromTarget: (target: TNavigationTarget) => string[];
13023
13205
  getDirections: (from: TNavigationTarget | TNavigationTarget[], to: TNavigationTarget | TNavigationTarget[], options?: TGetDirectionsOptions) => Directions | undefined;
13024
13206
  }
@@ -15046,6 +15228,61 @@ declare module '@mappedin/mappedin-js/packages/navigator/interfaces/IPolygon' {
15046
15228
  export default IPolygon;
15047
15229
  }
15048
15230
 
15231
+ declare module '@mappedin/mappedin-js/maker/src/api-geojson/floor-object' {
15232
+ import type { ParsedMVF, StyleCollection } from '@mappedin/mvf';
15233
+ import { RendererCore } from '@mappedin/core-sdk';
15234
+ export class FloorObject {
15235
+ id: string;
15236
+ name: string;
15237
+ elevation: number;
15238
+ containerId: string;
15239
+ layers: Map<string, string>;
15240
+ constructor(parentId: string, floor: ParsedMVF['map.geojson'][0], renderer: RendererCore, mvf?: ParsedMVF, styles?: StyleCollection);
15241
+ load: () => this;
15242
+ }
15243
+ }
15244
+
15245
+ declare module '@mappedin/mappedin-js/maker/src/api-geojson/markers' {
15246
+ import { TAddMarkerOptions } from '@mappedin/mappedin-js/maker/src/map-view-interface';
15247
+ import { Marker } from '@mappedin/mappedin-js/maker/src/map-view-objects';
15248
+ import { GeojsonApiMapObject } from '@mappedin/mappedin-js/maker/src/api-geojson/map-object';
15249
+ import { IMarkers } from '@mappedin/mappedin-js/maker/src';
15250
+ import { Space, Door, Coordinate } from '@mappedin/mappedin-js/maker/src/map-data-objects';
15251
+ export class MarkersApi implements IMarkers {
15252
+ get currentMap(): GeojsonApiMapObject | undefined;
15253
+ constructor({ currentMapGetter }: {
15254
+ currentMapGetter: CurremtMapGetter;
15255
+ });
15256
+ /**
15257
+ * internal
15258
+ */
15259
+ getById(id: string): {
15260
+ marker: Marker;
15261
+ entityId: string;
15262
+ } | undefined;
15263
+ add(target: Space | Door | Coordinate, html: string, options?: TAddMarkerOptions): Marker;
15264
+ all(): Marker[];
15265
+ remove(target: Marker): void;
15266
+ removeAll(): Marker[];
15267
+ }
15268
+ type CurremtMapGetter = () => GeojsonApiMapObject | undefined;
15269
+ export {};
15270
+ }
15271
+
15272
+ declare module '@mappedin/mappedin-js/maker/src/api-geojson/inspector/debug' {
15273
+ import MapData from '@mappedin/mappedin-js/maker/src/map-data';
15274
+ import { MapViewGeoJson } from '@mappedin/mappedin-js/maker/src/map-view-geojson';
15275
+ import { GeoJsonApi } from '@mappedin/mappedin-js/maker/src/api-geojson/api';
15276
+ export class Inspector {
15277
+ storeStateToLocalStorageEnabled: boolean;
15278
+ constructor(mv: MapViewGeoJson, api: GeoJsonApi);
15279
+ setMapData(data: MapData): void;
15280
+ enable(): Promise<void>;
15281
+ get enabled(): boolean;
15282
+ storeState(id: string, state: any): void;
15283
+ }
15284
+ }
15285
+
15049
15286
  declare module '@mappedin/mappedin-js/cms/src' {
15050
15287
  import { MapView } from '@mappedin/mappedin-js/packages/legacy-renderer/public/MapView';
15051
15288
  import { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, Mappedin, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions, hydrateVenue, GET_VENUE_EVENT } from '@mappedin/mappedin-js/packages/get-venue';