@tscircuit/schematic-trace-solver 0.0.83 → 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.
- package/dist/index.js +2 -1
- package/lib/solvers/Example28Solver/Example28Solver.ts +8 -3
- package/lib/solvers/NetLabelTraceCollisionSolver/NetLabelTraceCollisionSolver.ts +1 -0
- package/package.json +1 -1
- package/tests/bug-reports/bug-report-20260706T220324Z/__snapshots__/bug-report-20260706T220324Z.snap.svg +3449 -0
- package/tests/bug-reports/bug-report-20260706T220324Z/bug-report-20260706T220324Z.json +1799 -0
- package/tests/bug-reports/bug-report-20260706T220324Z/bug-report-20260706T220324Z.test.ts +12 -0
- package/tests/examples/__snapshots__/example49.snap.svg +1 -1
- package/tests/repros/__snapshots__/repro51-overlap-junction-crossing.snap.svg +1 -1
- package/tests/repros/repro51-overlap-junction-crossing.test.ts +1 -7
package/dist/index.js
CHANGED
|
@@ -8219,7 +8219,8 @@ var NetLabelTraceCollisionSolver = class extends BaseSolver {
|
|
|
8219
8219
|
label: mergedLabel,
|
|
8220
8220
|
problem: this.inputProblem,
|
|
8221
8221
|
paddingBuffer: PADDING_BUFFER,
|
|
8222
|
-
detourCount
|
|
8222
|
+
detourCount,
|
|
8223
|
+
tracesToAvoidOverlapping: this.outputTraces
|
|
8223
8224
|
});
|
|
8224
8225
|
}
|
|
8225
8226
|
/**
|
|
@@ -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
|
|