Comments (5)
I'm having some trouble reproducing this, which doesn't mean there isn't a bug. Simple tests all seems to work, as does zooming in/out using the < and > keys and then calling ChangeRegions:
So I'm missing something ... can I get a copy of the FITS file you are using (since this problem might be FITS wcs-dependent) as well as the position changes you are making? I just need to reproduce it and we can get it fixed.
from js9.
Wait, wait, I made it happen once .... let me continue, I should have enough to go one ...
from js9.
My experiments indicate that this happens only when the region being moved is selected. There is some special code in ChangeRegions() that deals with selected regions. It was valid for Fabric.js 3.x, but perhaps is no longer valid for Fabric.js 4.x (as does happen). I'll look into this. Nice bug, thanks!
from js9.
OK, this should be fixed. New code is updated in GitHub. There actually was a common problem in Set{Pan,Zoom,Flip}: after doing these operations, it's unclear how to update the selection completely, so your inspired suggestion to fully regenerate the selection was what I eventually used (though in another part of the JS9 code). If it works for you too, feel free to close this issue.
from js9.
Yes, that's fixed it - thanks very much!
from js9.
Related Issues (20)
- Conflicting CSS HOT 3
- Loading files from the server with the node helper HOT 14
- Javascript API HOT 2
- Load multi extension tile compressed fits report error. HOT 9
- JS9.Load("file", {ra: 0, dec: 0}) doesn't pan HOT 3
- Missing reference in CSS file "tabcontent.css" HOT 3
- Unable to Load FITS files with NaN values HOT 12
- JS9 ERROR: cannot load: ../astroemw.wasm ... please check the url/pathname HOT 3
- Multi Extension FITs mosaic display HOT 12
- Fits Image Display Area + Rotation HOT 10
- JS9 potentially crashing on ARM64 architecture HOT 8
- Incorporating JS9 (and pyjs9) into a JupyterLab -> Kubernetes/Docker system HOT 2
- Release with bundled minimist bump? HOT 3
- Q: is there a query parameters to load image from CORS server? HOT 16
- ImageOpts.flip does nothing HOT 3
- Load image from memory. HOT 4
- End of JS9 development: July 1, 2022 HOT 2
- Preload regions with image HOT 3
- unable to open some files HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js9.