UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

53 lines (52 loc) 2.22 kB
import { IFontStyle, PieRingTitleDataShowType, StatusSwitch } from '../../../../../constants/chart-style'; import PieBaseStyleService, { IPieChartStyle } from './base'; export interface IPieRingChartStyle extends IPieChartStyle { circularWidth: number; circularPlay: StatusSwitch; circularPlayInterval?: number; showTitle?: boolean; showTitleBucket: boolean; titleFont: IFontStyle; titleDataFont: IFontStyle; titleDataFormat: PieRingTitleDataShowType; } export default abstract class PieRingBaseStyleService extends PieBaseStyleService<IPieRingChartStyle> { titleFont: IFontStyle; titleDataFont: IFontStyle; showTitleBucket: boolean; titleDataFormat: PieRingTitleDataShowType; circularWidth: number; circularPlay: StatusSwitch; circularPlayInterval?: number; titleDataPercentDecimals: number; sectorOffset?: number; setTitleDataFont(font: IFontStyle): void; setTitleFont(font: IFontStyle): void; setCircularWidth(circularWidth: number): void; setCircularPlayInterval(circularPlayInterval?: number): void; setTitleDataPercentDecimals(titleDataPercentDecimals: number): void; setTitleDataFormat(titleDataFormat: PieRingTitleDataShowType): void; setEnableCircularPiePlay(circularPlay: StatusSwitch): void; getOptions(): { circularWidth: number; circularPlay: StatusSwitch; circularPlayInterval: number | undefined; showTitleBucket: boolean; titleFont: IFontStyle; titleDataFont: IFontStyle; titleDataFormat: PieRingTitleDataShowType; legend: import("../..").IOneDLegend; maxSlices: number[]; sectorOffset?: number | undefined; labelTypes: import("../../../../../constants/chart-style").ELabelType[]; colorMode: import("@qn-pandora/pandora-app-component").EColorMode; tooltipAppendToBody?: boolean | undefined; chartType: import("../../../../../constants/chart-style").ChartType; currentBuckets: string[]; currentMetrics: string[]; unit: string[]; precision: number; displayColors?: import("../base").IColor[] | undefined; }; constructor(chart: IPieRingChartStyle); }