Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
110
Добавлен:
17.04.2018
Размер:
1.9 Mб
Скачать

9 COMMON COMMANDS

9 Common commands

9.1Footer and header

You can use the commands header or footer to add a footer or a header on any generated diagram. You can optionally specify if you want a center, left or right footer/header, by adding a keyword. As for title, it is possible to define a header or a footer on several lines.

It is also possible to put some HTML into the header or footer.

@startuml

Alice -> Bob: Authentication Request

header

<font color=red >Warning:</font > Do not use in production. endheader

center footer Generated for demonstration

@enduml

9.2Zoom

You can use the scale command to zoom the generated image.

You can use either a number or a fraction to define the scale factor. You can also specify either width or height (in pixel). And you can also give both width and height : the image is scaled to fit inside the specified dimension.

scale 1.5

scale 2/3

scale 200 width

scale 200 height

scale 200*100

@startuml scale 180*90

Bob ->Alice : hello @enduml

PlantUML Language Reference Guide (Version 8020)

88 of 118