提交 67d6a338 编写于 作者: P pissang

fix(types): fix some types issue

上级 b5d57a6c
......@@ -23,14 +23,15 @@ import {
SeriesOption,
SeriesOnCartesianOptionMixin,
SeriesOnPolarOptionMixin,
ScaleDataValue
ScaleDataValue,
DefaultExtraStateOpts
} from '../../util/types';
import GlobalModel from '../../model/Global';
import Cartesian2D from '../../coord/cartesian/Cartesian2D';
import List from '../../data/List';
export interface BaseBarSeriesOption<StateOption, ExtraStateOption = unknown>
export interface BaseBarSeriesOption<StateOption, ExtraStateOption = DefaultExtraStateOpts>
extends SeriesOption<StateOption, ExtraStateOption>,
SeriesOnCartesianOptionMixin,
SeriesOnPolarOptionMixin {
......
......@@ -105,15 +105,15 @@ export interface BrushOption extends ComponentOption, ModelFinderObject {
// --- Current painting brush options ---
// Default type of brush
brushType: BrushTypeUncertain;
brushStyle: {
borderWidth: number;
color: ZRColor;
borderColor: ZRColor;
brushType?: BrushTypeUncertain;
brushStyle?: {
borderWidth?: number;
color?: ZRColor;
borderColor?: ZRColor;
};
transformable: boolean;
brushMode: BrushMode;
removeOnClick: boolean;
transformable?: boolean;
brushMode?: BrushMode;
removeOnClick?: boolean;
}
class BrushModel extends ComponentModel<BrushOption> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册