@tscircuit/core 0.0.1372 → 0.0.1373

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -2
  2. package/package.json +1 -1
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.1371",
24690
+ version: "0.0.1372",
24685
24691
  types: "dist/index.d.ts",
24686
24692
  main: "dist/index.js",
24687
24693
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1372",
4
+ "version": "0.0.1373",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",