@inovitas/infra3dapi 1.3.0-rc2 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,7 +37,7 @@ To use the API, you can call the init functions in infra3dapi. After loggin in a
37
37
 
38
38
  # Changelog
39
39
 
40
- ## 1.3.0-rc - 09.05.2025
40
+ ## 1.3.0 - 02.07.2025
41
41
 
42
42
  ### Added
43
43
 
@@ -47,6 +47,31 @@ To use the API, you can call the init functions in infra3dapi. After loggin in a
47
47
  - viewer.getCurrentNode() to retrieve some information like coordinates of the current position
48
48
  - extended the viewer.on("nodechanged", ...) with some further properties
49
49
 
50
+ ## 1.2.5 - 27.06.2025
51
+
52
+ ### Bugfixes
53
+
54
+ - When adding a WFS 2.0 Layer, the settings have not been took over and not been saved correctly (IN-3444)
55
+ - When minimising the measurement panel and reopening meausrements again, the panels overlap each other (IN-3461)
56
+
57
+ ## 1.2.4 - 12.06.2025
58
+
59
+ ### Bugfixes
60
+
61
+ - Some request when using a non-migrated user resulted in a 400 Bad Request.
62
+
63
+ ## 1.2.3 - 05.06.2025
64
+
65
+ ### Bugfixes
66
+
67
+ - Profile Tool enlarge button now has a tooltip
68
+ - Add-On Point Cloud Export: Authorisation based on scope entry in token
69
+
70
+ ### Added
71
+
72
+ - LoD Concept for Pointcloud fragments
73
+ - Add-On Point Cloud Export: Loading state on startup
74
+
50
75
  ## 1.2.2 - 17.04.2025
51
76
 
52
77
  ### Bugfixes
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,14 +75,23 @@ 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
+ interface ICampaign {
79
+ uid: string;
80
+ name: string;
81
+ type: string;
82
+ start_timestamp: number;
83
+ end_timestamp: number;
84
+ }
85
+
86
+ declare class InternalViewer {}
87
+ declare class ApmBase {}
70
88
 
71
89
  declare class Viewer extends EventEmitter implements IViewer {
72
90
  private _sdk_viewer;
73
91
  constructor(sdk_viewer: InternalViewer);
92
+
74
93
  moveToCampaign(campaignID: string): Promise<void>;
94
+
75
95
  moveToPosition(
76
96
  easting: number,
77
97
  northing: number,
@@ -79,6 +99,7 @@ declare class Viewer extends EventEmitter implements IViewer {
79
99
  maxdist?: number,
80
100
  epsg?: number
81
101
  ): Promise<void>;
102
+
82
103
  lookAtPosition(
83
104
  easting: number,
84
105
  northing: number,
@@ -86,7 +107,41 @@ declare class Viewer extends EventEmitter implements IViewer {
86
107
  maxdist?: number,
87
108
  epsg?: number
88
109
  ): Promise<void>;
110
+
89
111
  getRoutes(simplify?: number): Promise<GeoJSON>;
112
+
113
+ public getRouteLines(
114
+ loa: number,
115
+ bbox: {
116
+ minEasting: number;
117
+ maxEasting: number;
118
+ minNorthing: number;
119
+ maxNorthing: number;
120
+ epsg?: number;
121
+ }
122
+ ): Promise<GeoJSON>;
123
+
124
+ public getRouteHexes(
125
+ loa: number,
126
+ bbox: {
127
+ minEasting: number;
128
+ maxEasting: number;
129
+ minNorthing: number;
130
+ maxNorthing: number;
131
+ epsg?: number;
132
+ }
133
+ ): Promise<GeoJSON>;
134
+
135
+ // getAllCampaigns(bbox?: {
136
+ // minEasting: number;
137
+ // maxEasting: number;
138
+ // minNorthing: number;
139
+ // maxNorthing: number;
140
+ // epsg: number;
141
+ // }): Promise<ICampaign[]>;
142
+
143
+ // getCampaign(campagin_uid: string): Promise<ICampaign>;
144
+
90
145
  attachToMeasurementTool(
91
146
  toolname: "lengthMeasure" | "areaMeasure",
92
147
  onmeasured: (value: number, geometry: number[][]) => void
@@ -96,6 +151,39 @@ declare class Viewer extends EventEmitter implements IViewer {
96
151
  onmeasured: (value: undefined, geometry: number[]) => void
97
152
  ): void;
98
153
  private _processMeasurementResult;
154
+
155
+ public drawGeometry(
156
+ geometryType: "Point" | "MultiPoint" | "LineString" | "Polygon",
157
+ options?: {
158
+ onDrawProgress?: (geometry: Geometry) => void;
159
+ style?: IFeatureStyle;
160
+ signal?: AbortSignal;
161
+ }
162
+ ): Promise<Geometry>;
163
+
164
+ public addGeometryOverlay(options?: IGeometryOverlayOptions): GeometryOverlay;
165
+
166
+ public removeGeometryOverlay(geometryoverlay: GeometryOverlay): void;
167
+
168
+ public pickGeometry(
169
+ signal?: AbortSignal
170
+ ): Promise<[GeometryOverlay, Geometry]>;
171
+
172
+ public editGeometry(
173
+ onEditProgress: (geom: Geometry) => void,
174
+ signal?: AbortSignal
175
+ ): Promise<[GeometryOverlay, Geometry]>;
176
+
177
+ public destroy(): void;
178
+
179
+ public setUserInteraction(pan: boolean, zoom: boolean): void;
180
+
181
+ public getCameraView(): ILatLonFov | IPanZoom;
182
+
183
+ public setCameraView(cameraView: ILatLonFov | IPanZoom): void;
184
+
185
+ public getCurrentNode(): Node;
186
+
99
187
  off(type: "nodechanged", handler: (event: NodechangedEvent) => void): void;
100
188
  off(
101
189
  type: "campaignschanged",