Skip to content

Commit

Permalink
fix(core): rule mark calculation in circular layout (gosling-lang#967)
Browse files Browse the repository at this point in the history
Fixes the alignment of rule marks in circular layouts
  • Loading branch information
etowahadams authored Aug 28, 2023
1 parent 9b36b6c commit 09a5207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mark/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function drawRule(HGC: import('@higlass/types').HGC, trackInfo: any, tile
0.5 // alignment of the line to draw, (0 = inner, 0.5 = middle, 1 = outter)
);

const midR = trackOuterRadius - ((rowPosition + y) / trackHeight) * trackRingSize;
const midR = trackOuterRadius - ((rowPosition + rowHeight - y) / trackHeight) * trackRingSize;
const farR = midR + strokeWidth / 2.0;
const nearR = midR - strokeWidth / 2.0;

Expand Down

0 comments on commit 09a5207

Please sign in to comment.