es-grid-template
Version:
es-grid-template
15 lines (14 loc) • 595 B
TypeScript
/**
* During table cell rendering, the colSpan/rowSpan of previously rendered cells
* affects whether subsequent cells should be rendered.
*
* `SpanManager` internally maintains a state that records the colSpan/rowSpan
* of the most recently rendered cells, allowing subsequent cells to quickly
* determine whether they should skip rendering.
*/
export default class SpanManager {
private rects;
testSkip(rowIndex: number, colIndex: number): boolean;
stripUpwards(rowIndex: number): void;
add(rowIndex: number, colIndex: number, colSpan: number, rowSpan: number): void;
}