@tscircuit/pcb-viewer 1.11.249 → 1.11.251

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
@@ -7286,6 +7286,26 @@ var convertElementToPrimitives = (element, allElements) => {
7286
7286
  _parent_source_component
7287
7287
  }
7288
7288
  ];
7289
+ } else if (element.hole_shape === "pill" || element.hole_shape === "rotated_pill") {
7290
+ const { x, y, hole_width, hole_height } = element;
7291
+ if (typeof hole_width !== "number" || typeof hole_height !== "number") {
7292
+ return [];
7293
+ }
7294
+ return [
7295
+ {
7296
+ _pcb_drawing_object_id: `pill_${globalPcbDrawingObjectCount++}`,
7297
+ pcb_drawing_type: "pill",
7298
+ x,
7299
+ y,
7300
+ w: hole_width,
7301
+ h: hole_height,
7302
+ layer: "drill",
7303
+ _element: element,
7304
+ _parent_pcb_component,
7305
+ _parent_source_component,
7306
+ ccw_rotation: element.ccw_rotation
7307
+ }
7308
+ ];
7289
7309
  }
7290
7310
  return [];
7291
7311
  }
@@ -7713,6 +7733,34 @@ var convertElementToPrimitives = (element, allElements) => {
7713
7733
  }
7714
7734
  ];
7715
7735
  }
7736
+ case "pcb_fabrication_note_rect": {
7737
+ const rectElement = element;
7738
+ const layer = rectElement.layer === "bottom" ? "bottom_fabrication" : "top_fabrication";
7739
+ const hasStroke = rectElement.has_stroke !== void 0 ? rectElement.has_stroke : typeof rectElement.stroke_width === "number" ? rectElement.stroke_width > 0 : void 0;
7740
+ return [
7741
+ {
7742
+ _pcb_drawing_object_id: getNewPcbDrawingObjectId(
7743
+ "pcb_fabrication_note_rect"
7744
+ ),
7745
+ pcb_drawing_type: "rect",
7746
+ x: rectElement.center.x,
7747
+ y: rectElement.center.y,
7748
+ w: rectElement.width,
7749
+ h: rectElement.height,
7750
+ roundness: rectElement.corner_radius,
7751
+ layer,
7752
+ stroke_width: rectElement.stroke_width,
7753
+ is_filled: rectElement.is_filled,
7754
+ has_stroke: hasStroke,
7755
+ is_stroke_dashed: rectElement.is_stroke_dashed,
7756
+ color: rectElement.color,
7757
+ _element: element,
7758
+ _parent_pcb_component,
7759
+ _parent_source_component,
7760
+ _source_port
7761
+ }
7762
+ ];
7763
+ }
7716
7764
  case "pcb_fabrication_note_path":
7717
7765
  case "pcb_silkscreen_path": {
7718
7766
  const {
@@ -12331,7 +12379,7 @@ import { css as css3 } from "@emotion/css";
12331
12379
  // package.json
12332
12380
  var package_default = {
12333
12381
  name: "@tscircuit/pcb-viewer",
12334
- version: "1.11.248",
12382
+ version: "1.11.250",
12335
12383
  main: "dist/index.js",
12336
12384
  type: "module",
12337
12385
  repository: "tscircuit/pcb-viewer",