@eva/plugin-renderer-lottie 2.0.1-beta.2 → 2.0.1-beta.21

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.
@@ -22,18 +22,21 @@ declare interface IExpandOpts {
22
22
  [key: string]: any;
23
23
  };
24
24
  }>;
25
+ direction?: 1 | -1;
25
26
  }
26
27
 
27
28
  declare interface IOptions {
28
29
  resource: string;
29
30
  width?: number;
30
31
  height?: number;
32
+ replaceData?: boolean;
31
33
  }
32
34
 
33
35
  export declare class Lottie extends Component {
34
36
  slot: {
35
37
  [key: string]: string;
36
38
  };
39
+ _replaceData: Record<string, string> | null;
37
40
  static componentName: string;
38
41
  anim: any;
39
42
  options: ExtendOptions;
@@ -47,6 +50,7 @@ export declare class Lottie extends Component {
47
50
  };
48
51
  constructor(options: IOptions);
49
52
  play(params?: number[], expandOpts?: IExpandOpts): void;
53
+ replaceData(data: Record<string, string>): void;
50
54
  playParamsHandle(params: any): any[];
51
55
  onTap(name: any, callback: any): void;
52
56
  }
@@ -62,6 +66,7 @@ export declare class LottieSystem extends Renderer {
62
66
  init(): void;
63
67
  componentChanged(changed: ComponentChanged): Promise<void>;
64
68
  add(changed: ComponentChanged): Promise<void>;
69
+ getDir(url: string): string;
65
70
  remove(changed: ComponentChanged): void;
66
71
  }
67
72