blockdiag / seqdiag

Apache License 2.0
68 stars 14 forks source link

Add label_margin attribute to edges, and default_edge_label_margin to the diagram #43

Closed tk0miya closed 2 years ago

tk0miya commented 3 years ago

Make the position of the label of the edge adjustable via label_margin attribute and default_edge_label_margin attribute.

before:

{ A -> B [label = blah]; B -> A [label = blah] }

out1

after:

{
  A -> B [label = blah];
  A -> B [label = margin4, label_margin = 4, noactivate];
  B -> A [label = blah];
  B -> A [label = margin4, label_margin = 4, noactivate];
}

out2