Floating magnifier showing details in the result image#216
Floating magnifier showing details in the result image#216godsic merged 3 commits intomumax:masterfrom
Conversation
This adds a magnifier to the html interface of the mumax results page, that shows a zoomed in detail of the result image.
|
@jsampaio awesome, thanks! have you tried to test it against different browsers? |
|
@godsic : thanks! I've tried on safari and firefox. |
In very small images (and near the edges of all images) the loupe wasn't updated.
|
@jsampaio how the image of the loupe is constructed? Is it fetched from elsewhere? |
|
It’s the same image, from the same address. The zoom is done just with css and JavaScript in the user’s browser |
|
Hi, I made it in a little bit different way: https://www.youtube.com/watch?v=xN2JIwht92g&feature=youtu.be and second, draggable: If you like it I plan to add zooming functionality using wheel in mouse. What do you think about this solution? |
|
My solution or the two from @kkingstoun 's seem ok to me. My comments on the three solutions:
for information, here's a screenshot of the loupe: |
|
@jsampaio you have the right suggestions, I will prepare graphical toolbox with icons representing loupe, drag, resize, and zoom. I think that user, should have an option to use it, because not every time the loupe is useful. I'm thinking also about requesting render to return an image in higher resolution (upon request) for loop and zooming, but i have to test how it will influcene on the computing performance. |
The loupe/zoomed image conserves the sharp pixels (no smoothing, no interpolation) which corresponds better to the simulation cells.
This adds a magnifier to the html interface of the mumax results page. The magnifier floats on top of the image and shows a zoomed-in detail of the image under the cursor.