You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2020/02/19 22:17:20 UTC
[incubator-echarts] 01/02: tiny fix
This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch typescript
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit d67bfd228651fa06587976c4a9ffe0a86bd7871e
Author: 100pah <su...@gmail.com>
AuthorDate: Thu Feb 20 01:57:14 2020 +0800
tiny fix
---
src/data/Graph.ts | 9 ---------
src/data/Tree.ts | 5 ++++-
2 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/src/data/Graph.ts b/src/data/Graph.ts
index c78536c..20da5ab 100644
--- a/src/data/Graph.ts
+++ b/src/data/Graph.ts
@@ -342,15 +342,6 @@ class GraphNode {
constructor(id?: string, dataIndex?: number) {
this.id = id == null ? '' : id;
-
- this.inEdges = [];
-
- this.outEdges = [];
-
- this.edges = [];
-
- this.hostGraph;
-
this.dataIndex = dataIndex == null ? -1 : dataIndex;
}
diff --git a/src/data/Tree.ts b/src/data/Tree.ts
index 1726a5c..96fdfdd 100644
--- a/src/data/Tree.ts
+++ b/src/data/Tree.ts
@@ -301,9 +301,12 @@ class Tree<HostModel extends Model, LevelOption, LeavesOption> {
leavesModel: Model<LeavesOption>
- private _nodes: TreeNode[]
+ private _nodes: TreeNode[] = []
constructor(hostModel: HostModel, levelOptions: LevelOption[], leavesOption: LeavesOption) {
+
+ this.hostModel = hostModel;
+
this.levelModels = zrUtil.map(levelOptions || [], function (levelDefine) {
return new Model(levelDefine, hostModel, hostModel.ecModel);
});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org