antvis / XFlow

React component for building interactive diagrams.

Home Page:https://x6.antv.antgroup.com/xflow/guide/introduction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

群组内的节点拖动后,群组边框没有自适应内部节点的边界框,只能自动放大不能自动缩小

StrangeXin opened this issue · comments

commented

问题描述

1、手动添加群组或者根据已有数据计算并渲染出群组后,用户希望能够手动拖动群组和群组内的节点进行自由布局
2、目前的群组支持根据第一次群组框的大小进行自动放大,但没有支持自动缩小

(1)初始群组大小:
image
(2)将“算法节点-2”往左拖动,群组框自动撑大了
image
(3)将“算法节点-2”往右拖动,群组框没有自动缩小,还是保留了原有大小
image
(4)如果群组初始子节点很多,群组框原有尺寸过大,希望手动调整一下节点位置并将群组框进行美化,如果能够自适应大小,图的布局将美观很多

重现链接

https://codesandbox.io/s/q1d684

重现步骤

1.打开官方的DAG图解决方案,第一个示例
2.点击开启框选,框选中节点2、节点3
image
3.点击新建群组
image
4.拖动节点3,群组的边框没有根据内部节点位置变化自动缩小
image

预期行为

期望能够自适应群组内部节点的边界,自动缩小或放大群组的边框和位置

平台

  • 操作系统: macOS
  • 网页浏览器: Google Chrome
  • XFlow 版本: 1.0.55

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

👋 @StrangeXin

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the AntV community! 💪💯

Hey again!

It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot 🤖, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else.

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks again for being part of the AntV community! 💪💯

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.