LottieFiles / dotlottie-web

Official LottieFiles player for rendering Lottie and dotLottie animations in the web. Supports React, Vue, Svelte, SolidJS and Web Components.
https://developers.lottiefiles.com/docs/dotlottie-player/
MIT License
191 stars 11 forks source link

feat: v2 dotLottie specs & theming support #394

Closed theashraf closed 2 days ago

theashraf commented 2 weeks ago

Description

Type of change

Checklist

changeset-bot[bot] commented 2 weeks ago

🦋 Changeset detected

Latest commit: d8c50c5c7e8ef88803ed501e480259100ceed8e3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages | Name | Type | | ----------------------------- | ----- | | @lottiefiles/dotlottie-svelte | Minor | | @lottiefiles/dotlottie-react | Minor | | @lottiefiles/dotlottie-solid | Minor | | @lottiefiles/dotlottie-vue | Minor | | @lottiefiles/dotlottie-web | Minor | | @lottiefiles/dotlottie-wc | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

github-actions[bot] commented 2 weeks ago

Coverage Report for @lottiefiles/dotlottie-web (packages/web)

Status Category Percentage Covered / Total
🟢 Lines 52.94% (🎯 30%) 558 / 1054
🟢 Statements 51.64% (🎯 30%) 582 / 1127
🟢 Functions 52.74% (🎯 30%) 144 / 273
🟢 Branches 58.23% (🎯 30%) 382 / 656
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/web/src/dotlottie.ts 68.76% 65.11% 61.29% 71.76% 135-142, 165, 206-210, 245, 259, 274, 304, 327, 331, 412, 428, 432, 462, 477-478, 493, 515-518, 551, 556, 566, 594-599, 603, 608-611, 618-632, 702-707, 711, 732, 767, 794-838, 842, 852-975, 991-1062
packages/web/src/worker/dotlottie.ts 63.25% 63.33% 69.44% 68.23% 15, 241, 259, 320, 356, 380, 385, 392, 399-402, 406, 420-423, 427, 446, 465-478, 482, 489-492, 523, 530, 537-540, 544, 551-554, 570, 577-583, 587, 614, 638-749
packages/web/src/worker/dotlottie.worker.ts 0% 0% 0% 0% 24-720
Generated in workflow #1470 for commit d8c50c5 by the Vitest Coverage Report Action
github-actions[bot] commented 2 weeks ago

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
@lottiefiles/dotlottie-web 38.39 KB (-0.27% 🔽) 768 ms (-0.27% 🔽) 166 ms (+105.58% 🔺) 934 ms
@lottiefiles/dotlottie-web WASM 400 KB (+1.71% 🔺) 8.1 s (+1.71% 🔺) 0 ms (+100% 🔺) 8.1 s
@lottiefiles/dotlottie-react 41.71 KB (-0.23% 🔽) 835 ms (-0.23% 🔽) 150 ms (+1.53% 🔺) 984 ms
@lottiefiles/dotlottie-vue 45.25 KB (-0.31% 🔽) 905 ms (-0.31% 🔽) 163 ms (+88.73% 🔺) 1.1 s
@lottiefiles/dotlottie-wc 45.35 KB (-0.23% 🔽) 908 ms (-0.23% 🔽) 191 ms (+58.85% 🔺) 1.1 s
@lottiefiles/dotlottie-svelte 45.85 KB (-0.29% 🔽) 917 ms (-0.29% 🔽) 110 ms (+36.06% 🔺) 1.1 s
@lottiefiles/dotlottie-solid 44.71 KB (-0.26% 🔽) 895 ms (-0.26% 🔽) 82 ms (-33.97% 🔽) 976 ms