diff --git a/en/option/partial/item-style.md b/en/option/partial/item-style.md index 2847f28c1..329085bb4 100644 --- a/en/option/partial/item-style.md +++ b/en/option/partial/item-style.md @@ -68,4 +68,3 @@ ${defaultBorderWidthDesc|default((${name} ? ${name} : "") + " border width. No b prefix = '#' + ${prefix} ) }} {{ /if }} - diff --git a/en/option/series/sankey.md b/en/option/series/sankey.md index c7dcf651e..e4db3567a 100644 --- a/en/option/series/sankey.md +++ b/en/option/series/sankey.md @@ -201,10 +201,15 @@ The style of node rectangle in Sankey diagram. prefix = "##", useColorPalatte = true, defaultBorderWidth = 1, - defaultBorderColor = "'#aaa'", + defaultBorderColor = "'none'", useDecal = true ) }} +{{ use: partial-border-radius( + prefix = "##", + version = "5.5.1" +) }} + ## lineStyle(Object) The edge style of Sankey diagram @@ -302,7 +307,14 @@ The style of this node. {{ use: partial-item-style( prefix = "###", useColorPalatte = true, - useDecal = true + useDecal = true, + defaultBorderWidth = 1, + defaultBorderColor = "'none'" +) }} + +{{ use: partial-border-radius( + prefix = "###", + version = "5.5.1" ) }} ### label(Object) @@ -443,7 +455,7 @@ Equals to [links](~series-sankey.links) {{ target: partial-sankey-line-style }} -#${prefix} color(Color) = "'#314656'" +#${prefix} color(Color) = '#314656' The color of the edge in Sankey diagram. @@ -480,7 +492,9 @@ The curveness of the edge in Sankey diagram. {{ use: partial-item-style( prefix = "#" + ${prefix}, useDecal = true, - hasInherit = ${state} === 'emphasis' + hasInherit = ${state} === 'emphasis', + defaultBorderColor = ${state} === 'select' ? "'#212121'" : "'none'", + defaultBorderWidth = 1 ) }} @@ -504,14 +518,17 @@ The curveness of the edge in Sankey diagram. {{ use: partial-item-style( prefix = "#" + ${prefix}, - hasInherit = ${state} === 'emphasis' + hasInherit = ${state} === 'emphasis', + defaultBorderColor = ${state} === 'select' ? "'#212121'" : "'none'", + defaultBorderWidth = 1 ) }} #${prefix} lineStyle(Object) {{ use: partial-sankey-line-style( prefix = "#" + ${prefix}, - hasInherit = ${state} === 'emphasis' + hasInherit = ${state} === 'emphasis', + defaultOpacity = ${state} === 'emphasis' ? 0.5 : null ) }} @@ -530,7 +547,8 @@ The line style of edge. {{ use: partial-sankey-line-style( prefix = "#" + ${prefix}, - hasInherit = ${state} === 'emphasis' + hasInherit = ${state} === 'emphasis', + defaultOpacity = ${state} === 'emphasis' ? 0.5 : null ) }} @@ -541,7 +559,7 @@ The line style of edge. version = "5.4.1" ) }} -The label style of each edge/link. +The label style of each edge/link. {{ use: partial-label( prefix = ${prefix}, diff --git a/zh/option/partial/item-style.md b/zh/option/partial/item-style.md index 5baa688f0..be4c54326 100644 --- a/zh/option/partial/item-style.md +++ b/zh/option/partial/item-style.md @@ -66,4 +66,3 @@ ${defaultBorderWidthDesc|default((${name} ? ${name} : "") + "描边线宽。为 prefix = '#' + ${prefix} ) }} {{ /if }} - diff --git a/zh/option/series/sankey.md b/zh/option/series/sankey.md index 1590201f8..4365d87db 100644 --- a/zh/option/series/sankey.md +++ b/zh/option/series/sankey.md @@ -204,10 +204,15 @@ levels: [{ prefix = "##", useColorPalatte = true, defaultBorderWidth = 1, - defaultBorderColor = "'#aaa'", + defaultBorderColor = "'none'", useDecal = true ) }} +{{ use: partial-border-radius( + prefix = "##", + version = "5.5.1" +) }} + ## lineStyle(Object) 桑基图边的样式 @@ -305,7 +310,14 @@ data: [{ {{ use: partial-item-style( prefix = "###", useColorPalatte = true, - useDecal = true + useDecal = true, + defaultBorderWidth = 1, + defaultBorderColor = "'none'" +) }} + +{{ use: partial-border-radius( + prefix = "###", + version = "5.5.1" ) }} ### label(Object) @@ -454,7 +466,7 @@ links: [{ + `'target'`: 使用目标节点颜色。 + `'gradient'`: 以源节点和目标节点的颜色做一个渐变过渡色。(从 v5.0.0 开始支持) -#${prefix} opacity(number) = 0.2 +#${prefix} opacity(number) = ${defaultOpacity|default(0.2)} 桑基图边的透明度。 @@ -483,7 +495,9 @@ links: [{ {{ use: partial-item-style( prefix = "#" + ${prefix}, useDecal = true, - hasInherit = ${state} === 'emphasis' + hasInherit = ${state} === 'emphasis', + defaultBorderColor = ${state} === 'select' ? "'#212121'" : "'none'", + defaultBorderWidth = 1 ) }} @@ -507,14 +521,17 @@ links: [{ {{ use: partial-item-style( prefix = "#" + ${prefix}, - hasInherit = ${state} === 'emphasis' + hasInherit = ${state} === 'emphasis', + defaultBorderColor = ${state} === 'select' ? "'#212121'" : "'none'", + defaultBorderWidth = 1 ) }} #${prefix} lineStyle(Object) {{ use: partial-sankey-line-style( prefix = "#" + ${prefix}, - hasInherit = ${state} === 'emphasis' + hasInherit = ${state} === 'emphasis', + defaultOpacity = ${state} === 'emphasis' ? 0.5 : null ) }} @@ -533,7 +550,8 @@ links: [{ {{ use: partial-sankey-line-style( prefix = "#" + ${prefix}, - hasInherit = ${state} === 'emphasis' + hasInherit = ${state} === 'emphasis', + defaultOpacity = ${state} === 'emphasis' ? 0.5 : null ) }}