animations.d.ts 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /**
  2. * @license Angular v8.1.3
  3. * (c) 2010-2019 Google LLC. https://angular.io/
  4. * License: MIT
  5. */
  6. import { AnimationBuilder } from '@angular/animations';
  7. import { AnimationDriver } from '@angular/animations/browser';
  8. import { AnimationFactory } from '@angular/animations';
  9. import { AnimationMetadata } from '@angular/animations';
  10. import { AnimationOptions } from '@angular/animations';
  11. import { AnimationPlayer } from '@angular/animations';
  12. import { InjectionToken } from '@angular/core';
  13. import { NgZone } from '@angular/core';
  14. import { Provider } from '@angular/core';
  15. import { Renderer2 } from '@angular/core';
  16. import { RendererFactory2 } from '@angular/core';
  17. import { RendererStyleFlags2 } from '@angular/core';
  18. import { RendererType2 } from '@angular/core';
  19. import { ɵAnimationEngine } from '@angular/animations/browser';
  20. import { ɵAnimationStyleNormalizer } from '@angular/animations/browser';
  21. import { ɵCssKeyframesDriver } from '@angular/animations/browser';
  22. import { ɵDomRendererFactory2 } from '@angular/platform-browser';
  23. import { ɵWebAnimationsDriver } from '@angular/animations/browser';
  24. import { ɵWebAnimationsStyleNormalizer } from '@angular/animations/browser';
  25. /**
  26. * @publicApi
  27. */
  28. export declare const ANIMATION_MODULE_TYPE: InjectionToken<"NoopAnimations" | "BrowserAnimations">;
  29. /**
  30. * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)
  31. * for use with animations. See [Animations](guide/animations).
  32. * @publicApi
  33. */
  34. export declare class BrowserAnimationsModule {
  35. }
  36. /**
  37. * A null player that must be imported to allow disabling of animations.
  38. * @publicApi
  39. */
  40. export declare class NoopAnimationsModule {
  41. }
  42. export declare function ɵangular_packages_platform_browser_animations_animations_a(): ɵWebAnimationsDriver | ɵCssKeyframesDriver;
  43. export declare function ɵangular_packages_platform_browser_animations_animations_b(): ɵWebAnimationsStyleNormalizer;
  44. export declare function ɵangular_packages_platform_browser_animations_animations_c(renderer: ɵDomRendererFactory2, engine: ɵAnimationEngine, zone: NgZone): ɵAnimationRendererFactory;
  45. /**
  46. * Separate providers from the actual module so that we can do a local modification in Google3 to
  47. * include them in the BrowserModule.
  48. */
  49. export declare const ɵangular_packages_platform_browser_animations_animations_d: Provider[];
  50. /**
  51. * Separate providers from the actual module so that we can do a local modification in Google3 to
  52. * include them in the BrowserTestingModule.
  53. */
  54. export declare const ɵangular_packages_platform_browser_animations_animations_e: Provider[];
  55. export declare class ɵangular_packages_platform_browser_animations_animations_f implements Renderer2 {
  56. protected namespaceId: string;
  57. delegate: Renderer2;
  58. engine: ɵAnimationEngine;
  59. constructor(namespaceId: string, delegate: Renderer2, engine: ɵAnimationEngine);
  60. readonly data: {
  61. [key: string]: any;
  62. };
  63. destroyNode: ((n: any) => void) | null;
  64. destroy(): void;
  65. createElement(name: string, namespace?: string | null | undefined): any;
  66. createComment(value: string): any;
  67. createText(value: string): any;
  68. appendChild(parent: any, newChild: any): void;
  69. insertBefore(parent: any, newChild: any, refChild: any): void;
  70. removeChild(parent: any, oldChild: any, isHostElement: boolean): void;
  71. selectRootElement(selectorOrNode: any, preserveContent?: boolean): any;
  72. parentNode(node: any): any;
  73. nextSibling(node: any): any;
  74. setAttribute(el: any, name: string, value: string, namespace?: string | null | undefined): void;
  75. removeAttribute(el: any, name: string, namespace?: string | null | undefined): void;
  76. addClass(el: any, name: string): void;
  77. removeClass(el: any, name: string): void;
  78. setStyle(el: any, style: string, value: any, flags?: RendererStyleFlags2 | undefined): void;
  79. removeStyle(el: any, style: string, flags?: RendererStyleFlags2 | undefined): void;
  80. setProperty(el: any, name: string, value: any): void;
  81. setValue(node: any, value: string): void;
  82. listen(target: any, eventName: string, callback: (event: any) => boolean | void): () => void;
  83. protected disableAnimations(element: any, value: boolean): void;
  84. }
  85. export declare class ɵAnimationRenderer extends ɵangular_packages_platform_browser_animations_animations_f implements Renderer2 {
  86. factory: ɵAnimationRendererFactory;
  87. constructor(factory: ɵAnimationRendererFactory, namespaceId: string, delegate: Renderer2, engine: ɵAnimationEngine);
  88. setProperty(el: any, name: string, value: any): void;
  89. listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => any): () => void;
  90. }
  91. export declare class ɵAnimationRendererFactory implements RendererFactory2 {
  92. private delegate;
  93. private engine;
  94. private _zone;
  95. private _currentId;
  96. private _microtaskId;
  97. private _animationCallbacksBuffer;
  98. private _rendererCache;
  99. private _cdRecurDepth;
  100. private promise;
  101. constructor(delegate: RendererFactory2, engine: ɵAnimationEngine, _zone: NgZone);
  102. createRenderer(hostElement: any, type: RendererType2): Renderer2;
  103. begin(): void;
  104. private _scheduleCountTask;
  105. end(): void;
  106. whenRenderingDone(): Promise<any>;
  107. }
  108. export declare class ɵBrowserAnimationBuilder extends AnimationBuilder {
  109. private _nextAnimationId;
  110. private _renderer;
  111. constructor(rootRenderer: RendererFactory2, doc: any);
  112. build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory;
  113. }
  114. export declare class ɵBrowserAnimationFactory extends AnimationFactory {
  115. private _id;
  116. private _renderer;
  117. constructor(_id: string, _renderer: ɵAnimationRenderer);
  118. create(element: any, options?: AnimationOptions): AnimationPlayer;
  119. }
  120. export declare class ɵInjectableAnimationEngine extends ɵAnimationEngine {
  121. constructor(doc: any, driver: AnimationDriver, normalizer: ɵAnimationStyleNormalizer);
  122. }
  123. export { }