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(web): 🎸 added loadStateMachineData & animationSize & state machine context methods #266

Closed theashraf closed 4 months ago

theashraf commented 4 months ago

Change:

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: cce044a3ae39b01e3c402bcd81f89eaa65717ee1

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-web | Minor | | @lottiefiles/dotlottie-react | Patch | | @lottiefiles/dotlottie-solid | Patch | | @lottiefiles/dotlottie-svelte | Patch | | @lottiefiles/dotlottie-vue | Patch | | @lottiefiles/dotlottie-wc | Patch |

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 4 months ago

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

Status Category Percentage Covered / Total
🟢 Lines 75.39% / 30% 288 / 382
🟢 Statements 73.18% / 30% 303 / 414
🟢 Functions 71.69% / 30% 76 / 106
🟢 Branches 65.34% / 30% 198 / 303
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
packages/web/src/dotlottie.ts 73.86% 64.76% 70.23% 76.78% 168, 172-175, 184-186, 257, 303, 326, 330, 407, 423, 427, 456, 471-472, 487, 509-512, 537, 547, 575, 575, 577-580, 584, 594, 594, 596-599, 603, 603, 605-608, 671, 671, 673-676, 680, 709, 736, 740, 750, 760, 760, 762-768, 772, 782, 786, 788-790, 789, 792, 796, 798-800, 799, 802, 806-808, 810-812, 814-817, 821, 823, 827, 829, 833, 835, 839, 841, 845, 847, 851, 860, 864-896, 865, 867, 869-871, 869-870, 873-875, 874, 877-879, 878, 881-883, 882, 885-887, 886, 889-891, 890, 893-895, 894, 911, 915-916, 918-921, 925, 929, 933
Generated in workflow #1103
github-actions[bot] commented 4 months ago

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
@lottiefiles/dotlottie-web 12.68 KB (-5.58% 🔽) 254 ms (-5.58% 🔽) 150 ms (+202.74% 🔺) 404 ms
@lottiefiles/dotlottie-web WASM 381.95 KB (-8.38% 🔽) 7.7 s (-8.38% 🔽) 0 ms (+100% 🔺) 7.7 s
@lottiefiles/dotlottie-react 16.5 KB (-4.31% 🔽) 331 ms (-4.31% 🔽) 191 ms (-25.9% 🔽) 521 ms
@lottiefiles/dotlottie-vue 19.72 KB (-3.75% 🔽) 395 ms (-3.75% 🔽) 73 ms (-50.42% 🔽) 467 ms
@lottiefiles/dotlottie-wc 19.74 KB (-6.71% 🔽) 395 ms (-6.71% 🔽) 576 ms (+114.75% 🔺) 971 ms
@lottiefiles/dotlottie-svelte 20.31 KB (-3.63% 🔽) 407 ms (-3.63% 🔽) 104 ms (+38.77% 🔺) 510 ms
@lottiefiles/dotlottie-solid 19.43 KB (-3.71% 🔽) 389 ms (-3.71% 🔽) 86 ms (-7.77% 🔽) 475 ms