Imageomics / Andromeda

A website that enables users to explore high-dimensional image data
http://andromeda.imageomics.org/
MIT License
2 stars 1 forks source link

Zoom image grid to fit images #56

Closed johnbradley closed 1 year ago

johnbradley commented 1 year ago

Adds logic that will automatically update the zoom slider so all images will be visible. Updates the image grid to have a larger margin to better display images that are close to the edge.

Fixes #31

egrace479 commented 1 year ago

Seems to work great. One thing I noticed is that if you don't have images (so only points), it will still adjust the plot size based on the image scaling slider. I'm not sure how much that matters, but I was curious what would happen. It does factor in the points to change the dimensions of the plot.

johnbradley commented 1 year ago

Seems to work great. One thing I noticed is that if you don't have images (so only points), it will still adjust the plot size based on the image scaling slider. I'm not sure how much that matters, but I was curious what would happen. It does factor in the points to change the dimensions of the plot.

The logic here just looks at the point location in calculating the amount to scale. The images are just rendered relative to each point.