d2 icon indicating copy to clipboard operation
d2 copied to clipboard

Connection on same sql_table container not displayed properly

Open GwendalBroudin opened this issue 1 year ago • 2 comments

Hi, Connections with both targets on the same container is not displayed as expected with elk engine. In the following example the connection toto.parentId -> toto.id should start from parentId property and end on id property

vars: {
  d2-config: {
    layout-engine: elk
  }
}

toto: {
  shape: sql_table
  id: string
  parentId: string
}

tata: {
  shape: sql_table
  totoId: string
}

toto.parentId -> toto.id
tata.totoId -> toto.id

https://play.d2lang.com/?l=&script=dIwxCgIxEEX7OcW_QFJYprD3FDKaMQZDZk1GQWTvLrtBFMHyf957d2494ElA3Lij1lNOYwKFH3ozJzXlKgFSLgTMNBOZmg6qn3mSgH4te-NDEQJyDOjWck0ETNyk2u5zLTYb_7WX9A-upv7dgduuiM9x7fjBf9-vAAAA__8%3D&layout=elk&

d2

GwendalBroudin avatar Aug 19 '24 08:08 GwendalBroudin

Hey, ran into the same problem today :grin: I'd love to help fix this but could use some pointers on where to start!

kalin-p avatar Aug 20 '24 10:08 kalin-p

Also running into the same problem.

tsuga avatar Jan 07 '25 11:01 tsuga