Skip to content

Commit 90ab769

Browse files
committed
Fix Pipeline4 HighDensityRepair visualization render bottom-layer traces
1 parent a81a2ed commit 90ab769

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/solvers/HighDensityRepairSolver/Pipeline4HighDensityRepairSolver.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import type {
1010
HighDensityRoute,
1111
NodeWithPortPoints,
1212
} from "lib/types/high-density-types"
13+
import { safeTransparentize } from "../colors"
1314
import { BaseSolver } from "../BaseSolver"
1415

1516
type RepairSampleEntry = {
@@ -317,13 +318,17 @@ export class Pipeline4HighDensityRepairSolver extends BaseSolver {
317318
for (let i = 0; i < route.route.length - 1; i++) {
318319
const start = route.route[i]
319320
const end = route.route[i + 1]
321+
if (start.z !== end.z) continue
320322
lines.push({
321323
points: [
322324
{ x: start.x, y: start.y },
323325
{ x: end.x, y: end.y },
324326
],
325-
strokeColor,
327+
strokeColor:
328+
start.z === 0 ? strokeColor : safeTransparentize(strokeColor, 0.5),
326329
strokeWidth: route.traceThickness,
330+
layer: `z${start.z}`,
331+
strokeDash: start.z !== 0 ? [0.1, 0.3] : undefined,
327332
})
328333
}
329334
for (const via of route.vias) {

0 commit comments

Comments
 (0)