@tscircuit/pcb-viewer 1.11.239 → 1.11.240

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
@@ -7062,6 +7062,59 @@ var convertElementToPrimitives = (element, allElements) => {
7062
7062
  (e) => e.type === "source_port" && e.source_port_id === _source_port_id
7063
7063
  ) : void 0;
7064
7064
  switch (element.type) {
7065
+ case "pcb_panel": {
7066
+ const { width, height } = element;
7067
+ return [
7068
+ {
7069
+ _pcb_drawing_object_id: `line_${globalPcbDrawingObjectCount++}`,
7070
+ pcb_drawing_type: "line",
7071
+ x1: 0,
7072
+ y1: 0,
7073
+ x2: width,
7074
+ y2: 0,
7075
+ width: 1,
7076
+ zoomIndependent: true,
7077
+ layer: "board",
7078
+ _element: element
7079
+ },
7080
+ {
7081
+ _pcb_drawing_object_id: `line_${globalPcbDrawingObjectCount++}`,
7082
+ pcb_drawing_type: "line",
7083
+ x1: 0,
7084
+ y1: height,
7085
+ x2: width,
7086
+ y2: height,
7087
+ width: 1,
7088
+ zoomIndependent: true,
7089
+ layer: "board",
7090
+ _element: element
7091
+ },
7092
+ {
7093
+ _pcb_drawing_object_id: `line_${globalPcbDrawingObjectCount++}`,
7094
+ pcb_drawing_type: "line",
7095
+ x1: 0,
7096
+ y1: 0,
7097
+ x2: 0,
7098
+ y2: height,
7099
+ width: 1,
7100
+ zoomIndependent: true,
7101
+ layer: "board",
7102
+ _element: element
7103
+ },
7104
+ {
7105
+ _pcb_drawing_object_id: `line_${globalPcbDrawingObjectCount++}`,
7106
+ pcb_drawing_type: "line",
7107
+ x1: width,
7108
+ y1: 0,
7109
+ x2: width,
7110
+ y2: height,
7111
+ width: 1,
7112
+ zoomIndependent: true,
7113
+ layer: "board",
7114
+ _element: element
7115
+ }
7116
+ ];
7117
+ }
7065
7118
  case "pcb_board": {
7066
7119
  const { width, height, center, outline } = element;
7067
7120
  if (outline && outline.length > 2) {
@@ -8017,7 +8070,7 @@ var convertElementToPrimitives = (element, allElements) => {
8017
8070
  y: noteTextElement.anchor_position.y,
8018
8071
  layer: "notes",
8019
8072
  align: noteTextElement.anchor_alignment ?? "center",
8020
- text: noteTextElement.text,
8073
+ text: noteTextElement.text || "",
8021
8074
  size: noteTextElement.font_size,
8022
8075
  color: noteTextElement.color,
8023
8076
  _element: element,
@@ -12261,7 +12314,7 @@ import { css as css3 } from "@emotion/css";
12261
12314
  // package.json
12262
12315
  var package_default = {
12263
12316
  name: "@tscircuit/pcb-viewer",
12264
- version: "1.11.238",
12317
+ version: "1.11.239",
12265
12318
  main: "dist/index.js",
12266
12319
  type: "module",
12267
12320
  repository: "tscircuit/pcb-viewer",
@@ -12313,7 +12366,7 @@ var package_default = {
12313
12366
  "@emotion/css": "^11.11.2",
12314
12367
  "@tscircuit/alphabet": "^0.0.3",
12315
12368
  "@vitejs/plugin-react": "^5.0.2",
12316
- "circuit-json": "^0.0.282",
12369
+ "circuit-json": "^0.0.295",
12317
12370
  "circuit-to-svg": "^0.0.240",
12318
12371
  color: "^4.2.3",
12319
12372
  "react-supergrid": "^1.0.10",