terrastruct / d2

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

consider standardizing `-` and `_` #632

Open alixander opened 1 year ago

alixander commented 1 year ago

we have sequence_diagram and sql_table, but also font-color and target-arrowhead.

should consider standardizing for next major version.

bo-ku-ra commented 1 year ago

my understanding (might be wrong..);

. = elements separator <-> = connector _ = alternative space

style.font-size: (origin css) style.font-color: (origin css) style.fill: (origin svg) style.stroke: (origin svg) sequence_diagram (origin d2) target-arrowhead (origin d2)


my suggestion; style.font-size (css-like) style.font-color (css-like) style.stroke-color (css-like) style.background-color (css-like) sequencediagram (d2) target``````arrowhead (d2)

stroke-width stroke-dash ...