@tscircuit/core 0.0.713 → 0.0.714

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 +9 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -10487,11 +10487,17 @@ function createSchematicTraceSolverInputProblem(group) {
10487
10487
  );
10488
10488
  userNetIdToSck.set(userNetId, subcircuitConnectivityKey);
10489
10489
  sckToUserNetId.set(subcircuitConnectivityKey, userNetId);
10490
+ const fontSize = 0.18;
10491
+ const charWidth = 0.1 * (fontSize / 0.18);
10492
+ const netLabelWidth = Number(
10493
+ (String(userNetId).length * charWidth).toFixed(2)
10494
+ );
10490
10495
  netConnections.push({
10491
10496
  netId: userNetId,
10492
10497
  pinIds: schematicPortIds.map(
10493
10498
  (portId) => schematicPortIdToPinId.get(portId)
10494
- )
10499
+ ),
10500
+ netLabelWidth
10495
10501
  });
10496
10502
  }
10497
10503
  }
@@ -14700,7 +14706,7 @@ import { identity as identity6 } from "transformation-matrix";
14700
14706
  var package_default = {
14701
14707
  name: "@tscircuit/core",
14702
14708
  type: "module",
14703
- version: "0.0.712",
14709
+ version: "0.0.713",
14704
14710
  types: "dist/index.d.ts",
14705
14711
  main: "dist/index.js",
14706
14712
  module: "dist/index.js",
@@ -14742,7 +14748,7 @@ var package_default = {
14742
14748
  "@tscircuit/props": "0.0.311",
14743
14749
  "@tscircuit/schematic-autolayout": "^0.0.6",
14744
14750
  "@tscircuit/schematic-match-adapt": "^0.0.16",
14745
- "@tscircuit/schematic-trace-solver": "^0.0.35",
14751
+ "@tscircuit/schematic-trace-solver": "^0.0.36",
14746
14752
  "@tscircuit/simple-3d-svg": "^0.0.38",
14747
14753
  "@types/bun": "^1.2.16",
14748
14754
  "@types/debug": "^4.1.12",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.713",
4
+ "version": "0.0.714",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -43,7 +43,7 @@
43
43
  "@tscircuit/props": "0.0.311",
44
44
  "@tscircuit/schematic-autolayout": "^0.0.6",
45
45
  "@tscircuit/schematic-match-adapt": "^0.0.16",
46
- "@tscircuit/schematic-trace-solver": "^0.0.35",
46
+ "@tscircuit/schematic-trace-solver": "^0.0.36",
47
47
  "@tscircuit/simple-3d-svg": "^0.0.38",
48
48
  "@types/bun": "^1.2.16",
49
49
  "@types/debug": "^4.1.12",