@tscircuit/schematic-trace-solver 0.0.13 → 0.0.14
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
CHANGED
|
@@ -180,6 +180,8 @@ declare class SchematicTraceSingleLineSolver extends BaseSolver {
|
|
|
180
180
|
|
|
181
181
|
interface SolvedTracePath extends MspConnectionPair {
|
|
182
182
|
tracePath: Point[];
|
|
183
|
+
mspConnectionPairIds: MspConnectionPairId[];
|
|
184
|
+
pinIds: PinId[];
|
|
183
185
|
}
|
|
184
186
|
declare class SchematicTraceLinesSolver extends BaseSolver {
|
|
185
187
|
inputProblem: InputProblem;
|
package/dist/index.js
CHANGED
|
@@ -6853,7 +6853,12 @@ var SchematicTraceLinesSolver = class extends BaseSolver {
|
|
|
6853
6853
|
if (this.activeSubSolver?.solved) {
|
|
6854
6854
|
this.solvedTracePaths.push({
|
|
6855
6855
|
...this.currentConnectionPair,
|
|
6856
|
-
tracePath: this.activeSubSolver.solvedTracePath
|
|
6856
|
+
tracePath: this.activeSubSolver.solvedTracePath,
|
|
6857
|
+
mspConnectionPairIds: [this.currentConnectionPair.mspPairId],
|
|
6858
|
+
pinIds: [
|
|
6859
|
+
this.currentConnectionPair.pins[0].pinId,
|
|
6860
|
+
this.currentConnectionPair.pins[1].pinId
|
|
6861
|
+
]
|
|
6857
6862
|
});
|
|
6858
6863
|
this.activeSubSolver = null;
|
|
6859
6864
|
this.currentConnectionPair = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseSolver } from "lib/solvers/BaseSolver/BaseSolver"
|
|
2
2
|
import { visualizeInputProblem } from "../SchematicTracePipelineSolver/visualizeInputProblem"
|
|
3
3
|
import { getBounds, type GraphicsObject } from "graphics-debug"
|
|
4
|
-
import type { InputChip, InputProblem } from "lib/types/InputProblem"
|
|
4
|
+
import type { InputChip, InputProblem, PinId } from "lib/types/InputProblem"
|
|
5
5
|
import type {
|
|
6
6
|
MspConnectionPair,
|
|
7
7
|
MspConnectionPairId,
|
|
@@ -14,6 +14,8 @@ import type { Point } from "@tscircuit/math-utils"
|
|
|
14
14
|
|
|
15
15
|
export interface SolvedTracePath extends MspConnectionPair {
|
|
16
16
|
tracePath: Point[]
|
|
17
|
+
mspConnectionPairIds: MspConnectionPairId[]
|
|
18
|
+
pinIds: PinId[]
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export class SchematicTraceLinesSolver extends BaseSolver {
|
|
@@ -71,6 +73,11 @@ export class SchematicTraceLinesSolver extends BaseSolver {
|
|
|
71
73
|
this.solvedTracePaths.push({
|
|
72
74
|
...this.currentConnectionPair!,
|
|
73
75
|
tracePath: this.activeSubSolver!.solvedTracePath!,
|
|
76
|
+
mspConnectionPairIds: [this.currentConnectionPair!.mspPairId],
|
|
77
|
+
pinIds: [
|
|
78
|
+
this.currentConnectionPair!.pins[0].pinId,
|
|
79
|
+
this.currentConnectionPair!.pins[1].pinId,
|
|
80
|
+
],
|
|
74
81
|
})
|
|
75
82
|
this.activeSubSolver = null
|
|
76
83
|
this.currentConnectionPair = null
|