UNPKG

1.03 kBTypeScriptView Raw
1import { GridLayoutBase, ItemSpec } from './grid-layout-common';
2import { View } from '../../core/view';
3export * from './grid-layout-common';
4export declare class GridLayout extends GridLayoutBase {
5 private helper;
6 private columnOffsets;
7 private rowOffsets;
8 private map;
9 constructor();
10 _onRowAdded(itemSpec: ItemSpec): void;
11 _onColumnAdded(itemSpec: ItemSpec): void;
12 _onRowRemoved(itemSpec: ItemSpec, index: number): void;
13 _onColumnRemoved(itemSpec: ItemSpec, index: number): void;
14 _registerLayoutChild(child: View): void;
15 _unregisterLayoutChild(child: View): void;
16 protected invalidate(): void;
17 private getColumnIndex;
18 private getRowIndex;
19 private getColumnSpan;
20 private getRowSpan;
21 private getColumnSpec;
22 private getRowSpec;
23 private updateMeasureSpecs;
24 private addToMap;
25 private removeFromMap;
26 onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
27 onLayout(left: number, top: number, right: number, bottom: number): void;
28}