UNPKG

@syncfusion/ej2-gantt

Version:
82 lines (81 loc) 2.36 kB
import { PdfTreeGridRow } from './index'; import { PdfTreeGrid } from '../pdf-treegrid'; import { ElementLayouter, PdfLayoutResult, PdfLayoutFormat, PdfPage, RectangleF, PdfLayoutParams } from '@syncfusion/ej2-pdf-export'; /** * */ export declare class PdfTreeGridLayouter extends ElementLayouter { private currentPage; private currentGraphics; private currentPageBounds; private currentBounds; private startLocation; columnRanges: number[][]; private cellStartIndex; private cellEndIndex; private repeatRowIndex; private treegridHeight; pageHeightCollection: { pageNumber: number; totalHeight: number; }[]; headerHeight: number; constructor(baseFormat: PdfTreeGrid); readonly treegrid: PdfTreeGrid; layoutInternal(param: PdfLayoutParams): PdfLayoutResult; /** * `Determines the column draw ranges`. * * @returns {void} . * @private */ private determineColumnDrawRanges; private getFormat; private updateCollection; private layoutOnPage; private checkBounds; private drawHeader; private reArrangePages; getNextPageFormat(format: PdfLayoutFormat): PdfPage; private getLayoutResult; private checkIfDefaultFormat; private drawRow; /** * @param {RowLayoutResult} result . * @param {PdfTreeGridRow} row . * @param {number} height . * @returns {void} . */ private drawRowWithBreak; /** * `Recalculate row height` for the split cell to be drawn. * * @param {PdfTreeGridRow} row . * @param {number} height . * @returns {void} . * @private */ reCalculateHeight(row: PdfTreeGridRow, height: number): number; } export declare class PdfTreeGridLayoutResult extends PdfLayoutResult { /** * Constructor * * @param {PdfPage} page . * @param {RectangleF} bounds . * @private */ constructor(page: PdfPage, bounds: RectangleF); } /** * `PdfGridLayoutFormat` class represents a flexible grid that consists of columns and rows. */ export declare class PdfTreeGridLayoutFormat extends PdfLayoutFormat { /** * Initializes a new instance of the `PdfGridLayoutFormat` class. * * @param {PdfLayoutFormat} baseFormat . * @private */ constructor(baseFormat?: PdfLayoutFormat); }