animation_driver.d-DAiEDqQt.d.ts 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /**
  2. * @license Angular v19.2.13
  3. * (c) 2010-2025 Google LLC. https://angular.io/
  4. * License: MIT
  5. */
  6. import * as i0 from '@angular/core';
  7. import { AnimationPlayer } from './animation_player.d-Dv9iW4uh.js';
  8. /**
  9. * @publicApi
  10. *
  11. * `AnimationDriver` implentation for Noop animations
  12. */
  13. declare class NoopAnimationDriver implements AnimationDriver {
  14. /**
  15. * @returns Whether `prop` is a valid CSS property
  16. */
  17. validateStyleProperty(prop: string): boolean;
  18. /**
  19. *
  20. * @returns Whether elm1 contains elm2.
  21. */
  22. containsElement(elm1: any, elm2: any): boolean;
  23. /**
  24. * @returns Rhe parent of the given element or `null` if the element is the `document`
  25. */
  26. getParentElement(element: unknown): unknown;
  27. /**
  28. * @returns The result of the query selector on the element. The array will contain up to 1 item
  29. * if `multi` is `false`.
  30. */
  31. query(element: any, selector: string, multi: boolean): any[];
  32. /**
  33. * @returns The `defaultValue` or empty string
  34. */
  35. computeStyle(element: any, prop: string, defaultValue?: string): string;
  36. /**
  37. * @returns An `NoopAnimationPlayer`
  38. */
  39. animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing: string, previousPlayers?: any[], scrubberAccessRequested?: boolean): AnimationPlayer;
  40. static ɵfac: i0.ɵɵFactoryDeclaration<NoopAnimationDriver, never>;
  41. static ɵprov: i0.ɵɵInjectableDeclaration<NoopAnimationDriver>;
  42. }
  43. /**
  44. * @publicApi
  45. */
  46. declare abstract class AnimationDriver {
  47. /**
  48. * @deprecated Use the NoopAnimationDriver class.
  49. */
  50. static NOOP: AnimationDriver;
  51. abstract validateStyleProperty(prop: string): boolean;
  52. abstract validateAnimatableStyleProperty?: (prop: string) => boolean;
  53. abstract containsElement(elm1: any, elm2: any): boolean;
  54. /**
  55. * Obtains the parent element, if any. `null` is returned if the element does not have a parent.
  56. */
  57. abstract getParentElement(element: unknown): unknown;
  58. abstract query(element: any, selector: string, multi: boolean): any[];
  59. abstract computeStyle(element: any, prop: string, defaultValue?: string): string;
  60. abstract animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing?: string | null, previousPlayers?: any[], scrubberAccessRequested?: boolean): any;
  61. }
  62. export { AnimationDriver, NoopAnimationDriver };