lanl / 4DGB

4D Genome Browser project
1 stars 2 forks source link

Contact Map can zoom/pan and also has settings in project.json #10

Closed camtauxe closed 3 years ago

camtauxe commented 3 years ago

More progress towards issue #1:

This PR encompasses two key changes:

  1. You can zoom in and out of the contact map canvas and pan the viewport while zoomed in. Clicking and dragging still creates a selection as before, but now holding down the spacebar will enable zoom/pan. Use the scroll wheel to zoom, then click and drag to pan the canvas.

  2. The contact map widget now has its own settings in the project.json files. It has options for width and height, as well as an option, magnify, which multiplies all the values shown on the canvas by some amount, making differences easier to see.