iVis-at-Bilkent / cytoscape.js-fcose

fCoSE: a fast Compound Spring Embedder
MIT License
140 stars 25 forks source link

bad layout with expand collapse #34

Closed canbax closed 3 years ago

canbax commented 3 years ago

When I use fcose inside expand-collapse extension, I see very bad layouts on expand.

Below is a very small video showing what happens on Visuall. You can reproduce the video by loading visuall.txt inside Visuall. (File>Load)

https://user-images.githubusercontent.com/8426741/111583972-45438e00-87ce-11eb-8809-f4f52acd06a5.mp4

Here is also a JSBIN

You can try collapsing and then expanding an inner compound node.

hasanbalci commented 3 years ago

It seems that the source of the buggy behavior is not the layout algorithm but the expand-collapse extension, so I fixed the issue there.

ugurdogrusoz commented 3 years ago

@canbax Can you please confirm this fix?

canbax commented 3 years ago

It seems better now. I tested on http://visuall.herokuapp.com/