@tscircuit/core 0.0.433 → 0.0.435
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 +23 -3
- package/package.json +3 -3
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.434",
|
|
8709
8729
|
types: "dist/index.d.ts",
|
|
8710
8730
|
main: "dist/index.js",
|
|
8711
8731
|
module: "dist/index.js",
|
|
@@ -8750,7 +8770,7 @@ var package_default = {
|
|
|
8750
8770
|
"circuit-json": "^0.0.190",
|
|
8751
8771
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
8752
8772
|
"circuit-json-to-simple-3d": "^0.0.2",
|
|
8753
|
-
"circuit-to-svg": "^0.0.
|
|
8773
|
+
"circuit-to-svg": "^0.0.137",
|
|
8754
8774
|
concurrently: "^9.1.2",
|
|
8755
8775
|
debug: "^4.3.6",
|
|
8756
8776
|
"graphics-debug": "^0.0.4",
|
|
@@ -8760,7 +8780,7 @@ var package_default = {
|
|
|
8760
8780
|
"pkg-pr-new": "^0.0.37",
|
|
8761
8781
|
react: "^19.0.0",
|
|
8762
8782
|
"react-dom": "^19.0.0",
|
|
8763
|
-
"schematic-symbols": "^0.0.
|
|
8783
|
+
"schematic-symbols": "^0.0.142",
|
|
8764
8784
|
"ts-expect": "^1.3.0",
|
|
8765
8785
|
tsup: "^8.2.4"
|
|
8766
8786
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.435",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"circuit-json": "^0.0.190",
|
|
47
47
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
48
48
|
"circuit-json-to-simple-3d": "^0.0.2",
|
|
49
|
-
"circuit-to-svg": "^0.0.
|
|
49
|
+
"circuit-to-svg": "^0.0.137",
|
|
50
50
|
"concurrently": "^9.1.2",
|
|
51
51
|
"debug": "^4.3.6",
|
|
52
52
|
"graphics-debug": "^0.0.4",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"pkg-pr-new": "^0.0.37",
|
|
57
57
|
"react": "^19.0.0",
|
|
58
58
|
"react-dom": "^19.0.0",
|
|
59
|
-
"schematic-symbols": "^0.0.
|
|
59
|
+
"schematic-symbols": "^0.0.142",
|
|
60
60
|
"ts-expect": "^1.3.0",
|
|
61
61
|
"tsup": "^8.2.4"
|
|
62
62
|
},
|