UNPKG

@hyperviewhq/angular2gridster

Version:

[![npm version](https://badge.fury.io/js/angular2gridster.svg)](https://badge.fury.io/js/angular2gridster)

42 lines (41 loc) 1.82 kB
import { Observable } from 'rxjs'; import { GridsterService } from '../gridster.service'; import { GridsterItemPrototypeDirective } from './gridster-item-prototype.directive'; import { DraggableEvent } from '../utils/DraggableEvent'; import * as i0 from "@angular/core"; export declare class GridsterPrototypeService { private isDragging; private dragSubject; private dragStartSubject; private dragStopSubject; constructor(); observeDropOver(gridster: GridsterService): Observable<any>; observeDropOut(gridster: GridsterService): Observable<any>; observeDragOver(gridster: GridsterService): { dragOver: Observable<GridsterItemPrototypeDirective>; dragEnter: Observable<GridsterItemPrototypeDirective>; dragOut: Observable<GridsterItemPrototypeDirective>; }; dragItemStart(item: GridsterItemPrototypeDirective, event: DraggableEvent): void; dragItemStop(item: GridsterItemPrototypeDirective, event: DraggableEvent): void; updatePrototypePosition(item: GridsterItemPrototypeDirective, event: DraggableEvent): void; /** * Creates observable that is fired on dragging over gridster container. */ private createDragOverObservable; /** * Creates observable that is fired on drag enter gridster container. */ private createDragEnterObservable; /** * Creates observable that is fired on drag out gridster container. */ private createDragOutObservable; /** * Checks whether "element" position fits inside "containerEl" position. * It checks if "element" is totally covered by "containerEl" area. */ private isOverGridster; static ɵfac: i0.ɵɵFactoryDeclaration<GridsterPrototypeService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<GridsterPrototypeService>; }