@tscircuit/core 0.0.1398 → 0.0.1400

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 +11 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -16482,6 +16482,11 @@ var getSimpleRouteJsonFromCircuitJson = ({
16482
16482
  ...connectionsFromNets,
16483
16483
  ...connectionsFromBreakoutPoints
16484
16484
  ];
16485
+ const defaultTraceWidth = minTraceWidth ?? board?.min_trace_width ?? 0.1;
16486
+ for (const conn of allConns) {
16487
+ conn.nominalTraceWidth ??= defaultTraceWidth;
16488
+ conn.width ??= defaultTraceWidth;
16489
+ }
16485
16490
  if (subcircuit_id) {
16486
16491
  const pointIdToConn = /* @__PURE__ */ new Map();
16487
16492
  for (const conn of allConns) {
@@ -16525,7 +16530,10 @@ var getSimpleRouteJsonFromCircuitJson = ({
16525
16530
  connections: allConns,
16526
16531
  traces: preservedRoutedSubcircuitTraces.length > 0 ? preservedRoutedSubcircuitTraces : void 0,
16527
16532
  layerCount: board?.num_layers ?? 2,
16528
- minTraceWidth: minTraceWidth ?? board?.min_trace_width ?? 0.1,
16533
+ minTraceWidth: Math.min(
16534
+ defaultTraceWidth,
16535
+ ...allConns.map((c) => c.width)
16536
+ ),
16529
16537
  minViaDiameter: resolvedMinViaPadDiameter,
16530
16538
  minViaHoleDiameter: resolvedMinViaHoleDiameter,
16531
16539
  minViaPadDiameter: resolvedMinViaPadDiameter,
@@ -25292,7 +25300,7 @@ import { identity as identity5 } from "transformation-matrix";
25292
25300
  var package_default = {
25293
25301
  name: "@tscircuit/core",
25294
25302
  type: "module",
25295
- version: "0.0.1397",
25303
+ version: "0.0.1399",
25296
25304
  types: "dist/index.d.ts",
25297
25305
  main: "dist/index.js",
25298
25306
  module: "dist/index.js",
@@ -25376,7 +25384,7 @@ var package_default = {
25376
25384
  poppygl: "^0.0.24",
25377
25385
  react: "^19.1.0",
25378
25386
  "react-dom": "^19.1.0",
25379
- "schematic-symbols": "^0.0.226",
25387
+ "schematic-symbols": "^0.0.230",
25380
25388
  spicets: "^0.0.2",
25381
25389
  spicey: "^0.0.14",
25382
25390
  "stack-svgs": "^0.0.1",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1398",
4
+ "version": "0.0.1400",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -85,7 +85,7 @@
85
85
  "poppygl": "^0.0.24",
86
86
  "react": "^19.1.0",
87
87
  "react-dom": "^19.1.0",
88
- "schematic-symbols": "^0.0.226",
88
+ "schematic-symbols": "^0.0.230",
89
89
  "spicets": "^0.0.2",
90
90
  "spicey": "^0.0.14",
91
91
  "stack-svgs": "^0.0.1",