Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update docs #6370

Open
wants to merge 1 commit into
base: v5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/site/docs/manual/faq.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 4 additions & 0 deletions packages/site/docs/manual/faq.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,7 @@ behaviors: [
1. 使用 SVG 或 WebGL 渲染器;
2. 检查节点中的图形样式中是否存在非法值,例如 null、NaN 等;
3. 尽量使用整数作为数值型的样式值,例如 r、width、height、fontSize 等;

### 使用原生 JavaScript 对象数据

请避免使用 Vue 响应式数据、Immer.js 等包装过的对象作为 G6 的数据源,因为这些对象会在内部进行深度监听,甚至冻结数据对象,导致 G6 无法正常操作数据。
Loading