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.
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 thesetSegmentStates
method ofGTKGeometryCanvas
takes its input.Next steps are: