@tscircuit/pcb-viewer 1.11.364 → 1.11.365
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 +6 -29
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -10100,19 +10100,12 @@ var CanvasPrimitiveRenderer = ({
|
|
|
10100
10100
|
drawSoldermask: isShowingSolderMask
|
|
10101
10101
|
});
|
|
10102
10102
|
}
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
canvas: topCanvas,
|
|
10106
|
-
elements,
|
|
10107
|
-
layers: ["top_copper"],
|
|
10108
|
-
realToCanvasMat: transform
|
|
10109
|
-
});
|
|
10110
|
-
}
|
|
10111
|
-
if (bottomCanvas) {
|
|
10103
|
+
for (const { canvas, copperLayer } of copperLayers) {
|
|
10104
|
+
if (!canvas) continue;
|
|
10112
10105
|
drawCopperPourElementsForLayer({
|
|
10113
|
-
canvas
|
|
10106
|
+
canvas,
|
|
10114
10107
|
elements,
|
|
10115
|
-
layers: [
|
|
10108
|
+
layers: [copperLayer],
|
|
10116
10109
|
realToCanvasMat: transform
|
|
10117
10110
|
});
|
|
10118
10111
|
}
|
|
@@ -10176,22 +10169,6 @@ var CanvasPrimitiveRenderer = ({
|
|
|
10176
10169
|
});
|
|
10177
10170
|
}
|
|
10178
10171
|
}
|
|
10179
|
-
if (topCanvas) {
|
|
10180
|
-
drawCopperPourElementsForLayer({
|
|
10181
|
-
canvas: topCanvas,
|
|
10182
|
-
elements,
|
|
10183
|
-
layers: ["top_copper"],
|
|
10184
|
-
realToCanvasMat: transform
|
|
10185
|
-
});
|
|
10186
|
-
}
|
|
10187
|
-
if (bottomCanvas) {
|
|
10188
|
-
drawCopperPourElementsForLayer({
|
|
10189
|
-
canvas: bottomCanvas,
|
|
10190
|
-
elements,
|
|
10191
|
-
layers: ["bottom_copper"],
|
|
10192
|
-
realToCanvasMat: transform
|
|
10193
|
-
});
|
|
10194
|
-
}
|
|
10195
10172
|
const drillCanvas = canvasRefs.current.drill;
|
|
10196
10173
|
if (drillCanvas) {
|
|
10197
10174
|
drawPcbHoleElementsForLayer({
|
|
@@ -14465,7 +14442,7 @@ import { css as css3 } from "@emotion/css";
|
|
|
14465
14442
|
// package.json
|
|
14466
14443
|
var package_default = {
|
|
14467
14444
|
name: "@tscircuit/pcb-viewer",
|
|
14468
|
-
version: "1.11.
|
|
14445
|
+
version: "1.11.364",
|
|
14469
14446
|
main: "dist/index.js",
|
|
14470
14447
|
type: "module",
|
|
14471
14448
|
repository: "tscircuit/pcb-viewer",
|
|
@@ -14519,7 +14496,7 @@ var package_default = {
|
|
|
14519
14496
|
"@tscircuit/math-utils": "^0.0.29",
|
|
14520
14497
|
"@vitejs/plugin-react": "^5.0.2",
|
|
14521
14498
|
"circuit-json": "^0.0.403",
|
|
14522
|
-
"circuit-to-canvas": "^0.0.
|
|
14499
|
+
"circuit-to-canvas": "^0.0.98",
|
|
14523
14500
|
"circuit-to-svg": "^0.0.337",
|
|
14524
14501
|
color: "^4.2.3",
|
|
14525
14502
|
"react-supergrid": "^1.0.10",
|