sverweij/mscgen_js

View on GitHub
src/samples/test26_text_spacing.mscgen

Summary

Maintainability
Test Coverage
msc {
  a [label="one", arctextcolor="white", arctextbgcolor="grey", arclinecolor="blue"],
  b [label="one\ntwo", arctextcolor="white", arctextbgcolor="grey", arclinecolor="blue"],
  c [label="one\ntwo\nthree", arctextcolor="white", arctextbgcolor="grey", arclinecolor="blue"],
  d [label="one\ntwo\nthree\nfour", arctextcolor="white", arctextbgcolor="grey", arclinecolor="blue"],
  e;

  a -> b [label="one"],
  b -> c [label="one\ntwo"],
  c -> d [label="one\ntwo\nthree"],
  d -> e [label="one\ntwo\nthree\nfour"];
  --- [label="one", linecolor="grey", textcolor="white", textbgcolor="white"];
  a =>> a [label="one one one one"],
  b =>> b [label="one one one one\ntwo two two two"],
  c =>> c [label="one one one one\ntwo two two two\nthree three three three"],
  d =>> d [label="one one one one\ntwo two two two\nthree three three\nfour four four four"];
  --- [label="one\ntwo", linecolor="grey", textcolor="white", textbgcolor="white"];
  a :> b [label="one"],
  b :> c [label="one\ntwo"],
  c :> d [label="one\ntwo\nthree"],
  d :> e [label="one\ntwo\nthree\nfour"];
  --- [label="one\ntwo\nthree", linecolor="grey", textcolor="white", textbgcolor="white"];
  a >> b [label="one"],
  b >> c [label="one\ntwo"],
  c >> d [label="one\ntwo\nthree"],
  d >> e [label="one\ntwo\nthree\nfour"];
  --- [label="one\ntwo\nthree\nfour", linecolor="grey", textcolor="white", textbgcolor="white"];
  a box a [label="one"],
  b abox b [label="one\ntwo"],
  c rbox c [label="one\ntwo\nthree"],
  d note d [label="one\ntwo\nthree\nfour"];
}