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
193 stars 11 forks source link

feat(web): 🎸 DotLottieWorker #242

Closed theashraf closed 4 months ago

theashraf commented 5 months ago

Related #203 #180

changeset-bot[bot] commented 5 months ago

🦋 Changeset detected

Latest commit: f326f52fa0fc9e7b9d4ae34f74ea1d8f53158433

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

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

Status Category Percentage Covered / Total
🟢 Lines 33.29% / 30% 295 / 886
🟢 Statements 32.7% / 30% 310 / 948
🟢 Functions 31.3% / 30% 77 / 246
🟢 Branches 38.69% / 30% 202 / 522
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
packages/web/src/dotlottie.ts 73.05% 64.58% 69.76% 76.06% 117, 121-124, 133-135, 206, 252, 275, 279, 360, 376, 380, 409, 424-425, 440, 462-465, 490, 500, 528, 528, 530-533, 537, 542-545, 552, 552, 554-557, 561, 561, 563-566, 629, 629, 631-634, 638, 667, 694, 698, 708, 718, 718, 720-726, 730, 740, 744, 746-748, 747, 750, 754, 756-758, 757, 760, 764-766, 768-770, 772-775, 779, 781, 785, 787, 791, 793, 797, 799, 803, 805, 809, 818, 822, 822, 824, 826, 828-830, 828-829, 832, 836-862, 837, 839-841, 840, 843-845, 844, 847-849, 848, 851-853, 852, 855-857, 856, 859-861, 860, 877, 881-882, 884-887, 891, 895, 899
packages/web/src/worker/dotlottie.ts 0.76% 0% 0% 0.85% 11-13, 12, 15, 17, 21, 54, 62-89, 93, 96, 98-99, 102, 104, 106-108, 107, 110, 113, 130, 132-191, 133-136, 134-135, 138-141, 139-140, 143-145, 144, 147-151, 148-150, 153-156, 154-155, 158-160, 159, 162-165, 163-164, 167-170, 168-169, 172-175, 173-174, 177-180, 178-179, 182-185, 183-184, 187-190, 188-189, 197-201, 198, 200, 203-215, 217-219, 218, 221, 223, 227, 231, 235, 239, 243, 247, 251, 255, 259, 263, 267, 271, 275, 279, 283, 287, 291, 295, 299, 303, 307, 311, 315, 319, 323, 323, 325-326, 330, 330, 332-333, 337, 337, 339-340, 344, 344, 346-347, 351, 351, 353-354, 358, 358, 360-361, 365, 365, 367-368, 372, 372, 374-375, 379, 379, 381-382, 386, 386, 388, 390, 392, 396, 396, 398-399, 403, 403, 405-406, 410, 410, 412, 414-415, 417-418, 422, 422, 424, 426, 428, 430-431, 435, 435, 437-438, 442, 442, 444-445, 449, 449, 451-452, 456, 456, 458-459, 463, 463, 465-466, 470, 470, 472, 474, 478, 482, 482, 484-485, 489, 489, 491, 493, 495, 499, 499, 501, 509-513, 515, 517-534, 518-531, 519, 522-530, 523, 525-529, 526, 528, 533, 538, 542, 546, 550, 550, 552, 554, 556, 560, 560, 562, 564, 566, 568, 572, 572, 574, 576, 580, 580, 582, 586, 586, 588, 592-594, 596-598, 600-603, 607, 609, 613, 615, 619, 621, 625, 627, 631, 633, 637, 641-667, 642, 644-646, 645, 648-650, 649, 652-654, 653, 656-658, 657, 660-662, 661, 664-666, 665, 671-678, 672-677
packages/web/src/worker/dotlottie.worker.ts 0% 0% 0% 0% 24, 26-194, 27-38, 28-35, 37, 39-50, 40-47, 49, 51-63, 52-60, 62, 64-76, 65-73, 75, 77-89, 78-86, 88, 90-102, 91-99, 101, 103-115, 104-112, 114, 116-128, 117-125, 127, 129-141, 130-138, 140, 142-154, 143-151, 153, 155-167, 156-164, 166, 168-180, 169-177, 179, 181-193, 182-190, 192, 198-621, 200, 202, 204-206, 205, 208-233, 235-237, 240-241, 243, 245-247, 246, 249, 251-253, 256, 258, 260-262, 261, 264, 267-268, 270, 272-274, 273, 276, 279, 281, 283-285, 284, 287, 290, 292, 294-296, 295, 298, 301-302, 304, 306-308, 307, 310, 313-316, 318-320, 319, 322, 324-325, 327, 329-343, 345-347, 346, 349-351, 354, 356, 358, 358, 360, 362, 365, 367, 369-371, 370, 373, 376-377, 379, 381-383, 382, 385, 388-389, 391, 393-395, 394, 397, 400-401, 403, 405-407, 406, 409, 412-413, 415, 417-419, 418, 421, 424, 426, 428-430, 429, 432, 435, 437, 439-441, 440, 443, 446-448, 450, 452-454, 453, 456-457, 459, 461-463, 466-467, 469, 471-473, 472, 475, 478-479, 481, 483-485, 484, 487, 490-491, 493, 495-497, 496, 499, 502-503, 505, 507-509, 508, 511, 514-515, 517, 519-521, 520, 523, 526-527, 529, 531-533, 532, 535, 538-539, 541, 543-545, 544, 547, 550, 553, 555, 557-559, 558, 561, 564, 566, 568-570, 569, 572, 575-579, 581, 583-585, 584, 587, 590-591, 593, 595-597, 596, 599, 601-603, 606-607, 609, 611-613, 612, 615, 617-619, 624, 626-630, 627, 629, 633-653, 634-652, 635, 637-641, 643, 645-649, 651, 655
packages/web/src/worker/worker-manager.ts 14.28% 0% 0% 14.28% 11, 14, 18-20, 19, 22, 26, 30, 34, 38, 40-43, 41-42
Generated in workflow #1141
github-actions[bot] commented 5 months ago

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
@lottiefiles/dotlottie-web 22.84 KB (+79.57% 🔺) 457 ms (+79.57% 🔺) 356 ms (+52.54% 🔺) 812 ms
@lottiefiles/dotlottie-web WASM 381.95 KB (0%) 7.7 s (0%) 0 ms (+100% 🔺) 7.7 s
@lottiefiles/dotlottie-react 26 KB (+57.42% 🔺) 521 ms (+57.42% 🔺) 375 ms (+32.71% 🔺) 895 ms
@lottiefiles/dotlottie-vue 29.83 KB (+51.07% 🔺) 597 ms (+51.07% 🔺) 643 ms (+153.32% 🔺) 1.3 s
@lottiefiles/dotlottie-wc 31.06 KB (+56.78% 🔺) 622 ms (+56.78% 🔺) 602 ms (+152.45% 🔺) 1.3 s
@lottiefiles/dotlottie-svelte 30.72 KB (+48.99% 🔺) 615 ms (+48.99% 🔺) 181 ms (-40.34% 🔽) 795 ms
@lottiefiles/dotlottie-solid 29.12 KB (+47.88% 🔺) 583 ms (+47.88% 🔺) 169 ms (+50.63% 🔺) 752 ms