auto scaling based on declared max-size

0 votes
asked Aug 27, 2015 in Wanted features by peter.loborg (360 points)

Hi,

As a complement to scale, that allways scales a diagram to the sepcified width*height, I would request a command maxsize width*height that would scale down the diagram to fit if needed, but if the diagram already is smaller than this bounding box it would never attempt at scaling up the image.

This would be very useful to keep diagram images within sertain boundaries - and if they become too small the user would have to divide the diagram. May not work together with page splitting though..

Br,

Peter

1 Answer

0 votes
answered Aug 29, 2015 by plantuml (295,000 points)
selected Aug 29, 2015 by peter.loborg
 
Best answer

Very good idea!

In the last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can now have:

@startuml
scale max 60*20
Alice->Bob:hello
@enduml


Thanks again for the suggestion!

 

...