@tscircuit/core 0.0.433 → 0.0.434
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 +21 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1977,6 +1977,9 @@ var PlatedHole = class extends PrimitiveComponent2 {
|
|
|
1977
1977
|
if (props.shape === "circular_hole_with_rect_pad") {
|
|
1978
1978
|
return { width: props.rectPadWidth, height: props.rectPadHeight };
|
|
1979
1979
|
}
|
|
1980
|
+
if (props.shape === "pill_hole_with_rect_pad") {
|
|
1981
|
+
return { width: props.rectPadWidth, height: props.rectPadHeight };
|
|
1982
|
+
}
|
|
1980
1983
|
throw new Error(
|
|
1981
1984
|
`getPcbSize for shape "${props.shape}" not implemented for ${this.componentName}`
|
|
1982
1985
|
);
|
|
@@ -2119,6 +2122,23 @@ var PlatedHole = class extends PrimitiveComponent2 {
|
|
|
2119
2122
|
pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
|
|
2120
2123
|
});
|
|
2121
2124
|
this.pcb_plated_hole_id = pcb_plated_hole.pcb_plated_hole_id;
|
|
2125
|
+
} else if (props.shape === "pill_hole_with_rect_pad") {
|
|
2126
|
+
const pcb_plated_hole = db.pcb_plated_hole.insert({
|
|
2127
|
+
pcb_component_id,
|
|
2128
|
+
pcb_port_id: this.matchedPort?.pcb_port_id,
|
|
2129
|
+
hole_width: props.holeWidth,
|
|
2130
|
+
hole_height: props.holeHeight,
|
|
2131
|
+
rect_pad_width: props.rectPadWidth,
|
|
2132
|
+
rect_pad_height: props.rectPadHeight,
|
|
2133
|
+
shape: "pill_hole_with_rect_pad",
|
|
2134
|
+
port_hints: this.getNameAndAliases(),
|
|
2135
|
+
x: position.x,
|
|
2136
|
+
y: position.y,
|
|
2137
|
+
layers: ["top", "bottom"],
|
|
2138
|
+
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
2139
|
+
pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
|
|
2140
|
+
});
|
|
2141
|
+
this.pcb_plated_hole_id = pcb_plated_hole.pcb_plated_hole_id;
|
|
2122
2142
|
}
|
|
2123
2143
|
}
|
|
2124
2144
|
doInitialPcbPortAttachment() {
|
|
@@ -8705,7 +8725,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
8705
8725
|
var package_default = {
|
|
8706
8726
|
name: "@tscircuit/core",
|
|
8707
8727
|
type: "module",
|
|
8708
|
-
version: "0.0.
|
|
8728
|
+
version: "0.0.433",
|
|
8709
8729
|
types: "dist/index.d.ts",
|
|
8710
8730
|
main: "dist/index.js",
|
|
8711
8731
|
module: "dist/index.js",
|