Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"bun-match-svg": "^0.0.14"
},
"dependencies": {
"@tscircuit/high-density-a01": "^0.0.17",
"@tscircuit/high-density-a01": "^0.0.18",
"fast-json-stable-stringify": "^2.1.0",
"object-hash": "^3.0.0"
}
Expand Down
44 changes: 44 additions & 0 deletions tests/bugs/__snapshots__/bugreport46-ac4337-arduino-uno.snap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 12 additions & 3 deletions tests/fixtures/CapacityMeshAutorouterCoreBinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ export class CapacityMeshAutorouterCoreBinding
// )
this.cycleCount++

// Get visualization data if available
const debugGraphics =
this.solver.activeSubSolver?.visualize() || undefined
const debugGraphics = this.getDebugGraphics()

// Report progress
const progress = this.solver.progress
Expand Down Expand Up @@ -146,6 +144,17 @@ export class CapacityMeshAutorouterCoreBinding
}
}

private getDebugGraphics(): AutorouterProgressEvent["debugGraphics"] {
const activeSubSolver = this.solver.activeSubSolver
if (!activeSubSolver) return undefined

try {
return activeSubSolver.visualize()
} catch {
return undefined
}
}

/**
* Stop the routing process if it's in progress
*/
Expand Down
Loading