@tscircuit/pcb-viewer 1.11.250 → 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
  }
@@ -12359,7 +12379,7 @@ import { css as css3 } from "@emotion/css";
12359
12379
  // package.json
12360
12380
  var package_default = {
12361
12381
  name: "@tscircuit/pcb-viewer",
12362
- version: "1.11.249",
12382
+ version: "1.11.250",
12363
12383
  main: "dist/index.js",
12364
12384
  type: "module",
12365
12385
  repository: "tscircuit/pcb-viewer",