@tscircuit/core 0.0.317 → 0.0.318
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 +13 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5683,6 +5683,19 @@ var Chip = class extends NormalComponent {
|
|
|
5683
5683
|
);
|
|
5684
5684
|
}
|
|
5685
5685
|
}
|
|
5686
|
+
if (props.connections) {
|
|
5687
|
+
for (const [pinName, target] of Object.entries(props.connections)) {
|
|
5688
|
+
const targets = Array.isArray(target) ? target : [target];
|
|
5689
|
+
for (const targetPath of targets) {
|
|
5690
|
+
this.add(
|
|
5691
|
+
new Trace2({
|
|
5692
|
+
from: `${this.getSubcircuitSelector()} > port.${pinName}`,
|
|
5693
|
+
to: targetPath
|
|
5694
|
+
})
|
|
5695
|
+
);
|
|
5696
|
+
}
|
|
5697
|
+
}
|
|
5698
|
+
}
|
|
5686
5699
|
}
|
|
5687
5700
|
};
|
|
5688
5701
|
|