transform-strategy.d.ts 1.3 KB

12345678910111213141516171819202122232425262728
  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 { Platform } from '@angular/cdk/platform';
  6. import { ChangeDetectorRef, QueryList, Renderer2 } from '@angular/core';
  7. import { Observable } from 'rxjs';
  8. import { NzCarouselContentDirective } from '../carousel-content.directive';
  9. import { NzCarouselComponentAsSource, PointerVector } from '../typings';
  10. import { NzCarouselBaseStrategy } from './base-strategy';
  11. interface NzCarouselTransformStrategyOptions {
  12. direction: 'left' | 'right';
  13. }
  14. export declare class NzCarouselTransformStrategy extends NzCarouselBaseStrategy<NzCarouselTransformStrategyOptions> {
  15. private isDragging;
  16. private isTransitioning;
  17. private get vertical();
  18. constructor(carouselComponent: NzCarouselComponentAsSource, cdr: ChangeDetectorRef, renderer: Renderer2, platform: Platform, options?: NzCarouselTransformStrategyOptions);
  19. dispose(): void;
  20. withCarouselContents(contents: QueryList<NzCarouselContentDirective> | null): void;
  21. switch(_f: number, _t: number): Observable<void>;
  22. dragging(_vector: PointerVector): void;
  23. private verticalTransform;
  24. private horizontalTransform;
  25. private prepareVerticalContext;
  26. private prepareHorizontalContext;
  27. }
  28. export {};