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/06/02 00:46:56 UTC

[echarts-doc] branch dev updated: feat(tree): add `relative` for `tree.emphasis.focus` (#251)

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

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


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

commit b6653a2bd4010e5c5aa1e7ec9624d878b350536d
Author: susiwen8 <su...@gmail.com>
AuthorDate: Thu Jun 2 08:46:51 2022 +0800

    feat(tree): add `relative` for `tree.emphasis.focus` (#251)
    
    * feat(tree): add `relative` for `tree.emphasis.focus`
    
    * chore: rearrage version description
---
 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..4a46cc5a 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'` Focus on all ancestor and descendants nodes.(since `v${version}`)
+{{ /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..4a4e8069 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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org