antvis / antvis/layout

FruchtermanLayout 布局,gpuEnabled: true性能没有提升

Open
#176 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
276
Forks
60
PR merge metrics
No merged PRs in 30d

Description

antv/layout 的版本 "@antv/layout": "0.3.23",
const fruchtermanLayout = new FruchtermanLayout({
type: 'fruchterman',
center: [this.width / 2, this.height / 2],
gravity: 2,
speed: 300,
maxIteration: 500,
workerEnabled: false, // 可选,开启 web-worker
gpuEnabled: true, // 可选,开启 GPU 并行计算,G6 4.0 支持
preventOverlap: true,
animate: false,
width: this.width / getZoom(),
height: this.height / getZoom(),
onLayoutEnd: () => {
// 回调函数
},
});
this.doLayout(fruchtermanLayout, model);

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.