UNPKG

ag-charts-enterprise

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

38 lines (37 loc) 2.15 kB
import { _ModuleSupport } from 'ag-charts-community'; import { type AxisID, ChartAxisDirection, type DynamicContext, type NormalisedBaseRadiusAxisOptions, type Scale } from 'ag-charts-core'; export declare abstract class RadiusAxis<S extends Scale<D, number, _ModuleSupport.TickInterval<S>> = Scale<any, number, any>, D = unknown, TOptions extends NormalisedBaseRadiusAxisOptions = NormalisedBaseRadiusAxisOptions> extends _ModuleSupport.PolarAxis<S, D, TOptions> { protected gridLineGroupSelection: _ModuleSupport.Selection<_ModuleSupport.TickDatum, _ModuleSupport.Line<_ModuleSupport.TickDatum>>; private generatedTicks; protected readonly headingLabelGroup: _ModuleSupport.TransformableGroup<unknown>; protected readonly lineNodeGroup: _ModuleSupport.TransformableGroup<unknown>; protected readonly lineNode: _ModuleSupport.Line<unknown>; protected readonly gridPathGroup: _ModuleSupport.Group<unknown>; protected gridPathSelection: _ModuleSupport.Selection<unknown, _ModuleSupport.Path<unknown>>; get direction(): ChartAxisDirection; constructor(moduleCtx: DynamicContext<_ModuleSupport.ChartRegistry>, id: AxisID, scale: S, options: TOptions); private getAxisTransform; update(): void; updatePosition(): void; calculateRotations(): { rotation: number; parallelFlipRotation: number; regularFlipRotation: number; }; calculateTickLayout(domain: D[], niceMode: [_ModuleSupport.NiceMode, _ModuleSupport.NiceMode], _visibleRange: [number, number]): { niceDomain: D[]; tickDomain: D[]; ticks: D[]; rawTickCount: number | undefined; fractionDigits: number; timeInterval: undefined; }; protected abstract prepareGridPathTickData(tickData: _ModuleSupport.TickDatum[]): _ModuleSupport.TickDatum[]; protected abstract getTickRadius(tickDatum: _ModuleSupport.TickDatum): number; protected updateSelections(): void; protected updateLabels(): void; private updateGridLines; private updateTitle; protected computePolarLayout(): _ModuleSupport.PolarAxisLayout; private getTickLabelProps; }