Disable wrap width on certain nodes

0 votes
asked Nov 15, 2020 in Wanted features by polc1410 (160 points)

I have a UML which ahs a very long "title" node.  I'd like all the nodes below it to be self wrapping, but disable the wrap on the title

http://www.plantuml.com/plantuml/uml/RP51ImCn48Nl-HKFF7XHQAkdzb9110zwgU0vDjDcQ3PPCbEN-kiTiujMQCXXPjxxNaYo5lLLZrroSk3S--ex3DNtxnmqOZ6RdSqVjigVhAUdadN3NuJv_GNraNrNShXiUYrAVyhCkNQyMxv55jZsgEHJEY6Ll4SJsGfbJNG38Msjb8wmhQnKsSChDD9ejihQv-k0n0U25dmG1WwqSikDKe_voW6vA27HJd4rH4jniBNv2HNpYBMKGtDDrEANghoF_x2NKYSCjx3nDY8J1MY1KDgrnuH6QlXvyXHz1vRnjjuKYUMOmWYnIejOET7IkxMHza_V

Currently with wrap enabled I get this:

I can manually wrap to get what I want, but thats hard work! It looks like this:

1 Answer

0 votes
answered Nov 16, 2020 by Martin

This seems to be possible using Styles:

<style>

    ActivityDiagram {
      MaximumWidth 200
    .nowrap {
      MaximumWidth 0
    }
}
</style>

However I have used a slight fudge because I realised at the end that you wanted the notes to word-wrap, and I couldn't find the syntax for Style to do this (it might well be able to), so I cheated and put the "skinparam wrapWidth 200" back in purely to cover the notes...

...