UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

30 lines (29 loc) 889 B
/** * @license * Copyright Alibaba.com All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { RendererFactory2 } from '@angular/core'; import { Observable } from 'rxjs'; interface Point { x: number; y: number; } declare type Delta = Point; /** * This module provide a global dragging service to other components. */ export declare class NzDragService { private draggingThreshold; private currentDraggingSequence; private currentStartingPoint; private handleRegistry; private renderer; constructor(rendererFactory2: RendererFactory2); requestDraggingSequence(event: MouseEvent | TouchEvent): Observable<Delta>; private registerDraggingHandler; private teardownDraggingSequence; } export {};