antvis/G6

图使用插件Minimap并设置type="delegate"时调用Graph的clear方法则会报错 #5295

youbins posted onGitHub

G6 Version

4.x

Describe the bug

图使用插件Minimap并设置type="delegate"时调用Graph的clear方法则会报错

Your Example Website or App

https://codesandbox.io/p/sandbox/amazing-mahavira-q4cy93?file=%2Findex.js

Steps to Reproduce the Bug or Issue

1、创建图

const graph = new G6.Graph({
  container: "container",
  width,
  height,
  plugins: [
    new G6.Minimap({
      type: "delegate",
    }),
  ],
});
graph.data(data);
graph.render();

2、执行clear方法

setTimeout(() => {
  graph.clear();
  graph.read(data);
}, 3000);

Expected behavior

执行clear方法不报错

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Edge
  • Version: 121.0.2277.4

Additional context

No response


Hi @youbins, Please star this repo if you find it useful! Thanks :star:! 你好 @youbins。如果该仓库对你有用,可以 star 一下,感谢你的 :star:!

posted by github-actions[bot] over 1 year 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

这是来自QQ邮箱的假期自动回复邮件。

您好,您的邮件我已经收到,我会尽快给您回复。

posted by youbins 10 months ago

Fund this Issue

$0.00
Funded

Pull requests