ag-charts-enterprise
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
84 lines (83 loc) • 3.54 kB
TypeScript
import type { AgTreemapSeriesItemStylerParams, AgTreemapSeriesLabelFormatterParams, AgTreemapSeriesOptions, AgTreemapSeriesStyle, AgTreemapSeriesTooltipRendererParams, Styler, TextAlign, VerticalAlign } from 'ag-charts-community';
import { _ModuleSupport } from 'ag-charts-community';
import type { InternalAgColorType } from 'ag-charts-core';
import { BaseProperties } from 'ag-charts-core';
import { AutoSizedLabel, AutoSizedSecondaryLabel } from '../util/autoSizedLabel';
declare const HierarchySeriesProperties: typeof _ModuleSupport.HierarchySeriesProperties, Label: typeof _ModuleSupport.Label;
declare class TreemapGroupLabel extends Label<AgTreemapSeriesLabelFormatterParams> {
spacing: number;
}
declare class TreemapSeriesGroupHighlightStyle extends BaseProperties {
fill?: string;
fillOpacity?: number;
stroke?: string;
strokeWidth?: number;
strokeOpacity?: number;
opacity?: number;
}
declare class TreemapSeriesGroupHighlight extends BaseProperties {
enabled: boolean;
readonly highlightedItem: TreemapSeriesGroupHighlightStyle;
readonly unhighlightedItem: TreemapSeriesGroupHighlightStyle;
}
declare class TreemapSeriesTileHighlightStyle extends BaseProperties {
fill?: string;
fillOpacity?: number;
stroke?: string;
strokeWidth?: number;
strokeOpacity?: number;
opacity?: number;
}
declare class TreemapSeriesTileHighlight extends BaseProperties {
enabled: boolean;
readonly highlightedBranch: TreemapSeriesTileHighlightStyle;
readonly highlightedItem: TreemapSeriesTileHighlightStyle;
readonly unhighlightedItem: TreemapSeriesTileHighlightStyle;
readonly unhighlightedBranch: TreemapSeriesTileHighlightStyle;
}
declare class TreemapSeriesGroup extends BaseProperties {
fill: InternalAgColorType | undefined;
fillOpacity: number;
stroke?: string;
strokeWidth: number;
strokeOpacity: number;
cornerRadius: number;
textAlign: TextAlign;
gap: number;
padding: number;
interactive: boolean;
readonly label: TreemapGroupLabel;
readonly highlight: TreemapSeriesGroupHighlight;
readonly selection: _ModuleSupport.SeriesSelectionProperties<object>;
}
declare class TreemapSeriesTile extends BaseProperties {
fill: InternalAgColorType | undefined;
fillOpacity: number;
stroke?: string;
strokeWidth: number;
strokeOpacity: number;
cornerRadius: number;
textAlign: TextAlign;
verticalAlign: VerticalAlign;
gap: number;
padding: number;
readonly label: AutoSizedLabel<AgTreemapSeriesLabelFormatterParams<any>>;
readonly secondaryLabel: AutoSizedSecondaryLabel<AgTreemapSeriesLabelFormatterParams<any>>;
readonly highlight: TreemapSeriesTileHighlight;
readonly selection: _ModuleSupport.SeriesSelectionProperties<object>;
}
export declare class TreemapSeriesProperties extends HierarchySeriesProperties<AgTreemapSeriesOptions> {
sizeName?: string;
labelKey?: string;
secondaryLabelKey?: string;
itemStyler?: Styler<AgTreemapSeriesItemStylerParams<unknown>, AgTreemapSeriesStyle>;
readonly tooltip: _ModuleSupport.SeriesTooltip<Omit<AgTreemapSeriesTooltipRendererParams<any, unknown>, "context">>;
readonly group: TreemapSeriesGroup;
readonly tile: TreemapSeriesTile;
undocumentedGroupFills: string[];
undocumentedGroupStrokes: string[];
getStyle(isLeaf: boolean, fills: InternalAgColorType[], strokes: string[], index: number): Required<AgTreemapSeriesStyle> & {
opacity: number;
};
}
export {};