UNPKG

@gooddata/react-components

Version:

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

64 lines (63 loc) 2.45 kB
import { IColorLegendItem } from "../../typings/legend"; import { ISeriesItem } from "../../../../interfaces/Config"; export declare const RESPONSIVE_ITEM_MIN_WIDTH = 200; export declare const RESPONSIVE_VISIBLE_ROWS = 2; export declare const FLUID_PAGING_WIDTH = 30; export declare const LEGEND_PADDING = 12; export declare const ITEM_HEIGHT = 20; export declare const SKIPPED_LABEL_TEXT = "..."; export declare const UTF_NON_BREAKING_SPACE = "\u00A0"; export interface IColorLegendBox { class: string; key: string; style?: { backgroundColor: string; border: string; }; } interface IColorLabelConfigItem { type: string; labelIndex?: number; style?: { width?: number; height?: number; lineHeight?: string; textAlign?: string; }; } export interface IHeatmapLegendLabel { class?: string; key: string; label: string; style: object; } export interface IColorLegendConfig { boxes: IColorLegendBox[]; classes: string[]; labels: IHeatmapLegendLabel[]; position: string; } export declare const verticalHeatmapConfig: IColorLabelConfigItem[]; export declare const heatmapLegendConfigMatrix: IColorLabelConfigItem[][]; export declare const colorLegendConfigMatrix: IColorLabelConfigItem[][]; export declare const heatmapSmallLegendConfigMatrix: IColorLabelConfigItem[][]; export declare function buildColorLabelsConfig(labels: string[], config: any): any; export declare function calculateFluidLegend(seriesCount: number, containerWidth: number): { hasPaging: boolean; itemWidth: number; visibleItemsCount: number; }; export declare function calculateStaticLegend(seriesCount: number, containerHeight: number): { hasPaging: boolean; visibleItemsCount: number; }; export declare function getColorLegendConfiguration(series: IColorLegendItem[], format: string, numericSymbols: string[], isSmall: boolean, position: string): IColorLegendConfig; export declare const LEGEND_AXIS_INDICATOR = "legendAxisIndicator"; export declare const LEGEND_SEPARATOR = "legendSeparator"; export declare function groupSeriesItemsByType(series: ISeriesItem[]): { [key: string]: ISeriesItem[]; }; export declare function getComboChartSeries(series: ISeriesItem[]): any[]; export declare function transformToDualAxesSeries(series: any[], chartType: string): any[]; export declare function isStackedChart(chartOptions: any): boolean; export {};