-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoom and scale display element #5
Comments
Hi, I've added an example of how to do this in the library's current state. I'll keep this issue open until the functionality is added to the api. Hope this helps! https://github.com/astrojs/webfits/blob/master/examples/webgl-magnify-image.html |
Thanks Amit, that is perfect! |
Hello Amit, |
Davide, there is no reason the zoom was inverted. You're right, best to stick with the behavior of other image and mapping applications. The library has been updated. Thanks! |
Thanks to you, I am finally trying to use the webfits library. Thank you and I hope to contribute soon. Il 15/03/2013 23:07, Amit Kapadia ha scritto:
|
Davide, for now there is not a simple method to invoke that functionality. For now please see https://github.com/astrojs/webfits/blob/master/examples/webgl-magnify-image.html for an example. I'll add that functionality shortly. |
I have another question: what is the best way to draw a circle or an element on the fits? In the canvas example, adding:
at the end of the createVisualization() function returns correcty the Instead, in the webgl example, adding:
or
produce respectively the error:
or
I am sorry for all these questions, but I am almost ready to publish on Cheers, Il 16/03/2013 02:47, Amit Kapadia ha scritto:
|
Davide, add another canvas that lies over the FITS image. Draw all annotations on the top canvas, while leaving the bottom one for the FITS image. You will have to keep all transformations (e.g. panning and zooming) in synchronized between the two canvases. If you call
This is a common use case, so if you find a nice way to do this, please let me know. Hope that helps! |
hello Amit, http://bl.ocks.org/vertighel/5193613 the drag behavior works well, but the zoom behavior is bugged. I am http://stackoverflow.com/questions/15491356/canvas-image-and-svg-overlay-with-webfits-js-and-d3-js Cheers, PS: do you have any preferential address for mail exchanges? Il 17/03/2013 01:52, Amit Kapadia ha scritto:
|
I am wondering if the following is possible, or if it is on the development roadmap?
I would like to display an image zoomed on load, with the canvas scaled to the appropriate width to display the whole image.
So for example, if my fits array is 32x32, I'd like to display it zoomed times 4 on a canvas / webgl element that is 128x128px.
The text was updated successfully, but these errors were encountered: