@tscircuit/schematic-trace-solver 0.0.84 → 0.0.85
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.
|
@@ -11,7 +11,12 @@ import {
|
|
|
11
11
|
detectTraceLabelOverlap,
|
|
12
12
|
type TraceLabelOverlap,
|
|
13
13
|
} from "lib/solvers/TraceLabelOverlapAvoidanceSolver/detectTraceLabelOverlap"
|
|
14
|
-
import type {
|
|
14
|
+
import type {
|
|
15
|
+
ChipId,
|
|
16
|
+
InputPin,
|
|
17
|
+
InputProblem,
|
|
18
|
+
PinId,
|
|
19
|
+
} from "lib/types/InputProblem"
|
|
15
20
|
import { dir } from "lib/utils/dir"
|
|
16
21
|
import { moveAttachedLabelsToReroutedTrace } from "./labelMovement"
|
|
17
22
|
import { findBestReroutePath } from "./reroute"
|
|
@@ -34,7 +39,7 @@ export class Example28Solver extends BaseSolver {
|
|
|
34
39
|
currentCandidateResults: RerouteCandidateResult[] = []
|
|
35
40
|
|
|
36
41
|
private chipObstacles: ReturnType<typeof getObstacleRects>
|
|
37
|
-
private pinMap: Record<
|
|
42
|
+
private pinMap: Record<PinId, InputPin & { chipId: ChipId }>
|
|
38
43
|
|
|
39
44
|
constructor(params: Example28SolverParams) {
|
|
40
45
|
super()
|
|
@@ -277,7 +282,7 @@ const createPortOnlyLabelConnectorTrace = ({
|
|
|
277
282
|
}: {
|
|
278
283
|
label: NetLabelPlacement
|
|
279
284
|
movedLabel: NetLabelPlacement
|
|
280
|
-
pinMap: Record<
|
|
285
|
+
pinMap: Record<PinId, InputPin & { chipId: ChipId }>
|
|
281
286
|
}): SolvedTracePath => {
|
|
282
287
|
const mspPairId = getPortOnlyLabelConnectorMspPairId(label)
|
|
283
288
|
|