@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
49 lines (48 loc) • 2.12 kB
TypeScript
import { IBand, IMarkAreas, IEmphasizeAreas, ITagColor } from '../../../../../constants/line-style';
import TwoDChartStyleService, { ITwoDChartStyle } from '../two-d';
import { IPoint, ILineMarkPointType, ChartType } from '../../../../../constants/chart-style';
export interface ILineBaseChartStyle extends ITwoDChartStyle {
smoothLine: boolean;
point: IPoint;
markPointType: ILineMarkPointType;
bandList: IBand[];
markAreas: IMarkAreas[];
emphasizeAreas: IEmphasizeAreas[];
tagColors: ITagColor[];
}
export default abstract class LineBaseStyleService<T extends ILineBaseChartStyle = ILineBaseChartStyle> extends TwoDChartStyleService<T> {
smoothLine: boolean;
point: IPoint;
markPointType: ILineMarkPointType;
bandList: IBand[];
markAreas: IMarkAreas[];
tagColors: ITagColor[];
emphasizeAreas: IEmphasizeAreas[];
setSmoothLine(isEnable: boolean): void;
setPoint(point: IPoint): void;
setMarkPointType(type: ILineMarkPointType): void;
getOptions(): {
bandList: IBand[];
markAreas: IMarkAreas[];
emphasizeAreas: IEmphasizeAreas[];
tagColors: ITagColor[];
smoothLine: boolean;
point: IPoint;
markPointType: ILineMarkPointType;
chartType: ChartType;
mainAxis: import("../..").IMainAxis;
crossAxis1: import("../..").ICrossAxis;
crossAxis2: import("../..").ICrossAxis2;
legend: import("../..").ITwoDLegend;
colors: import("../..").IColors;
colorMode: import("@qn-pandora/pandora-app-component").EColorMode;
compare: import("../../components/compare").ICompare;
baseLine: import("@qn-pandora/pandora-app-component/lib/components/BaseLineItem/constants").IBaseLine<any>[];
showToolBox: boolean;
tooltipType: import("../../../../../constants/chart-style").ETooltipType;
tooltipAppendToBody?: boolean | undefined;
markLine?: import("../../../../../constants/chart-style").IMarkLineType | undefined;
displayColors?: import("../base").IColor[] | undefined;
};
constructor(options: T);
}