antvis / X6

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

stencil responsive layout #3517

Closed jiang-zhong-xi closed 1 year ago

jiang-zhong-xi commented 1 year ago

Describe the feature you'd like to request

number of columns can auto adjust when stencil size change. when components overflow, there should be a scrollbar.

Describe the solution you'd like

provide a switch in layout option

Describe alternatives you've considered

none

Your Example Website or App

No response

Screenshots or Videos

image

x6-bot[bot] commented 1 year ago

👋 @jiang-zhong-xi

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.

NewByVector commented 1 year ago

when you set stencilGraphHeight = 0, the height of the graph is adaptive,moreover, stencil provides resizeGroup method to dynamically resize the group.

jiang-zhong-xi commented 1 year ago

when you set stencilGraphHeight = 0, the height of the graph is adaptive,moreover, stencil provides resizeGroup method to dynamically resize the group.

but the columns of nodes can not change when I change the graph width, afterall scrollbar is not good experience.

NewByVector commented 1 year ago

If you need a flexible layout, use dnd to customize it. @jiang-zhong-xi

x6-bot[bot] commented 2 months ago

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.