Commit graph

22 commits

Author SHA1 Message Date
Jinny You
bd7762e3b3 web/examples: added dynamic component creation case
This change would help on testing dynamic creation/deletion of component.
2024-06-24 12:23:04 +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
Hermet Park
4dda73a8d2 Update README.md
Added an thorvg NPM link in the Lottie Player documentation.
2024-04-06 12:08:21 +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
f2b6b44bce web/examples: Add save2tvg 2024-01-03 14:15:47 +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
501b2b060c web: Add a readme 2024-01-02 20:34:11 +09:00
Jinny You
b8d64c5ecd web: Add config to support npm module 2024-01-02 20:34:11 +09:00
Jinny You
e3f3a97f8d web: Add examples
- `index.html` : basic example
- `benchmark.html` : to check FPS, memory usage, latency(ms)
2024-01-02 20:34:11 +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
a88653194b web: Add library build script 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
Jinny You
fb63a9a937 web: Set up eslint 2024-01-02 20:34:11 +09:00
Jinny You
0d209b5440 web: Set up typescript 2024-01-02 20:34:11 +09:00
Jinny You
26a3a61a60 web: Add gitignore 2024-01-02 20:34:11 +09:00
Jinny You
c3d5cb1925 web: Add a package manifest info 2024-01-02 20:34:11 +09:00