@tscircuit/3d-viewer 0.0.567 → 0.0.569
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.d.ts +1 -0
- package/dist/index.js +26 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14456,6 +14456,7 @@ var defaultVisibility = {
|
|
|
14456
14456
|
boardBody: true,
|
|
14457
14457
|
topCopper: true,
|
|
14458
14458
|
bottomCopper: true,
|
|
14459
|
+
keepout: true,
|
|
14459
14460
|
adhesive: false,
|
|
14460
14461
|
solderPaste: false,
|
|
14461
14462
|
topSilkscreen: true,
|
|
@@ -32321,7 +32322,7 @@ import * as THREE20 from "three";
|
|
|
32321
32322
|
// package.json
|
|
32322
32323
|
var package_default = {
|
|
32323
32324
|
name: "@tscircuit/3d-viewer",
|
|
32324
|
-
version: "0.0.
|
|
32325
|
+
version: "0.0.568",
|
|
32325
32326
|
main: "./dist/index.js",
|
|
32326
32327
|
module: "./dist/index.js",
|
|
32327
32328
|
type: "module",
|
|
@@ -36652,6 +36653,7 @@ function createCombinedBoardTextures({
|
|
|
36652
36653
|
const showMask = (layer === "top" ? visibility?.topMask : visibility?.bottomMask) ?? true;
|
|
36653
36654
|
const showCopper = (layer === "top" ? visibility?.topCopper : visibility?.bottomCopper) ?? true;
|
|
36654
36655
|
const showSilkscreen = (layer === "top" ? visibility?.topSilkscreen : visibility?.bottomSilkscreen) ?? true;
|
|
36656
|
+
const showKeepout = visibility?.keepout ?? true;
|
|
36655
36657
|
const soldermaskTexture = showMask ? createSoldermaskTextureForLayer({
|
|
36656
36658
|
layer,
|
|
36657
36659
|
circuitJson,
|
|
@@ -36719,12 +36721,12 @@ function createCombinedBoardTextures({
|
|
|
36719
36721
|
panelData: boardData,
|
|
36720
36722
|
traceTextureResolution
|
|
36721
36723
|
}) : null;
|
|
36722
|
-
const keepoutTexture = createKeepoutTextureForLayer({
|
|
36724
|
+
const keepoutTexture = showKeepout ? createKeepoutTextureForLayer({
|
|
36723
36725
|
layer,
|
|
36724
36726
|
circuitJson,
|
|
36725
36727
|
boardData,
|
|
36726
36728
|
traceTextureResolution
|
|
36727
|
-
});
|
|
36729
|
+
}) : null;
|
|
36728
36730
|
return createCombinedTexture({
|
|
36729
36731
|
textures: [
|
|
36730
36732
|
copperPourTexture,
|
|
@@ -45182,6 +45184,27 @@ var AppearanceMenu = () => {
|
|
|
45182
45184
|
]
|
|
45183
45185
|
}
|
|
45184
45186
|
),
|
|
45187
|
+
/* @__PURE__ */ jsxs8(
|
|
45188
|
+
Item22,
|
|
45189
|
+
{
|
|
45190
|
+
style: {
|
|
45191
|
+
...itemStyles,
|
|
45192
|
+
backgroundColor: hoveredItem === "keepout" ? "#404040" : "transparent"
|
|
45193
|
+
},
|
|
45194
|
+
onSelect: (e) => e.preventDefault(),
|
|
45195
|
+
onPointerDown: (e) => {
|
|
45196
|
+
e.preventDefault();
|
|
45197
|
+
setLayerVisibility("keepout", !visibility.keepout);
|
|
45198
|
+
},
|
|
45199
|
+
onMouseEnter: () => setHoveredItem("keepout"),
|
|
45200
|
+
onMouseLeave: () => setHoveredItem(null),
|
|
45201
|
+
onTouchStart: () => setHoveredItem("keepout"),
|
|
45202
|
+
children: [
|
|
45203
|
+
/* @__PURE__ */ jsx34("span", { style: iconContainerStyles, children: visibility.keepout && /* @__PURE__ */ jsx34(CheckIcon, {}) }),
|
|
45204
|
+
/* @__PURE__ */ jsx34("span", { style: { display: "flex", alignItems: "center" }, children: "Keepout" })
|
|
45205
|
+
]
|
|
45206
|
+
}
|
|
45207
|
+
),
|
|
45185
45208
|
/* @__PURE__ */ jsxs8(
|
|
45186
45209
|
Item22,
|
|
45187
45210
|
{
|