Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

auto scaling based on declared max-size

0 votes

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

asked Aug 27, 2015 in Wanted features by peter.loborg (560 points)

1 Answer

0 votes
 
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!

 

answered Aug 29, 2015 by plantuml (113,980 points)
selected Aug 29, 2015 by peter.loborg
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...