mirror of
https://gitee.com/antv/g6.git
synced 2024-12-01 19:28:39 +08:00
docs: update docs
This commit is contained in:
parent
fcef418c32
commit
252bace526
@ -97,3 +97,7 @@ You can solve this issue by:
|
||||
1. Using the SVG or WebGL renderer;
|
||||
2. Checking whether there are illegal values in the element of the nodes, such as null, NaN, and so on;
|
||||
3. Using integers as much as possible for numeric style values, such as r, width, height, fontSize, and so on.
|
||||
|
||||
### Use Vanilla JavaScript Object Data
|
||||
|
||||
Please avoid using Vue reactive data, Immer.js, and other wrapped objects as the data source for G6, as these objects will be deeply monitored internally, and even freeze the data object, causing G6 to fail to operate normally.
|
||||
|
@ -97,3 +97,7 @@ behaviors: [
|
||||
1. 使用 SVG 或 WebGL 渲染器;
|
||||
2. 检查节点中的图形样式中是否存在非法值,例如 null、NaN 等;
|
||||
3. 尽量使用整数作为数值型的样式值,例如 r、width、height、fontSize 等;
|
||||
|
||||
### 使用原生 JavaScript 对象数据
|
||||
|
||||
请避免使用 Vue 响应式数据、Immer.js 等包装过的对象作为 G6 的数据源,因为这些对象会在内部进行深度监听,甚至冻结数据对象,导致 G6 无法正常操作数据。
|
||||
|
Loading…
Reference in New Issue
Block a user