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

Support for animations (request for input) #8

Open
weisJ opened this issue Sep 8, 2021 · 3 comments
Open

Support for animations (request for input) #8

weisJ opened this issue Sep 8, 2021 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@weisJ
Copy link
Owner

weisJ commented Sep 8, 2021

Technically all animation attributes are children of the element they apply to. But for memory reasons I don't want to make any SVGNode that supports being animated a container element. Instead the AttributeNode which only exists during load time should keep the animation elements.

Then before building an element we would parse the animation elements. This way when an element request the say width property from the AttributeNode it could instead of returning a plain Length return an animation capable substitute.
The current animation time would be passed in the MeasureContext s.t. the animation attributes can properly be resolved while rendering.

@weisJ weisJ added the enhancement New feature or request label Sep 8, 2021
@weisJ weisJ added the question Further information is requested label Sep 15, 2024
@weisJ
Copy link
Owner Author

weisJ commented Sep 15, 2024

I have an implementation ready that currently supports animation of length values for basic shapes.

Bringing animation support to all animatable properties will be a long process. Therefore it would be great to get some feedback on what sorts of properties are of interest here. Simply respond with this issue what you would like to be prioritised. If possible an example SVG would be highly appreciated.

@weisJ weisJ pinned this issue Sep 15, 2024
@weisJ weisJ changed the title Support for animations Support for animations (request for input) Sep 15, 2024
@weisJ
Copy link
Owner Author

weisJ commented Sep 15, 2024

The current state of animations is located in the https://github.com/weisJ/jsvg/tree/animation branch.

@weisJ
Copy link
Owner Author

weisJ commented Oct 24, 2024

Almost ready for a first release. See #93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant