UNPKG

ngx-gridster

Version:
48 lines (47 loc) 2.24 kB
import { GridsterConfigS } from './gridsterConfigS.interface'; import { ChangeDetectorRef, NgZone, Renderer2 } from '@angular/core'; import { GridsterEmptyCell } from './gridsterEmptyCell.service'; import { GridsterCompact } from './gridsterCompact.service'; import { GridsterConfig } from './gridsterConfig.interface'; import { GridsterItem } from './gridsterItem.interface'; import { GridsterItemComponentInterface } from './gridsterItemComponent.interface'; import { GridsterRenderer } from './gridsterRenderer.service'; export declare abstract class GridsterComponentInterface { $options: GridsterConfigS; grid: Array<GridsterItemComponentInterface>; checkCollision: (item: GridsterItem) => GridsterItemComponentInterface | boolean; checkCollisionForSwaping: (item: GridsterItem) => GridsterItemComponentInterface | boolean; positionXToPixels: (x: number) => number; pixelsToPositionX: (x: number, roundingMethod: (x: number) => number, noLimit?: boolean) => number; positionYToPixels: (y: number) => number; pixelsToPositionY: (y: number, roundingMethod: (x: number) => number, noLimit?: boolean) => number; findItemWithItem: (item: GridsterItem) => GridsterItemComponentInterface | boolean; findItemsWithItem: (item: GridsterItem) => Array<GridsterItemComponentInterface>; checkGridCollision: (item: GridsterItem) => boolean; el: any; renderer: Renderer2; gridRenderer: GridsterRenderer; cdRef: ChangeDetectorRef; options: GridsterConfig; calculateLayoutDebounce: () => void; updateGrid: () => void; movingItem: GridsterItem | null; addItem: (item: GridsterItemComponentInterface) => void; removeItem: (item: GridsterItemComponentInterface) => void; previewStyle: (drag?: boolean) => void; mobile: boolean; curWidth: number; curHeight: number; columns: number; rows: number; curColWidth: number; curRowHeight: number; windowResize: (() => void) | null; setGridDimensions: (() => void); dragInProgress: boolean; emptyCell: GridsterEmptyCell; compact: GridsterCompact; zone: NgZone; gridRows: Array<number>; gridColumns: Array<number>; }