@inweb/viewer-three 26.10.4 → 26.10.5
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/dist/plugins/loaders/GLTFCloudLoader.js +3 -1
- package/dist/plugins/loaders/GLTFCloudLoader.js.map +1 -1
- package/dist/plugins/loaders/GLTFCloudLoader.min.js +1 -1
- package/dist/plugins/loaders/IFCXLoader.js.map +1 -1
- package/dist/plugins/loaders/IFCXLoader.module.js.map +1 -1
- package/dist/viewer-three.js +11552 -12149
- package/dist/viewer-three.js.map +1 -1
- package/dist/viewer-three.min.js +3 -3
- package/dist/viewer-three.module.js +8 -6
- package/dist/viewer-three.module.js.map +1 -1
- package/package.json +9 -9
- package/plugins/loaders/IFCX/render.js +1 -1
- package/src/Viewer/controls/OrbitControls.js +0 -1
- package/src/Viewer/draggers/MeasureLineDragger.ts +9 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inweb/viewer-three",
|
|
3
|
-
"version": "26.10.
|
|
3
|
+
"version": "26.10.5",
|
|
4
4
|
"description": "JavaScript library for rendering CAD and BIM files in a browser using Three.js",
|
|
5
5
|
"homepage": "https://cloud.opendesign.com/docs/index.html",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"docs": "typedoc"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@inweb/client": "~26.10.
|
|
39
|
-
"@inweb/eventemitter2": "~26.10.
|
|
40
|
-
"@inweb/markup": "~26.10.
|
|
41
|
-
"@inweb/viewer-core": "~26.10.
|
|
38
|
+
"@inweb/client": "~26.10.5",
|
|
39
|
+
"@inweb/eventemitter2": "~26.10.5",
|
|
40
|
+
"@inweb/markup": "~26.10.5",
|
|
41
|
+
"@inweb/viewer-core": "~26.10.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@types/three": "^0.
|
|
44
|
+
"@types/three": "^0.180.0",
|
|
45
45
|
"potree-core": "^2.0.11",
|
|
46
|
-
"three": "^0.
|
|
46
|
+
"three": "^0.180.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@types/three": "^0.
|
|
50
|
-
"three": "^0.
|
|
49
|
+
"@types/three": "^0.180.0",
|
|
50
|
+
"three": "^0.180.0"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
// published under MIT license
|
|
31
31
|
|
|
32
32
|
/* eslint-disable lines-between-class-members */
|
|
33
|
-
/* eslint-disable
|
|
33
|
+
/* eslint-disable no-unused-vars */
|
|
34
34
|
/* eslint-disable prefer-const */
|
|
35
35
|
/* eslint-disable no-useless-catch */
|
|
36
36
|
|
|
@@ -367,7 +367,7 @@ class MeasureOverlay {
|
|
|
367
367
|
if (!this.canvas.parentElement) return;
|
|
368
368
|
|
|
369
369
|
this.canvas.parentElement.appendChild(this.container);
|
|
370
|
-
this.resizeObserver.observe(this.canvas
|
|
370
|
+
this.resizeObserver.observe(this.canvas);
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
dispose() {
|
|
@@ -403,13 +403,16 @@ class MeasureOverlay {
|
|
|
403
403
|
this.lines = this.lines.filter((x) => x !== line);
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
resizeContainer = (
|
|
407
|
-
const {
|
|
406
|
+
resizeContainer = () => {
|
|
407
|
+
const { offsetLeft, offsetTop, offsetWidth, offsetHeight } = this.canvas;
|
|
408
408
|
|
|
409
|
-
if (!
|
|
409
|
+
if (!offsetWidth || !offsetHeight) return; // <- invisible canvas, or canvas with parent removed
|
|
410
410
|
|
|
411
|
-
this.container.style.
|
|
412
|
-
this.container.style.
|
|
411
|
+
this.container.style.left = `${offsetLeft}px`;
|
|
412
|
+
this.container.style.top = `${offsetTop}px`;
|
|
413
|
+
|
|
414
|
+
this.container.style.width = `${offsetWidth}px`;
|
|
415
|
+
this.container.style.height = `${offsetHeight}px`;
|
|
413
416
|
};
|
|
414
417
|
}
|
|
415
418
|
|