erd-go icon indicating copy to clipboard operation
erd-go copied to clipboard

Stand-alone table layout taking too much vertical space

Open gurumark opened this issue 4 years ago • 3 comments

Hello,

Great piece of software! Thank you.

One improvement would be great: If one has a mixed layout of stand-alone tables( tables with no relationships to other tables) and related tables (tables with relationship lines drawn), the stand-alone tables are drawn vertically (one after another in the same column), instead of taking horizontal space.

This creates a layout issue: Screenshot

Is there any way to fix this issue? Thank you.

gurumark avatar Nov 15 '20 16:11 gurumark

Unfortunately, the latest version did not fix the issue. Now it takes horizontal space. Screenshot

gurumark avatar Feb 13 '21 20:02 gurumark

@gurumark Thank you for your comment. reopened.

What is the expected result? I want an image of the layout your expect. (Handwritten, Paint etc ...)

kaishuu0123 avatar Feb 17 '21 04:02 kaishuu0123

I think the logic could be improved if we can set the paper size. The layout of the entities should start from the left to the right and entities without the relationships should be drawn first. This should be done regardless of the location of these entities on the file. When the right most end is reached, the second row should start. By this way, we will have the orphan entities on the top and the rest of the mode will flow nicely. This will offer optimum usage of the canvas and improve readability. Another nice to have option is the paging if the model exceeds certain number of entities per page. This feature could lead to subject area based layouts as well. Thank you so much for this extremely useful code!!!

gurumark avatar Feb 17 '21 15:02 gurumark