UNPKG

@gooddata/react-components

Version:

GoodData.UI - A powerful JavaScript library for building analytical applications

19 lines (18 loc) 2.07 kB
import { IMappingHeader } from "../../../../interfaces/MappingHeader"; import { Align, IAlignPoint, IHeaderTooltipArrowPosition, IPositions, ITableColumnProperties, ITableDimensions } from "../../../../interfaces/Table"; import { ITotalWithData } from "../../../../interfaces/Totals"; export interface IRef { getBoundingClientRect: () => ClientRect; } export declare function calculateArrowPosition(columnProperties: ITableColumnProperties, tableScrollX: number, tableWrapRef: IRef): IHeaderTooltipArrowPosition; export declare function getHeaderClassNames(header: IMappingHeader): string; export declare function getHeaderOffset(hasHiddenRows: boolean): number; export declare function isHeaderAtDefaultPosition(stickyHeaderOffset: number, tableTop: number): boolean; export declare function getFooterHeight(totals: ITotalWithData[], totalsEditAllowed: boolean, totalsAreVisible: boolean): number; export declare function isFooterAtDefaultPosition(hasHiddenRows: boolean, tableBottom: number, windowHeight: number): boolean; export declare function isFooterAtEdgePosition(hasHiddenRows: boolean, totals: ITotalWithData[], windowHeight: number, totalsEditAllowed: boolean, totalsAreVisible: boolean, tableDimensions: ITableDimensions): boolean; export declare function getFooterPositions(hasHiddenRows: boolean, totals: ITotalWithData[], windowHeight: number, totalsEditAllowed: boolean, totalsAreVisible: boolean, tableDimensions: ITableDimensions): IPositions; export declare function isHeaderAtEdgePosition(stickyHeaderOffset: number, hasHiddenRows: boolean, totals: ITotalWithData[], tableBottom: number, totalsEditAllowed: boolean, totalsAreVisible: boolean): boolean; export declare function getHeaderPositions(stickyHeaderOffset: number, hasHiddenRows: boolean, totals: ITotalWithData[], totalsEditAllowed: boolean, totalsAreVisible: boolean, tableDimensions: ITableDimensions): IPositions; export declare const getTooltipAlignPoints: (columnAlign: Align) => IAlignPoint[]; export declare function getTooltipSortAlignPoints(columnAlign: Align): IAlignPoint[];