@tscircuit/pcb-viewer 1.11.318 → 1.11.320

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 CHANGED
@@ -8686,7 +8686,7 @@ function drawPcbHoleElementsForLayer({
8686
8686
  // src/lib/draw-pcb-board.ts
8687
8687
  import { CircuitToCanvasDrawer as CircuitToCanvasDrawer4 } from "circuit-to-canvas";
8688
8688
  function isPcbBoardElement(element) {
8689
- return element.type === "pcb_board";
8689
+ return element.type === "pcb_board" || element.type === "pcb_panel";
8690
8690
  }
8691
8691
  function drawPcbBoardElements({
8692
8692
  canvas,
@@ -8698,7 +8698,9 @@ function drawPcbBoardElements({
8698
8698
  const drawer = new CircuitToCanvasDrawer4(canvas);
8699
8699
  drawer.realToCanvasMat = realToCanvasMat;
8700
8700
  const pcbBoardElements = elements.filter(isPcbBoardElement);
8701
- drawer.drawElements(pcbBoardElements, { layers, drawSoldermask });
8701
+ for (const element of pcbBoardElements) {
8702
+ drawer.drawElements([element], { layers, drawSoldermask });
8703
+ }
8702
8704
  }
8703
8705
 
8704
8706
  // src/lib/draw-pcb-cutout.ts
@@ -13701,7 +13703,7 @@ import { css as css3 } from "@emotion/css";
13701
13703
  // package.json
13702
13704
  var package_default = {
13703
13705
  name: "@tscircuit/pcb-viewer",
13704
- version: "1.11.317",
13706
+ version: "1.11.319",
13705
13707
  main: "dist/index.js",
13706
13708
  type: "module",
13707
13709
  repository: "tscircuit/pcb-viewer",
@@ -13738,7 +13740,7 @@ var package_default = {
13738
13740
  "react-cosmos-plugin-vite": "7.0.0-beta.0",
13739
13741
  "react-dom": "19.1.0",
13740
13742
  "react-use": "^17.4.0",
13741
- tscircuit: "^0.0.1054",
13743
+ tscircuit: "^0.0.1173",
13742
13744
  tsup: "^8.0.2",
13743
13745
  "type-fest": "^3.0.0",
13744
13746
  typescript: "^5.4.4",
@@ -13755,7 +13757,7 @@ var package_default = {
13755
13757
  "@tscircuit/math-utils": "^0.0.29",
13756
13758
  "@vitejs/plugin-react": "^5.0.2",
13757
13759
  "circuit-json": "^0.0.356",
13758
- "circuit-to-canvas": "^0.0.52",
13760
+ "circuit-to-canvas": "^0.0.56",
13759
13761
  "circuit-to-svg": "^0.0.271",
13760
13762
  color: "^4.2.3",
13761
13763
  "react-supergrid": "^1.0.10",