50 lines
2.3 KiB
TypeScript
50 lines
2.3 KiB
TypeScript
import { GridsterConfigS } from './gridsterConfigS.interface';
|
|
import { ChangeDetectorRef, NgZone, Renderer2 } from '@angular/core';
|
|
import { Subject } from 'rxjs';
|
|
import { GridsterEmptyCell } from './gridsterEmptyCell.service';
|
|
import { GridsterCompact } from './gridsterCompact.service';
|
|
import { GridsterConfig } from './gridsterConfig.interface';
|
|
import { GridsterItem, GridsterItemComponentInterface } from './gridsterItem.interface';
|
|
import { GridsterRenderer } from './gridsterRenderer.service';
|
|
export declare abstract class GridsterComponentInterface {
|
|
$options: GridsterConfigS;
|
|
grid: 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) => GridsterItemComponentInterface[];
|
|
checkGridCollision: (item: GridsterItem) => boolean;
|
|
checkCollisionTwoItems: (item: GridsterItem, item2: GridsterItem) => boolean;
|
|
getItemComponent: (item: GridsterItem) => GridsterItemComponentInterface | undefined;
|
|
el: HTMLElement;
|
|
renderer: Renderer2;
|
|
gridRenderer: GridsterRenderer;
|
|
cdRef: ChangeDetectorRef;
|
|
options: GridsterConfig;
|
|
calculateLayout$: Subject<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>;
|
|
}
|