@tscircuit/pcb-viewer 1.11.256 → 1.11.258

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
@@ -7299,6 +7299,25 @@ var convertElementToPrimitives = (element, allElements) => {
7299
7299
  ccw_rotation: element.ccw_rotation
7300
7300
  }
7301
7301
  ];
7302
+ } else if (element.hole_shape === "rect") {
7303
+ const { x, y, hole_width, hole_height } = element;
7304
+ if (typeof hole_width !== "number" || typeof hole_height !== "number") {
7305
+ return [];
7306
+ }
7307
+ return [
7308
+ {
7309
+ _pcb_drawing_object_id: `rect_${globalPcbDrawingObjectCount++}`,
7310
+ pcb_drawing_type: "rect",
7311
+ x,
7312
+ y,
7313
+ w: hole_width,
7314
+ h: hole_height,
7315
+ layer: "drill",
7316
+ _element: element,
7317
+ _parent_pcb_component,
7318
+ _parent_source_component
7319
+ }
7320
+ ];
7302
7321
  }
7303
7322
  return [];
7304
7323
  }
@@ -12442,7 +12461,7 @@ import { css as css3 } from "@emotion/css";
12442
12461
  // package.json
12443
12462
  var package_default = {
12444
12463
  name: "@tscircuit/pcb-viewer",
12445
- version: "1.11.255",
12464
+ version: "1.11.257",
12446
12465
  main: "dist/index.js",
12447
12466
  type: "module",
12448
12467
  repository: "tscircuit/pcb-viewer",
@@ -12494,8 +12513,8 @@ var package_default = {
12494
12513
  "@emotion/css": "^11.11.2",
12495
12514
  "@tscircuit/alphabet": "^0.0.3",
12496
12515
  "@vitejs/plugin-react": "^5.0.2",
12497
- "circuit-json": "^0.0.302",
12498
- "circuit-to-svg": "^0.0.240",
12516
+ "circuit-json": "^0.0.307",
12517
+ "circuit-to-svg": "^0.0.265",
12499
12518
  color: "^4.2.3",
12500
12519
  "react-supergrid": "^1.0.10",
12501
12520
  "react-toastify": "^10.0.5",