Skip to content

Commit 25847eb

Browse files
authored
Fix zoom-induced dashed-trace rendering bug in HighDensitySolver by using scale-stable dash units (tscircuit#756)
1 parent 12289cf commit 25847eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/solvers/HighDensitySolver/HighDensitySolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,10 @@ export class HighDensitySolver extends BaseSolver {
285285
strokeColor:
286286
segment.z === 0
287287
? segment.color
288-
: safeTransparentize(segment.color, 0.75),
288+
: safeTransparentize(segment.color, 0.5),
289289
layer: `z${segment.z}`,
290290
strokeWidth: route.traceThickness,
291-
strokeDash: segment.z !== 0 ? "10, 5" : undefined,
291+
strokeDash: segment.z !== 0 ? [0.1, 0.3] : undefined,
292292
})
293293
}
294294
for (const via of route.vias) {

0 commit comments

Comments
 (0)