@tscircuit/pcb-viewer 1.11.232 → 1.11.233

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
@@ -7134,6 +7134,7 @@ var convertElementToPrimitives = (element, allElements) => {
7134
7134
  case "pcb_smtpad": {
7135
7135
  if (element.shape === "rect" || element.shape === "rotated_rect") {
7136
7136
  const { shape, x, y, width, height, layer, rect_border_radius } = element;
7137
+ const corner_radius = element.corner_radius ?? rect_border_radius ?? 0;
7137
7138
  return [
7138
7139
  {
7139
7140
  _pcb_drawing_object_id: `rect_${globalPcbDrawingObjectCount++}`,
@@ -7148,7 +7149,7 @@ var convertElementToPrimitives = (element, allElements) => {
7148
7149
  _parent_source_component,
7149
7150
  _source_port,
7150
7151
  ccw_rotation: element.ccw_rotation,
7151
- roundness: rect_border_radius
7152
+ roundness: corner_radius
7152
7153
  }
7153
7154
  ];
7154
7155
  } else if (element.shape === "circle") {
@@ -11903,7 +11904,7 @@ import { css as css3 } from "@emotion/css";
11903
11904
  // package.json
11904
11905
  var package_default = {
11905
11906
  name: "@tscircuit/pcb-viewer",
11906
- version: "1.11.231",
11907
+ version: "1.11.232",
11907
11908
  main: "dist/index.js",
11908
11909
  type: "module",
11909
11910
  repository: "tscircuit/pcb-viewer",
@@ -11954,7 +11955,7 @@ var package_default = {
11954
11955
  dependencies: {
11955
11956
  "@emotion/css": "^11.11.2",
11956
11957
  "@vitejs/plugin-react": "^5.0.2",
11957
- "circuit-json": "^0.0.280",
11958
+ "circuit-json": "^0.0.282",
11958
11959
  "circuit-to-svg": "^0.0.240",
11959
11960
  color: "^4.2.3",
11960
11961
  "react-supergrid": "^1.0.10",