three-cad-viewer 2.2.0 → 2.2.1
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.
|
@@ -58521,7 +58521,7 @@ class ObjectGroup extends Group {
|
|
|
58521
58521
|
: this.alpha;
|
|
58522
58522
|
}
|
|
58523
58523
|
for (var child of this.children) {
|
|
58524
|
-
if (!child.name.startsWith("clipping")){
|
|
58524
|
+
if (!child.name.startsWith("clipping")) {
|
|
58525
58525
|
// turn depth write off for transparent objects
|
|
58526
58526
|
child.material.depthWrite = this.alpha < 1.0 ? false : !flag;
|
|
58527
58527
|
// but keep depth test
|
|
@@ -58560,6 +58560,12 @@ class ObjectGroup extends Group {
|
|
|
58560
58560
|
|
|
58561
58561
|
setShapeVisible(flag) {
|
|
58562
58562
|
this.types.front.material.visible = flag;
|
|
58563
|
+
for (var t of ["clipping-0", "clipping-1", "clipping-2"]) {
|
|
58564
|
+
if (this.types[t]) {
|
|
58565
|
+
this.types[t].children[0].material.visible = flag;
|
|
58566
|
+
this.types[t].children[1].material.visible = flag;
|
|
58567
|
+
}
|
|
58568
|
+
}
|
|
58563
58569
|
if (this.types.back && this.renderback) {
|
|
58564
58570
|
this.types.back.material.visible = flag;
|
|
58565
58571
|
}
|
|
@@ -58902,9 +58908,7 @@ class NestedGroup {
|
|
|
58902
58908
|
const backColor =
|
|
58903
58909
|
group.subtype === "solid"
|
|
58904
58910
|
? color
|
|
58905
|
-
: new Color(
|
|
58906
|
-
Math.round(Math.min(0xffffff, this.edgeColor * 1.25)),
|
|
58907
|
-
);
|
|
58911
|
+
: new Color(this.edgeColor).lerp(new Color(1, 1, 1), 0.15);
|
|
58908
58912
|
|
|
58909
58913
|
const backMaterial = new MeshBasicMaterial({
|
|
58910
58914
|
color: backColor,
|
|
@@ -62856,7 +62860,7 @@ class Camera {
|
|
|
62856
62860
|
}
|
|
62857
62861
|
}
|
|
62858
62862
|
|
|
62859
|
-
const version = "2.2.
|
|
62863
|
+
const version = "2.2.1";
|
|
62860
62864
|
|
|
62861
62865
|
class Viewer {
|
|
62862
62866
|
/**
|