Giter VIP home page Giter VIP logo

Comments (5)

ericmandel avatar ericmandel commented on August 16, 2024

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:

Screen Shot 2022-01-27 at 3 52 04 PM

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.

ericmandel avatar ericmandel commented on August 16, 2024

Wait, wait, I made it happen once .... let me continue, I should have enough to go one ...

from js9.

ericmandel avatar ericmandel commented on August 16, 2024

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.

ericmandel avatar ericmandel commented on August 16, 2024

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.

AstroAndyN avatar AstroAndyN commented on August 16, 2024

Yes, that's fixed it - thanks very much!

from js9.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.