@tscircuit/pcb-viewer 1.11.249 → 1.11.250

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
@@ -7713,6 +7713,34 @@ var convertElementToPrimitives = (element, allElements) => {
7713
7713
  }
7714
7714
  ];
7715
7715
  }
7716
+ case "pcb_fabrication_note_rect": {
7717
+ const rectElement = element;
7718
+ const layer = rectElement.layer === "bottom" ? "bottom_fabrication" : "top_fabrication";
7719
+ const hasStroke = rectElement.has_stroke !== void 0 ? rectElement.has_stroke : typeof rectElement.stroke_width === "number" ? rectElement.stroke_width > 0 : void 0;
7720
+ return [
7721
+ {
7722
+ _pcb_drawing_object_id: getNewPcbDrawingObjectId(
7723
+ "pcb_fabrication_note_rect"
7724
+ ),
7725
+ pcb_drawing_type: "rect",
7726
+ x: rectElement.center.x,
7727
+ y: rectElement.center.y,
7728
+ w: rectElement.width,
7729
+ h: rectElement.height,
7730
+ roundness: rectElement.corner_radius,
7731
+ layer,
7732
+ stroke_width: rectElement.stroke_width,
7733
+ is_filled: rectElement.is_filled,
7734
+ has_stroke: hasStroke,
7735
+ is_stroke_dashed: rectElement.is_stroke_dashed,
7736
+ color: rectElement.color,
7737
+ _element: element,
7738
+ _parent_pcb_component,
7739
+ _parent_source_component,
7740
+ _source_port
7741
+ }
7742
+ ];
7743
+ }
7716
7744
  case "pcb_fabrication_note_path":
7717
7745
  case "pcb_silkscreen_path": {
7718
7746
  const {
@@ -12331,7 +12359,7 @@ import { css as css3 } from "@emotion/css";
12331
12359
  // package.json
12332
12360
  var package_default = {
12333
12361
  name: "@tscircuit/pcb-viewer",
12334
- version: "1.11.248",
12362
+ version: "1.11.249",
12335
12363
  main: "dist/index.js",
12336
12364
  type: "module",
12337
12365
  repository: "tscircuit/pcb-viewer",