@tscircuit/pcb-viewer 1.11.215 → 1.11.216

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
@@ -12699,6 +12699,20 @@ var convertElementToPrimitives = (element, allElements) => {
12699
12699
  _source_port
12700
12700
  }
12701
12701
  ];
12702
+ } else if (element.shape === "polygon") {
12703
+ const { layer, points } = element;
12704
+ return [
12705
+ {
12706
+ _pcb_drawing_object_id: `polygon_${globalPcbDrawingObjectCount++}`,
12707
+ pcb_drawing_type: "polygon",
12708
+ points,
12709
+ layer: layer || "top",
12710
+ _element: element,
12711
+ _parent_pcb_component,
12712
+ _parent_source_component,
12713
+ _source_port
12714
+ }
12715
+ ];
12702
12716
  }
12703
12717
  return [];
12704
12718
  }
@@ -16933,7 +16947,7 @@ import { css as css3 } from "@emotion/css";
16933
16947
  // package.json
16934
16948
  var package_default = {
16935
16949
  name: "@tscircuit/pcb-viewer",
16936
- version: "1.11.214",
16950
+ version: "1.11.215",
16937
16951
  main: "dist/index.js",
16938
16952
  type: "module",
16939
16953
  repository: "tscircuit/pcb-viewer",
@@ -16984,7 +16998,7 @@ var package_default = {
16984
16998
  dependencies: {
16985
16999
  "@emotion/css": "^11.11.2",
16986
17000
  "@vitejs/plugin-react": "^5.0.2",
16987
- "circuit-to-svg": "^0.0.166",
17001
+ "circuit-to-svg": "^0.0.191",
16988
17002
  color: "^4.2.3",
16989
17003
  "react-supergrid": "^1.0.10",
16990
17004
  "react-toastify": "^10.0.5",