lanl / 4DGB

4D Genome Browser project
1 stars 2 forks source link

Implement interactive selection on contact map #8

Closed camtauxe closed 3 years ago

camtauxe commented 3 years ago

This PR continues to address issue #1. This enables interactive selection on the contact map via D3 Brush. Clicking-and-dragging an area on the contact map will highlight the corresponding area in the geometry view.

Currently, the interaction is implemented using a listener in viewer.js, but at a later stage, we'll probably want to adopt something more in-line with the usual event API. Also, the listener right now scales linearly with the size of the selection. That isn't a problem for the tiny testing data set, but larger data sets may lag. To fix it, we would need to re-work how the setSegmentStates method of GTKGeometryCanvas takes its input.

Next steps are: