antvis / X6

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

The select box does not follow the mouse as you drag to move it #4232

Open damnright opened 8 months ago

damnright commented 8 months ago

Describe the bug

It's a bug from Selection plugin,mostly because of the moving function does not consider the graph's scale.

Your Example Website or App

https://stackblitz.com/

Steps to Reproduce the Bug or Issue

1.Enabling selection,set 'following' to false. 2.Selecting multiple nodes. 3.Scaling the graph. 4.Draging the Selection box.

Expected behavior

moving in proper way

Screenshots or Videos

ss

Platform

Additional context

No response

light-years-run commented 6 months ago

自己实现渲染选择框吧,根据框选所有节点的外包矩形