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

susiwen8 pushed a commit to branch tree-relative
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git


The following commit(s) were added to refs/heads/tree-relative by this push:
     new 601a38dc feat(tree): add `relative` for `tree.emphasis.focus`
601a38dc is described below

commit 601a38dcf2cfcdb386a488838bff060ccbf83182
Author: susiwen8 <[email protected]>
AuthorDate: Thu May 12 22:25:39 2022 +0800

    feat(tree): add `relative` for `tree.emphasis.focus`
---
 en/option/partial/emphasis-common.md | 3 +++
 en/option/series/tree.md             | 2 ++
 zh/option/partial/emphasis-common.md | 3 +++
 zh/option/series/tree.md             | 2 ++
 4 files changed, 10 insertions(+)

diff --git a/en/option/partial/emphasis-common.md 
b/en/option/partial/emphasis-common.md
index d5738730..e3ee230e 100644
--- a/en/option/partial/emphasis-common.md
+++ b/en/option/partial/emphasis-common.md
@@ -45,6 +45,9 @@ When the data is highlighted, whether to fade out of other 
data to focus the hig
 + `'ancestor'` Focus on all ancestor nodes.
 + `'descendant'` Focus on all descendants nodes.
 {{ /if }}
+{{ if: ${hasRelative} }}
++ `'relative'` since `v${version}`, focus on all ancestor and descendants 
nodes.
+{{ /if }}
 
 **Example: **
 
diff --git a/en/option/series/tree.md b/en/option/series/tree.md
index 6222c0ca..fcfe84bc 100644
--- a/en/option/series/tree.md
+++ b/en/option/series/tree.md
@@ -161,6 +161,8 @@ Configurations of emphasis state.
 
 {{ use: partial-focus-blur-scope(
     isTree = true
+    hasRelative = true
+    version = "5.3.3"
 ) }}
 
 {{ use: tree-state(
diff --git a/zh/option/partial/emphasis-common.md 
b/zh/option/partial/emphasis-common.md
index d225cf27..0788affd 100644
--- a/zh/option/partial/emphasis-common.md
+++ b/zh/option/partial/emphasis-common.md
@@ -45,6 +45,9 @@
 + `'ancestor'` 聚焦所有祖先节点
 + `'descendant'` 聚焦所有子孙节点
 {{ /if }}
+{{ if: ${hasRelative} }}
++ `'relative'` 从 `v${version}`开始支持 聚焦所有子孙和祖先节点
+{{ /if }}
 
 **示例:**
 
diff --git a/zh/option/series/tree.md b/zh/option/series/tree.md
index ecb5d36f..925f8768 100644
--- a/zh/option/series/tree.md
+++ b/zh/option/series/tree.md
@@ -204,6 +204,8 @@ center: [115.97, 29.71]
 
 {{ use: partial-focus-blur-scope(
     isTree = true
+    hasRelative = true
+    version = "5.3.3"
 ) }}
 
 {{ use: tree-state(


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to