drag.d.ts 988 B

1234567891011121314151617181920212223242526272829
  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 { RendererFactory2 } from '@angular/core';
  6. import { Observable } from 'rxjs';
  7. import * as i0 from "@angular/core";
  8. interface Point {
  9. x: number;
  10. y: number;
  11. }
  12. type Delta = Point;
  13. /**
  14. * This module provide a global dragging service to other components.
  15. */
  16. export declare class NzDragService {
  17. private draggingThreshold;
  18. private currentDraggingSequence;
  19. private currentStartingPoint;
  20. private handleRegistry;
  21. private renderer;
  22. constructor(rendererFactory2: RendererFactory2);
  23. requestDraggingSequence(event: MouseEvent | TouchEvent): Observable<Delta>;
  24. private registerDraggingHandler;
  25. private teardownDraggingSequence;
  26. static ɵfac: i0.ɵɵFactoryDeclaration<NzDragService, never>;
  27. static ɵprov: i0.ɵɵInjectableDeclaration<NzDragService>;
  28. }
  29. export {};