@tscircuit/3d-viewer 0.0.465 → 0.0.467
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 +11 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28509,7 +28509,7 @@ import * as THREE15 from "three";
|
|
|
28509
28509
|
// package.json
|
|
28510
28510
|
var package_default = {
|
|
28511
28511
|
name: "@tscircuit/3d-viewer",
|
|
28512
|
-
version: "0.0.
|
|
28512
|
+
version: "0.0.466",
|
|
28513
28513
|
main: "./dist/index.js",
|
|
28514
28514
|
module: "./dist/index.js",
|
|
28515
28515
|
type: "module",
|
|
@@ -31556,6 +31556,16 @@ var BoardGeomBuilder = class {
|
|
|
31556
31556
|
height: this.ctx.pcbThickness * 1.5
|
|
31557
31557
|
})
|
|
31558
31558
|
);
|
|
31559
|
+
if (!opts.dontCutBoard) {
|
|
31560
|
+
this.boardGeom = (0, import_booleans7.subtract)(this.boardGeom, pillHole);
|
|
31561
|
+
}
|
|
31562
|
+
this.padGeoms = this.padGeoms.map(
|
|
31563
|
+
(pg) => (0, import_colors7.colorize)(colors.copper, (0, import_booleans7.subtract)(pg, pillHole))
|
|
31564
|
+
);
|
|
31565
|
+
const platedHoleGeom = platedHole(ph, this.ctx, {
|
|
31566
|
+
clipGeom: this.boardClipGeom
|
|
31567
|
+
});
|
|
31568
|
+
this.platedHoleGeoms.push(platedHoleGeom);
|
|
31559
31569
|
} else if (ph.shape === "hole_with_polygon_pad") {
|
|
31560
31570
|
const padOutline = ph.pad_outline;
|
|
31561
31571
|
if (!Array.isArray(padOutline) || padOutline.length < 3) {
|
|
@@ -41971,7 +41981,6 @@ var ContextMenu = ({
|
|
|
41971
41981
|
{
|
|
41972
41982
|
style: {
|
|
41973
41983
|
...itemStyles2,
|
|
41974
|
-
...itemPaddingStyles2,
|
|
41975
41984
|
backgroundColor: hoveredItem === "autorotate" ? "#404040" : "transparent"
|
|
41976
41985
|
},
|
|
41977
41986
|
onSelect: (e) => e.preventDefault(),
|
|
@@ -41993,7 +42002,6 @@ var ContextMenu = ({
|
|
|
41993
42002
|
{
|
|
41994
42003
|
style: {
|
|
41995
42004
|
...itemStyles2,
|
|
41996
|
-
...itemPaddingStyles2,
|
|
41997
42005
|
backgroundColor: hoveredItem === "cameratype" ? "#404040" : "transparent"
|
|
41998
42006
|
},
|
|
41999
42007
|
onSelect: (e) => e.preventDefault(),
|