1 | import Grid from "../Grid";
|
2 | import { PROPERTY_TYPE } from "../consts";
|
3 | import { GridOptions, Properties, GridOutlines, GridAlign } from "../types";
|
4 | import { GridItem } from "../GridItem";
|
5 | export interface MasonryGridOptions extends GridOptions {
|
6 | column?: number;
|
7 | columnSize?: number;
|
8 | columnSizeRatio?: number;
|
9 | align?: GridAlign;
|
10 | }
|
11 | export declare class MasonryGrid extends Grid<MasonryGridOptions> {
|
12 | static propertyTypes: {
|
13 | column: PROPERTY_TYPE;
|
14 | columnSize: PROPERTY_TYPE;
|
15 | columnSizeRatio: PROPERTY_TYPE;
|
16 | align: PROPERTY_TYPE;
|
17 | gap: PROPERTY_TYPE;
|
18 | defaultDirection: PROPERTY_TYPE;
|
19 | renderOnPropertyChange: PROPERTY_TYPE;
|
20 | preserveUIOnDestroy: PROPERTY_TYPE;
|
21 | useFit: PROPERTY_TYPE;
|
22 | };
|
23 | static defaultOptions: Required<MasonryGridOptions>;
|
24 | private _columnSize;
|
25 | private _column;
|
26 | applyGrid(items: GridItem[], direction: "start" | "end", outline: number[]): GridOutlines;
|
27 | private _calculateColumnSize;
|
28 | private _calculateColumn;
|
29 | private _getAlignPoses;
|
30 | }
|
31 | export interface MasonryGrid extends Properties<typeof MasonryGrid> {
|
32 | }
|