@lottiefiles/dotlottie-svelte 0.9.2 → 0.9.3

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.
@@ -6,27 +6,27 @@ export function setWasmUrl(url: string): void {
6
6
  DotLottie.setWasmUrl(url);
7
7
  }
8
8
 
9
- export const autoplay: Config['autoplay'] = false;
10
- export const backgroundColor: Config['backgroundColor'] = undefined;
11
- export const data: Config['data'] = undefined;
12
- export const loop: Config['loop'] = false;
13
- export const mode: Config['mode'] = 'forward';
14
- export const renderConfig: Config['renderConfig'] = undefined;
15
- export const segment: Config['segment'] = undefined;
16
- export const speed: Config['speed'] = 1;
17
- export const src: Config['src'] = undefined;
18
- export const useFrameInterpolation: Config['useFrameInterpolation'] = true;
19
- export const marker: Config['marker'] = undefined;
20
- export const layout: Config['layout'] = undefined;
21
- export const animationId: Config['animationId'] = '';
22
- export const themeId: Config['themeId'] = '';
23
- export const stateMachineId: Config['stateMachineId'] = undefined;
24
- export const stateMachineConfig: Config['stateMachineConfig'] = undefined;
25
-
26
- export const playOnHover: boolean = false;
27
- export const themeData: string = '';
28
-
29
- export const dotLottieRefCallback: (dotLottie: DotLottie) => void = () => {};
9
+ export let autoplay: Config['autoplay'] = false;
10
+ export let backgroundColor: Config['backgroundColor'] = undefined;
11
+ export let data: Config['data'] = undefined;
12
+ export let loop: Config['loop'] = false;
13
+ export let mode: Config['mode'] = 'forward';
14
+ export let renderConfig: Config['renderConfig'] = undefined;
15
+ export let segment: Config['segment'] = undefined;
16
+ export let speed: Config['speed'] = 1;
17
+ export let src: Config['src'] = undefined;
18
+ export let useFrameInterpolation: Config['useFrameInterpolation'] = true;
19
+ export let marker: Config['marker'] = undefined;
20
+ export let layout: Config['layout'] = undefined;
21
+ export let animationId: Config['animationId'] = '';
22
+ export let themeId: Config['themeId'] = '';
23
+ export let stateMachineId: Config['stateMachineId'] = undefined;
24
+ export let stateMachineConfig: Config['stateMachineConfig'] = undefined;
25
+
26
+ export let playOnHover: boolean = false;
27
+ export let themeData: string = '';
28
+
29
+ export let dotLottieRefCallback: (dotLottie: DotLottie) => void = () => {};
30
30
 
31
31
  const hoverHandler = (event: MouseEvent) => {
32
32
  if (!playOnHover || !dotLottie.isLoaded) return;
@@ -37,25 +37,6 @@ declare const Dotlottie: $$__sveltets_2_IsomorphicComponent<{
37
37
  [evt: string]: CustomEvent<any>;
38
38
  }, {}, {
39
39
  setWasmUrl: (url: string) => void;
40
- autoplay: Config["autoplay"];
41
- backgroundColor: Config["backgroundColor"];
42
- data: Config["data"];
43
- loop: Config["loop"];
44
- mode: Config["mode"];
45
- renderConfig: Config["renderConfig"];
46
- segment: Config["segment"];
47
- speed: Config["speed"];
48
- src: Config["src"];
49
- useFrameInterpolation: Config["useFrameInterpolation"];
50
- marker: Config["marker"];
51
- layout: Config["layout"];
52
- animationId: Config["animationId"];
53
- themeId: Config["themeId"];
54
- stateMachineId: Config["stateMachineId"];
55
- stateMachineConfig: Config["stateMachineConfig"];
56
- playOnHover: boolean;
57
- themeData: string;
58
- dotLottieRefCallback: (dotLottie: DotLottie) => void;
59
40
  }, string>;
60
41
  type Dotlottie = InstanceType<typeof Dotlottie>;
61
42
  export default Dotlottie;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lottiefiles/dotlottie-svelte",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "type": "module",
5
5
  "description": "Svelte component wrapper around the dotlottie-web library to render Lottie and dotLottie animations",
6
6
  "repository": {