Commit graph

24 commits

Author SHA1 Message Date
Jinny You
9c7a97787a 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-05-23 10:50:38 +09:00
Hermet Park
92e1dd6747 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-05-21 16:05:53 +09:00
Jinny You
edc63ce28e web/examples: added dynamic component creation case
This change would help on testing dynamic creation/deletion of component.
2024-04-23 12:22:02 +09:00
Jinny You
f960c04474 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-04-23 12:22:02 +09:00
Hermet Park
651979b68d Update README.md
Added an thorvg NPM link in the Lottie Player documentation.
2024-02-29 11:36:45 +09:00
Jinny You
d8891187cd web: code refactoring
improved code consistency:
- removed double-quotes on string literal.
- removed double-equals (==)
- updated comments
2024-02-09 14:12:06 +09:00
Jinny You
abef84e935 web: Support save2png 2024-01-04 17:14:42 +09:00
Jinny You
44a8f9ffe1 web: Improve stop animation behavior
`stop` worked like `pause`, when stopping animation, frame should be at 0
2024-01-04 17:14:42 +09:00
Jinny You
2e2d19b98c web: Fix animation loading bug
when `lottie-player` has no `src` at first rendering, programmatical load wasn't working
2024-01-04 17:14:42 +09:00
Jinny You
8e50ea4a18 web: Add extra feature & property
- Support `resize` method
- Add `resolution` prop
2024-01-04 17:14:42 +09:00
Jinny You
3896d21c3a web/examples: Add save2tvg 2024-01-03 13:51:42 +09:00
Jinny You
20a6ca19e7 web: Support file types
- added new exportable type `tvg`
- support jpg/png/svg/tvg load
2024-01-03 13:51:42 +09:00
Jinny You
2c6c8d3b21
updated copyright date (#1866) 2023-12-28 10:43:25 +09:00
Jinny You
1544ce2ba2 web: Add a readme 2023-12-20 15:45:14 +09:00
Jinny You
d5f141ce14 web: Add config to support npm module 2023-12-20 15:45:14 +09:00
Jinny You
e67add4d87 web: Add examples
- `index.html` : basic example
- `benchmark.html` : to check FPS, memory usage, latency(ms)
2023-12-20 15:45:14 +09:00
Jinny You
3fe025f81f 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
2023-12-20 15:45:14 +09:00
Jinny You
c913d2ef69 web: Add wasm loading logic 2023-12-20 15:45:14 +09:00
Jinny You
b4916fdec4 web: Add library build script 2023-12-20 15:45:14 +09:00
Jinny You
41dae07872 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
2023-12-20 15:45:14 +09:00
Jinny You
05fe9ec4a5 web: Set up eslint 2023-12-20 15:45:14 +09:00
Jinny You
de01f861dd web: Set up typescript 2023-12-20 15:45:14 +09:00
Jinny You
2ab0010685 web: Add gitignore 2023-12-20 15:45:14 +09:00
Jinny You
c99864e475 web: Add a package manifest info 2023-12-20 15:45:14 +09:00