@tscircuit/3d-viewer 0.0.537 → 0.0.539
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/index.js +8 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28691,6 +28691,7 @@ var FootprinterModel = ({
|
|
|
28691
28691
|
depthWrite: !isTranslucent
|
|
28692
28692
|
});
|
|
28693
28693
|
const mesh = new THREE3.Mesh(threeGeom, material);
|
|
28694
|
+
mesh.renderOrder = isTranslucent ? 2 : 1;
|
|
28694
28695
|
group2.add(mesh);
|
|
28695
28696
|
}
|
|
28696
28697
|
return group2;
|
|
@@ -28812,6 +28813,7 @@ function GltfModel({
|
|
|
28812
28813
|
} else {
|
|
28813
28814
|
setMaterialTransparency(child.material);
|
|
28814
28815
|
}
|
|
28816
|
+
child.renderOrder = isTranslucent ? 2 : 1;
|
|
28815
28817
|
}
|
|
28816
28818
|
});
|
|
28817
28819
|
setModel(scene);
|
|
@@ -28947,8 +28949,10 @@ var JscadModel = ({
|
|
|
28947
28949
|
}, [jscadPlan, isTranslucent]);
|
|
28948
28950
|
const mesh = useMemo6(() => {
|
|
28949
28951
|
if (!threeGeom) return null;
|
|
28950
|
-
|
|
28951
|
-
|
|
28952
|
+
const createdMesh = new THREE6.Mesh(threeGeom, material);
|
|
28953
|
+
createdMesh.renderOrder = isTranslucent ? 2 : 1;
|
|
28954
|
+
return createdMesh;
|
|
28955
|
+
}, [threeGeom, material, isTranslucent]);
|
|
28952
28956
|
useEffect7(() => {
|
|
28953
28957
|
if (!mesh || !rootObject) return;
|
|
28954
28958
|
rootObject.add(mesh);
|
|
@@ -29129,6 +29133,7 @@ function MixedStlModel({
|
|
|
29129
29133
|
} else {
|
|
29130
29134
|
setMaterialTransparency(child.material);
|
|
29131
29135
|
}
|
|
29136
|
+
child.renderOrder = isTranslucent ? 2 : 1;
|
|
29132
29137
|
}
|
|
29133
29138
|
});
|
|
29134
29139
|
return obj;
|
|
@@ -29727,7 +29732,7 @@ import * as THREE16 from "three";
|
|
|
29727
29732
|
// package.json
|
|
29728
29733
|
var package_default = {
|
|
29729
29734
|
name: "@tscircuit/3d-viewer",
|
|
29730
|
-
version: "0.0.
|
|
29735
|
+
version: "0.0.538",
|
|
29731
29736
|
main: "./dist/index.js",
|
|
29732
29737
|
module: "./dist/index.js",
|
|
29733
29738
|
type: "module",
|