@tscircuit/core 0.0.1372 → 0.0.1374
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 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -20573,9 +20573,15 @@ var insertNetLabelsForPortsMissingTrace = ({
|
|
|
20573
20573
|
if (!sourcePortId) return false;
|
|
20574
20574
|
return db.source_port.get(sourcePortId)?.subcircuit_connectivity_map_key === connKey;
|
|
20575
20575
|
});
|
|
20576
|
+
const connectedPortsForKey = group.selectAll("port").filter((port) => port._getSubcircuitConnectivityKey() === connKey);
|
|
20577
|
+
const { name: resolvedPortNetLabelText, wasAssignedDisplayLabel } = getNetNameFromPorts(connectedPortsForKey);
|
|
20578
|
+
let assignedPortNetLabelText;
|
|
20579
|
+
if (wasAssignedDisplayLabel) {
|
|
20580
|
+
assignedPortNetLabelText = resolvedPortNetLabelText;
|
|
20581
|
+
}
|
|
20576
20582
|
const implicitPortLabelText = connectedSourcePortIdsForKey.map((sourcePortId) => getSourcePortNetLabelText(db, sourcePortId)).filter((label) => Boolean(label)).join("/");
|
|
20577
20583
|
const directCrossSubcircuitConnectionLabelText = getDirectCrossSubcircuitConnectionLabelText(db, srcPortId);
|
|
20578
|
-
const text = sourceNet?.name || sourceNet?.source_net_id || directCrossSubcircuitConnectionLabelText || implicitPortLabelText || connKey;
|
|
20584
|
+
const text = sourceNet?.name || sourceNet?.source_net_id || assignedPortNetLabelText || directCrossSubcircuitConnectionLabelText || implicitPortLabelText || connKey;
|
|
20579
20585
|
const connectedPortCountForKey = Array.from(
|
|
20580
20586
|
allSourceAndSchematicPortIdsInScope
|
|
20581
20587
|
).filter((portId) => {
|
|
@@ -24681,7 +24687,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
24681
24687
|
var package_default = {
|
|
24682
24688
|
name: "@tscircuit/core",
|
|
24683
24689
|
type: "module",
|
|
24684
|
-
version: "0.0.
|
|
24690
|
+
version: "0.0.1373",
|
|
24685
24691
|
types: "dist/index.d.ts",
|
|
24686
24692
|
main: "dist/index.js",
|
|
24687
24693
|
module: "dist/index.js",
|
|
@@ -24716,7 +24722,7 @@ var package_default = {
|
|
|
24716
24722
|
"@tscircuit/breakout-point-solver": "github:tscircuit/breakout-point-solver#bac9629",
|
|
24717
24723
|
"@tscircuit/capacity-autorouter": "^0.0.583",
|
|
24718
24724
|
"@tscircuit/checks": "0.0.140",
|
|
24719
|
-
"@tscircuit/circuit-json-util": "^0.0.
|
|
24725
|
+
"@tscircuit/circuit-json-util": "^0.0.97",
|
|
24720
24726
|
"@tscircuit/common": "^0.0.20",
|
|
24721
24727
|
"@tscircuit/copper-pour-solver": "0.0.35",
|
|
24722
24728
|
"@tscircuit/footprinter": "^0.0.357",
|
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.1374",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@tscircuit/breakout-point-solver": "github:tscircuit/breakout-point-solver#bac9629",
|
|
37
37
|
"@tscircuit/capacity-autorouter": "^0.0.583",
|
|
38
38
|
"@tscircuit/checks": "0.0.140",
|
|
39
|
-
"@tscircuit/circuit-json-util": "^0.0.
|
|
39
|
+
"@tscircuit/circuit-json-util": "^0.0.97",
|
|
40
40
|
"@tscircuit/common": "^0.0.20",
|
|
41
41
|
"@tscircuit/copper-pour-solver": "0.0.35",
|
|
42
42
|
"@tscircuit/footprinter": "^0.0.357",
|