This is an automated email from the ASF dual-hosted git repository. ovilia pushed a commit to branch 4.8.0 in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
The following commit(s) were added to refs/heads/4.8.0 by this push: new 3bfae2b fix(svg): toolbox download image apache/incubator-echarts#11781 3bfae2b is described below commit 3bfae2b194b81bc85a241d45c58b3b71abbb7586 Author: Ovilia <zwl.s...@gmail.com> AuthorDate: Fri Feb 14 14:03:27 2020 +0800 fix(svg): toolbox download image apache/incubator-echarts#11781 --- en/option/component/toolbox.md | 2 +- zh/option/component/toolbox.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/option/component/toolbox.md b/en/option/component/toolbox.md index a4c6876..bddf011 100644 --- a/en/option/component/toolbox.md +++ b/en/option/component/toolbox.md @@ -112,7 +112,7 @@ Notes: User-defined tool name could only start with `my`, like `myTool1` and `my ### saveAsImage(Object) Save as image. #### type(string) = 'png' -Format to save the image in, which supports`'png'` and `'jpeg'`. +File suffix of the image saved. If the `renderer` is set to be `'canvas'` when it is [inited](api.html#echarts.init) (default), then `'png'` (default) and `'jpeg'` are supported. If `renderer` is `svg`, then only `'svg'` is supported for `type`. #### name(string) Name to save the image, whose default value is [title.text](~title.text). #### backgroundColor(Color) = 'auto' diff --git a/zh/option/component/toolbox.md b/zh/option/component/toolbox.md index 8cbc649..b3ede2d 100644 --- a/zh/option/component/toolbox.md +++ b/zh/option/component/toolbox.md @@ -112,7 +112,7 @@ ${name} icon 样式设置。由于 icon 的文本信息只在 icon hover 时候 ### saveAsImage(Object) 保存为图片。 #### type(string) = 'png' -保存的图片格式。支持 `'png'` 和 `'jpeg'`。 +保存的图片格式。如果[初始化图表](api.html#echarts.init)时 `renderer` 的类型是 `'canvas'`(默认),则支持 `'png'`(默认)和 `'jpeg'`;如果 `renderer` 的类型是 `'svg'`,则 `type` 只支持 `'svg'`。 #### name(string) 保存的文件名称,默认使用 [title.text](~title.text) 作为名称。 #### backgroundColor(Color) = 'auto' --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org