@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
20 lines (19 loc) • 659 B
TypeScript
import { type LayoutState, type SpanLayout } from "@1771technologies/lytenyte-shared";
import type { Column, PositionUnion, RowDataStore, RowLayout } from "../../../+types";
interface MakeRowViewArgs<T> {
view: SpanLayout;
layout: LayoutState;
viewCache: Map<number, RowLayout<T>>;
rds: RowDataStore<T>;
columns: Column<T>[];
focus: PositionUnion | null;
}
/**
* This is quite a complex function so read each part carefully.
*/
export declare function makeRowLayout<T>({ view: n, viewCache, layout, rds, columns }: MakeRowViewArgs<T>): {
top: RowLayout<T>[];
center: RowLayout<T>[];
bottom: RowLayout<T>[];
};
export {};