This is an automated email from the ASF dual-hosted git repository. zakwu pushed a commit to branch fix-autoCurveness in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
commit 69c4fea992de0a15809e5cf34ed015dc7d0aec69 Author: zakwu <123537...@qq.com> AuthorDate: Sat Jan 30 09:53:31 2021 +0800 add(graph):fix auto curveness doc --- en/option/series/graph.md | 6 ++++-- zh/option/series/graph.md | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/en/option/series/graph.md b/en/option/series/graph.md index b01b58e..9e0d658 100644 --- a/en/option/series/graph.md +++ b/en/option/series/graph.md @@ -309,9 +309,11 @@ Select state of nodes in this category. {{ use: graph-node-state() }} -## autoCurveness(number|Array) = 20 +## autoCurveness(boolean|number|Array) = false -For the situation where there are multiple links between nodes, the curveness of each link is automatically calculated. +For the situation where there are multiple links between nodes, the curveness of each link is automatically calculated, not enabled by default. + +When set `true` to enable automatic curvature calculation, the default edge curvenness array length is `20`, if the number of edges between two nodes is more than `20`, please use `number` or `Array` to set the edge curvenness array. When set to `number`, it indicates the length of the edge curvenness array between two nodes, and the calculation result is given by the internal algorithm. diff --git a/zh/option/series/graph.md b/zh/option/series/graph.md index 818f429..99d24b0 100644 --- a/zh/option/series/graph.md +++ b/zh/option/series/graph.md @@ -315,13 +315,15 @@ edgeSymbol: ['circle', 'arrow'] {{ use: graph-node-state() }} -## autoCurveness(number|Array) = 20 +## autoCurveness(boolean|number|Array) = false -针对节点之间存在多边的情况,自动计算各边曲率。 +针对节点之间存在多边的情况,自动计算各边曲率,默认不开启。 + +设置为 `true` 时,开启自动曲率计算,默认边曲率数组长度为 `20`,如果两点间边数大于 `20`,请使用 `number` 或 `Array` 设置边曲率数组。 设置为 `number` 时,表示两点间边曲率数组的长度,由内部算法给出计算结果。 -设置为 `Array` 时,表示直接指定曲率数组,多边曲率会从数组中直接按顺序选取。 +设置为 `Array` 时,表示直接指定边曲率数组,多边曲率会从数组中直接按顺序选取。 **注意:** 如果设置 [lineStyle.curveness](~series-graph.lineStyle.curveness) 则此属性失效。 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org