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/14 02:21:43 UTC
[echarts-doc] branch dev updated: fix: add version for `center` (#260)
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 cc37c3dd fix: add version for `center` (#260)
cc37c3dd is described below
commit cc37c3dd03b7350cedf3a6fe48ad4fd7063ae8b2
Author: susiwen8 <su...@gmail.com>
AuthorDate: Tue Jun 14 10:21:39 2022 +0800
fix: add version for `center` (#260)
* fix: add version for `center`
* fix: enhance description
* fix: grammar
* fix: full stop
---
en/option/series/graph.md | 1 +
en/option/series/map.md | 1 +
en/option/series/tree.md | 1 +
zh/option/series/graph.md | 1 +
zh/option/series/map.md | 1 +
zh/option/series/tree.md | 1 +
6 files changed, 6 insertions(+)
diff --git a/en/option/series/graph.md b/en/option/series/graph.md
index 0a539e1b..71f7ac6c 100644
--- a/en/option/series/graph.md
+++ b/en/option/series/graph.md
@@ -36,6 +36,7 @@ Graph is a diagram to represent [nodes](~series-graph.nodes) and the [links](~se
<ExampleUIControlVector default="0,0" dims="x,y" />
Center of current view-port. It can be an arrary containing two `number`s in pixels or `string`s in percentage relative to the container width/height.
+`string` is supported from version `5.3.3`.
Example:
```ts
diff --git a/en/option/series/map.md b/en/option/series/map.md
index 43c97f45..fb3d335f 100644
--- a/en/option/series/map.md
+++ b/en/option/series/map.md
@@ -27,6 +27,7 @@ Series of same [map type](~series-map.map) will show in one map. At this point,
## center(Array)
Center of current view-port. It can be an arrary containing two `number`s in pixels or `string`s in percentage relative to the container width/height.
+`string` is supported from version `5.3.3`.
Example:
```ts
diff --git a/en/option/series/tree.md b/en/option/series/tree.md
index e32e748e..9a40d208 100644
--- a/en/option/series/tree.md
+++ b/en/option/series/tree.md
@@ -38,6 +38,7 @@ The tree diagram is mainly used to visualize the tree data structure, which is a
## center(Array)
Center of current view-port. It can be an arrary containing two `number`s in pixels or `string`s in percentage relative to the container width/height.
+`string` is supported from version `5.3.3`.
Example:
```ts
diff --git a/zh/option/series/graph.md b/zh/option/series/graph.md
index c31cd3e4..9848dba0 100644
--- a/zh/option/series/graph.md
+++ b/zh/option/series/graph.md
@@ -45,6 +45,7 @@ option.series[0].data.forEach(function (item) {
<ExampleUIControlVector default="0,0" dims="x,y" />
当前视角的中心点。可以是包含两个 `number` 类型(表示像素值)或 `string` 类型(表示相对容器的百分比)的数组。
+从 `5.3.3` 版本开始支持 `string` 类型。
例如:
```ts
diff --git a/zh/option/series/map.md b/zh/option/series/map.md
index 07d10805..02ef3ce6 100644
--- a/zh/option/series/map.md
+++ b/zh/option/series/map.md
@@ -29,6 +29,7 @@
## center(Array)
当前视角的中心点。可以是包含两个 `number` 类型(表示像素值)或 `string` 类型(表示相对容器的百分比)的数组。
+从 `5.3.3` 版本开始支持 `string` 类型。
例如:
```ts
diff --git a/zh/option/series/tree.md b/zh/option/series/tree.md
index db453f6c..a91f3c02 100644
--- a/zh/option/series/tree.md
+++ b/zh/option/series/tree.md
@@ -81,6 +81,7 @@ const option = {
## center(Array)
当前视角的中心点。可以是包含两个 `number` 类型(表示像素值)或 `string` 类型(表示相对容器的百分比)的数组。
+从 `5.3.3` 版本开始支持 `string` 类型。
例如:
```ts
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org