wangqianwen0418 / DRAVA

https://qianwen.info/DRAVA
5 stars 2 forks source link

feat: use fade-out effect on the filtered regions in the matrix #18

Closed sehilyi closed 2 years ago

sehilyi commented 2 years ago

This uses the consistent 'fade-out' effect on the filtered-out items in the context view.

Screen Shot 2022-08-12 at 19 45 02

To draw a semi-transparent overlay, I basically separated this fade-out region into multiple rectangles. The following demonstrates how the white regions are actually drawn (stroke colors of individual rectangles being red):

Screen Shot 2022-08-12 at 19 49 17

Because we are not able to use data transforms (since Gosling uses HiGlass to render matrix, and HiGlass does not support filtering), I was not able to find an easier approach to implement the 'fade-out effect.' If data transforms are available, we could just, for example, overlay (1) a regular matrix, (2) a big semi-transparent white rectangle that covers the entire region of the matrix, and (3) a filtered matrix that shows only the selected samples.

sehilyi commented 2 years ago

Some screenshots after making a further change:

Screen Shot 2022-08-14 at 10 31 03 Screen Shot 2022-08-14 at 10 37 58