UNPKG

@antv/g2plot

Version:

G2 Plot, a market of plots built with the Grammar of Graphics'

70 lines (69 loc) 2 kB
import { LayerConfig } from '../../base/layer'; import ViewLayer, { ViewConfig } from '../../base/view-layer'; import { PointStyle, LineStyle } from '../line/layer'; import { IValueAxis, ICatAxis, ITimeAxis } from '../../interface/config'; interface FillStyle { fill?: string; opacity?: string; } export interface RadarViewConfig extends ViewConfig { /** 角度字段 */ angleField: string; /** 径向字段 */ radiusField: string; /** 分组字段 */ seriesField?: string; /** 是否平滑 */ smooth?: boolean; /** 折线图形样式 */ line?: { visible?: boolean; size?: number; color?: string; style?: LineStyle | ((...args: any[]) => LineStyle); }; /** 数据点图形样式 */ point?: { visible?: boolean; shape?: string; size?: number; color?: string; style?: PointStyle | ((...args: any[]) => PointStyle); }; /** area图形样式 */ area?: { visible?: boolean; style?: FillStyle | ((...args: any[]) => FillStyle); }; /** 角度轴配置 */ angleAxis?: ICatAxis | ITimeAxis; /** 径向轴配置 */ radiusAxis?: IValueAxis; /** 雷达图半径 */ radius?: number; } export interface RadarLayerConfig extends RadarViewConfig, LayerConfig { } export default class RadarLayer extends ViewLayer<RadarLayerConfig> { static getDefaultOptions(): any; type: string; line: any; point: any; area: any; baseElement: any; lineElement: any; pointElement: any; areaElement: any; init(): void; getOptions(props: RadarLayerConfig): any; protected geometryParser(dim: any, type: any): any; protected scale(): void; protected coord(): void; protected axis(): void; protected addGeometry(): void; protected label(): void; protected annotation(): void; protected animation(): void; protected parseEvents(eventParser: any): void; } export {};