dom-controller.d.ts 629 B

12345678910111213141516
  1. import * as i0 from "@angular/core";
  2. export declare class DomController {
  3. /**
  4. * Schedules a task to run during the READ phase of the next frame.
  5. * This task should only read the DOM, but never modify it.
  6. */
  7. read(cb: RafCallback): void;
  8. /**
  9. * Schedules a task to run during the WRITE phase of the next frame.
  10. * This task should write the DOM, but never READ it.
  11. */
  12. write(cb: RafCallback): void;
  13. static ɵfac: i0.ɵɵFactoryDeclaration<DomController, never>;
  14. static ɵprov: i0.ɵɵInjectableDeclaration<DomController>;
  15. }
  16. export type RafCallback = (timeStamp?: number) => void;