bimplus-renderer 1.6.113 → 1.6.114
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/bin/processPartitionVertices.js +7 -7
- package/dist/bimplus-renderer.js +1 -1
- package/package.json +1 -1
- package/types/bimplus-renderer.d.ts +47 -0
- package/package-lock.json +0 -13354
package/package.json
CHANGED
|
@@ -187,6 +187,49 @@ declare module 'bimplus-renderer' {
|
|
|
187
187
|
color: HexColor,
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
export class ViewportContent {
|
|
191
|
+
getClashes(): Clashes;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export class Clashes {
|
|
195
|
+
getClashElement(id: string): ClashElement;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export class ClashElement {
|
|
199
|
+
id?: string;
|
|
200
|
+
node?: string;
|
|
201
|
+
revision?: number;
|
|
202
|
+
[key: string]: unknown;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface Layers {
|
|
206
|
+
revision?: number;
|
|
207
|
+
id: string;
|
|
208
|
+
name?: string;
|
|
209
|
+
divisionId?: string;
|
|
210
|
+
divisionName?: string;
|
|
211
|
+
visible?: boolean;
|
|
212
|
+
opaque?: boolean;
|
|
213
|
+
opacity?: number;
|
|
214
|
+
valid?: boolean;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface SelectedObject {
|
|
218
|
+
id: string;
|
|
219
|
+
revision: number;
|
|
220
|
+
node: unknown;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface SelectedClashElement {
|
|
224
|
+
id: string;
|
|
225
|
+
revision: number;
|
|
226
|
+
node: unknown;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export interface Camera {
|
|
230
|
+
[key: string]: unknown;
|
|
231
|
+
}
|
|
232
|
+
|
|
190
233
|
export class Viewport3D {
|
|
191
234
|
constructor(options: {
|
|
192
235
|
settings: ViewportSettings;
|
|
@@ -200,6 +243,7 @@ declare module 'bimplus-renderer' {
|
|
|
200
243
|
domElement: HTMLElement;
|
|
201
244
|
objectSets: ObjectSets;
|
|
202
245
|
diagnostics: Diagnostics;
|
|
246
|
+
camera: Camera | null;
|
|
203
247
|
|
|
204
248
|
// Define other properties and methods of the Viewport3D class here
|
|
205
249
|
setViewportSize(width?: number, height?: number): void;
|
|
@@ -241,6 +285,9 @@ declare module 'bimplus-renderer' {
|
|
|
241
285
|
toggleProjectionMode(viewport: Viewport3D): void;
|
|
242
286
|
isPerspectiveCamera(): boolean;
|
|
243
287
|
isOrthographicCamera(): boolean;
|
|
288
|
+
getSlideParams(): Scene;
|
|
289
|
+
getObject(id: string): SelectedObject;
|
|
290
|
+
getContent(): ViewportContent;
|
|
244
291
|
}
|
|
245
292
|
|
|
246
293
|
export class ViewportSettings {
|