jhipster / jdl-studio

JDL Studio is an online JHipster Domain Language visual editor
https://start.jhipster.tech/jdl-studio/
Apache License 2.0
405 stars 114 forks source link

Relation display should be aware of its position in relation to entities #39

Closed pawel-dubilowicz closed 4 years ago

pawel-dubilowicz commented 6 years ago

The relation information seems to always be displayed on the top-right side of the relational arrow. This becomes a problem when the arrow connects to the left side of an entity. The relation arrow(s) should know the spatial relation between the connected entities and position the relation info accordingly (left/right and top/bottom). I'm attaching example image generated for following data using http://www.jhipster.tech/jdl-studio/ (Chrome)

entity SomeTable {somtheing Bigint,somtethnigElse String} entity SomeOtherTable {somtheing Bigint,somtethnigElse String} entity YetAnotherTable {somtheing Bigint,somtethnigElse String} entity RandomTable {somtheing Bigint,somtethnigElse String} entity NotReallyATable {somtheing Bigint,somtethnigElse String} relationship OneToOne {SomeOtherTable to SomeTable} relationship ManyToOne {YetAnotherTable to SomeTable} relationship ManyToMany {RandomTable to SomeTable} relationship ManyToMany {NotReallyATable to SomeTable}

ex

deepu105 commented 4 years ago

too difficult to implemement and not worth it IMO