transform-no-loop-strategy.d.ts 1.3 KB

1234567891011121314151617181920212223242526
  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 NzCarouselTransformOnLoopStrategyOptions {
  12. direction: 'left' | 'right';
  13. }
  14. /**
  15. * this strategy is very much like NzCarouselTransformStrategy, but it doesn't loop between the first and the last one
  16. */
  17. export declare class NzCarouselTransformNoLoopStrategy extends NzCarouselBaseStrategy<NzCarouselTransformOnLoopStrategyOptions> {
  18. private isTransitioning;
  19. private get vertical();
  20. constructor(carouselComponent: NzCarouselComponentAsSource, cdr: ChangeDetectorRef, renderer: Renderer2, platform: Platform, options?: NzCarouselTransformOnLoopStrategyOptions);
  21. dispose(): void;
  22. withCarouselContents(contents: QueryList<NzCarouselContentDirective> | null): void;
  23. switch(_f: number, _t: number): Observable<void>;
  24. dragging(vector: PointerVector): void;
  25. }
  26. export {};