Could you allow MaximumWidth on style for note [test on activity]

+1 vote
asked Mar 15 in Wanted features by The-Lu (19,980 points)

Hello PlantUML team,

  • Could you allow MaximumWidth on style for note [only test on activity]?

That is quasi OK with skinparam but KO with style

Here is an example:

skinparam CSS style
@startuml
skinparam wrapWidth 100
|Actor 1|
start
:foo1;
note right
  Long Long Long Long Long Long Long Long Long Long Long Long Long Long note
  This note is on several
  //lines// and can
  contain <b>HTML</b>
  ====
  * Calling the method ""foo()"" is prohibited
end note
floating note left: This is a note
|Actor 2|
:foo2;
note right
  Long Long Long Long Long Long Long Long Long Long Long Long Long Long note
  This note is on several
  //lines// and can
  contain <b>HTML</b>
  ====
  * Calling the method ""foo()"" is prohibited
end note
stop
@enduml
@startuml
<style>
activityDiagram {
  note {
    MaximumWidth 100
  }
}
</style>
|Actor 1|
start
:foo1;
note right
  Long Long Long Long Long Long Long Long Long Long Long Long Long Long note
  This note is on several
  //lines// and can
  contain <b>HTML</b>
  ====
  * Calling the method ""foo()"" is prohibited
end note
floating note left: This is a note
|Actor 2|
:foo2;
note right
  Long Long Long Long Long Long Long Long Long Long Long Long Long Long note
  This note is on several
  //lines// and can
  contain <b>HTML</b>
  ====
  * Calling the method ""foo()"" is prohibited
end note
stop
@enduml

Thank for your work,
Regards,
Th.

1 Answer

0 votes
answered Mar 22 by plantuml (251,240 points)
selected Mar 24 by The-Lu
 
Best answer

With last release 1.2021.3 you can have:

Does it help ?

commented Mar 22 by The-Lu (19,980 points)

Hello PlantUML,

Just a little.... sorry for the humor...wink

See your example just without the floating note:

Then could you compare that:

and that (just suppress the floating note... and all is KO):

Have courage,
Regards,
Th.

commented Mar 24 by The-Lu (19,980 points)

Thank you very much,
I go back to the tests...

...