提交 5283e42c 编写于 作者: 1 100pah

little typo. And move highDownXXX to ECElement.

上级 286efe81
...@@ -193,8 +193,6 @@ class DataZoomModel<Opts extends DataZoomOption = DataZoomOption> extends Compon ...@@ -193,8 +193,6 @@ class DataZoomModel<Opts extends DataZoomOption = DataZoomOption> extends Compon
init(option: Opts, parentModel: Model, ecModel: GlobalModel) { init(option: Opts, parentModel: Model, ecModel: GlobalModel) {
this._rangePropMode = ['percent', 'percent'];
var inputRawOption = retrieveRawOption(option); var inputRawOption = retrieveRawOption(option);
/** /**
......
...@@ -251,8 +251,8 @@ class Single implements CoordinateSystem, CoordinateSystemMaster { ...@@ -251,8 +251,8 @@ class Single implements CoordinateSystem, CoordinateSystemMaster {
function getCoordSys(finder: ParsedModelFinder): Single { function getCoordSys(finder: ParsedModelFinder): Single {
const seriesModel = finder.seriesModel; const seriesModel = finder.seriesModel;
const polarModel = finder.singleAxisModel as SingleAxisModel; const singleModel = finder.singleAxisModel as SingleAxisModel;
return polarModel && polarModel.coordinateSystem return singleModel && singleModel.coordinateSystem
|| seriesModel && seriesModel.coordinateSystem as Single; || seriesModel && seriesModel.coordinateSystem as Single;
} }
......
...@@ -681,8 +681,8 @@ export function setAsHighDownDispatcher(el: Element, asDispatcher: boolean) { ...@@ -681,8 +681,8 @@ export function setAsHighDownDispatcher(el: Element, asDispatcher: boolean) {
const extendedEl = el as ExtendedDisplayable; const extendedEl = el as ExtendedDisplayable;
// Make `highDownSilentOnTouch` and `highDownOnUpdate` only work after // Make `highDownSilentOnTouch` and `highDownOnUpdate` only work after
// `setAsHighDownDispatcher` called. Avoid it is modified by user unexpectedly. // `setAsHighDownDispatcher` called. Avoid it is modified by user unexpectedly.
extendedEl.__highDownSilentOnTouch = extendedEl.highDownSilentOnTouch; extendedEl.__highDownSilentOnTouch = (el as ECElement).highDownSilentOnTouch;
extendedEl.__highDownOnUpdate = extendedEl.highDownOnUpdate; extendedEl.__highDownOnUpdate = (el as ECElement).highDownOnUpdate;
// Simple optimize, since this method might be // Simple optimize, since this method might be
// called for each elements of a group in some cases. // called for each elements of a group in some cases.
......
...@@ -101,9 +101,11 @@ export interface ECElement extends Element { ...@@ -101,9 +101,11 @@ export interface ECElement extends Element {
seriesIndex?: number; seriesIndex?: number;
dataType?: string; dataType?: string;
tooltip?: CommonTooltipOption<unknown> & { tooltip?: CommonTooltipOption<unknown> & {
content?: string content?: string;
formatterParams?: unknown formatterParams?: unknown;
} };
highDownSilentOnTouch?: boolean;
highDownOnUpdate?: (fromState: 'normal' | 'emphasis', toState: 'normal' | 'emphasis') => void;
} }
export interface DataHost { export interface DataHost {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册