antvis / X6

🚀 JavaScript diagramming library that uses SVG and HTML for rendering.
https://x6.antv.antgroup.com
MIT License
5.7k stars 1.7k forks source link

非scroller模式下节点拖出可视区域,拖动节点时小地图minimap不会缩放 #1873

Open NINGyv179 opened 2 years ago

NINGyv179 commented 2 years ago

Describe the bug

之前相关的bug:https://github.com/antvis/X6/issues/1764 现在拖动画布的时候可以在小地图中看到对应节点,但是拖动节点的时候小地图没有进行对应的缩放 image

Your Example Website or App

https://codesandbox.io/s/6k4m9?file=/src/app.tsx:416-543

Steps to Reproduce the Bug or Issue

不使用scroller,使用用小地图,重现链接中去掉scroller可复现

Expected behavior

希望能显示所有的节点,就像这样 image

Screenshots or Videos

No response

Platform

Additional context

No response

NewByVector commented 2 years ago

感谢你提出的问题,这这个功能我们会作为优化项安排到我们的开发计划中。

wflixu commented 2 years ago

1764

发现每次创建minimap 时,是根据当前画布的dom 宽度设置minimap 对比 的画布,可以 在minimap 配置参数中添加一个 scope 参数来设置 对比的范围时 画布的ContentArea吗,这样根据更合理,因为画布可以无限的panning。

参考 G6 minimap 实现博客

lvxiansen commented 1 year ago

感谢你提出的问题,这这个功能我们会作为优化项安排到我们的开发计划中。

请问下这个问题解决了吗?

lexoring commented 1 year ago

The latest version still has the same problem.

abingbaba commented 4 months ago

2.0.4还有这个问题