Constant width of class

+2 votes
asked Oct 13, 2013 in Wanted features by martin.prosek (180 points)
Is it possible to define constant width for all classes in the diagram? When names of some classes are too short they are rather lost in the diagram.

If it is not possible it would it be nice to add this possibility to skinparams.

2 Answers

0 votes
answered Oct 13, 2013 by plantuml (295,000 points)

No, it's not possible (yet). Thanks for the suggestion

But adding something like:

skinparam minClassWidth 600

should be easy to implement. A minimum width (rather than a constant width) seems safer to me.

Would this be ok for you ?

 

 

commented Oct 13, 2013 by martin.prosek (180 points)
Great, it would be definitelly ok. :-)
0 votes
answered Oct 14, 2013 by plantuml (295,000 points)


We have added two different skinparam, that you can test with the following beta version:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Few tests have been done, so feedback is welcome!

@startuml
skinparam minClassWidth 70
class a
class thisisverylong
@enduml



@startuml
skinparam sameClassWidth true
class a
class thisisverylong
@enduml

 

commented Oct 14, 2013 by martin.prosek (180 points)
Thank you, at first try it is working perfectly!
...