ag-charts-enterprise
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
88 lines (87 loc) • 4.76 kB
TypeScript
import type { AgBaseRadialColumnSeriesOptions, AgRadialSeriesStyle, SelectionState } from 'ag-charts-community';
import { _ModuleSupport } from 'ag-charts-community';
import { ChartAxisDirection, type DomainWithMetadata, type DynamicContext, type NormalisedTextOrSegments, type Point } from 'ag-charts-core';
import { type RadialSeriesStyleResult } from '../util/radialUtil';
import type { RadialColumnSeriesBaseProperties } from './radialColumnSeriesBaseProperties';
declare class RadialColumnSeriesNodeEvent<TEvent extends string = _ModuleSupport.SeriesNodeEventTypes> extends _ModuleSupport.SeriesNodeEvent<RadialColumnNodeDatum, TEvent> {
readonly angleKey?: string;
readonly radiusKey?: string;
constructor(type: TEvent, nativeEvent: Event, datum: RadialColumnNodeDatum, series: RadialColumnSeriesBase<any>, selectionState: SelectionState | undefined);
}
interface RadialColumnLabelNodeDatum {
x: number;
y: number;
text: NormalisedTextOrSegments;
textAlign: CanvasTextAlign;
textBaseline: CanvasTextBaseline;
}
export interface RadialColumnNodeDatum extends _ModuleSupport.DataModelSeriesNodeDatum {
readonly label?: RadialColumnLabelNodeDatum;
readonly angleValue: any;
readonly radiusValue: any;
readonly negative: boolean;
readonly innerRadius: number;
readonly outerRadius: number;
readonly stackInnerRadius: number;
readonly stackOuterRadius: number;
readonly startAngle: number;
readonly endAngle: number;
readonly midAngle: number;
readonly axisInnerRadius: number;
readonly axisOuterRadius: number;
readonly columnWidth: number;
readonly index: number;
style?: AgRadialSeriesStyle;
}
interface RadialColumnSeriesNodeDataContext extends _ModuleSupport.DataModelSeriesNodeDataContext<RadialColumnNodeDatum, RadialColumnNodeDatum> {
styles: _ModuleSupport.SeriesNodeStyleContext<AgRadialSeriesStyle>;
}
export declare abstract class RadialColumnSeriesBase<ItemPathType extends _ModuleSupport.Sector<RadialColumnNodeDatum> | _ModuleSupport.RadialColumnShape<RadialColumnNodeDatum>> extends _ModuleSupport.PolarSeries<RadialColumnNodeDatum, AgBaseRadialColumnSeriesOptions, RadialColumnSeriesBaseProperties<AgBaseRadialColumnSeriesOptions>, ItemPathType, RadialColumnNodeDatum, RadialColumnSeriesNodeDataContext> {
protected readonly NodeEvent: typeof RadialColumnSeriesNodeEvent;
private readonly groupScale;
contextNodeData?: RadialColumnSeriesNodeDataContext;
constructor(moduleCtx: DynamicContext<_ModuleSupport.ChartRegistry>, { animationResetFns, }: {
animationResetFns?: {
item?: (node: ItemPathType, datum: RadialColumnNodeDatum) => _ModuleSupport.AnimationValue & Partial<ItemPathType>;
};
});
getSeriesDomain(direction: ChartAxisDirection): DomainWithMetadata<any>;
protected abstract getStackId(): string;
processData(dataController: _ModuleSupport.DataController): Promise<void>;
protected circleCache: {
r: number;
cx: number;
cy: number;
};
protected didCircleChange(): boolean;
protected isRadiusAxisReversed(): boolean | undefined;
maybeRefreshNodeData(): void;
protected getAxisInnerRadius(): number;
createNodeData(): {
itemId: string;
nodeData: RadialColumnNodeDatum[];
labelData: RadialColumnNodeDatum[];
styles: Record<_ModuleSupport.HighlightState, RadialSeriesStyleResult>;
} | undefined;
protected getColumnWidth(_startAngle: number, _endAngle: number): number;
update({ seriesRect }: {
seriesRect?: _ModuleSupport.BBox;
}): void;
protected abstract updateItemPath(node: ItemPathType, datum: RadialColumnNodeDatum, highlight: boolean): void;
protected updateSectorSelection(selection: _ModuleSupport.Selection<RadialColumnNodeDatum, ItemPathType>, isHighlight: boolean): void;
protected updateLabels(): void;
protected abstract getColumnTransitionFunctions(): {
fromFn: _ModuleSupport.FromToMotionPropFn<any, any, any>;
toFn: _ModuleSupport.FromToMotionPropFn<any, any, any>;
};
protected animateEmptyUpdateReady(): void;
animateClearingUpdateEmpty(): void;
getTooltipContent(datumIndex: number): _ModuleSupport.TooltipContent | undefined;
protected pickNodeClosestDatum(point: Point): _ModuleSupport.SeriesNodePickMatch | undefined;
protected pickNodesInBBoxPredicate(): import("packages/ag-charts-community/dist/types/src/chart/series/series").PickNodesInBBoxPredicate;
private legendItemSymbol;
getLegendData(legendType: _ModuleSupport.ChartLegendType): _ModuleSupport.CategoryLegendDatum[];
getDatumId(datum: RadialColumnNodeDatum): number;
computeLabelsBBox(): null;
}
export {};