@aarsteinmedia/dotlottie-player 2.0.7 → 2.0.9

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,1128 @@
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
+ "description": "Creates a new dotLottie file, by combinig several animations"
694
+ },
695
+ {
696
+ "kind": "method",
697
+ "name": "getLottie",
698
+ "privacy": "public",
699
+ "description": "Returns the lottie-web instance used in the component"
700
+ },
701
+ {
702
+ "kind": "method",
703
+ "name": "play",
704
+ "privacy": "public",
705
+ "description": "Play"
706
+ },
707
+ {
708
+ "kind": "method",
709
+ "name": "pause",
710
+ "privacy": "public",
711
+ "description": "Pause"
712
+ },
713
+ {
714
+ "kind": "method",
715
+ "name": "stop",
716
+ "privacy": "public",
717
+ "description": "Stop"
718
+ },
719
+ {
720
+ "kind": "method",
721
+ "name": "destroy",
722
+ "privacy": "public",
723
+ "description": "Destroy animation and element"
724
+ },
725
+ {
726
+ "kind": "method",
727
+ "name": "seek",
728
+ "privacy": "public",
729
+ "parameters": [
730
+ {
731
+ "name": "value",
732
+ "type": {
733
+ "text": "number | string"
734
+ },
735
+ "description": "Frame to seek to"
736
+ }
737
+ ],
738
+ "description": "Seek to a given frame"
739
+ },
740
+ {
741
+ "kind": "method",
742
+ "name": "snapshot",
743
+ "privacy": "public",
744
+ "description": "Snapshot and download the current frame as SVG"
745
+ },
746
+ {
747
+ "kind": "method",
748
+ "name": "setSubframe",
749
+ "privacy": "public",
750
+ "parameters": [
751
+ {
752
+ "name": "value",
753
+ "type": {
754
+ "text": "boolean"
755
+ },
756
+ "description": "Whether animation uses subframe"
757
+ }
758
+ ],
759
+ "description": "Toggles subframe, for more smooth animations"
760
+ },
761
+ {
762
+ "kind": "method",
763
+ "name": "_freeze",
764
+ "privacy": "private",
765
+ "description": "Freeze animation.\nThis internal state pauses animation and is used to differentiate between\nuser requested pauses and component instigated pauses."
766
+ },
767
+ {
768
+ "kind": "method",
769
+ "name": "reload",
770
+ "privacy": "public",
771
+ "description": "Reload animation"
772
+ },
773
+ {
774
+ "kind": "method",
775
+ "name": "setSpeed",
776
+ "privacy": "public",
777
+ "parameters": [
778
+ {
779
+ "name": "value",
780
+ "default": "1",
781
+ "description": "Playback speed",
782
+ "type": {
783
+ "text": "number"
784
+ }
785
+ }
786
+ ],
787
+ "description": "Set animation playback speed"
788
+ },
789
+ {
790
+ "kind": "method",
791
+ "name": "setDirection",
792
+ "privacy": "public",
793
+ "parameters": [
794
+ {
795
+ "name": "value",
796
+ "type": {
797
+ "text": "AnimationDirection"
798
+ },
799
+ "description": "Animation direction"
800
+ }
801
+ ],
802
+ "description": "Animation play direction"
803
+ },
804
+ {
805
+ "kind": "method",
806
+ "name": "setLooping",
807
+ "privacy": "public",
808
+ "parameters": [
809
+ {
810
+ "name": "value",
811
+ "type": {
812
+ "text": "boolean"
813
+ }
814
+ }
815
+ ],
816
+ "description": "Set loop"
817
+ },
818
+ {
819
+ "kind": "method",
820
+ "name": "togglePlay",
821
+ "privacy": "public",
822
+ "description": "Toggle playing state"
823
+ },
824
+ {
825
+ "kind": "method",
826
+ "name": "toggleLooping",
827
+ "privacy": "public",
828
+ "description": "Toggle loop"
829
+ },
830
+ {
831
+ "kind": "method",
832
+ "name": "toggleBoomerang",
833
+ "privacy": "public",
834
+ "description": "Toggle Boomerang"
835
+ },
836
+ {
837
+ "kind": "method",
838
+ "name": "_toggleSettings",
839
+ "privacy": "private",
840
+ "parameters": [
841
+ {
842
+ "name": "flag",
843
+ "optional": true,
844
+ "type": {
845
+ "text": "boolean"
846
+ }
847
+ }
848
+ ],
849
+ "description": "Toggle show Settings"
850
+ },
851
+ {
852
+ "kind": "method",
853
+ "name": "_switchInstance",
854
+ "privacy": "private"
855
+ },
856
+ {
857
+ "kind": "method",
858
+ "name": "next",
859
+ "privacy": "public",
860
+ "description": "Skip to next animation"
861
+ },
862
+ {
863
+ "kind": "method",
864
+ "name": "prev",
865
+ "privacy": "public",
866
+ "description": "Skip to previous animation"
867
+ },
868
+ {
869
+ "kind": "method",
870
+ "name": "convert",
871
+ "privacy": "public",
872
+ "description": "Convert JSON Lottie to dotLottie"
873
+ },
874
+ {
875
+ "kind": "method",
876
+ "name": "renderControls",
877
+ "privacy": "protected"
878
+ }
879
+ ],
880
+ "events": [
881
+ {
882
+ "type": {
883
+ "text": "CustomEvent"
884
+ }
885
+ }
886
+ ],
887
+ "attributes": [
888
+ {
889
+ "name": "autoplay",
890
+ "type": {
891
+ "text": "Autoplay | undefined"
892
+ },
893
+ "description": "Autoplay",
894
+ "fieldName": "autoplay"
895
+ },
896
+ {
897
+ "name": "background",
898
+ "type": {
899
+ "text": "string | undefined"
900
+ },
901
+ "default": "'transparent'",
902
+ "description": "Background color",
903
+ "fieldName": "background"
904
+ },
905
+ {
906
+ "name": "controls",
907
+ "type": {
908
+ "text": "Controls | undefined"
909
+ },
910
+ "default": "false",
911
+ "description": "Display controls",
912
+ "fieldName": "controls"
913
+ },
914
+ {
915
+ "name": "count",
916
+ "type": {
917
+ "text": "number | undefined"
918
+ },
919
+ "description": "Number of times to loop",
920
+ "fieldName": "count"
921
+ },
922
+ {
923
+ "name": "currentState",
924
+ "type": {
925
+ "text": "PlayerState | undefined"
926
+ },
927
+ "description": "Player state",
928
+ "fieldName": "currentState"
929
+ },
930
+ {
931
+ "name": "description",
932
+ "type": {
933
+ "text": "string | undefined"
934
+ },
935
+ "description": "Description for screen readers",
936
+ "fieldName": "description"
937
+ },
938
+ {
939
+ "name": "direction",
940
+ "type": {
941
+ "text": "AnimationDirection | undefined"
942
+ },
943
+ "default": "1",
944
+ "description": "Direction of animation",
945
+ "fieldName": "direction"
946
+ },
947
+ {
948
+ "name": "hover",
949
+ "type": {
950
+ "text": "boolean"
951
+ },
952
+ "default": "false",
953
+ "description": "Whether to play on mouseover",
954
+ "fieldName": "hover"
955
+ },
956
+ {
957
+ "name": "intermission",
958
+ "type": {
959
+ "text": "number"
960
+ },
961
+ "default": "0",
962
+ "description": "Intermission",
963
+ "fieldName": "intermission"
964
+ },
965
+ {
966
+ "name": "loop",
967
+ "type": {
968
+ "text": "Loop | undefined"
969
+ },
970
+ "default": "false",
971
+ "description": "Whether to loop",
972
+ "fieldName": "loop"
973
+ },
974
+ {
975
+ "name": "mode",
976
+ "type": {
977
+ "text": "PlayMode | undefined"
978
+ },
979
+ "description": "Play mode",
980
+ "fieldName": "mode"
981
+ },
982
+ {
983
+ "name": "objectfit",
984
+ "type": {
985
+ "text": "ObjectFit | undefined"
986
+ },
987
+ "default": "'contain'",
988
+ "description": "Resizing to container",
989
+ "fieldName": "objectfit"
990
+ },
991
+ {
992
+ "name": "preserveAspectRatio",
993
+ "type": {
994
+ "text": "PreserveAspectRatio | undefined"
995
+ },
996
+ "description": "Resizing to container (Deprecated)",
997
+ "fieldName": "preserveAspectRatio"
998
+ },
999
+ {
1000
+ "name": "renderer",
1001
+ "type": {
1002
+ "text": "RendererType | undefined"
1003
+ },
1004
+ "default": "'svg'",
1005
+ "description": "Renderer to use (svg, canvas or html)",
1006
+ "fieldName": "renderer"
1007
+ },
1008
+ {
1009
+ "name": "segment",
1010
+ "type": {
1011
+ "text": "AnimationSegment | undefined"
1012
+ },
1013
+ "description": "Segment",
1014
+ "fieldName": "segment"
1015
+ },
1016
+ {
1017
+ "name": "simple",
1018
+ "type": {
1019
+ "text": "boolean | undefined"
1020
+ },
1021
+ "default": "false",
1022
+ "description": "Hide advanced controls",
1023
+ "fieldName": "simple"
1024
+ },
1025
+ {
1026
+ "name": "speed",
1027
+ "type": {
1028
+ "text": "number | undefined"
1029
+ },
1030
+ "default": "1",
1031
+ "description": "Speed",
1032
+ "fieldName": "speed"
1033
+ },
1034
+ {
1035
+ "name": "src",
1036
+ "type": {
1037
+ "text": "string"
1038
+ },
1039
+ "description": "JSON/dotLottie data or URL",
1040
+ "fieldName": "src"
1041
+ },
1042
+ {
1043
+ "name": "subframe",
1044
+ "type": {
1045
+ "text": "Subframe | undefined"
1046
+ },
1047
+ "default": "true",
1048
+ "description": "Subframe",
1049
+ "fieldName": "subframe"
1050
+ }
1051
+ ],
1052
+ "superclass": {
1053
+ "name": "LitElement",
1054
+ "package": "lit"
1055
+ },
1056
+ "tagName": "dotlottie-player",
1057
+ "customElement": true
1058
+ }
1059
+ ],
1060
+ "exports": [
1061
+ {
1062
+ "kind": "js",
1063
+ "name": "DotLottiePlayer",
1064
+ "declaration": {
1065
+ "name": "DotLottiePlayer",
1066
+ "module": "src/component/index.ts"
1067
+ }
1068
+ },
1069
+ {
1070
+ "kind": "custom-element-definition",
1071
+ "name": "dotlottie-player",
1072
+ "declaration": {
1073
+ "name": "DotLottiePlayer",
1074
+ "module": "src/component/index.ts"
1075
+ }
1076
+ }
1077
+ ]
1078
+ },
1079
+ {
1080
+ "kind": "javascript-module",
1081
+ "path": "src/component/styles.ts",
1082
+ "declarations": [],
1083
+ "exports": [
1084
+ {
1085
+ "kind": "js",
1086
+ "name": "default",
1087
+ "declaration": {
1088
+ "module": "src/component/styles.ts"
1089
+ }
1090
+ }
1091
+ ]
1092
+ },
1093
+ {
1094
+ "kind": "javascript-module",
1095
+ "path": "src/component/types.ts",
1096
+ "declarations": [
1097
+ {
1098
+ "kind": "class",
1099
+ "description": "",
1100
+ "name": "CustomError",
1101
+ "members": [
1102
+ {
1103
+ "kind": "field",
1104
+ "name": "status",
1105
+ "type": {
1106
+ "text": "number | undefined"
1107
+ }
1108
+ }
1109
+ ],
1110
+ "superclass": {
1111
+ "name": "Error",
1112
+ "module": "src/component/types.ts"
1113
+ }
1114
+ }
1115
+ ],
1116
+ "exports": [
1117
+ {
1118
+ "kind": "js",
1119
+ "name": "CustomError",
1120
+ "declaration": {
1121
+ "name": "CustomError",
1122
+ "module": "src/component/types.ts"
1123
+ }
1124
+ }
1125
+ ]
1126
+ }
1127
+ ]
1128
+ }