@tscircuit/core 0.0.481 → 0.0.483

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 +18 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4529,6 +4529,19 @@ var getObstaclesFromCircuitJson = (soup, connMap) => {
4529
4529
  height: element.outer_diameter,
4530
4530
  connectedTo: withNetId([element.pcb_plated_hole_id])
4531
4531
  });
4532
+ } else if (element.shape === "circular_hole_with_rect_pad") {
4533
+ obstacles.push({
4534
+ // @ts-ignore
4535
+ type: "rect",
4536
+ layers: EVERY_LAYER,
4537
+ center: {
4538
+ x: element.x,
4539
+ y: element.y
4540
+ },
4541
+ width: element.rect_pad_width,
4542
+ height: element.rect_pad_height,
4543
+ connectedTo: withNetId([element.pcb_plated_hole_id])
4544
+ });
4532
4545
  } else if (element.shape === "oval" || element.shape === "pill") {
4533
4546
  obstacles.push({
4534
4547
  // @ts-ignore
@@ -8159,9 +8172,11 @@ var Board = class extends Group {
8159
8172
  x: hasComponents ? (minX + maxX) / 2 + (props.outlineOffsetX ?? 0) : props.outlineOffsetX ?? 0,
8160
8173
  y: hasComponents ? (minY + maxY) / 2 + (props.outlineOffsetY ?? 0) : props.outlineOffsetY ?? 0
8161
8174
  };
8175
+ const finalWidth = props.width ?? computedWidth;
8176
+ const finalHeight = props.height ?? computedHeight;
8162
8177
  db.pcb_board.update(this.pcb_board_id, {
8163
- width: computedWidth,
8164
- height: computedHeight,
8178
+ width: finalWidth,
8179
+ height: finalHeight,
8165
8180
  center
8166
8181
  });
8167
8182
  }
@@ -10164,7 +10179,7 @@ import { identity as identity4 } from "transformation-matrix";
10164
10179
  var package_default = {
10165
10180
  name: "@tscircuit/core",
10166
10181
  type: "module",
10167
- version: "0.0.480",
10182
+ version: "0.0.482",
10168
10183
  types: "dist/index.d.ts",
10169
10184
  main: "dist/index.js",
10170
10185
  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.481",
4
+ "version": "0.0.483",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",