@aarsteinmedia/dotlottie-player 2.0.8 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1141 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/index.ts",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "DotLottiePlayer",
13
+ "declaration": {
14
+ "name": "DotLottiePlayer",
15
+ "module": "./component"
16
+ }
17
+ },
18
+ {
19
+ "kind": "js",
20
+ "name": "PlayMode",
21
+ "declaration": {
22
+ "name": "PlayMode",
23
+ "module": "./component/types"
24
+ }
25
+ },
26
+ {
27
+ "kind": "js",
28
+ "name": "PlayerEvents",
29
+ "declaration": {
30
+ "name": "PlayerEvents",
31
+ "module": "./component/types"
32
+ }
33
+ },
34
+ {
35
+ "kind": "js",
36
+ "name": "PlayerState",
37
+ "declaration": {
38
+ "name": "PlayerState",
39
+ "module": "./component/types"
40
+ }
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "kind": "javascript-module",
46
+ "path": "src/component/functions.ts",
47
+ "declarations": [
48
+ {
49
+ "kind": "function",
50
+ "name": "aspectRatio",
51
+ "parameters": [
52
+ {
53
+ "name": "objectFit",
54
+ "type": {
55
+ "text": "ObjectFit"
56
+ }
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "kind": "variable",
62
+ "name": "base64ToU8"
63
+ },
64
+ {
65
+ "kind": "variable",
66
+ "name": "createDotLottie"
67
+ },
68
+ {
69
+ "kind": "variable",
70
+ "name": "download"
71
+ },
72
+ {
73
+ "kind": "variable",
74
+ "name": "handleErrors"
75
+ },
76
+ {
77
+ "kind": "variable",
78
+ "name": "frameOutput"
79
+ },
80
+ {
81
+ "kind": "variable",
82
+ "name": "getAnimationData"
83
+ },
84
+ {
85
+ "kind": "variable",
86
+ "name": "getArrayBuffer"
87
+ },
88
+ {
89
+ "kind": "variable",
90
+ "name": "getExt"
91
+ },
92
+ {
93
+ "kind": "variable",
94
+ "name": "getExtFromB64"
95
+ },
96
+ {
97
+ "kind": "variable",
98
+ "name": "getFilename"
99
+ },
100
+ {
101
+ "kind": "variable",
102
+ "name": "getLottieJSON"
103
+ },
104
+ {
105
+ "kind": "variable",
106
+ "name": "getManifest"
107
+ },
108
+ {
109
+ "kind": "variable",
110
+ "name": "getMimeFromExt"
111
+ },
112
+ {
113
+ "kind": "variable",
114
+ "name": "isAudio"
115
+ },
116
+ {
117
+ "kind": "variable",
118
+ "name": "isImage"
119
+ },
120
+ {
121
+ "kind": "variable",
122
+ "name": "isServer"
123
+ },
124
+ {
125
+ "kind": "variable",
126
+ "name": "strToU8"
127
+ },
128
+ {
129
+ "kind": "variable",
130
+ "name": "resolveAssets"
131
+ },
132
+ {
133
+ "kind": "variable",
134
+ "name": "unzip"
135
+ },
136
+ {
137
+ "kind": "variable",
138
+ "name": "useId"
139
+ }
140
+ ],
141
+ "exports": [
142
+ {
143
+ "kind": "js",
144
+ "name": "aspectRatio",
145
+ "declaration": {
146
+ "name": "aspectRatio",
147
+ "module": "src/component/functions.ts"
148
+ }
149
+ },
150
+ {
151
+ "kind": "js",
152
+ "name": "base64ToU8",
153
+ "declaration": {
154
+ "name": "base64ToU8",
155
+ "module": "src/component/functions.ts"
156
+ }
157
+ },
158
+ {
159
+ "kind": "js",
160
+ "name": "createDotLottie",
161
+ "declaration": {
162
+ "name": "createDotLottie",
163
+ "module": "src/component/functions.ts"
164
+ }
165
+ },
166
+ {
167
+ "kind": "js",
168
+ "name": "download",
169
+ "declaration": {
170
+ "name": "download",
171
+ "module": "src/component/functions.ts"
172
+ }
173
+ },
174
+ {
175
+ "kind": "js",
176
+ "name": "handleErrors",
177
+ "declaration": {
178
+ "name": "handleErrors",
179
+ "module": "src/component/functions.ts"
180
+ }
181
+ },
182
+ {
183
+ "kind": "js",
184
+ "name": "frameOutput",
185
+ "declaration": {
186
+ "name": "frameOutput",
187
+ "module": "src/component/functions.ts"
188
+ }
189
+ },
190
+ {
191
+ "kind": "js",
192
+ "name": "getAnimationData",
193
+ "declaration": {
194
+ "name": "getAnimationData",
195
+ "module": "src/component/functions.ts"
196
+ }
197
+ },
198
+ {
199
+ "kind": "js",
200
+ "name": "getArrayBuffer",
201
+ "declaration": {
202
+ "name": "getArrayBuffer",
203
+ "module": "src/component/functions.ts"
204
+ }
205
+ },
206
+ {
207
+ "kind": "js",
208
+ "name": "getExt",
209
+ "declaration": {
210
+ "name": "getExt",
211
+ "module": "src/component/functions.ts"
212
+ }
213
+ },
214
+ {
215
+ "kind": "js",
216
+ "name": "getExtFromB64",
217
+ "declaration": {
218
+ "name": "getExtFromB64",
219
+ "module": "src/component/functions.ts"
220
+ }
221
+ },
222
+ {
223
+ "kind": "js",
224
+ "name": "getFilename",
225
+ "declaration": {
226
+ "name": "getFilename",
227
+ "module": "src/component/functions.ts"
228
+ }
229
+ },
230
+ {
231
+ "kind": "js",
232
+ "name": "getLottieJSON",
233
+ "declaration": {
234
+ "name": "getLottieJSON",
235
+ "module": "src/component/functions.ts"
236
+ }
237
+ },
238
+ {
239
+ "kind": "js",
240
+ "name": "getManifest",
241
+ "declaration": {
242
+ "name": "getManifest",
243
+ "module": "src/component/functions.ts"
244
+ }
245
+ },
246
+ {
247
+ "kind": "js",
248
+ "name": "getMimeFromExt",
249
+ "declaration": {
250
+ "name": "getMimeFromExt",
251
+ "module": "src/component/functions.ts"
252
+ }
253
+ },
254
+ {
255
+ "kind": "js",
256
+ "name": "isAudio",
257
+ "declaration": {
258
+ "name": "isAudio",
259
+ "module": "src/component/functions.ts"
260
+ }
261
+ },
262
+ {
263
+ "kind": "js",
264
+ "name": "isImage",
265
+ "declaration": {
266
+ "name": "isImage",
267
+ "module": "src/component/functions.ts"
268
+ }
269
+ },
270
+ {
271
+ "kind": "js",
272
+ "name": "isServer",
273
+ "declaration": {
274
+ "name": "isServer",
275
+ "module": "src/component/functions.ts"
276
+ }
277
+ },
278
+ {
279
+ "kind": "js",
280
+ "name": "strToU8",
281
+ "declaration": {
282
+ "name": "strToU8",
283
+ "module": "src/component/functions.ts"
284
+ }
285
+ },
286
+ {
287
+ "kind": "js",
288
+ "name": "resolveAssets",
289
+ "declaration": {
290
+ "name": "resolveAssets",
291
+ "module": "src/component/functions.ts"
292
+ }
293
+ },
294
+ {
295
+ "kind": "js",
296
+ "name": "unzip",
297
+ "declaration": {
298
+ "name": "unzip",
299
+ "module": "src/component/functions.ts"
300
+ }
301
+ },
302
+ {
303
+ "kind": "js",
304
+ "name": "useId",
305
+ "declaration": {
306
+ "name": "useId",
307
+ "module": "src/component/functions.ts"
308
+ }
309
+ }
310
+ ]
311
+ },
312
+ {
313
+ "kind": "javascript-module",
314
+ "path": "src/component/index.ts",
315
+ "declarations": [
316
+ {
317
+ "kind": "class",
318
+ "description": "dotLottie Player Web Component",
319
+ "name": "DotLottiePlayer",
320
+ "members": [
321
+ {
322
+ "kind": "field",
323
+ "name": "autoplay",
324
+ "type": {
325
+ "text": "Autoplay | undefined"
326
+ },
327
+ "description": "Autoplay",
328
+ "attribute": "autoplay",
329
+ "reflects": true
330
+ },
331
+ {
332
+ "kind": "field",
333
+ "name": "background",
334
+ "type": {
335
+ "text": "string | undefined"
336
+ },
337
+ "default": "'transparent'",
338
+ "description": "Background color",
339
+ "attribute": "background"
340
+ },
341
+ {
342
+ "kind": "field",
343
+ "name": "controls",
344
+ "type": {
345
+ "text": "Controls | undefined"
346
+ },
347
+ "default": "false",
348
+ "description": "Display controls",
349
+ "attribute": "controls",
350
+ "reflects": true
351
+ },
352
+ {
353
+ "kind": "field",
354
+ "name": "count",
355
+ "type": {
356
+ "text": "number | undefined"
357
+ },
358
+ "description": "Number of times to loop",
359
+ "attribute": "count"
360
+ },
361
+ {
362
+ "kind": "field",
363
+ "name": "currentState",
364
+ "type": {
365
+ "text": "PlayerState | undefined"
366
+ },
367
+ "description": "Player state",
368
+ "attribute": "currentState"
369
+ },
370
+ {
371
+ "kind": "field",
372
+ "name": "description",
373
+ "type": {
374
+ "text": "string | undefined"
375
+ },
376
+ "description": "Description for screen readers",
377
+ "attribute": "description"
378
+ },
379
+ {
380
+ "kind": "field",
381
+ "name": "direction",
382
+ "type": {
383
+ "text": "AnimationDirection | undefined"
384
+ },
385
+ "default": "1",
386
+ "description": "Direction of animation",
387
+ "attribute": "direction"
388
+ },
389
+ {
390
+ "kind": "field",
391
+ "name": "hover",
392
+ "type": {
393
+ "text": "boolean"
394
+ },
395
+ "default": "false",
396
+ "description": "Whether to play on mouseover",
397
+ "attribute": "hover"
398
+ },
399
+ {
400
+ "kind": "field",
401
+ "name": "intermission",
402
+ "type": {
403
+ "text": "number"
404
+ },
405
+ "default": "0",
406
+ "description": "Intermission",
407
+ "attribute": "intermission"
408
+ },
409
+ {
410
+ "kind": "field",
411
+ "name": "loop",
412
+ "type": {
413
+ "text": "Loop | undefined"
414
+ },
415
+ "default": "false",
416
+ "description": "Whether to loop",
417
+ "attribute": "loop",
418
+ "reflects": true
419
+ },
420
+ {
421
+ "kind": "field",
422
+ "name": "mode",
423
+ "type": {
424
+ "text": "PlayMode | undefined"
425
+ },
426
+ "description": "Play mode",
427
+ "attribute": "mode"
428
+ },
429
+ {
430
+ "kind": "field",
431
+ "name": "objectfit",
432
+ "type": {
433
+ "text": "ObjectFit | undefined"
434
+ },
435
+ "default": "'contain'",
436
+ "description": "Resizing to container",
437
+ "attribute": "objectfit"
438
+ },
439
+ {
440
+ "kind": "field",
441
+ "name": "preserveAspectRatio",
442
+ "type": {
443
+ "text": "PreserveAspectRatio | undefined"
444
+ },
445
+ "description": "Resizing to container (Deprecated)",
446
+ "attribute": "preserveAspectRatio"
447
+ },
448
+ {
449
+ "kind": "field",
450
+ "name": "renderer",
451
+ "type": {
452
+ "text": "RendererType | undefined"
453
+ },
454
+ "default": "'svg'",
455
+ "description": "Renderer to use (svg, canvas or html)",
456
+ "attribute": "renderer"
457
+ },
458
+ {
459
+ "kind": "field",
460
+ "name": "segment",
461
+ "type": {
462
+ "text": "AnimationSegment | undefined"
463
+ },
464
+ "description": "Segment",
465
+ "attribute": "segment"
466
+ },
467
+ {
468
+ "kind": "field",
469
+ "name": "simple",
470
+ "type": {
471
+ "text": "boolean | undefined"
472
+ },
473
+ "default": "false",
474
+ "description": "Hide advanced controls",
475
+ "attribute": "simple"
476
+ },
477
+ {
478
+ "kind": "field",
479
+ "name": "speed",
480
+ "type": {
481
+ "text": "number | undefined"
482
+ },
483
+ "default": "1",
484
+ "description": "Speed",
485
+ "attribute": "speed"
486
+ },
487
+ {
488
+ "kind": "field",
489
+ "name": "src",
490
+ "type": {
491
+ "text": "string"
492
+ },
493
+ "description": "JSON/dotLottie data or URL",
494
+ "attribute": "src"
495
+ },
496
+ {
497
+ "kind": "field",
498
+ "name": "subframe",
499
+ "type": {
500
+ "text": "Subframe | undefined"
501
+ },
502
+ "default": "true",
503
+ "description": "Subframe",
504
+ "attribute": "subframe"
505
+ },
506
+ {
507
+ "kind": "field",
508
+ "name": "container",
509
+ "type": {
510
+ "text": "HTMLElement"
511
+ },
512
+ "privacy": "protected",
513
+ "description": "Animaiton Container"
514
+ },
515
+ {
516
+ "kind": "field",
517
+ "name": "_isSettingsOpen",
518
+ "type": {
519
+ "text": "boolean"
520
+ },
521
+ "privacy": "private",
522
+ "default": "false",
523
+ "description": "Whether settings toolbar is open"
524
+ },
525
+ {
526
+ "kind": "field",
527
+ "name": "_seeker",
528
+ "type": {
529
+ "text": "number"
530
+ },
531
+ "privacy": "private",
532
+ "default": "0",
533
+ "description": "Seeker"
534
+ },
535
+ {
536
+ "kind": "field",
537
+ "name": "_currentAnimation",
538
+ "type": {
539
+ "text": "number"
540
+ },
541
+ "privacy": "private",
542
+ "default": "0",
543
+ "description": "Which animation to show, if several"
544
+ },
545
+ {
546
+ "kind": "field",
547
+ "name": "_intersectionObserver",
548
+ "type": {
549
+ "text": "IntersectionObserver | undefined"
550
+ },
551
+ "privacy": "private"
552
+ },
553
+ {
554
+ "kind": "field",
555
+ "name": "_lottieInstance",
556
+ "type": {
557
+ "text": "AnimationItem | null"
558
+ },
559
+ "privacy": "private",
560
+ "default": "null"
561
+ },
562
+ {
563
+ "kind": "field",
564
+ "name": "_identifier",
565
+ "privacy": "private"
566
+ },
567
+ {
568
+ "kind": "field",
569
+ "name": "_errorMessage",
570
+ "type": {
571
+ "text": "string"
572
+ },
573
+ "privacy": "private",
574
+ "default": "'Something went wrong'"
575
+ },
576
+ {
577
+ "kind": "field",
578
+ "name": "_isDotLottie",
579
+ "type": {
580
+ "text": "boolean"
581
+ },
582
+ "privacy": "private",
583
+ "default": "false"
584
+ },
585
+ {
586
+ "kind": "field",
587
+ "name": "_manifest",
588
+ "type": {
589
+ "text": "LottieManifest"
590
+ },
591
+ "privacy": "private"
592
+ },
593
+ {
594
+ "kind": "field",
595
+ "name": "_animations",
596
+ "type": {
597
+ "text": "LottieJSON[]"
598
+ },
599
+ "privacy": "private"
600
+ },
601
+ {
602
+ "kind": "field",
603
+ "name": "_playerState",
604
+ "type": {
605
+ "text": "object"
606
+ },
607
+ "privacy": "private",
608
+ "default": "{\n prev: PlayerState.Loading,\n count: 0,\n loaded: false,\n }"
609
+ },
610
+ {
611
+ "kind": "method",
612
+ "name": "_getOptions",
613
+ "privacy": "private",
614
+ "description": "Get options from props",
615
+ "return": {
616
+ "type": {
617
+ "text": "AnimationConfig"
618
+ }
619
+ }
620
+ },
621
+ {
622
+ "kind": "method",
623
+ "name": "load",
624
+ "privacy": "public",
625
+ "parameters": [
626
+ {
627
+ "name": "src",
628
+ "type": {
629
+ "text": "string | LottieJSON"
630
+ },
631
+ "description": "URL to lottie animation, or raw JSON data"
632
+ }
633
+ ],
634
+ "description": "Initialize Lottie Web player"
635
+ },
636
+ {
637
+ "kind": "method",
638
+ "name": "_addEventListeners",
639
+ "privacy": "private",
640
+ "description": "Add event listeners"
641
+ },
642
+ {
643
+ "kind": "method",
644
+ "name": "_onVisibilityChange",
645
+ "privacy": "private",
646
+ "description": "Handle visibility change events"
647
+ },
648
+ {
649
+ "kind": "method",
650
+ "name": "_handleSeekChange",
651
+ "privacy": "private",
652
+ "parameters": [
653
+ {
654
+ "name": "{ target }",
655
+ "type": {
656
+ "text": "Event"
657
+ }
658
+ },
659
+ {
660
+ "name": "event",
661
+ "type": {
662
+ "text": "Event & { HTMLInputElement }"
663
+ }
664
+ }
665
+ ],
666
+ "description": "Handles click and drag actions on the progress track"
667
+ },
668
+ {
669
+ "kind": "method",
670
+ "name": "_isLottie",
671
+ "privacy": "private",
672
+ "parameters": [
673
+ {
674
+ "name": "json",
675
+ "type": {
676
+ "text": "LottieJSON"
677
+ }
678
+ }
679
+ ]
680
+ },
681
+ {
682
+ "kind": "method",
683
+ "name": "addAnimation",
684
+ "privacy": "public",
685
+ "parameters": [
686
+ {
687
+ "name": "configs",
688
+ "type": {
689
+ "text": "Config"
690
+ }
691
+ },
692
+ {
693
+ "name": "fileName",
694
+ "optional": true,
695
+ "type": {
696
+ "text": "string"
697
+ }
698
+ },
699
+ {
700
+ "name": "name",
701
+ "type": {
702
+ "text": "string"
703
+ }
704
+ }
705
+ ],
706
+ "description": "Creates a new dotLottie file, by combinig several animations"
707
+ },
708
+ {
709
+ "kind": "method",
710
+ "name": "getLottie",
711
+ "privacy": "public",
712
+ "description": "Returns the lottie-web instance used in the component"
713
+ },
714
+ {
715
+ "kind": "method",
716
+ "name": "play",
717
+ "privacy": "public",
718
+ "description": "Play"
719
+ },
720
+ {
721
+ "kind": "method",
722
+ "name": "pause",
723
+ "privacy": "public",
724
+ "description": "Pause"
725
+ },
726
+ {
727
+ "kind": "method",
728
+ "name": "stop",
729
+ "privacy": "public",
730
+ "description": "Stop"
731
+ },
732
+ {
733
+ "kind": "method",
734
+ "name": "destroy",
735
+ "privacy": "public",
736
+ "description": "Destroy animation and element"
737
+ },
738
+ {
739
+ "kind": "method",
740
+ "name": "seek",
741
+ "privacy": "public",
742
+ "parameters": [
743
+ {
744
+ "name": "value",
745
+ "type": {
746
+ "text": "number | string"
747
+ },
748
+ "description": "Frame to seek to"
749
+ }
750
+ ],
751
+ "description": "Seek to a given frame"
752
+ },
753
+ {
754
+ "kind": "method",
755
+ "name": "snapshot",
756
+ "privacy": "public",
757
+ "description": "Snapshot and download the current frame as SVG"
758
+ },
759
+ {
760
+ "kind": "method",
761
+ "name": "setSubframe",
762
+ "privacy": "public",
763
+ "parameters": [
764
+ {
765
+ "name": "value",
766
+ "type": {
767
+ "text": "boolean"
768
+ },
769
+ "description": "Whether animation uses subframe"
770
+ }
771
+ ],
772
+ "description": "Toggles subframe, for more smooth animations"
773
+ },
774
+ {
775
+ "kind": "method",
776
+ "name": "_freeze",
777
+ "privacy": "private",
778
+ "description": "Freeze animation.\nThis internal state pauses animation and is used to differentiate between\nuser requested pauses and component instigated pauses."
779
+ },
780
+ {
781
+ "kind": "method",
782
+ "name": "reload",
783
+ "privacy": "public",
784
+ "description": "Reload animation"
785
+ },
786
+ {
787
+ "kind": "method",
788
+ "name": "setSpeed",
789
+ "privacy": "public",
790
+ "parameters": [
791
+ {
792
+ "name": "value",
793
+ "default": "1",
794
+ "description": "Playback speed",
795
+ "type": {
796
+ "text": "number"
797
+ }
798
+ }
799
+ ],
800
+ "description": "Set animation playback speed"
801
+ },
802
+ {
803
+ "kind": "method",
804
+ "name": "setDirection",
805
+ "privacy": "public",
806
+ "parameters": [
807
+ {
808
+ "name": "value",
809
+ "type": {
810
+ "text": "AnimationDirection"
811
+ },
812
+ "description": "Animation direction"
813
+ }
814
+ ],
815
+ "description": "Animation play direction"
816
+ },
817
+ {
818
+ "kind": "method",
819
+ "name": "setLooping",
820
+ "privacy": "public",
821
+ "parameters": [
822
+ {
823
+ "name": "value",
824
+ "type": {
825
+ "text": "boolean"
826
+ }
827
+ }
828
+ ],
829
+ "description": "Set loop"
830
+ },
831
+ {
832
+ "kind": "method",
833
+ "name": "togglePlay",
834
+ "privacy": "public",
835
+ "description": "Toggle playing state"
836
+ },
837
+ {
838
+ "kind": "method",
839
+ "name": "toggleLooping",
840
+ "privacy": "public",
841
+ "description": "Toggle loop"
842
+ },
843
+ {
844
+ "kind": "method",
845
+ "name": "toggleBoomerang",
846
+ "privacy": "public",
847
+ "description": "Toggle Boomerang"
848
+ },
849
+ {
850
+ "kind": "method",
851
+ "name": "_toggleSettings",
852
+ "privacy": "private",
853
+ "parameters": [
854
+ {
855
+ "name": "flag",
856
+ "optional": true,
857
+ "type": {
858
+ "text": "boolean"
859
+ }
860
+ }
861
+ ],
862
+ "description": "Toggle show Settings"
863
+ },
864
+ {
865
+ "kind": "method",
866
+ "name": "_switchInstance",
867
+ "privacy": "private"
868
+ },
869
+ {
870
+ "kind": "method",
871
+ "name": "next",
872
+ "privacy": "public",
873
+ "description": "Skip to next animation"
874
+ },
875
+ {
876
+ "kind": "method",
877
+ "name": "prev",
878
+ "privacy": "public",
879
+ "description": "Skip to previous animation"
880
+ },
881
+ {
882
+ "kind": "method",
883
+ "name": "convert",
884
+ "privacy": "public",
885
+ "description": "Convert JSON Lottie to dotLottie"
886
+ },
887
+ {
888
+ "kind": "method",
889
+ "name": "renderControls",
890
+ "privacy": "protected"
891
+ }
892
+ ],
893
+ "events": [
894
+ {
895
+ "type": {
896
+ "text": "CustomEvent"
897
+ }
898
+ }
899
+ ],
900
+ "attributes": [
901
+ {
902
+ "name": "autoplay",
903
+ "type": {
904
+ "text": "Autoplay | undefined"
905
+ },
906
+ "description": "Autoplay",
907
+ "fieldName": "autoplay"
908
+ },
909
+ {
910
+ "name": "background",
911
+ "type": {
912
+ "text": "string | undefined"
913
+ },
914
+ "default": "'transparent'",
915
+ "description": "Background color",
916
+ "fieldName": "background"
917
+ },
918
+ {
919
+ "name": "controls",
920
+ "type": {
921
+ "text": "Controls | undefined"
922
+ },
923
+ "default": "false",
924
+ "description": "Display controls",
925
+ "fieldName": "controls"
926
+ },
927
+ {
928
+ "name": "count",
929
+ "type": {
930
+ "text": "number | undefined"
931
+ },
932
+ "description": "Number of times to loop",
933
+ "fieldName": "count"
934
+ },
935
+ {
936
+ "name": "currentState",
937
+ "type": {
938
+ "text": "PlayerState | undefined"
939
+ },
940
+ "description": "Player state",
941
+ "fieldName": "currentState"
942
+ },
943
+ {
944
+ "name": "description",
945
+ "type": {
946
+ "text": "string | undefined"
947
+ },
948
+ "description": "Description for screen readers",
949
+ "fieldName": "description"
950
+ },
951
+ {
952
+ "name": "direction",
953
+ "type": {
954
+ "text": "AnimationDirection | undefined"
955
+ },
956
+ "default": "1",
957
+ "description": "Direction of animation",
958
+ "fieldName": "direction"
959
+ },
960
+ {
961
+ "name": "hover",
962
+ "type": {
963
+ "text": "boolean"
964
+ },
965
+ "default": "false",
966
+ "description": "Whether to play on mouseover",
967
+ "fieldName": "hover"
968
+ },
969
+ {
970
+ "name": "intermission",
971
+ "type": {
972
+ "text": "number"
973
+ },
974
+ "default": "0",
975
+ "description": "Intermission",
976
+ "fieldName": "intermission"
977
+ },
978
+ {
979
+ "name": "loop",
980
+ "type": {
981
+ "text": "Loop | undefined"
982
+ },
983
+ "default": "false",
984
+ "description": "Whether to loop",
985
+ "fieldName": "loop"
986
+ },
987
+ {
988
+ "name": "mode",
989
+ "type": {
990
+ "text": "PlayMode | undefined"
991
+ },
992
+ "description": "Play mode",
993
+ "fieldName": "mode"
994
+ },
995
+ {
996
+ "name": "objectfit",
997
+ "type": {
998
+ "text": "ObjectFit | undefined"
999
+ },
1000
+ "default": "'contain'",
1001
+ "description": "Resizing to container",
1002
+ "fieldName": "objectfit"
1003
+ },
1004
+ {
1005
+ "name": "preserveAspectRatio",
1006
+ "type": {
1007
+ "text": "PreserveAspectRatio | undefined"
1008
+ },
1009
+ "description": "Resizing to container (Deprecated)",
1010
+ "fieldName": "preserveAspectRatio"
1011
+ },
1012
+ {
1013
+ "name": "renderer",
1014
+ "type": {
1015
+ "text": "RendererType | undefined"
1016
+ },
1017
+ "default": "'svg'",
1018
+ "description": "Renderer to use (svg, canvas or html)",
1019
+ "fieldName": "renderer"
1020
+ },
1021
+ {
1022
+ "name": "segment",
1023
+ "type": {
1024
+ "text": "AnimationSegment | undefined"
1025
+ },
1026
+ "description": "Segment",
1027
+ "fieldName": "segment"
1028
+ },
1029
+ {
1030
+ "name": "simple",
1031
+ "type": {
1032
+ "text": "boolean | undefined"
1033
+ },
1034
+ "default": "false",
1035
+ "description": "Hide advanced controls",
1036
+ "fieldName": "simple"
1037
+ },
1038
+ {
1039
+ "name": "speed",
1040
+ "type": {
1041
+ "text": "number | undefined"
1042
+ },
1043
+ "default": "1",
1044
+ "description": "Speed",
1045
+ "fieldName": "speed"
1046
+ },
1047
+ {
1048
+ "name": "src",
1049
+ "type": {
1050
+ "text": "string"
1051
+ },
1052
+ "description": "JSON/dotLottie data or URL",
1053
+ "fieldName": "src"
1054
+ },
1055
+ {
1056
+ "name": "subframe",
1057
+ "type": {
1058
+ "text": "Subframe | undefined"
1059
+ },
1060
+ "default": "true",
1061
+ "description": "Subframe",
1062
+ "fieldName": "subframe"
1063
+ }
1064
+ ],
1065
+ "superclass": {
1066
+ "name": "LitElement",
1067
+ "package": "lit"
1068
+ },
1069
+ "tagName": "dotlottie-player",
1070
+ "customElement": true
1071
+ }
1072
+ ],
1073
+ "exports": [
1074
+ {
1075
+ "kind": "js",
1076
+ "name": "DotLottiePlayer",
1077
+ "declaration": {
1078
+ "name": "DotLottiePlayer",
1079
+ "module": "src/component/index.ts"
1080
+ }
1081
+ },
1082
+ {
1083
+ "kind": "custom-element-definition",
1084
+ "name": "dotlottie-player",
1085
+ "declaration": {
1086
+ "name": "DotLottiePlayer",
1087
+ "module": "src/component/index.ts"
1088
+ }
1089
+ }
1090
+ ]
1091
+ },
1092
+ {
1093
+ "kind": "javascript-module",
1094
+ "path": "src/component/styles.ts",
1095
+ "declarations": [],
1096
+ "exports": [
1097
+ {
1098
+ "kind": "js",
1099
+ "name": "default",
1100
+ "declaration": {
1101
+ "module": "src/component/styles.ts"
1102
+ }
1103
+ }
1104
+ ]
1105
+ },
1106
+ {
1107
+ "kind": "javascript-module",
1108
+ "path": "src/component/types.ts",
1109
+ "declarations": [
1110
+ {
1111
+ "kind": "class",
1112
+ "description": "",
1113
+ "name": "CustomError",
1114
+ "members": [
1115
+ {
1116
+ "kind": "field",
1117
+ "name": "status",
1118
+ "type": {
1119
+ "text": "number | undefined"
1120
+ }
1121
+ }
1122
+ ],
1123
+ "superclass": {
1124
+ "name": "Error",
1125
+ "module": "src/component/types.ts"
1126
+ }
1127
+ }
1128
+ ],
1129
+ "exports": [
1130
+ {
1131
+ "kind": "js",
1132
+ "name": "CustomError",
1133
+ "declaration": {
1134
+ "name": "CustomError",
1135
+ "module": "src/component/types.ts"
1136
+ }
1137
+ }
1138
+ ]
1139
+ }
1140
+ ]
1141
+ }