kaishuu0123 / erd-go

Translates a plain text description of a relational database schema to a graphical entity-relationship diagram.(convert to dot file)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stand-alone table layout taking too much vertical space

gurumark opened this issue · 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.

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

@gurumark Thank you for your comment. reopened.

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

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!!!