tab-scroll-list.directive.d.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  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 { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
  6. import { Observable, Subscription } from 'rxjs';
  7. import { NzTabScrollEvent, NzTabScrollEventHandlerFun, NzTabScrollListOffset, NzTabScrollListOffsetEvent } from './interfaces';
  8. import * as i0 from "@angular/core";
  9. export declare class NzTabScrollListDirective implements OnInit, OnDestroy {
  10. private ngZone;
  11. private elementRef;
  12. lastWheelDirection: 'x' | 'y' | null;
  13. lastWheelTimestamp: number;
  14. lastTimestamp: number;
  15. lastTimeDiff: number;
  16. lastMixedWheel: number;
  17. lastWheelPrevent: boolean;
  18. touchPosition: NzTabScrollListOffset | null;
  19. lastOffset: NzTabScrollListOffset | null;
  20. motion: number;
  21. unsubscribe: () => void;
  22. readonly offsetChange: EventEmitter<NzTabScrollListOffsetEvent>;
  23. readonly tabScroll: EventEmitter<NzTabScrollEvent>;
  24. constructor(ngZone: NgZone, elementRef: ElementRef<HTMLElement>);
  25. ngOnInit(): void;
  26. subscribeWrap<T extends NzTabScrollEvent['event']>(type: NzTabScrollEvent['type'], observable: Observable<T>, handler: NzTabScrollEventHandlerFun<T>): Subscription;
  27. onTouchEnd: (e: TouchEvent) => void;
  28. onTouchMove: (e: TouchEvent) => void;
  29. onTouchStart: (e: TouchEvent) => void;
  30. onWheel: (e: WheelEvent) => void;
  31. onOffset(x: number, y: number, event: Event): void;
  32. ngOnDestroy(): void;
  33. static ɵfac: i0.ɵɵFactoryDeclaration<NzTabScrollListDirective, never>;
  34. static ɵdir: i0.ɵɵDirectiveDeclaration<NzTabScrollListDirective, "[nzTabScrollList]", never, {}, { "offsetChange": "offsetChange"; "tabScroll": "tabScroll"; }, never, never, true, never>;
  35. }