@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 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 { InputPin, InputProblem } from "lib/types/InputProblem"
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<string, InputPin & { chipId: string }>
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<string, InputPin & { chipId: string }>
285
+ pinMap: Record<PinId, InputPin & { chipId: ChipId }>
281
286
  }): SolvedTracePath => {
282
287
  const mspPairId = getPortOnlyLabelConnectorMspPairId(label)
283
288
 
@@ -281,6 +281,7 @@ export class NetLabelTraceCollisionSolver extends BaseSolver {
281
281
  problem: this.inputProblem,
282
282
  paddingBuffer: PADDING_BUFFER,
283
283
  detourCount,
284
+ tracesToAvoidOverlapping: this.outputTraces,
284
285
  })
285
286
  }
286
287
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/schematic-trace-solver",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.83",
4
+ "version": "0.0.85",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "cosmos",