You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/02/18 11:19:39 UTC

[echarts] branch export-types created (now 55384ad)

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

shenyi pushed a change to branch export-types
in repository https://gitbox.apache.org/repos/asf/echarts.git.


      at 55384ad  fix(type): exporting more necessary types

This branch includes the following new commits:

     new 55384ad  fix(type): exporting more necessary types

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[echarts] 01/01: fix(type): exporting more necessary types

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 55384ad6f5c6b92cc2d2e0a1a2e4396e182d6bc3
Author: pissang <bm...@gmail.com>
AuthorDate: Thu Feb 18 19:16:15 2021 +0800

    fix(type): exporting more necessary types
---
 src/core/echarts.ts |  2 +-
 src/export/core.ts  | 12 ++++++++++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/core/echarts.ts b/src/core/echarts.ts
index 207651f..b272247 100644
--- a/src/core/echarts.ts
+++ b/src/core/echarts.ts
@@ -193,7 +193,7 @@ type ConnectStatus =
     | typeof CONNECT_STATUS_UPDATING
     | typeof CONNECT_STATUS_UPDATED;
 
-interface SetOptionOpts {
+export interface SetOptionOpts {
     notMerge?: boolean;
     lazyUpdate?: boolean;
     silent?: boolean;
diff --git a/src/export/core.ts b/src/export/core.ts
index b5da29c..506109b 100644
--- a/src/export/core.ts
+++ b/src/export/core.ts
@@ -19,6 +19,16 @@
 
 // Core API from echarts/src/echarts
 
+export * from '../core/echarts';
+export * from './api';
+
+// Export necessary types
+export {ZRColor as Color, Payload} from '../util/types';
+export {LinearGradientObject} from 'zrender/src/graphic/LinearGradient';
+export {RadialGradientObject} from 'zrender/src/graphic/RadialGradient';
+export {PatternObject} from 'zrender/src/graphic/Pattern';
+
+// ComposeOption
 import type { ComponentOption, ECBasicOption as EChartsCoreOption } from '../util/types';
 
 import type { AxisPointerOption } from '../component/axisPointer/AxisPointerModel';
@@ -26,8 +36,6 @@ import type { XAXisOption, YAXisOption } from '../coord/cartesian/AxisModel';
 import type { AngleAxisOption, RadiusAxisOption } from '../coord/polar/AxisModel';
 import type { ParallelAxisOption } from '../coord/parallel/AxisModel';
 
-export * from '../core/echarts';
-export * from './api';
 
 export {EChartsType as ECharts} from '../core/echarts';
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org