Skip to content

Commit

Permalink
T1
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Mar 9, 2022
1 parent b7ade5b commit 2e4ab45
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion plugins/dotplot-view/src/DotplotView/components/DotplotView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,22 @@ const Grid = observer(
const vblocks = vview.dynamicBlocks.contentBlocks
const htop = hview.displayedRegionsTotalPx - hview.offsetPx
const vtop = vview.displayedRegionsTotalPx - vview.offsetPx
const hbottom = hblocks[0]?.offsetPx - hview.offsetPx
const vbottom = vblocks[0]?.offsetPx - vview.offsetPx

return (
<svg style={{ background: '#fff' }} width={viewWidth} height={viewHeight}>
<svg
style={{ background: 'rgba(0,0,0,0.12)' }}
width={viewWidth}
height={viewHeight}
>
<rect
x={hbottom}
y={viewHeight - vtop}
width={htop - hbottom}
height={vtop - vbottom}
fill="#fff"
/>
<g>
{hblocks.map(region => {
const x = region.offsetPx - hview.offsetPx
Expand Down

0 comments on commit 2e4ab45

Please sign in to comment.