@tscircuit/core 0.0.84 → 0.0.85
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 +9 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1795,7 +1795,9 @@ var NormalComponent = class extends PrimitiveComponent {
|
|
|
1795
1795
|
existingPort.props.name = label;
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
|
-
|
|
1798
|
+
if (portsToCreate.length > 0) {
|
|
1799
|
+
this.addAll(portsToCreate);
|
|
1800
|
+
}
|
|
1799
1801
|
}
|
|
1800
1802
|
_addChildrenFromStringFootprint() {
|
|
1801
1803
|
const { footprint } = this.props;
|
|
@@ -1974,11 +1976,6 @@ var NormalComponent = class extends PrimitiveComponent {
|
|
|
1974
1976
|
if (!newPort) continue;
|
|
1975
1977
|
newPorts2.push(newPort);
|
|
1976
1978
|
}
|
|
1977
|
-
if (newPorts2.length === 0) {
|
|
1978
|
-
throw new Error(
|
|
1979
|
-
`No ports found in chip ${this} (define a schPortArrangement, a footprint or add portHints to elements of the footprint)`
|
|
1980
|
-
);
|
|
1981
|
-
}
|
|
1982
1979
|
return newPorts2;
|
|
1983
1980
|
}
|
|
1984
1981
|
const newPorts = [];
|
|
@@ -3028,7 +3025,12 @@ var getAllDimensionsForSchematicBox = (params) => {
|
|
|
3028
3025
|
};
|
|
3029
3026
|
}
|
|
3030
3027
|
if (!sidePinCounts) {
|
|
3031
|
-
|
|
3028
|
+
sidePinCounts = {
|
|
3029
|
+
leftSize: 0,
|
|
3030
|
+
rightSize: 0,
|
|
3031
|
+
topSize: 0,
|
|
3032
|
+
bottomSize: 0
|
|
3033
|
+
};
|
|
3032
3034
|
}
|
|
3033
3035
|
const orderedTruePorts = [];
|
|
3034
3036
|
let currentDistanceFromEdge = 0;
|