From 09a5207fb58c877484911b7158724deec6304f67 Mon Sep 17 00:00:00 2001 From: etowahadams Date: Mon, 28 Aug 2023 12:57:54 -0400 Subject: [PATCH] fix(core): rule mark calculation in circular layout (#967) Fixes the alignment of rule marks in circular layouts --- src/core/mark/rule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mark/rule.ts b/src/core/mark/rule.ts index 836def76..a47f5bd2 100644 --- a/src/core/mark/rule.ts +++ b/src/core/mark/rule.ts @@ -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;