d2
d2 copied to clipboard
Connection on same sql_table container not displayed properly
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&
Hey, ran into the same problem today :grin: I'd love to help fix this but could use some pointers on where to start!
Also running into the same problem.