background.d.ts 921 B

1234567891011121314151617181920
  1. import { Background } from '../registry';
  2. import { Base } from './base';
  3. export declare class BackgroundManager extends Base {
  4. protected optionsCache: BackgroundManager.Options | null;
  5. protected get elem(): HTMLDivElement;
  6. protected init(): void;
  7. protected startListening(): void;
  8. protected stopListening(): void;
  9. protected updateBackgroundImage(options?: BackgroundManager.Options): void;
  10. protected drawBackgroundImage(img?: HTMLImageElement | null, options?: BackgroundManager.Options): void;
  11. protected updateBackgroundColor(color?: string | null): void;
  12. protected updateBackgroundOptions(options?: BackgroundManager.Options): void;
  13. update(): void;
  14. draw(options?: BackgroundManager.Options): void;
  15. clear(): void;
  16. dispose(): void;
  17. }
  18. export declare namespace BackgroundManager {
  19. type Options = Background.Options | Background.NativeItem | Background.ManaualItem;
  20. }