@tscircuit/core 0.0.965 → 0.0.967
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 +5 -1
- package/dist/index.js +11 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { symbols, SchSymbol, BaseSymbolName } from 'schematic-symbols';
|
|
|
11
11
|
import { Matrix } from 'transformation-matrix';
|
|
12
12
|
import { CircuitJsonUtilObjects } from '@tscircuit/circuit-json-util';
|
|
13
13
|
import { PackSolver2 } from 'calculate-packing';
|
|
14
|
-
import { AutoroutingPipelineSolver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3 } from '@tscircuit/capacity-autorouter';
|
|
14
|
+
import { AutoroutingPipelineSolver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3, AutoroutingPipeline1_OriginalUnravel } from '@tscircuit/capacity-autorouter';
|
|
15
15
|
import { CopperPourPipelineSolver } from '@tscircuit/copper-pour-solver';
|
|
16
16
|
import { ConnectivityMap } from 'circuit-json-to-connectivity-map';
|
|
17
17
|
import { GraphicsObject } from 'graphics-debug';
|
|
@@ -129,6 +129,7 @@ declare const SOLVERS: {
|
|
|
129
129
|
AutoroutingPipelineSolver: typeof AutoroutingPipelineSolver;
|
|
130
130
|
AssignableAutoroutingPipeline2: typeof AssignableAutoroutingPipeline2;
|
|
131
131
|
AssignableAutoroutingPipeline3: typeof AssignableAutoroutingPipeline3;
|
|
132
|
+
AutoroutingPipeline1_OriginalUnravel: typeof AutoroutingPipeline1_OriginalUnravel;
|
|
132
133
|
CopperPourPipelineSolver: typeof CopperPourPipelineSolver;
|
|
133
134
|
};
|
|
134
135
|
type SolverName = keyof typeof SOLVERS;
|
|
@@ -2206,6 +2207,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
|
|
|
2206
2207
|
pcbRouteCache: zod.ZodOptional<zod.ZodType<_tscircuit_props.PcbRouteCache, zod.ZodTypeDef, _tscircuit_props.PcbRouteCache>>;
|
|
2207
2208
|
autorouter: zod.ZodOptional<zod.ZodType<_tscircuit_props.AutorouterProp, zod.ZodTypeDef, _tscircuit_props.AutorouterProp>>;
|
|
2208
2209
|
autorouterEffortLevel: zod.ZodOptional<zod.ZodEnum<["1x", "2x", "5x", "10x", "100x"]>>;
|
|
2210
|
+
autorouterVersion: zod.ZodOptional<zod.ZodEnum<["v1", "v2", "latest"]>>;
|
|
2209
2211
|
square: zod.ZodOptional<zod.ZodBoolean>;
|
|
2210
2212
|
emptyArea: zod.ZodOptional<zod.ZodString>;
|
|
2211
2213
|
filledArea: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2545,6 +2547,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
|
|
|
2545
2547
|
pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
|
|
2546
2548
|
autorouter?: _tscircuit_props.AutorouterProp | undefined;
|
|
2547
2549
|
autorouterEffortLevel?: "2x" | "1x" | "5x" | "10x" | "100x" | undefined;
|
|
2550
|
+
autorouterVersion?: "v1" | "v2" | "latest" | undefined;
|
|
2548
2551
|
square?: boolean | undefined;
|
|
2549
2552
|
emptyArea?: string | undefined;
|
|
2550
2553
|
filledArea?: string | undefined;
|
|
@@ -2867,6 +2870,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
|
|
|
2867
2870
|
pcbRouteCache?: _tscircuit_props.PcbRouteCache | undefined;
|
|
2868
2871
|
autorouter?: _tscircuit_props.AutorouterProp | undefined;
|
|
2869
2872
|
autorouterEffortLevel?: "2x" | "1x" | "5x" | "10x" | "100x" | undefined;
|
|
2873
|
+
autorouterVersion?: "v1" | "v2" | "latest" | undefined;
|
|
2870
2874
|
square?: boolean | undefined;
|
|
2871
2875
|
emptyArea?: string | undefined;
|
|
2872
2876
|
filledArea?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -9731,6 +9731,7 @@ import { PackSolver2 } from "calculate-packing";
|
|
|
9731
9731
|
import {
|
|
9732
9732
|
AutoroutingPipelineSolver,
|
|
9733
9733
|
AssignableAutoroutingPipeline2,
|
|
9734
|
+
AutoroutingPipeline1_OriginalUnravel,
|
|
9734
9735
|
AssignableAutoroutingPipeline3
|
|
9735
9736
|
} from "@tscircuit/capacity-autorouter";
|
|
9736
9737
|
import { CopperPourPipelineSolver } from "@tscircuit/copper-pour-solver";
|
|
@@ -9739,6 +9740,7 @@ var SOLVERS = {
|
|
|
9739
9740
|
AutoroutingPipelineSolver,
|
|
9740
9741
|
AssignableAutoroutingPipeline2,
|
|
9741
9742
|
AssignableAutoroutingPipeline3,
|
|
9743
|
+
AutoroutingPipeline1_OriginalUnravel,
|
|
9742
9744
|
CopperPourPipelineSolver
|
|
9743
9745
|
};
|
|
9744
9746
|
|
|
@@ -9763,10 +9765,13 @@ var TscircuitAutorouter = class {
|
|
|
9763
9765
|
stepDelay = 0,
|
|
9764
9766
|
useAssignableSolver = false,
|
|
9765
9767
|
useAutoJumperSolver = false,
|
|
9768
|
+
autorouterVersion: autorouterVersion2,
|
|
9766
9769
|
onSolverStarted
|
|
9767
9770
|
} = options;
|
|
9768
9771
|
let solverName;
|
|
9769
|
-
if (
|
|
9772
|
+
if (autorouterVersion2 === "v1") {
|
|
9773
|
+
solverName = "AutoroutingPipeline1_OriginalUnravel";
|
|
9774
|
+
} else if (useAutoJumperSolver) {
|
|
9770
9775
|
solverName = "AssignableAutoroutingPipeline3";
|
|
9771
9776
|
} else if (useAssignableSolver) {
|
|
9772
9777
|
solverName = "AssignableAutoroutingPipeline2";
|
|
@@ -14666,12 +14671,14 @@ var Group6 = class extends NormalComponent3 {
|
|
|
14666
14671
|
if (autorouterConfig.algorithmFn) {
|
|
14667
14672
|
autorouter = await autorouterConfig.algorithmFn(simpleRouteJson);
|
|
14668
14673
|
} else {
|
|
14674
|
+
const autorouterVersion2 = this.props.autorouterVersion;
|
|
14669
14675
|
autorouter = new TscircuitAutorouter(simpleRouteJson, {
|
|
14670
14676
|
// Optional configuration parameters
|
|
14671
14677
|
capacityDepth: this.props.autorouter?.capacityDepth,
|
|
14672
14678
|
targetMinCapacity: this.props.autorouter?.targetMinCapacity,
|
|
14673
14679
|
useAssignableSolver: isLaserPrefabPreset || isSingleLayerBoard,
|
|
14674
14680
|
useAutoJumperSolver: isAutoJumperPreset,
|
|
14681
|
+
autorouterVersion: autorouterVersion2,
|
|
14675
14682
|
onSolverStarted: ({ solverName, solverParams }) => this.root?.emit("solver:started", {
|
|
14676
14683
|
type: "solver:started",
|
|
14677
14684
|
solverName,
|
|
@@ -20792,7 +20799,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
20792
20799
|
var package_default = {
|
|
20793
20800
|
name: "@tscircuit/core",
|
|
20794
20801
|
type: "module",
|
|
20795
|
-
version: "0.0.
|
|
20802
|
+
version: "0.0.966",
|
|
20796
20803
|
types: "dist/index.d.ts",
|
|
20797
20804
|
main: "dist/index.js",
|
|
20798
20805
|
module: "dist/index.js",
|
|
@@ -20823,7 +20830,7 @@ var package_default = {
|
|
|
20823
20830
|
devDependencies: {
|
|
20824
20831
|
"@biomejs/biome": "^1.8.3",
|
|
20825
20832
|
"@resvg/resvg-js": "^2.6.2",
|
|
20826
|
-
"@tscircuit/capacity-autorouter": "^0.0.
|
|
20833
|
+
"@tscircuit/capacity-autorouter": "^0.0.252",
|
|
20827
20834
|
"@tscircuit/checks": "^0.0.87",
|
|
20828
20835
|
"@tscircuit/circuit-json-util": "^0.0.73",
|
|
20829
20836
|
"@tscircuit/common": "^0.0.20",
|
|
@@ -20835,7 +20842,7 @@ var package_default = {
|
|
|
20835
20842
|
"@tscircuit/math-utils": "^0.0.29",
|
|
20836
20843
|
"@tscircuit/miniflex": "^0.0.4",
|
|
20837
20844
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
20838
|
-
"@tscircuit/props": "^0.0.
|
|
20845
|
+
"@tscircuit/props": "^0.0.442",
|
|
20839
20846
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
20840
20847
|
"@tscircuit/schematic-trace-solver": "^v0.0.45",
|
|
20841
20848
|
"@tscircuit/solver-utils": "^0.0.3",
|
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.967",
|
|
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.
|
|
35
|
+
"@tscircuit/capacity-autorouter": "^0.0.252",
|
|
36
36
|
"@tscircuit/checks": "^0.0.87",
|
|
37
37
|
"@tscircuit/circuit-json-util": "^0.0.73",
|
|
38
38
|
"@tscircuit/common": "^0.0.20",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@tscircuit/math-utils": "^0.0.29",
|
|
45
45
|
"@tscircuit/miniflex": "^0.0.4",
|
|
46
46
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
47
|
-
"@tscircuit/props": "^0.0.
|
|
47
|
+
"@tscircuit/props": "^0.0.442",
|
|
48
48
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
49
49
|
"@tscircuit/schematic-trace-solver": "^v0.0.45",
|
|
50
50
|
"@tscircuit/solver-utils": "^0.0.3",
|