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

+1 vote
asked Mar 15, 2021 in Wanted features by The-Lu (63,920 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, 2021 by plantuml (294,960 points)
selected Mar 24, 2021 by The-Lu
 
Best answer

With last release 1.2021.3 you can have:

Does it help ?

commented Mar 22, 2021 by The-Lu (63,920 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, 2021 by The-Lu (63,920 points)

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

commented Oct 1, 2022 by The-Lu (63,920 points)
  • Could you allow 'MaximumWidth' and 'MinimumWidth' on all style for all diagram?

Thanks a lot for the improvement... blush

Regards.

...