import type { IGridTheme } from '../../configs'; import type { IVisibleRegion } from '../../hooks'; import type { ICellItem, ICell, IRectangle, ILinearRow } from '../../interface'; import type { ICacheDrawerProps, ICellDrawerProps, IGroupRowDrawerProps, IFieldHeadDrawerProps, IGridHeaderDrawerProps, ILayoutDrawerProps, IRowHeaderDrawerProps, IGroupRowHeaderDrawerProps, IAppendRowDrawerProps, IGroupStatisticDrawerProps } from './interface'; import { RenderRegion, DividerRegion } from './interface'; export declare const drawCellContent: (ctx: CanvasRenderingContext2D, props: ICellDrawerProps) => void; export declare const calcCells: (props: ILayoutDrawerProps, renderRegion: RenderRegion) => { cellPropList: ICellDrawerProps[]; rowHeaderPropList: IRowHeaderDrawerProps[]; groupRowList: IGroupRowDrawerProps[]; groupRowHeaderList: IGroupRowHeaderDrawerProps[]; appendRowList: IAppendRowDrawerProps[]; }; export declare const drawClipRegion: (ctx: CanvasRenderingContext2D, clipRect: IRectangle, draw: (ctx: CanvasRenderingContext2D) => void) => void; export declare const drawCells: (mainCtx: CanvasRenderingContext2D, cacheCtx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const drawGroupRowHeader: (ctx: CanvasRenderingContext2D, props: IGroupRowHeaderDrawerProps) => void; export declare const drawGroupRow: (ctx: CanvasRenderingContext2D, props: IGroupRowDrawerProps) => void; export declare const drawActiveCell: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const drawCollaborators: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const drawSearchCursor: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const drawSearchResult: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps, result?: [number, number]) => void; export declare const getVisibleSearchTargetIndex: (searchHitIndex: { fieldId: string; recordId: string; }[], visibleRegion: IVisibleRegion, freezeColumnCount: number, getCellContent: (cell: ICellItem) => ICell, getLinearRow: (rowNumber: number) => ILinearRow) => [number, number][]; export declare const drawSearchTargetIndex: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const drawFillHandler: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const drawRowHeader: (ctx: CanvasRenderingContext2D, props: IRowHeaderDrawerProps) => void; export declare const drawCommentCount: (ctx: CanvasRenderingContext2D, props: { x: number; y: number; count: number; theme: IGridTheme; }) => void; export declare const drawColumnHeader: (ctx: CanvasRenderingContext2D, props: IFieldHeadDrawerProps) => void; export declare const drawGridHeader: (ctx: CanvasRenderingContext2D, props: IGridHeaderDrawerProps) => void; export declare const drawColumnHeaders: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps, renderRegion: RenderRegion) => void; export declare const drawAppendRow: (ctx: CanvasRenderingContext2D, props: IAppendRowDrawerProps) => void; export declare const drawAppendColumn: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const drawColumnResizeHandler: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const drawColumnDraggingRegion: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const drawRowDraggingRegion: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const drawColumnFreezeHandler: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const drawFreezeRegionDivider: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps, dividerRegion: DividerRegion) => void; export declare const drawColumnHeadersRegion: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const drawColumnStatistics: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps, renderRegion: RenderRegion) => void; export declare const drawStatisticCell: (ctx: CanvasRenderingContext2D, props: IGroupStatisticDrawerProps) => void; export declare const drawColumnStatisticsRegion: (ctx: CanvasRenderingContext2D, props: ILayoutDrawerProps) => void; export declare const computeShouldRerender: (current: ILayoutDrawerProps, last?: ILayoutDrawerProps) => boolean; export declare const drawCacheContent: (cacheCanvas: HTMLCanvasElement | undefined, props: ICacheDrawerProps) => void; export declare const drawGrid: (mainCanvas: HTMLCanvasElement, cacheCanvas: HTMLCanvasElement, props: ILayoutDrawerProps, lastProps?: ILayoutDrawerProps) => void;