Skip to content
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

Refactored Animatable into the element tree and fixed some bugs #18

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

Philipp-M
Copy link
Owner

Having Animatables in vhe view has some issues, e.g. memoize doesn't work.
(It was never planned to keep it there anyway, but for simplicity it was done like this for now)
It also requires for each animation update to rerender the whole view.
(This happens currently non-the-less, but can be changed in the future)

This moves the Animatable and Tweenable logic into the element tree, and adds a new ChangeFlag ANIMATION.
Animatable and Tweenable slowly converge back to View traits And can thus be genereated as such to have support for other core views like memoize etc. :).

There were also a few issues with pods not being marked (Pod::mark) in the owner views

Having Animatables in vhe view has some issues, e.g. memoize doesn't work.
(It was never planned to keep it there anyway, but for simplicity it was done like this for now)
It also requires for each animation update to rerender the whole view.
(This happens currently non-the-less, but can be changed in the future)

This moves the Animatable and Tweenable logic into the element tree,
and adds a new ChangFlag `ANIMATION`.
`Animatable` and `Tweenable` slowly converge back to `View` traits
And can thus be genereated as such to have support for other core views like memoize etc. :).

There were also a few issues with pods not being marked (`Pod::mark`) in
the owner views
@Philipp-M Philipp-M merged commit e9a2b07 into main Feb 19, 2024
7 checks passed
@Philipp-M Philipp-M deleted the animatable-in-element-tree branch February 19, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant