gosling-lang / gosling.js

Grammar of Scalable Linked Interactive Nucleotide Graphics

Home Page:https://gosling.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drag to create a brush

puehringer opened this issue · comments

Currently, a brush (via a linked view) can be moved only by dragging the brush itself, and resized by dragging the borders. It would be a fantastic addition to allow dragging anywhere on the brushed track/view to create (and hence move/resize) an existing brush.

Given this example, it would be great if one could start dragging anywhere on circular vis to move on of the brushes. This mainly makes sense for single brushes only, as otherwise it is not clear which brush should be recreated.

Let me know what you think of this, and if you can give me hints on how you would implement this, I am sure we can contribute directly as well.