diagram-plugin icon indicating copy to clipboard operation
diagram-plugin copied to clipboard

[enhancement] Better layout algorithm

Open thien-do opened this issue 3 years ago • 6 comments

There was this another issue in the previous version (which I have previously installed) where the line was overlapped by table.

Maybe it might have been fixed in the newer version.

CleanShot 2020-10-20 at 06 37 20@2x

Originally posted by @mittalyashu in https://github.com/TablePlus/diagram-plugin/issues/5#issuecomment-714471708

At the moment we choose to place the Tables over the References.

As far I understand the canvas (well, I don't even know how this plugin is build) has infinite space so just push the table bit further away so that the references doesn't over lap the tables.

And I mean by the above image.

NOTE: The above image was taken after the table arrangement was done by plugin automatically, I didn't change their positions.

CleanShot 2020-10-23 at 09 18 49@2x

Not this 👆

Originally posted by @mittalyashu in https://github.com/TablePlus/diagram-plugin/issues/5#issuecomment-714892046

As far I understand the canvas (well, I don't even know how this plugin is build) has infinite space so just push the table bit further away so that the references doesn't over lap the tables.

This is a very reasonable approach :D Unfortunately our current "layout" algorithm is not quite as good. Let us improve it. You are right that the layout should put the tables to minimize the overlaps

Originally posted by @dvkndn in https://github.com/TablePlus/diagram-plugin/issues/5#issuecomment-714893168

thien-do avatar Oct 30 '20 05:10 thien-do