-
Notifications
You must be signed in to change notification settings - Fork 2
web player migration from thorvg #13
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
Conversation
- introduce a `lit`(https://lit.dev) - lit is most popular web component builder - with lit, we can build high-performance WP with less code
- define separated model for better readability of interface - implemented thorvg basic features added features: - Add version info - Support setBgColor - Support save2gif - Support bounce mode - Support intermission - Support skipping needless animation by dom visible
- `index.html` : basic example - `benchmark.html` : to check FPS, memory usage, latency(ms)
- added new exportable type `tvg` - support jpg/png/svg/tvg load
- Support `resize` method - Add `resolution` prop
when `lottie-player` has no `src` at first rendering, programmatical load wasn't working
`stop` worked like `pause`, when stopping animation, frame should be at 0
improved code consistency: - removed double-quotes on string literal. - removed double-equals (==) - updated comments
Call the explicit memory deletion—binded in function `delete()`, which is highly recommended by the Memory management in Emscripten guideline. The function will guarantee that the WASM module is cleaned up from the memory. see: https://emscripten.org/docs/porting/connecting_cpp_and_javascript/embind.html#memory-management Additionally, WASM module's initialization part has been refactored to correspond to the change.
This change would help on testing dynamic creation/deletion of component.
Compared the FPS with ThorVG viewer at 1664x1664 resolution. This minor tweak improves the performance by 2 to 5 FPS.
Previously, the Intersection Observer doesn't filter hidden animations when page just loaded. Ensure that the only visible animations to be played. Hidden resources will be frozen in the initial load.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
- added thorvg submodule with v0.13.x branch, - rearranged the relative path of it for wasm js.
In
Currently, |
Good idea. please do it. |
thorvg/thorvg#2297