typings.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { Direction } from '@angular/cdk/bidi';
  6. import { InjectionToken, NgZone, QueryList } from '@angular/core';
  7. import { NzCarouselContentDirective } from './carousel-content.directive';
  8. import { NzCarouselBaseStrategy } from './strategies/base-strategy';
  9. export type NzCarouselEffects = 'fade' | 'scrollx' | string;
  10. export type NzCarouselDotPosition = 'top' | 'bottom' | 'left' | 'right' | string;
  11. export interface NzCarouselComponentAsSource {
  12. carouselContents: QueryList<NzCarouselContentDirective>;
  13. el: HTMLElement;
  14. nzTransitionSpeed: number;
  15. vertical: boolean;
  16. slickListEl: HTMLElement;
  17. slickTrackEl: HTMLElement;
  18. activeIndex: number;
  19. dir: Direction;
  20. ngZone: NgZone;
  21. }
  22. export interface NzCarouselStrategyRegistryItem {
  23. name: string;
  24. strategy: NzCarouselBaseStrategy;
  25. }
  26. export declare const NZ_CAROUSEL_CUSTOM_STRATEGIES: InjectionToken<NzCarouselStrategyRegistryItem[]>;
  27. export interface PointerVector {
  28. x: number;
  29. y: number;
  30. }
  31. export interface FromToInterface {
  32. from: number;
  33. to: number;
  34. }