File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
lib/solvers/HighDensityRepairSolver Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import type {
1010 HighDensityRoute ,
1111 NodeWithPortPoints ,
1212} from "lib/types/high-density-types"
13+ import { safeTransparentize } from "../colors"
1314import { BaseSolver } from "../BaseSolver"
1415
1516type 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 ) {
You can’t perform that action at this time.
0 commit comments