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: added loadStateMachineData to worker #290

Closed samuelOsborne closed 4 months ago

samuelOsborne commented 4 months ago

Description

Adds loadStateMachineData to worker.

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 9c28dd80854780646506b9a95458d8fa9f5c176d

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 32.92% / 30% 295 / 896
🟢 Statements 32.32% / 30% 310 / 959
🟢 Functions 31.04% / 30% 77 / 248
🟢 Branches 38.59% / 30% 203 / 526
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
packages/web/src/worker/dotlottie.ts 0.74% 0% 0% 0.84% 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, 570, 570, 572, 574, 576, 578, 582, 582, 584, 586, 590, 590, 592, 596, 596, 598, 602-604, 606-608, 610-613, 617, 619, 623, 625, 629, 631, 635, 637, 641, 643, 647, 651-677, 652, 654-656, 655, 658-660, 659, 662-664, 663, 666-668, 667, 670-672, 671, 674-676, 675, 681-688, 682-687
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-633, 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-314, 316, 318-320, 319, 322, 325-328, 330-332, 331, 334, 336-337, 339, 341-355, 357-359, 358, 361-363, 366, 368, 370, 370, 372, 374, 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-425, 427, 429-431, 430, 433, 436, 438, 440-442, 441, 444, 447, 449, 451-453, 452, 455, 458-460, 462, 464-466, 465, 468-469, 471, 473-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-551, 553, 555-557, 556, 559, 562, 565, 567, 569-571, 570, 573, 576, 578, 580-582, 581, 584, 587-591, 593, 595-597, 596, 599, 602-603, 605, 607-609, 608, 611, 613-615, 618-619, 621, 623-625, 624, 627, 629-631, 636, 638-642, 639, 641, 645-665, 646-664, 647, 649-653, 655, 657-661, 663, 667
Generated in workflow #1166
github-actions[bot] commented 4 months ago

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
@lottiefiles/dotlottie-web 22.83 KB (+0.28% 🔺) 457 ms (+0.28% 🔺) 1.1 s (-3.76% 🔽) 1.6 s
@lottiefiles/dotlottie-web WASM 381.76 KB (0%) 7.7 s (0%) 0 ms (+100% 🔺) 7.7 s
@lottiefiles/dotlottie-react 26.02 KB (+0.29% 🔺) 521 ms (+0.29% 🔺) 850 ms (+22.01% 🔺) 1.4 s
@lottiefiles/dotlottie-vue 29.94 KB (+0.24% 🔺) 599 ms (+0.24% 🔺) 899 ms (-34.33% 🔽) 1.5 s
@lottiefiles/dotlottie-wc 31.05 KB (-0.1% 🔽) 621 ms (-0.1% 🔽) 2.6 s (+177.94% 🔺) 3.2 s
@lottiefiles/dotlottie-svelte 30.71 KB (+0.04% 🔺) 615 ms (+0.04% 🔺) 562 ms (-3.49% 🔽) 1.2 s
@lottiefiles/dotlottie-solid 29.14 KB (+0.07% 🔺) 583 ms (+0.07% 🔺) 1.3 s (-13.07% 🔽) 1.9 s