type.d.ts 391 B

1234567891011121314151617
  1. export interface VapConfig {
  2. container: HTMLElement;
  3. src: string;
  4. config: string | {
  5. [key: string]: any;
  6. };
  7. fps?: number;
  8. width?: number;
  9. height?: number;
  10. loop: boolean;
  11. mute?: boolean;
  12. precache?: boolean;
  13. accurate: boolean;
  14. onLoadError?: (e: ErrorEvent) => void;
  15. onDestory?: () => void;
  16. [key: string]: any;
  17. }