d2 icon indicating copy to clipboard operation
d2 copied to clipboard

Point to self

Open mathiasrw opened this issue 3 years ago • 1 comments

I absolutely love the project. Thank you for this.

Not sure how to put it, but some simple cases are turning out a bit - ehh - un-ideal. Example:

Database -> S3: backup
Database -> Database: Check
S3 -> Database: Restore

image

Any chance we can get "pointing to self" to look more harmonies? and it would be amazing if the words did not overlap but was shifted a bit up and down to make it more readable.

Keep up the good work.

mathiasrw avatar Dec 21 '22 09:12 mathiasrw

Thank you @mathiasrw . dagre's self-edges just look monstrous for some reason. i'm not sure how much we can do about that, but we'll try, e.g. smoothing out to be more like a loop.

E.g. on TALA it looks like https://play.d2lang.com/?script=ckksSUxKLE5V0LVTCDa2UkhKTM4uLeBCFoaxrRScM1KTs7mCjVFFg1KLS_KLUrkAAQAA__8%3D&layout=tala

alixander avatar Dec 21 '22 11:12 alixander

perhaps the move here is to fork dagre and make those changes in it

alixander avatar Mar 11 '23 18:03 alixander