bimplus-renderer 1.6.102-threejs.1 → 1.6.102-threejs.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bimplus-renderer",
|
|
3
|
-
"version": "1.6.102-threejs.
|
|
3
|
+
"version": "1.6.102-threejs.3",
|
|
4
4
|
"description": "bim+ renderer",
|
|
5
5
|
"types": "types/bimplus-renderer.d.ts",
|
|
6
6
|
"keywords": [
|
|
@@ -85,8 +85,10 @@
|
|
|
85
85
|
"sync-modelviewer-ddt-long": "node ../simple-ddt-server/syncFromRemote --folder modelviewer-data-driven-tests/ddt-test-data-long"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
+
"@babel/cli": "^7.26.4",
|
|
88
89
|
"@babel/core": "^7.26.0",
|
|
89
90
|
"@babel/plugin-transform-async-to-generator": "^7.25.9",
|
|
91
|
+
"@babel/plugin-transform-function-name": "^7.25.9",
|
|
90
92
|
"@babel/plugin-transform-runtime": "^7.25.9",
|
|
91
93
|
"@babel/preset-env": "^7.26.0",
|
|
92
94
|
"@pollyjs/adapter-xhr": "^6.0.6",
|
|
@@ -132,7 +134,7 @@
|
|
|
132
134
|
"fit_transform": "^0.0.6",
|
|
133
135
|
"moment-timezone": "^0.5.46",
|
|
134
136
|
"numeric": "^1.2.6",
|
|
135
|
-
"three": "0.
|
|
137
|
+
"three": "0.171.0",
|
|
136
138
|
"web-ifc": "0.0.48"
|
|
137
139
|
}
|
|
138
140
|
}
|
|
@@ -110,7 +110,9 @@ declare module 'bimplus-renderer' {
|
|
|
110
110
|
|
|
111
111
|
export class ProjectTopologyNode {
|
|
112
112
|
id: WebSdk.Guid;
|
|
113
|
+
divisionTopologyId: WebSdk.DivisionTopologyId;
|
|
113
114
|
isVisible(): boolean;
|
|
115
|
+
getRevision(): number;
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
export class ProjectModel {
|
|
@@ -144,7 +146,7 @@ declare module 'bimplus-renderer' {
|
|
|
144
146
|
|
|
145
147
|
export class ContentLoader {
|
|
146
148
|
constructor(api: WebSdk.Api, viewport?: Viewport3D);
|
|
147
|
-
loadObject(objectId: string, revNr: number, projectContent: any): Promise<any>
|
|
149
|
+
loadObject(objectId: string, revNr: number | undefined, projectContent: any): Promise<any>
|
|
148
150
|
checkAndRefreshProject(project: ProjectContent, models: ProjectModel[]): Promise<boolean>;
|
|
149
151
|
}
|
|
150
152
|
|
|
@@ -187,6 +189,62 @@ declare module 'bimplus-renderer' {
|
|
|
187
189
|
color: HexColor,
|
|
188
190
|
}
|
|
189
191
|
|
|
192
|
+
export class ViewportContent {
|
|
193
|
+
getClashes(): Clashes;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export class Clashes {
|
|
197
|
+
getClashElement(id: string): ClashElement;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export class ClashElement {
|
|
201
|
+
id?: string;
|
|
202
|
+
node?: string;
|
|
203
|
+
revision?: number;
|
|
204
|
+
[key: string]: unknown;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface Layers {
|
|
208
|
+
revision?: number;
|
|
209
|
+
id: string;
|
|
210
|
+
name?: string;
|
|
211
|
+
divisionId?: string;
|
|
212
|
+
divisionName?: string;
|
|
213
|
+
visible?: boolean;
|
|
214
|
+
opaque?: boolean;
|
|
215
|
+
opacity?: number;
|
|
216
|
+
valid?: boolean;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export interface SelectedObject {
|
|
220
|
+
id: string;
|
|
221
|
+
revision: number;
|
|
222
|
+
node: unknown;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export interface SelectedClashElement {
|
|
226
|
+
id: string;
|
|
227
|
+
revision: number;
|
|
228
|
+
node: unknown;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export interface Camera {
|
|
232
|
+
[key: string]: unknown;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface CommandPolicy {
|
|
236
|
+
noBubble: boolean;
|
|
237
|
+
noTraverse: boolean;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export interface CommandPolicies {
|
|
241
|
+
CommandSelect: CommandPolicy;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export class OverlayLoadingResult {
|
|
245
|
+
[key: string]: unknown;
|
|
246
|
+
}
|
|
247
|
+
|
|
190
248
|
export class Viewport3D {
|
|
191
249
|
constructor(options: {
|
|
192
250
|
settings: ViewportSettings;
|
|
@@ -195,11 +253,17 @@ declare module 'bimplus-renderer' {
|
|
|
195
253
|
GPUPick: boolean;
|
|
196
254
|
api: WebSdk.Api;
|
|
197
255
|
name: string;
|
|
256
|
+
lookupTextureSize?: number;
|
|
257
|
+
ssaoSupported?: boolean;
|
|
258
|
+
shadowsSupported?: boolean;
|
|
259
|
+
panningScaleFactor?: number;
|
|
260
|
+
commandPolicies?: CommandPolicies;
|
|
198
261
|
});
|
|
199
262
|
|
|
200
263
|
domElement: HTMLElement;
|
|
201
264
|
objectSets: ObjectSets;
|
|
202
265
|
diagnostics: Diagnostics;
|
|
266
|
+
camera: Camera | null;
|
|
203
267
|
|
|
204
268
|
// Define other properties and methods of the Viewport3D class here
|
|
205
269
|
setViewportSize(width?: number, height?: number): void;
|
|
@@ -241,6 +305,12 @@ declare module 'bimplus-renderer' {
|
|
|
241
305
|
toggleProjectionMode(viewport: Viewport3D): void;
|
|
242
306
|
isPerspectiveCamera(): boolean;
|
|
243
307
|
isOrthographicCamera(): boolean;
|
|
308
|
+
getSlideParams(): Scene;
|
|
309
|
+
getObject(id: string): SelectedObject;
|
|
310
|
+
getContent(): ViewportContent;
|
|
311
|
+
toggleObjectNode({id:string,visible:boolean}): void;
|
|
312
|
+
toggleObjectNodeOpacity({id:string,opacity:boolean}): void;
|
|
313
|
+
setSlideScene(scene: Scene, restoreRotationCenter?: boolean, overlayLoadingResult?: OverlayLoadingResult): void;
|
|
244
314
|
}
|
|
245
315
|
|
|
246
316
|
export class ViewportSettings {
|
|
@@ -262,6 +332,7 @@ declare module 'bimplus-renderer' {
|
|
|
262
332
|
export class VisualObject {
|
|
263
333
|
id: WebSdk.VisualObjectId;
|
|
264
334
|
name: string;
|
|
335
|
+
revision?: number;
|
|
265
336
|
}
|
|
266
337
|
|
|
267
338
|
export class ObjectsContainer {
|