animation.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. export default class SlAnimation extends LitElement {
  4. static styles: import("lit").CSSResult;
  5. private animation;
  6. private hasStarted;
  7. defaultSlot: Promise<HTMLSlotElement>;
  8. name: string;
  9. delay: number;
  10. direction: PlaybackDirection;
  11. duration: number;
  12. easing: string;
  13. endDelay: number;
  14. fill: FillMode;
  15. iterations: number;
  16. iterationStart: number;
  17. keyframes: Keyframe[];
  18. playbackRate: number;
  19. pause: boolean;
  20. slCancel: EventEmitter<void>;
  21. slFinish: EventEmitter<void>;
  22. slStart: EventEmitter<void>;
  23. connectedCallback(): void;
  24. disconnectedCallback(): void;
  25. handleAnimationChange(): void;
  26. handleAnimationFinish(): void;
  27. handleAnimationCancel(): void;
  28. handlePauseChange(): boolean;
  29. handlePlaybackRateChange(): void;
  30. handleSlotChange(): void;
  31. createAnimation(): Promise<boolean>;
  32. destroyAnimation(): void;
  33. cancel(): void;
  34. finish(): void;
  35. getCurrentTime(): number | null;
  36. setCurrentTime(time: number): void;
  37. render(): import("lit-html").TemplateResult<1>;
  38. }
  39. declare global {
  40. interface HTMLElementTagNameMap {
  41. 'sl-animation': SlAnimation;
  42. }
  43. }