@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.
- package/dist/index.js +18 -3
- 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:
|
|
8164
|
-
height:
|
|
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.
|
|
10182
|
+
version: "0.0.482",
|
|
10168
10183
|
types: "dist/index.d.ts",
|
|
10169
10184
|
main: "dist/index.js",
|
|
10170
10185
|
module: "dist/index.js",
|