UNPKG

ag-charts-enterprise

Version:

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

53 lines (52 loc) 2.22 kB
import type { AgMapShapeSeriesItemStylerParams, AgMapShapeSeriesLabelFormatterParams, AgMapShapeSeriesOptions, AgMapShapeSeriesStyle, AgMapShapeSeriesTooltipRendererParams, Styler, TextOrSegments } from 'ag-charts-community'; import { _ModuleSupport } from 'ag-charts-community'; import type { FeatureCollection, Geometry, InternalAgColorType } from 'ag-charts-core'; import { AutoSizedSecondaryLabel } from '../util/autoSizedLabel'; declare const SeriesProperties: typeof _ModuleSupport.SeriesProperties; export interface MapShapeNodeLabelDatum { readonly x: number; readonly y: number; readonly text: TextOrSegments; readonly fontSize: number; readonly lineHeight: number; readonly datumIndex: number; readonly idValue: string; readonly datumId: string | number | boolean; } export interface MapShapeNodeDatum extends _ModuleSupport.DataModelSeriesNodeDatum { readonly idValue: string; readonly colorValue: number | undefined; readonly labelValue: string | undefined; readonly legendItemName: string | undefined; readonly projectedGeometry: Geometry | undefined; style: AgMapShapeSeriesStyle; } export declare class MapShapeSeriesProperties extends SeriesProperties<AgMapShapeSeriesOptions> { topology?: FeatureCollection; title?: string; legendItemName?: string; idKey: string; idName: string | undefined; topologyIdKey: string; labelKey: string | undefined; labelName: string | undefined; colorKey?: string; colorName?: string; colorRange: string[] | undefined; readonly colorScale: _ModuleSupport.ColorScaleProperties; fill: InternalAgColorType; fillOpacity: number; stroke: string; strokeOpacity: number; strokeWidth: number; lineDash: number[]; lineDashOffset: number; padding: number; itemStyler?: Styler<AgMapShapeSeriesItemStylerParams<unknown>, AgMapShapeSeriesStyle>; readonly label: AutoSizedSecondaryLabel<AgMapShapeSeriesLabelFormatterParams>; readonly tooltip: _ModuleSupport.SeriesTooltip<Omit<AgMapShapeSeriesTooltipRendererParams<any, unknown>, "context">>; getStyle(): Required<AgMapShapeSeriesStyle> & { opacity: number; }; } export {};