ag-charts-enterprise
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
60 lines (59 loc) • 3.04 kB
TypeScript
import { _ModuleSupport } from 'ag-charts-community';
import type { AgMapShapeSeriesStyle } from 'ag-charts-types';
import { GeoGeometry } from '../map-util/geoGeometry';
import { TopologySeries } from '../map-util/topologySeries';
import { type MapShapeNodeDatum, type MapShapeNodeLabelDatum, MapShapeSeriesProperties } from './mapShapeSeriesProperties';
interface MapShapeNodeDataContext extends _ModuleSupport.DataModelSeriesNodeDataContext<MapShapeNodeDatum, MapShapeNodeLabelDatum> {
}
type ItemStyle = Required<AgMapShapeSeriesStyle>;
export declare class MapShapeSeries extends TopologySeries<MapShapeNodeDatum, MapShapeSeriesProperties, MapShapeNodeLabelDatum, MapShapeNodeDataContext> implements _ModuleSupport.ITopology {
static readonly className = "MapShapeSeries";
static readonly type: "map-shape";
scale: _ModuleSupport.MercatorScale | undefined;
topologyBounds: _ModuleSupport.LonLatBBox | undefined;
properties: MapShapeSeriesProperties;
private _chartTopology?;
getNodeData(): MapShapeNodeDatum[] | undefined;
private get topology();
get hasData(): boolean;
private readonly colorScale;
private readonly itemGroup;
private readonly itemLabelGroup;
datumSelection: _ModuleSupport.Selection<GeoGeometry, MapShapeNodeDatum>;
private labelSelection;
private highlightDatumSelection;
contextNodeData?: MapShapeNodeDataContext;
constructor(moduleCtx: _ModuleSupport.ModuleContext);
renderToOffscreenCanvas(): boolean;
setChartTopology(topology: any): void;
setSeriesIndex(index: number): boolean;
private isLabelEnabled;
private nodeFactory;
processData(dataController: _ModuleSupport.DataController): Promise<void>;
private isColorScaleValid;
private getLabelLayout;
private getLabelDatum;
private previousLabelLayouts;
createNodeData(): {
itemId: string;
nodeData: MapShapeNodeDatum[];
labelData: MapShapeNodeLabelDatum[];
} | undefined;
updateSelections(): void;
update(): void;
private updateDatumSelection;
private getItemBaseStyle;
protected getItemStyleOverrides(datumId: string, datum: any, colorValue: number | undefined, format: ItemStyle, highlighted: boolean): Partial<Required<AgMapShapeSeriesStyle>> | undefined;
private updateDatumNodes;
private updateLabelSelection;
private updateLabelNodes;
resetAnimation(): void;
pickNodeClosestDatum({ x, y }: _ModuleSupport.Point): _ModuleSupport.SeriesNodePickMatch | undefined;
private _previousDatumMidPoint;
datumMidPoint(datum: _ModuleSupport.SeriesNodeDatum<unknown>): _ModuleSupport.Point | undefined;
private legendItemSymbol;
getLegendData(legendType: _ModuleSupport.ChartLegendType): _ModuleSupport.CategoryLegendDatum[] | _ModuleSupport.GradientLegendDatum[];
getTooltipContent(datumIndex: number): _ModuleSupport.TooltipContent | undefined;
protected computeFocusBounds(opts: _ModuleSupport.PickFocusInputs): _ModuleSupport.Path | undefined;
}
export {};