hms-dbmi / cistrome-explorer

Interactive visual analytic tool for exploring epigenomics data w/ associated metadata, powered by HiGlass and Gosling
http://cisvis.gehlenborglab.org
13 stars 0 forks source link

Allow undoing interactions #204

Open sehilyi opened 4 years ago

sehilyi commented 4 years ago

We need to provide undo/redo functionality for every interactions. For this, we can add undo/redo buttons for this (Just like a "undo" button on the top in Voyager2: https://idl.cs.washington.edu/papers/voyager2/).

To implement this, one option would be storing previous N viewConfig and Options files, and bring the previous one upon undo button.

keller-mark commented 4 years ago

The viewConfig initialXDomain, initialYDomain, projectionXDomain, projectionYDomain fields are updated on every zoom / pan interaction so we would probably want to ignore those fields and diff the view config to determine which ones are actually "different" enough to need to store

sehilyi commented 4 years ago

Sounds good. We will need to ignore small changes in the undoing interactions.

In zoom/pan interaction, we may want to additionally consider the time duration for each zoom/pan setting as users are more likely to take more time for the settings of their interest?

Relevant high-level question:

sehilyi commented 4 years ago

Interactions worth recording:

[*] Things we need to update HiGlass if we want to support recording those interactions