sverweij / mscgen_js

text => sequence charts
https://mscgen.js.org
GNU General Public License v3.0
207 stars 25 forks source link

Adjust text spacing for self ref arcs #181

Closed sverweij closed 9 years ago

sverweij commented 9 years ago

What this changes

  # Alice & Bob classics: public key encryption
  msc {
    hscale="1.4", wordwraparcs=on;

    Alice, Bob;

    --- [label="public key authentication"];
    Alice => Alice [label="sign message with own private key"];
    Alice => Bob [label="signed message"];
    Bob   => Alice [label="get Alice her public key"];
    Alice >> Bob [label="Alices' public key"];
    Bob   => Bob [label="verify message with Alices' public key"];

    --- [label="public key encryption"];
    Alice => Bob [label="get Bobs' public key"];
    Bob   >> Alice [label="Bobs' public key"];
    Alice => Alice [label="encrypt message with Bob's public key"];
    Alice => Bob [label="encrypted message"];
    Bob   => Bob [label="decrypt message with own private key"];
  }

Before

before

After

after