bimplus-renderer 1.6.113 → 1.6.115
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/package.json +1 -1
- package/types/bimplus-renderer.d.ts +61 -0
package/package.json
CHANGED
|
@@ -187,6 +187,58 @@ 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
|
+
|
|
233
|
+
export interface CommandPolicy {
|
|
234
|
+
noBubble: boolean;
|
|
235
|
+
noTraverse: boolean;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface CommandPolicies {
|
|
239
|
+
CommandSelect: CommandPolicy;
|
|
240
|
+
}
|
|
241
|
+
|
|
190
242
|
export class Viewport3D {
|
|
191
243
|
constructor(options: {
|
|
192
244
|
settings: ViewportSettings;
|
|
@@ -195,11 +247,17 @@ declare module 'bimplus-renderer' {
|
|
|
195
247
|
GPUPick: boolean;
|
|
196
248
|
api: WebSdk.Api;
|
|
197
249
|
name: string;
|
|
250
|
+
lookupTextureSize?: number;
|
|
251
|
+
ssaoSupported?: boolean;
|
|
252
|
+
shadowsSupported?: boolean;
|
|
253
|
+
panningScaleFactor?: number;
|
|
254
|
+
commandPolicies?: CommandPolicies;
|
|
198
255
|
});
|
|
199
256
|
|
|
200
257
|
domElement: HTMLElement;
|
|
201
258
|
objectSets: ObjectSets;
|
|
202
259
|
diagnostics: Diagnostics;
|
|
260
|
+
camera: Camera | null;
|
|
203
261
|
|
|
204
262
|
// Define other properties and methods of the Viewport3D class here
|
|
205
263
|
setViewportSize(width?: number, height?: number): void;
|
|
@@ -241,6 +299,9 @@ declare module 'bimplus-renderer' {
|
|
|
241
299
|
toggleProjectionMode(viewport: Viewport3D): void;
|
|
242
300
|
isPerspectiveCamera(): boolean;
|
|
243
301
|
isOrthographicCamera(): boolean;
|
|
302
|
+
getSlideParams(): Scene;
|
|
303
|
+
getObject(id: string): SelectedObject;
|
|
304
|
+
getContent(): ViewportContent;
|
|
244
305
|
}
|
|
245
306
|
|
|
246
307
|
export class ViewportSettings {
|