@aarsteinmedia/dotlottie-player 2.1.4 → 2.1.6

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