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/09/11 02:39:29 UTC
[echarts-examples] branch dev updated: import transform component
apache/echarts#15514
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
The following commit(s) were added to refs/heads/dev by this push:
new c99ba9e import transform component apache/echarts#15514
c99ba9e is described below
commit c99ba9ec3f42e9e5f2d5ded1961cc6003668eaa5
Author: pissang <bm...@gmail.com>
AuthorDate: Sat Sep 11 10:38:30 2021 +0800
import transform component apache/echarts#15514
---
common/buildCode.js | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/common/buildCode.js b/common/buildCode.js
index 2274157..f484c78 100644
--- a/common/buildCode.js
+++ b/common/buildCode.js
@@ -190,6 +190,14 @@ module.exports.collectDeps = function collectDeps(option) {
deps.push('UniversalTransition');
}
});
+ // Dataset transform
+ if (option.dataset && Array.isArray(option.dataset)) {
+ option.dataset.forEach((dataset) => {
+ if (dataset.transform) {
+ deps.push('TransformComponent');
+ }
+ });
+ }
// Remove duplicates
return Array.from(new Set(deps));
@@ -215,6 +223,10 @@ function buildMinimalBundleCode(deps, includeType) {
if (includeType) {
componentsImports.push(dep.replace(/Component$/, 'ComponentOption'));
}
+ } else if (dep === 'TransformComponent') {
+ // TransformComponent don't have individual option type.
+ // TODO will put in to an config if there are other similar components
+ componentsImports.push(dep);
} else if (CHARTS_GL_MAP_REVERSE[dep]) {
chartsGLImports.push(dep);
} else if (COMPONENTS_GL_MAP_REVERSE[dep]) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org