@tscircuit/core 0.0.863 → 0.0.864
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 +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1932,7 +1932,6 @@ var SmtPad = class extends PrimitiveComponent2 {
|
|
|
1932
1932
|
const { _parsedProps: props } = this;
|
|
1933
1933
|
const isCoveredWithSolderMask = props.coveredWithSolderMask ?? false;
|
|
1934
1934
|
const shouldCreateSolderPaste = !isCoveredWithSolderMask;
|
|
1935
|
-
if (!props.portHints) return;
|
|
1936
1935
|
const subcircuit = this.getSubcircuit();
|
|
1937
1936
|
const position = this._getGlobalPcbPositionBeforeLayout();
|
|
1938
1937
|
const globalTransform = this._computePcbGlobalTransformBeforeLayout();
|
|
@@ -1950,6 +1949,7 @@ var SmtPad = class extends PrimitiveComponent2 {
|
|
|
1950
1949
|
if (isFlipped) {
|
|
1951
1950
|
finalRotationDegrees = (360 - finalRotationDegrees + 360) % 360;
|
|
1952
1951
|
}
|
|
1952
|
+
const portHints = props.portHints?.map((ph) => ph.toString()) ?? [];
|
|
1953
1953
|
let pcb_smtpad = null;
|
|
1954
1954
|
const pcb_component_id = this.parent?.pcb_component_id ?? this.getPrimitiveContainer()?.pcb_component_id;
|
|
1955
1955
|
if (props.shape === "circle") {
|
|
@@ -1960,7 +1960,7 @@ var SmtPad = class extends PrimitiveComponent2 {
|
|
|
1960
1960
|
layer: maybeFlipLayer(props.layer ?? "top"),
|
|
1961
1961
|
shape: "circle",
|
|
1962
1962
|
radius: props.radius,
|
|
1963
|
-
port_hints:
|
|
1963
|
+
port_hints: portHints,
|
|
1964
1964
|
is_covered_with_solder_mask: isCoveredWithSolderMask,
|
|
1965
1965
|
x: position.x,
|
|
1966
1966
|
y: position.y,
|
|
@@ -1992,7 +1992,7 @@ var SmtPad = class extends PrimitiveComponent2 {
|
|
|
1992
1992
|
x: position.x,
|
|
1993
1993
|
y: position.y,
|
|
1994
1994
|
ccw_rotation: finalRotationDegrees,
|
|
1995
|
-
port_hints:
|
|
1995
|
+
port_hints: portHints,
|
|
1996
1996
|
is_covered_with_solder_mask: isCoveredWithSolderMask,
|
|
1997
1997
|
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
1998
1998
|
pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
|
|
@@ -2006,7 +2006,7 @@ var SmtPad = class extends PrimitiveComponent2 {
|
|
|
2006
2006
|
width: isRotated90Degrees ? props.height : props.width,
|
|
2007
2007
|
height: isRotated90Degrees ? props.width : props.height,
|
|
2008
2008
|
corner_radius: props.cornerRadius ?? void 0,
|
|
2009
|
-
port_hints:
|
|
2009
|
+
port_hints: portHints,
|
|
2010
2010
|
is_covered_with_solder_mask: isCoveredWithSolderMask,
|
|
2011
2011
|
x: position.x,
|
|
2012
2012
|
y: position.y,
|
|
@@ -2059,7 +2059,7 @@ var SmtPad = class extends PrimitiveComponent2 {
|
|
|
2059
2059
|
x: position.x,
|
|
2060
2060
|
y: position.y,
|
|
2061
2061
|
ccw_rotation: padRotation,
|
|
2062
|
-
port_hints:
|
|
2062
|
+
port_hints: portHints,
|
|
2063
2063
|
is_covered_with_solder_mask: isCoveredWithSolderMask,
|
|
2064
2064
|
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
2065
2065
|
pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
|
|
@@ -2096,7 +2096,7 @@ var SmtPad = class extends PrimitiveComponent2 {
|
|
|
2096
2096
|
layer: maybeFlipLayer(props.layer ?? "top"),
|
|
2097
2097
|
shape: "polygon",
|
|
2098
2098
|
points: transformedPoints,
|
|
2099
|
-
port_hints:
|
|
2099
|
+
port_hints: portHints,
|
|
2100
2100
|
is_covered_with_solder_mask: isCoveredWithSolderMask,
|
|
2101
2101
|
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
2102
2102
|
pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
|
|
@@ -2113,7 +2113,7 @@ var SmtPad = class extends PrimitiveComponent2 {
|
|
|
2113
2113
|
radius: props.radius,
|
|
2114
2114
|
height: props.height,
|
|
2115
2115
|
width: props.width,
|
|
2116
|
-
port_hints:
|
|
2116
|
+
port_hints: portHints,
|
|
2117
2117
|
is_covered_with_solder_mask: isCoveredWithSolderMask,
|
|
2118
2118
|
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
2119
2119
|
pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
|
|
@@ -17839,7 +17839,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
17839
17839
|
var package_default = {
|
|
17840
17840
|
name: "@tscircuit/core",
|
|
17841
17841
|
type: "module",
|
|
17842
|
-
version: "0.0.
|
|
17842
|
+
version: "0.0.863",
|
|
17843
17843
|
types: "dist/index.d.ts",
|
|
17844
17844
|
main: "dist/index.js",
|
|
17845
17845
|
module: "dist/index.js",
|