[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { NgZone, ElementRef } from '@angular/core';
|
---|
| 9 | import { ViewportRuler } from '@angular/cdk/scrolling';
|
---|
| 10 | import { DragRef, DragRefConfig } from './drag-ref';
|
---|
| 11 | import { DropListRef } from './drop-list-ref';
|
---|
| 12 | import { DragDropRegistry } from './drag-drop-registry';
|
---|
| 13 | /**
|
---|
| 14 | * Service that allows for drag-and-drop functionality to be attached to DOM elements.
|
---|
| 15 | */
|
---|
[fa375fe] | 16 | import * as ɵngcc0 from '@angular/core';
|
---|
[6a3a178] | 17 | export declare class DragDrop {
|
---|
| 18 | private _document;
|
---|
| 19 | private _ngZone;
|
---|
| 20 | private _viewportRuler;
|
---|
| 21 | private _dragDropRegistry;
|
---|
| 22 | constructor(_document: any, _ngZone: NgZone, _viewportRuler: ViewportRuler, _dragDropRegistry: DragDropRegistry<DragRef, DropListRef>);
|
---|
| 23 | /**
|
---|
| 24 | * Turns an element into a draggable item.
|
---|
| 25 | * @param element Element to which to attach the dragging functionality.
|
---|
| 26 | * @param config Object used to configure the dragging behavior.
|
---|
| 27 | */
|
---|
| 28 | createDrag<T = any>(element: ElementRef<HTMLElement> | HTMLElement, config?: DragRefConfig): DragRef<T>;
|
---|
| 29 | /**
|
---|
| 30 | * Turns an element into a drop list.
|
---|
| 31 | * @param element Element to which to attach the drop list functionality.
|
---|
| 32 | */
|
---|
| 33 | createDropList<T = any>(element: ElementRef<HTMLElement> | HTMLElement): DropListRef<T>;
|
---|
[fa375fe] | 34 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<DragDrop, never>;
|
---|
[6a3a178] | 35 | }
|
---|
[fa375fe] | 36 |
|
---|
| 37 | //# sourceMappingURL=drag-drop.d.ts.map |
---|