sverweij / mscgen_js

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

[ Help Wanted ] Add padding for rbox #266

Closed rick-chou closed 1 year ago

rick-chou commented 1 year ago

Hey ! Is there possible to add the padding for rbox ?

sverweij commented 1 year ago

Hi @rick-chou - there's not an option to set this directly. There might be options that help out with solving layout issues, though. What is it you're bumping into? Do you have an example?

rick-chou commented 1 year ago

THX! For Example

msc{
  wordwraparcs=1,
  hscale=1.2;

  TIME [label="", arclinecolor="transparent", linecolor="white"],
  EMPTY1 [label="", arclinecolor="transparent", linecolor="white"],
  A [
    label="A", 
    linecolor="#ffb000",
    textbgcolor="#ffb000",
    arclinecolor="#ffb000",
    arctextcolor="#ffb000"
  ];

    TIME => A [label="2023-07-04/06:45:55.971"], 
    A rbox A [label="xxxxxx_xxxxxx_xxxxxxx = false, xxxxxx_xxxxxx_xxxxxxx = false,xxxxxx_xxxxxx_xxxxxxx = true"];|||;
}
Screenshot 2023-09-04 at 09 43 26

I wish the boxes here were bigger so the user interface would be more comfortable.

rick-chou commented 1 year ago

It seems to be able to be resized via hscale, but I can't make sure that the text is long enough here to do a good job of fitting. I'll close this issue, thanks Anaway.