terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
16.52k stars 414 forks source link

animate keyword for bidirectional connections #654

Closed alixander closed 3 months ago

alixander commented 1 year ago

right now the bidirectional connections (arrowheads on both ends) just animate from source to target. It might be cool to add an invisible element in the middle of the connection and then animate in opposite directions.

sketch exp (10)

Screen Shot 2023-01-12 at 2 25 56 PM
bo-ku-ra commented 1 year ago

scrolling; <-> : From the center to each end ■<<<<<>>>>>■ (direction of each arrow) -- : From each end to the center  ■>>>>><<<<<■ (handshake image)

if it's one way, i have a problem maybe. i want to make it right or down direction scrolling by design, not as semantics. when editing, top and bottom, right and left are switched frequently.

alixander commented 1 year ago

i don't understand what you mean by scrolling, or handshake, or top/bottom

edit: i now understand! thank you for the suggestion

bo-ku-ra commented 4 months ago

https://github.com/terrastruct/d2/issues/1936#issuecomment-2103588340