@tscircuit/core 0.0.968 → 0.0.969

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 +10 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -9766,6 +9766,7 @@ var TscircuitAutorouter = class {
9766
9766
  useAssignableSolver = false,
9767
9767
  useAutoJumperSolver = false,
9768
9768
  autorouterVersion: autorouterVersion2,
9769
+ effort,
9769
9770
  onSolverStarted
9770
9771
  } = options;
9771
9772
  let solverName;
@@ -9782,7 +9783,8 @@ var TscircuitAutorouter = class {
9782
9783
  this.solver = new SolverClass(input, {
9783
9784
  capacityDepth,
9784
9785
  targetMinCapacity,
9785
- cacheProvider: null
9786
+ cacheProvider: null,
9787
+ effort
9786
9788
  });
9787
9789
  onSolverStarted?.({
9788
9790
  solverName,
@@ -9791,7 +9793,8 @@ var TscircuitAutorouter = class {
9791
9793
  options: {
9792
9794
  capacityDepth,
9793
9795
  targetMinCapacity,
9794
- cacheProvider: null
9796
+ cacheProvider: null,
9797
+ effort
9795
9798
  }
9796
9799
  }
9797
9800
  });
@@ -14672,6 +14675,8 @@ var Group6 = class extends NormalComponent3 {
14672
14675
  autorouter = await autorouterConfig.algorithmFn(simpleRouteJson);
14673
14676
  } else {
14674
14677
  const autorouterVersion2 = this.props.autorouterVersion;
14678
+ const effortLevel = this.props.autorouterEffortLevel;
14679
+ const effort = effortLevel ? Number.parseInt(effortLevel.replace("x", ""), 10) : void 0;
14675
14680
  autorouter = new TscircuitAutorouter(simpleRouteJson, {
14676
14681
  // Optional configuration parameters
14677
14682
  capacityDepth: this.props.autorouter?.capacityDepth,
@@ -14679,6 +14684,7 @@ var Group6 = class extends NormalComponent3 {
14679
14684
  useAssignableSolver: isLaserPrefabPreset || isSingleLayerBoard,
14680
14685
  useAutoJumperSolver: isAutoJumperPreset,
14681
14686
  autorouterVersion: autorouterVersion2,
14687
+ effort,
14682
14688
  onSolverStarted: ({ solverName, solverParams }) => this.root?.emit("solver:started", {
14683
14689
  type: "solver:started",
14684
14690
  solverName,
@@ -20799,7 +20805,7 @@ import { identity as identity5 } from "transformation-matrix";
20799
20805
  var package_default = {
20800
20806
  name: "@tscircuit/core",
20801
20807
  type: "module",
20802
- version: "0.0.967",
20808
+ version: "0.0.968",
20803
20809
  types: "dist/index.d.ts",
20804
20810
  main: "dist/index.js",
20805
20811
  module: "dist/index.js",
@@ -20830,7 +20836,7 @@ var package_default = {
20830
20836
  devDependencies: {
20831
20837
  "@biomejs/biome": "^1.8.3",
20832
20838
  "@resvg/resvg-js": "^2.6.2",
20833
- "@tscircuit/capacity-autorouter": "^0.0.252",
20839
+ "@tscircuit/capacity-autorouter": "^0.0.258",
20834
20840
  "@tscircuit/checks": "^0.0.87",
20835
20841
  "@tscircuit/circuit-json-util": "^0.0.75",
20836
20842
  "@tscircuit/common": "^0.0.20",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.968",
4
+ "version": "0.0.969",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -32,7 +32,7 @@
32
32
  "devDependencies": {
33
33
  "@biomejs/biome": "^1.8.3",
34
34
  "@resvg/resvg-js": "^2.6.2",
35
- "@tscircuit/capacity-autorouter": "^0.0.252",
35
+ "@tscircuit/capacity-autorouter": "^0.0.258",
36
36
  "@tscircuit/checks": "^0.0.87",
37
37
  "@tscircuit/circuit-json-util": "^0.0.75",
38
38
  "@tscircuit/common": "^0.0.20",