@inovitas/infra3dapi 1.3.0-rc2 → 1.3.0-rc3

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/infra3dapi.d.ts CHANGED
@@ -1,3 +1,14 @@
1
+ ILatLonFov,
2
+ IPanZoom,
3
+ } from "@inovitas/infra3dsdk/dist/types/mm/geoframe/interfaces/IPointTo";
4
+
5
+ GeometryOverlay,
6
+ IGeometryOverlayOptions,
7
+ } from "../src/ui-base/common/services/GeometryOverlay";
8
+ GeoJSON,
9
+ Geometry,
10
+ } from "../src/ui-base/common/services/viewer/externals/geojson";
11
+
1
12
  declare module "@inovitas/infra3dapi";
2
13
 
3
14
  declare type Fn = (arg: any) => void;
@@ -64,9 +75,8 @@ interface LookazimuthchangedEvent extends ViewerEvent {
64
75
  type: "lookazimuthchanged";
65
76
  }
66
77
 
67
- declare class InternalViewer { }
68
- declare class GeoJSON { }
69
- declare class ApmBase { }
78
+ declare class InternalViewer {}
79
+ declare class ApmBase {}
70
80
 
71
81
  declare class Viewer extends EventEmitter implements IViewer {
72
82
  private _sdk_viewer;
@@ -96,6 +106,39 @@ declare class Viewer extends EventEmitter implements IViewer {
96
106
  onmeasured: (value: undefined, geometry: number[]) => void
97
107
  ): void;
98
108
  private _processMeasurementResult;
109
+
110
+ public drawGeometry(
111
+ geometryType: "Point" | "MultiPoint" | "LineString" | "Polygon",
112
+ options?: {
113
+ onDrawProgress?: (geometry: Geometry) => void;
114
+ style?: IFeatureStyle;
115
+ signal?: AbortSignal;
116
+ }
117
+ ): Promise<Geometry>;
118
+
119
+ public addGeometryOverlay(options?: IGeometryOverlayOptions): GeometryOverlay;
120
+
121
+ public removeGeometryOverlay(geometryoverlay: GeometryOverlay): void;
122
+
123
+ public pickGeometry(
124
+ signal?: AbortSignal
125
+ ): Promise<[GeometryOverlay, Geometry]>;
126
+
127
+ public editGeometry(
128
+ onEditProgress: (geom: Geometry) => void,
129
+ signal?: AbortSignal
130
+ ): Promise<[GeometryOverlay, Geometry]>;
131
+
132
+ public destroy(): void;
133
+
134
+ public setUserInteraction(pan: boolean, zoom: boolean): void;
135
+
136
+ public getCameraView(): ILatLonFov | IPanZoom;
137
+
138
+ public setCameraView(cameraView: ILatLonFov | IPanZoom): void;
139
+
140
+ public getCurrentNode(): Node;
141
+
99
142
  off(type: "nodechanged", handler: (event: NodechangedEvent) => void): void;
100
143
  off(
101
144
  type: "campaignschanged",