@tscircuit/core 0.0.1859 → 0.0.1860

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.
Files changed (2) hide show
  1. package/dist/index.js +21 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3327,6 +3327,26 @@ var getObstaclesFromCircuitJson = (circuitJson, connMap) => {
3327
3327
  height: element.outer_diameter,
3328
3328
  connectedTo: withNetId([element.pcb_plated_hole_id])
3329
3329
  });
3330
+ } else if (element.shape === "pill_hole_with_rect_pad" || element.shape === "rotated_pill_hole_with_rect_pad") {
3331
+ const rotatedRect = {
3332
+ center: { x: element.x, y: element.y },
3333
+ width: element.rect_pad_width,
3334
+ height: element.rect_pad_height,
3335
+ rotation: element.shape === "rotated_pill_hole_with_rect_pad" ? element.rect_ccw_rotation : 0
3336
+ };
3337
+ const axisAlignedRect = getAxisAlignedRectFromRotatedRect(rotatedRect);
3338
+ const rect = axisAlignedRect ?? rotatedRect;
3339
+ obstacles.push({
3340
+ circuitJsonMetadata: pcbPlatedHoleCircuitJsonMetadata,
3341
+ componentId: pcbComponentId,
3342
+ type: "rect",
3343
+ layers: everyLayer,
3344
+ center: rect.center,
3345
+ width: rect.width,
3346
+ height: rect.height,
3347
+ ccwRotationDegrees: axisAlignedRect ? void 0 : rotatedRect.rotation,
3348
+ connectedTo: withNetId([element.pcb_plated_hole_id])
3349
+ });
3330
3350
  } else if (element.shape === "circular_hole_with_rect_pad") {
3331
3351
  obstacles.push({
3332
3352
  circuitJsonMetadata: pcbPlatedHoleCircuitJsonMetadata,
@@ -51411,7 +51431,7 @@ function Group_getRoutingPhasePlans(group) {
51411
51431
  var package_default = {
51412
51432
  name: "@tscircuit/core",
51413
51433
  type: "module",
51414
- version: "0.0.1858",
51434
+ version: "0.0.1859",
51415
51435
  types: "dist/index.d.ts",
51416
51436
  main: "dist/index.js",
51417
51437
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1859",
4
+ "version": "0.0.1860",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",