type.ts 288 B

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