antvis/G6

拖拽画布时出现没有清除的数据 #4746

tipsxBase posted onGitHub

Describe the bug

G6版本^4.8.14 使用的是自定义布局,拖拽画布时会出现这种情况 image

Your Example Website or App

暂无

Steps to Reproduce the Bug or Issue

当大数量大的时候就会出现

Expected behavior

拖拽时可以正常展示

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response


自定义布局,自定义节点,自定义边

posted by tipsxBase almost 2 years ago

给个在线复现 demo,大概率是数据有重复 id,或非 string id

posted by Yanyan-Wang almost 2 years ago

给个在线复现 demo,大概率是数据有重复 id,或非 string id

https://stackblitz.com/edit/stackblitz-starters-dszk1p?file=src%2FDataLineage%2Flib%2FDataLineage.ts

posted by tipsxBase almost 2 years ago

麻烦帮忙看看

posted by tipsxBase almost 2 years ago

初步排查了一下,连边的时候如果边的sourceAnchor 是 'sort' 时。会导致 startPoint 变成 sort 函数

posted by tipsxBase almost 2 years ago

给个在线复现 demo,大概率是数据有重复 id,或非 string id

更新了一下在线demo,可以更方便看出效果

image

posted by tipsxBase almost 2 years ago

加个这个呢 this.graph.get('canvas').set('localRefresh', false);

posted by GemT27 almost 2 years ago

加个这个呢 this.graph.get('canvas').set('localRefresh', false);

可以解决,但是数据量大的时候页面会有卡的情况

posted by tipsxBase almost 2 years ago

This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 10 months ago

Fund this Issue

$0.00
Funded

Pull requests