vim-web 0.3.42-dev.7 → 0.3.42-dev.9
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/vim-web.iife.js +3 -5
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +3 -5
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.js
CHANGED
|
@@ -48560,7 +48560,8 @@ const _ViewerMaterials = class _ViewerMaterials {
|
|
|
48560
48560
|
* Determines the opacity of the ghost material.
|
|
48561
48561
|
*/
|
|
48562
48562
|
get ghostOpacity() {
|
|
48563
|
-
|
|
48563
|
+
const mat = this.ghost;
|
|
48564
|
+
return mat.uniforms.opacity.value;
|
|
48564
48565
|
}
|
|
48565
48566
|
set ghostOpacity(opacity) {
|
|
48566
48567
|
const mat = this.ghost;
|
|
@@ -74311,9 +74312,6 @@ function applySettings(viewer, settings2) {
|
|
|
74311
74312
|
performance2.classList.add("vc-hidden");
|
|
74312
74313
|
}
|
|
74313
74314
|
}
|
|
74314
|
-
if (!settings2.isolation.enable) {
|
|
74315
|
-
viewer.renderer.modelMaterial = settings2.materials.useFastMaterial ? viewer.materials.simple : void 0;
|
|
74316
|
-
}
|
|
74317
74315
|
}
|
|
74318
74316
|
class Isolation {
|
|
74319
74317
|
/**
|
|
@@ -74356,8 +74354,8 @@ class Isolation {
|
|
|
74356
74354
|
*/
|
|
74357
74355
|
applySettings(settings2) {
|
|
74358
74356
|
this._settings = settings2;
|
|
74357
|
+
if (!this._settings.isolation.enable) return;
|
|
74359
74358
|
this._viewer.renderer.modelMaterial = this.getMaterial(this._settings, this.isActive());
|
|
74360
|
-
console.log("Isolation.applySettings", this._viewer.renderer.modelMaterial);
|
|
74361
74359
|
}
|
|
74362
74360
|
/**
|
|
74363
74361
|
* Checks if isolation is currently active (i.e., any objects are isolated).
|