Giter Club home page Giter Club logo

Comments (8)

grp avatar grp commented on June 14, 2024

The way POP works is by updating the layer values for each frame in the animation — it does not affect the presentation tree. Because of that, it shouldn't do anything to set the bounds to the destination rectangle after the animation completes.

If you print the layer's bounds at the end of the animation, what do you see? Could you post a sample project that demonstrates this issue?

from pop.

yderidde avatar yderidde commented on June 14, 2024

printing the layer bounds when animation completes: {{105, 180}, {300, 300}}
but the expected bounds is {{0, 0}, {300, 300}}

from pop.

yderidde avatar yderidde commented on June 14, 2024

actually I also have an anchorPoint set to (0.5,0.5) prior starting the animation ! this may cause the problem ?

from pop.

grp avatar grp commented on June 14, 2024

Note you're animating the bounds — maybe you want to adjust the position, rather than the bounds origin? That will help if you're trying to adjust the frame.

from pop.

yderidde avatar yderidde commented on June 14, 2024

Im not animating the bounds origin only the size. Im going from (0,0,0,0) to (0,0,300,300) but for some reasons the print at the end of the animation says (105, 180, 300, 300) which is weird and it is the reason why the layer disappear (because its origin changed and is now out of bounds)...

I will investigate further why this is happening.

from pop.

grp avatar grp commented on June 14, 2024

Hm, could you try using the animation tracer feature of Pop to log out the intermediate values? A sample project would be the simplest way to test this, but that might let us figure out how the animation is going.

You can use the tracer property on a POP animation to start, stop, and log out the animation events.

from pop.

kimon avatar kimon commented on June 14, 2024

If you create an NSView.bounds animatable property, and apply the spring to the view directly, does that address the problem?

from pop.

kimon avatar kimon commented on June 14, 2024

Let us know how you fare. If your investigation points at Pop bug, please reopen.

from pop.

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.