This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
The following commit(s) were added to refs/heads/master by this push:
new da90dd1 fix broken links to `renderToSVGString` API.
da90dd1 is described below
commit da90dd1e301431e82d98e9542d591ce8e7aa55de
Author: plainheart <[email protected]>
AuthorDate: Tue Feb 8 18:51:30 2022 +0800
fix broken links to `renderToSVGString` API.
---
en/api/echarts.md | 2 +-
zh/api/echarts.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/en/api/echarts.md b/en/api/echarts.md
index d4d281d..866278b 100644
--- a/en/api/echarts.md
+++ b/en/api/echarts.md
@@ -34,7 +34,7 @@ Creates an ECharts instance, and returns an
[echartsInstance](~echartsInstance).
+ `devicePixelRatio` Ratio of one physical pixel to the size of one device
independent pixels. Browser's `window.devicePixelRatio` is used by default.
+ `renderer` Supports `'canvas'` or `'svg'`. See [Render by Canvas or
SVG](${handbookPath}best-practices/canvas-vs-svg).
- + `ssr` Whether to use server-side rendering. Only available in SVG
rendering mode. When enabled, it will no longer render automatically every
frame, you have to use the
[renderToSVGString]((~echartsInstance.renderToSVGString) method to get the
rendered SVG string.
+ + `ssr` Whether to use server-side rendering. Only available in SVG
rendering mode. When enabled, it will no longer render automatically every
frame, you have to use the
[renderToSVGString](~echartsInstance.renderToSVGString) method to get the
rendered SVG string.
+ `useDirtyRect` Enable dirty rectangle rendering or not, `false` by
default. See [New features in ECharts
5](${handbookPath}basics/release-note/v5-feature).
+ `width` Specify width explicitly, in pixel. If setting to
`null`/`undefined`/`'auto'`, width of `dom` (instance container) will be used.
+ `height` Specify height explicitly, in pixel. If setting to
`null`/`undefined`/`'auto'`, height of `dom` (instance container) will be used.
diff --git a/zh/api/echarts.md b/zh/api/echarts.md
index 745371b..8bc88d5 100644
--- a/zh/api/echarts.md
+++ b/zh/api/echarts.md
@@ -35,7 +35,7 @@
+ `devicePixelRatio`设备像素比,默认取浏览器的值`window.devicePixelRatio`。
+ `renderer` 渲染模式,支持`'canvas'`或者`'svg'`。参见 [使用 Canvas 或者 SVG
渲染](${handbookPath}best-practices/canvas-vs-svg)。
- + `ssr` 是否使用服务端渲染,只有在 SVG 渲染模式有效。开启后不再会每帧自动渲染,必须要调用
[renderToSVGString]((~echartsInstance.renderToSVGString) 方法才能得到渲染后 SVG 字符串。
+ + `ssr` 是否使用服务端渲染,只有在 SVG 渲染模式有效。开启后不再会每帧自动渲染,必须要调用
[renderToSVGString](~echartsInstance.renderToSVGString) 方法才能得到渲染后 SVG 字符串。
+ `useDirtyRect`是否开启脏矩形渲染,只有在 Canvas 渲染模式有效,默认为`false`。参见 [ECharts 5
新特性](${handbookPath}basics/release-note/v5-feature)。
+ `width` 可显式指定实例宽度,单位为像素。如果传入值为`null`/`undefined`/`'auto'`,则表示自动取
`dom`(实例容器)的宽度。
+ `height` 可显式指定实例高度,单位为像素。如果传入值为`null`/`undefined`/`'auto'`,则表示自动取
`dom`(实例容器)的高度。
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]