alibaba / butterfly

🦋Butterfly,A JavaScript/React/Vue2 Diagramming library which concentrate on flow layout field. (基于JavaScript/React/Vue2的流程图组件)
https://butterfly-dag.gitee.io/butterfly-dag/home
MIT License
4.43k stars 595 forks source link

Moving union ingores groups #963

Open JensWinkler91 opened 1 year ago

JensWinkler91 commented 1 year ago

The current behavior

I'm using the following snippet to create a union that contains all current nodes and groups. My goal is to select all nodes and groups so i can move them all at once.

const data = this.canvas.getDataMap();
this.canvas.add2Union("selectAll", data);

If i move a node, all other nodes are moved but the position of the groups do not change.

The expected behavior

I'd expect that the position of nodes and groups change.

Your environment(such as: Butterfly version、Browser version、OS and so on)

Butterfly version: 4.3.27

noonnightstorm commented 1 year ago

It`s a little difficult, may be I will support later.

JensWinkler91 commented 1 year ago

Ok that would be great. Otherwise the behavior would be inconsistent.

JensWinkler91 commented 2 months ago

Any updates?