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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to