Commit graph

11 commits

Author SHA1 Message Date
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
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
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
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
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