@tscircuit/pcb-viewer 1.11.257 → 1.11.259

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
@@ -7299,6 +7299,25 @@ var convertElementToPrimitives = (element, allElements) => {
7299
7299
  ccw_rotation: element.ccw_rotation
7300
7300
  }
7301
7301
  ];
7302
+ } else if (element.hole_shape === "rect") {
7303
+ const { x, y, hole_width, hole_height } = element;
7304
+ if (typeof hole_width !== "number" || typeof hole_height !== "number") {
7305
+ return [];
7306
+ }
7307
+ return [
7308
+ {
7309
+ _pcb_drawing_object_id: `rect_${globalPcbDrawingObjectCount++}`,
7310
+ pcb_drawing_type: "rect",
7311
+ x,
7312
+ y,
7313
+ w: hole_width,
7314
+ h: hole_height,
7315
+ layer: "drill",
7316
+ _element: element,
7317
+ _parent_pcb_component,
7318
+ _parent_source_component
7319
+ }
7320
+ ];
7302
7321
  }
7303
7322
  return [];
7304
7323
  }
@@ -10122,6 +10141,11 @@ var DimensionOverlay = ({
10122
10141
  });
10123
10142
  }
10124
10143
  });
10144
+ points.push({
10145
+ anchor: "origin",
10146
+ point: { x: 0, y: 0 },
10147
+ element: null
10148
+ });
10125
10149
  return points;
10126
10150
  }, [elementBoundingBoxes]);
10127
10151
  const snappingPointsWithScreen = useMemo3(() => {
@@ -12442,7 +12466,7 @@ import { css as css3 } from "@emotion/css";
12442
12466
  // package.json
12443
12467
  var package_default = {
12444
12468
  name: "@tscircuit/pcb-viewer",
12445
- version: "1.11.256",
12469
+ version: "1.11.258",
12446
12470
  main: "dist/index.js",
12447
12471
  type: "module",
12448
12472
  repository: "tscircuit/pcb-viewer",