Skip to content

Commit

Permalink
tweak doc for #276
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Mar 14, 2023
1 parent e0d519d commit 84f5371
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
8 changes: 3 additions & 5 deletions en/option/partial/emphasis-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ When the data is highlighted, whether to fade out of other data to focus the hig
+ `'descendant'` Focus on all descendants nodes.
{{ /if }}
{{ if: ${hasRelative} }}
+ `'relative'` Focus on all ancestor and descendants nodes. (Since `v${version}`)
+ `'relative'` Focus on all ancestor and descendants nodes. (Since `v${relativeVersion}`)
{{ /if }}


{{ if: ${isSankey} }}
+ `'trajectory'` Focus on all the elements connected to the node or edge in the graph.
{{ if: ${hasTrajectory} }}
+ `'trajectory'` Focus on all the elements connected to the node or edge in the graph. (Since `v${trajectoryVersion}`)
{{ /if }}

**Example: **
Expand Down
3 changes: 2 additions & 1 deletion en/option/series/sankey.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ Configurations of emphasis state.

{{ use: partial-focus-blur-scope(
isGraph = true,
isSankey = true
hasTrajectory = true,
trajectoryVersion = "5.5.0"
) }}

{{ use: sankey-state(
Expand Down
2 changes: 1 addition & 1 deletion en/option/series/tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Configurations of emphasis state.
{{ use: partial-focus-blur-scope(
isTree = true,
hasRelative = true,
version = "5.3.3"
relativeVersion = "5.3.3"
) }}

{{ use: tree-state(
Expand Down
11 changes: 7 additions & 4 deletions zh/option/partial/emphasis-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,17 @@
{{ /if }}

{{ if: ${isGraph} }}
+ `'adjacency'` 聚焦关系图中的邻接点和边的图形
+ `'adjacency'` 聚焦关系图中的邻接点和边的图形

{{ elif: ${isTree} }}
+ `'ancestor'` 聚焦所有祖先节点
+ `'descendant'` 聚焦所有子孙节点
+ `'ancestor'` 聚焦所有祖先节点
+ `'descendant'` 聚焦所有子孙节点
{{ /if }}
{{ if: ${hasRelative} }}
+ `'relative'` 聚焦所有子孙和祖先节点(从 `v${version}`开始支持)
+ `'relative'` 聚焦所有子孙和祖先节点。(从 `v${relativeVersion}` 开始支持)
{{ /if }}
{{ if: ${hasTrajectory} }}
+ `'trajectory'` 聚焦所有连接到当前高亮的数据的节点和边。(从 `v${trajectoryVersion}` 开始支持)
{{ /if }}

**示例:**
Expand Down
4 changes: 3 additions & 1 deletion zh/option/series/sankey.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ levels: [{
) }}

{{ use: partial-focus-blur-scope(
isGraph = true
isGraph = true,
hasTrajectory = true,
trajectoryVersion = "5.5.0"
) }}

{{ use: sankey-state(
Expand Down
2 changes: 1 addition & 1 deletion zh/option/series/tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ center: [115.97, '30%']
{{ use: partial-focus-blur-scope(
isTree = true,
hasRelative = true,
version = "5.3.3"
relativeVersion = "5.3.3"
) }}

{{ use: tree-state(
Expand Down

0 comments on commit 84f5371

Please sign in to comment.