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 2022/04/20 12:47:35 UTC
[echarts-doc] 01/01: fix(tree): add `center` and `zoom` for `tree`
This is an automated email from the ASF dual-hosted git repository.
susiwen8 pushed a commit to branch tree
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
commit 3f8af47dceded10dfcb6d0917a697e0dcea90731
Author: susiwen8 <su...@gmail.com>
AuthorDate: Wed Apr 20 20:47:24 2022 +0800
fix(tree): add `center` and `zoom` for `tree`
---
en/option/series/tree.md | 13 +++++++++++++
zh/option/series/tree.md | 14 ++++++++++++++
2 files changed, 27 insertions(+)
diff --git a/en/option/series/tree.md b/en/option/series/tree.md
index 03f412d6..6222c0ca 100644
--- a/en/option/series/tree.md
+++ b/en/option/series/tree.md
@@ -35,6 +35,19 @@ The tree diagram is mainly used to visualize the tree data structure, which is a
defaultHeight = 'null'
) }}
+## center(Array)
+
+Center of current view-port.
+
+Example:
+```ts
+center: [115.97, 29.71]
+```
+
+## zoom(number) = 1
+
+Zoom rate of current view-port.
+
## layout(string) = 'orthogonal'
<ExampleUIControlEnum options="orthogonal,radial" default="orthogonal" />
diff --git a/zh/option/series/tree.md b/zh/option/series/tree.md
index b5d81059..ecb5d36f 100644
--- a/zh/option/series/tree.md
+++ b/zh/option/series/tree.md
@@ -78,6 +78,20 @@ const option = {
defaultHeight = 'null'
) }}
+## center(Array)
+
+当前视角的中心点
+
+例如:
+```ts
+center: [115.97, 29.71]
+```
+
+## zoom(number) = 1
+
+当前视角的缩放比例。
+
+
## layout(string) = 'orthogonal'
<ExampleUIControlEnum options="orthogonal,radial" default="orthogonal" />
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org