Commit graph

13 commits

Author SHA1 Message Date
Jinny You
c555c41fd9 web: Reduce initial playing resources
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.
2024-06-24 14:30:15 +09:00
Hermet Park
fbfd606840 web: Improve the performance.
Compared the FPS with ThorVG viewer at 1664x1664 resolution.
This minor tweak improves the performance by 2 to 5 FPS.
2024-06-24 14:30:07 +09:00
Jinny You
bd733b49be web: memory stability++
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.
2024-06-24 12:21:56 +09:00
Jinny You
b7a57e65c1 web: code refactoring
improved code consistency:
- removed double-quotes on string literal.
- removed double-equals (==)
- updated comments
2024-04-06 12:08:21 +09:00
Jinny You
d06414400e web: Support save2png 2024-04-05 17:19:46 +09:00
Jinny You
958481b0cb web: Improve stop animation behavior
`stop` worked like `pause`, when stopping animation, frame should be at 0
2024-04-05 17:19:38 +09:00
Jinny You
1a81b26b4f web: Fix animation loading bug
when `lottie-player` has no `src` at first rendering, programmatical load wasn't working
2024-04-05 17:19:33 +09:00
Jinny You
2db16b5be8 web: Add extra feature & property
- Support `resize` method
- Add `resolution` prop
2024-04-05 17:19:18 +09:00
Jinny You
3e6edc3b70 web: Support file types
- added new exportable type `tvg`
- support jpg/png/svg/tvg load
2024-01-03 14:15:42 +09:00
Jinny You
92288c8291 updated copyright date (#1866) 2024-01-02 20:34:12 +09:00
Jinny You
306a30185f web: Implement features
- 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
2024-01-02 20:34:11 +09:00
Jinny You
58f44100bc web: Add wasm loading logic 2024-01-02 20:34:11 +09:00
Jinny You
8ce484c7df web: Add lit element
- introduce a `lit`(https://lit.dev)
- lit is most popular web component builder
- with lit, we can build high-performance WP with less code
2024-01-02 20:34:11 +09:00