This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts.git


The following commit(s) were added to refs/heads/master by this push:
     new f03dfad  Export union members of option types separately
     new cc8a94a  Merge pull request #14353 from 
twittwer/feat/export-PiecewiseVisualMapOption
f03dfad is described below

commit f03dfad3c24f0bc870a43e183dcc604a0882c4f4
Author: Tobias Wittwer <[email protected]>
AuthorDate: Thu Feb 25 15:35:03 2021 +0100

    Export union members of option types separately
---
 src/export/option.ts | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/src/export/option.ts b/src/export/option.ts
index 9bd56ab..8ee454f 100644
--- a/src/export/option.ts
+++ b/src/export/option.ts
@@ -41,14 +41,14 @@ import type {TitleOption as TitleComponentOption} from 
'../component/title/insta
 import type {TimelineOption as TimelineComponentOption} from 
'../component/timeline/TimelineModel';
 import type {SliderTimelineOption as TimelineSliderComponentOption} from 
'../component/timeline/SliderTimelineModel';
 
-import type {LegendOption} from '../component/legend/LegendModel';
-import type {ScrollableLegendOption} from 
'../component/legend/ScrollableLegendModel';
+import type {LegendOption as PlainLegendComponentOption} from 
'../component/legend/LegendModel';
+import type {ScrollableLegendOption as ScrollableLegendComponentOption} from 
'../component/legend/ScrollableLegendModel';
 
-import type {SliderDataZoomOption} from 
'../component/dataZoom/SliderZoomModel';
-import type {InsideDataZoomOption} from 
'../component/dataZoom/InsideZoomModel';
+import type {SliderDataZoomOption as SliderDataZoomComponentOption} from 
'../component/dataZoom/SliderZoomModel';
+import type {InsideDataZoomOption as InsideDataZoomComponentOption} from 
'../component/dataZoom/InsideZoomModel';
 
-import type {ContinousVisualMapOption} from 
'../component/visualMap/ContinuousModel';
-import type {PiecewiseVisualMapOption} from 
'../component/visualMap/PiecewiseModel';
+import type {ContinousVisualMapOption as ContinousVisualMapComponentOption} 
from '../component/visualMap/ContinuousModel';
+import type {PiecewiseVisualMapOption as PiecewiseVisualMapComponentOption} 
from '../component/visualMap/PiecewiseModel';
 
 import type {MarkLineOption as MarkLineComponentOption} from 
'../component/marker/MarkLineModel';
 import type {MarkPointOption as MarkPointComponentOption} from 
'../component/marker/MarkPointModel';
@@ -108,9 +108,12 @@ interface ToolboxComponentOption extends ToolboxOption {
     }
 }
 
-export type DataZoomComponentOption = SliderDataZoomOption | 
InsideDataZoomOption;
-export type VisualMapComponentOption = ContinousVisualMapOption | 
PiecewiseVisualMapOption;
-export type LegendComponentOption = LegendOption | ScrollableLegendOption;
+export { SliderDataZoomComponentOption, InsideDataZoomComponentOption };
+export type DataZoomComponentOption = SliderDataZoomComponentOption | 
InsideDataZoomComponentOption;
+export { ContinousVisualMapComponentOption, PiecewiseVisualMapComponentOption 
};
+export type VisualMapComponentOption = ContinousVisualMapComponentOption | 
PiecewiseVisualMapComponentOption;
+export { PlainLegendComponentOption, ScrollableLegendComponentOption };
+export type LegendComponentOption = PlainLegendComponentOption | 
ScrollableLegendComponentOption;
 export {
     GridComponentOption,
     PolarComponentOption,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to