@egjs/infinitegrid
Version:
A module used to arrange elements including content infinitely according to grid type. With this module, you can implement various grids composed of different card elements whose sizes vary. It guarantees performance by maintaining the number of DOMs the
49 lines (48 loc) • 1.99 kB
TypeScript
import { InfiniteGridItemInfo } from "./types";
export declare const IS_IOS: boolean;
export declare const CONTAINER_CLASS_NAME = "infinitegrid-container";
export declare const IGNORE_PROPERITES_MAP: {
readonly renderOnPropertyChange: true;
readonly useFit: true;
readonly autoResize: true;
};
export declare const INFINITEGRID_PROPERTY_TYPES: {
gap: import("@egjs/grid").PROPERTY_TYPE;
defaultDirection: import("@egjs/grid").PROPERTY_TYPE;
renderOnPropertyChange: import("@egjs/grid").PROPERTY_TYPE;
preserveUIOnDestroy: import("@egjs/grid").PROPERTY_TYPE;
useFit: import("@egjs/grid").PROPERTY_TYPE;
outlineSize: import("@egjs/grid").PROPERTY_TYPE;
outlineLength: import("@egjs/grid").PROPERTY_TYPE;
};
export declare const DIRECTION: {
readonly START: "start";
readonly END: "end";
readonly NONE: "";
};
export declare const INFINITEGRID_EVENTS: {
readonly CHANGE_SCROLL: "changeScroll";
readonly REQUEST_APPEND: "requestAppend";
readonly REQUEST_PREPEND: "requestPrepend";
readonly RENDER_COMPLETE: "renderComplete";
readonly CONTENT_ERROR: "contentError";
};
export declare const ITEM_INFO_PROPERTIES: Record<keyof InfiniteGridItemInfo, true>;
export declare const INFINITEGRID_METHODS: readonly ["resizeScroll", "insertByGroupIndex", "updateItems", "getItems", "getVisibleItems", "getGroups", "getVisibleGroups", "renderItems", "getContainerElement", "getScrollContainerElement", "getWrapperElement", "setStatus", "getStatus", "removePlaceholders", "prependPlaceholders", "appendPlaceholders", "getStartCursor", "getEndCursor", "setCursors"];
export declare enum GROUP_TYPE {
NORMAL = 0,
VIRTUAL = 1,
LOADING = 2
}
export declare enum ITEM_TYPE {
NORMAL = 0,
VIRTUAL = 1,
LOADING = 2
}
export declare enum STATUS_TYPE {
NOT_REMOVE = 0,
MINIMIZE_INVISIBLE_ITEMS = 1,
MINIMIZE_INVISIBLE_GROUPS = 2,
REMOVE_INVISIBLE_GROUPS = 3
}
export declare const INVISIBLE_POS = -9999;