@tscircuit/core 0.0.1881 → 0.0.1882
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.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +23 -11
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { z, ZodType } from 'zod';
|
|
|
11
11
|
import { symbols, SchSymbol, BaseSymbolName } from 'schematic-symbols';
|
|
12
12
|
import { CircuitJsonUtilObjects } from '@tscircuit/circuit-json-util';
|
|
13
13
|
import { Matrix } from 'transformation-matrix';
|
|
14
|
-
import { AutoroutingPipelineSolver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3, AutoroutingPipeline1_OriginalUnravel, AutoroutingPipelineSolver3_HgPortPointPathing, AutoroutingPipelineSolver4, AutoroutingPipelineSolver5, AutoroutingPipelineSolver8, AutoroutingPipelineSolver9_PreloadedTraceGraph, AutoroutingPipelineSolver11_Simplification, SimplifiedPcbTrace as SimplifiedPcbTrace$1, SimpleRouteJson as SimpleRouteJson$1 } from '@tscircuit/capacity-autorouter';
|
|
14
|
+
import { AutoroutingPipelineSolver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3, AutoroutingPipeline1_OriginalUnravel, AutoroutingPipelineSolver3_HgPortPointPathing, AutoroutingPipelineSolver4, AutoroutingPipelineSolver5, AutoroutingPipelineSolver8, AutoroutingPipelineSolver9_PreloadedTraceGraph, AutoroutingPipelineSolver9_Networked, AutoroutingPipelineSolver11_Simplification, SimplifiedPcbTrace as SimplifiedPcbTrace$1, SimpleRouteJson as SimpleRouteJson$1 } from '@tscircuit/capacity-autorouter';
|
|
15
15
|
import { CopperPourPipelineSolver } from '@tscircuit/copper-pour-solver';
|
|
16
16
|
import { CreateFdmEnclosureSolver, EnclosureApertureInput } from '@tscircuit/create-fdm-enclosure';
|
|
17
17
|
import { FanoutSolver } from '@tscircuit/fanout-solver';
|
|
@@ -37,6 +37,7 @@ declare const SOLVERS: {
|
|
|
37
37
|
AutoroutingPipelineSolver7_MultiGraph: typeof AutoroutingPipelineSolver;
|
|
38
38
|
AutoroutingPipelineSolver8: typeof AutoroutingPipelineSolver8;
|
|
39
39
|
AutoroutingPipelineSolver9_PreloadedTraceGraph: typeof AutoroutingPipelineSolver9_PreloadedTraceGraph;
|
|
40
|
+
AutoroutingPipelineSolver9_Networked: typeof AutoroutingPipelineSolver9_Networked;
|
|
40
41
|
AutoroutingPipelineSolver11_Simplification: typeof AutoroutingPipelineSolver11_Simplification;
|
|
41
42
|
CopperPourPipelineSolver: typeof CopperPourPipelineSolver;
|
|
42
43
|
CreateFdmEnclosureSolver: typeof CreateFdmEnclosureSolver;
|
package/dist/index.js
CHANGED
|
@@ -39142,7 +39142,9 @@ function getPresetAutoroutingConfig(autorouterConfig, platformConfig) {
|
|
|
39142
39142
|
}
|
|
39143
39143
|
|
|
39144
39144
|
// lib/utils/autorouting/CapacityMeshAutorouter.ts
|
|
39145
|
-
import
|
|
39145
|
+
import {
|
|
39146
|
+
AutoroutingPipelineSolver9_Networked as AutoroutingPipelineSolver9_Networked2
|
|
39147
|
+
} from "@tscircuit/capacity-autorouter";
|
|
39146
39148
|
|
|
39147
39149
|
// lib/solvers.ts
|
|
39148
39150
|
import {
|
|
@@ -39156,6 +39158,7 @@ import {
|
|
|
39156
39158
|
AutoroutingPipelineSolver7_MultiGraph,
|
|
39157
39159
|
AutoroutingPipelineSolver8,
|
|
39158
39160
|
AutoroutingPipelineSolver9_PreloadedTraceGraph,
|
|
39161
|
+
AutoroutingPipelineSolver9_Networked,
|
|
39159
39162
|
AutoroutingPipelineSolver11_Simplification
|
|
39160
39163
|
} from "@tscircuit/capacity-autorouter";
|
|
39161
39164
|
import { CopperPourPipelineSolver } from "@tscircuit/copper-pour-solver";
|
|
@@ -41503,6 +41506,7 @@ var SOLVERS = {
|
|
|
41503
41506
|
AutoroutingPipelineSolver7_MultiGraph,
|
|
41504
41507
|
AutoroutingPipelineSolver8,
|
|
41505
41508
|
AutoroutingPipelineSolver9_PreloadedTraceGraph,
|
|
41509
|
+
AutoroutingPipelineSolver9_Networked,
|
|
41506
41510
|
AutoroutingPipelineSolver11_Simplification,
|
|
41507
41511
|
CopperPourPipelineSolver,
|
|
41508
41512
|
CreateFdmEnclosureSolver,
|
|
@@ -41663,8 +41667,11 @@ var getAutorouterSolverName = ({
|
|
|
41663
41667
|
useAutoJumperSolver = false,
|
|
41664
41668
|
autorouterVersion: autorouterVersion2,
|
|
41665
41669
|
useLaserPrefabSolver = false,
|
|
41666
|
-
useTraceSimplificationSolver = false
|
|
41670
|
+
useTraceSimplificationSolver = false,
|
|
41671
|
+
platformConfig,
|
|
41672
|
+
effort
|
|
41667
41673
|
}) => {
|
|
41674
|
+
const pipeline9SolverName = platformConfig?.useCloudAutorouter && (effort === void 0 || effort === 1) ? "AutoroutingPipelineSolver9_Networked" : "AutoroutingPipelineSolver9_PreloadedTraceGraph";
|
|
41668
41675
|
if (useTraceSimplificationSolver) {
|
|
41669
41676
|
return "AutoroutingPipelineSolver11_Simplification";
|
|
41670
41677
|
}
|
|
@@ -41684,12 +41691,12 @@ var getAutorouterSolverName = ({
|
|
|
41684
41691
|
return "AutoroutingPipelineSolver7_MultiGraph";
|
|
41685
41692
|
}
|
|
41686
41693
|
if (autorouterVersion2 === "beta_pipeline9" || autorouterVersion2 === "latest") {
|
|
41687
|
-
return
|
|
41694
|
+
return pipeline9SolverName;
|
|
41688
41695
|
}
|
|
41689
41696
|
if (useLaserPrefabSolver) return "AutoroutingPipelineSolver8";
|
|
41690
41697
|
if (useAutoJumperSolver) return "AssignableAutoroutingPipeline3";
|
|
41691
41698
|
if (useAssignableSolver) return "AssignableAutoroutingPipeline2";
|
|
41692
|
-
return
|
|
41699
|
+
return pipeline9SolverName;
|
|
41693
41700
|
};
|
|
41694
41701
|
function getCapacityAutorouterCacheProvider(platformConfig) {
|
|
41695
41702
|
if (!platformConfig?.localCacheEngine) return null;
|
|
@@ -41727,16 +41734,21 @@ var TscircuitAutorouter = class {
|
|
|
41727
41734
|
useAutoJumperSolver,
|
|
41728
41735
|
autorouterVersion: autorouterVersion2,
|
|
41729
41736
|
useLaserPrefabSolver,
|
|
41730
|
-
useTraceSimplificationSolver
|
|
41737
|
+
useTraceSimplificationSolver,
|
|
41738
|
+
platformConfig,
|
|
41739
|
+
effort
|
|
41731
41740
|
});
|
|
41732
|
-
const SolverClass = SOLVERS[solverName];
|
|
41733
41741
|
const solverCacheProvider = getCapacityAutorouterCacheProvider(platformConfig);
|
|
41734
|
-
|
|
41742
|
+
const solverOptions = {
|
|
41735
41743
|
capacityDepth,
|
|
41736
41744
|
targetMinCapacity,
|
|
41737
41745
|
cacheProvider: solverCacheProvider,
|
|
41738
41746
|
effort
|
|
41739
|
-
}
|
|
41747
|
+
};
|
|
41748
|
+
this.solver = solverName === "AutoroutingPipelineSolver9_Networked" ? new AutoroutingPipelineSolver9_Networked2(input, {
|
|
41749
|
+
...solverOptions,
|
|
41750
|
+
effort: 1
|
|
41751
|
+
}) : new SOLVERS[solverName](input, solverOptions);
|
|
41740
41752
|
onSolverStarted?.({
|
|
41741
41753
|
solverName,
|
|
41742
41754
|
solverParams: {
|
|
@@ -51616,7 +51628,7 @@ function Group_getRoutingPhasePlans(group) {
|
|
|
51616
51628
|
var package_default = {
|
|
51617
51629
|
name: "@tscircuit/core",
|
|
51618
51630
|
type: "module",
|
|
51619
|
-
version: "0.0.
|
|
51631
|
+
version: "0.0.1881",
|
|
51620
51632
|
types: "dist/index.d.ts",
|
|
51621
51633
|
main: "dist/index.js",
|
|
51622
51634
|
module: "dist/index.js",
|
|
@@ -51669,7 +51681,7 @@ var package_default = {
|
|
|
51669
51681
|
"@tscircuit/math-utils": "^0.0.36",
|
|
51670
51682
|
"@tscircuit/miniflex": "^0.0.4",
|
|
51671
51683
|
"@tscircuit/ngspice-spice-engine": "^0.0.20",
|
|
51672
|
-
"@tscircuit/props": "^0.0.
|
|
51684
|
+
"@tscircuit/props": "^0.0.647",
|
|
51673
51685
|
"@tscircuit/schematic-match-adapt": "^0.0.18",
|
|
51674
51686
|
"@tscircuit/schematic-trace-solver": "^0.0.189",
|
|
51675
51687
|
"@tscircuit/solver-utils": "^0.0.16",
|
|
@@ -51748,7 +51760,7 @@ var package_default = {
|
|
|
51748
51760
|
},
|
|
51749
51761
|
overrides: {
|
|
51750
51762
|
"@tscircuit/circuit-json-util": "^0.0.113",
|
|
51751
|
-
"@tscircuit/props": "^0.0.
|
|
51763
|
+
"@tscircuit/props": "^0.0.647",
|
|
51752
51764
|
"circuit-json": "^0.0.484"
|
|
51753
51765
|
}
|
|
51754
51766
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.1882",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@tscircuit/math-utils": "^0.0.36",
|
|
55
55
|
"@tscircuit/miniflex": "^0.0.4",
|
|
56
56
|
"@tscircuit/ngspice-spice-engine": "^0.0.20",
|
|
57
|
-
"@tscircuit/props": "^0.0.
|
|
57
|
+
"@tscircuit/props": "^0.0.647",
|
|
58
58
|
"@tscircuit/schematic-match-adapt": "^0.0.18",
|
|
59
59
|
"@tscircuit/schematic-trace-solver": "^0.0.189",
|
|
60
60
|
"@tscircuit/solver-utils": "^0.0.16",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
},
|
|
134
134
|
"overrides": {
|
|
135
135
|
"@tscircuit/circuit-json-util": "^0.0.113",
|
|
136
|
-
"@tscircuit/props": "^0.0.
|
|
136
|
+
"@tscircuit/props": "^0.0.647",
|
|
137
137
|
"circuit-json": "^0.0.484"
|
|
138
138
|
}
|
|
139
139
|
}
|