Graphin icon indicating copy to clipboard operation
Graphin copied to clipboard

MiniMap多个组件渲染在界面上的时候会全部到最下面那个graphin组件里

Open diklios5768 opened this issue 3 years ago • 1 comments

Describe the bug

我自己封装了一个graphin组件,在里面使用了MiniMap组件,因为要渲染多个图,当时当多个图形都成功渲染,而且自己附加的画布操作等全部正常的时候,MiniMap组件却全部渲染到了最下面的组件中

To Reproduce

https://codesandbox.io/s/graphin-minimap-bug-1hj0f

Expected behavior

希望可以解决一下这种位置错误的问题,虽然渲染的图行是正确的

Desktop (please complete the following information):

  • OS:windows10 21h2
  • Browser:microsoft edge(based Chromium)
  • Version:@antv/graphin@latest 2.2.1,@antv/graphin-components@latest 2.2.1

Additional context Add any other context about the problem here. 目前如果要渲染多个minimap,只能通过导入G6的minimap,并使用当前gragpinRef的graph.addPlugin手动添加组件并设置样式解决

diklios5768 avatar Aug 06 '21 10:08 diklios5768

https://github.com/antvis/Graphin/issues/470

pomelo-nwu avatar May 28 '23 07:05 pomelo-nwu