@tscircuit/core 0.0.1396 → 0.0.1397

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 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -20107,10 +20107,15 @@ function createSchematicTraceSolverInputProblem(group) {
20107
20107
  sourceNet.name || sourceNet.source_net_id || connKey
20108
20108
  );
20109
20109
  userNetIdToConnKey.set(userNetId, connKey);
20110
- const netLabelWidth = Number(
20110
+ const netLabelTextWidth = Number(
20111
20111
  getSchematicNetLabelTextWidth({ text: String(userNetId) }).toFixed(2)
20112
20112
  );
20113
- const netLabelHeight = sourceNet.is_ground || sourceNet.is_power ? SCHEMATIC_RAIL_NET_LABEL_HEIGHT : void 0;
20113
+ let netLabelWidth = netLabelTextWidth;
20114
+ let netLabelHeight;
20115
+ if (sourceNet.is_ground || sourceNet.is_power) {
20116
+ netLabelWidth = SCHEMATIC_RAIL_NET_LABEL_HEIGHT;
20117
+ netLabelHeight = netLabelTextWidth;
20118
+ }
20114
20119
  netConnections.push({
20115
20120
  netId: userNetId,
20116
20121
  pinIds: schematicPortIds.map(
@@ -25281,7 +25286,7 @@ import { identity as identity5 } from "transformation-matrix";
25281
25286
  var package_default = {
25282
25287
  name: "@tscircuit/core",
25283
25288
  type: "module",
25284
- version: "0.0.1395",
25289
+ version: "0.0.1396",
25285
25290
  types: "dist/index.d.ts",
25286
25291
  main: "dist/index.js",
25287
25292
  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.1396",
4
+ "version": "0.0.1397",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",