mirror of
https://github.com/plantuml-stdlib/C4-PlantUML.git
synced 2022-10-18 01:14:54 +00:00
#186 LAYOUT_AS_SKETCH() styles can be set via SET_SKETCH_STYLE() (3 - cleanup)
This commit is contained in:
+1
-1
@@ -228,7 +228,7 @@ Rel(web_app, twitter, "Gets tweets from", "HTTPS")
|
||||
Additional styles and the footer text can be changed with SET_SKETCH_STYLE():
|
||||
|
||||
* `SET_SKETCH_STYLE(?bgColor, ?fontColor, ?warningColor, ?fontName, ?footerWarning, ?footerText)`:
|
||||
Enables the modification of differnt sketch styles and footer text.
|
||||
Enables the modification of differnt sketch styles and footer.
|
||||
|
||||
The possible font name(s) depend on the output format (e.g. PNG uses fonts which are installed on the server and SVG fonts have to be installed on the client).
|
||||
Additional is it possible to define comma separated fall back fonts (if the diagrams are exported as SVG. Atm
|
||||
|
||||
@@ -685,14 +685,6 @@ It is possible to save them directly inside VS Code: [Creating your own snippets
|
||||

|
||||

|
||||
|
||||
## Layout Options
|
||||
|
||||
C4-PlantUML also comes with some layout options to make it easy and reuseable to create nice and useful diagrams:
|
||||
|
||||
* [LAYOUT_TOP_DOWN or LAYOUT_LEFT_RIGHT](LayoutOptions.md#layout_top_down-or-layout_left_right)
|
||||
* [LAYOUT_WITH_LEGEND](LayoutOptions.md#layout_with_legend)
|
||||
* [LAYOUT_AS_SKETCH and SET_SKETCH_STYLE(?bgColor, ?fontColor, ?warningColor, ?fontName, ?footerWarning, ?footerText)](LayoutOptions.md#layout_as_sketch)
|
||||
|
||||
## Advanced Samples
|
||||
|
||||
The following advanced samples are reproductions with C4-PlantUML from official [C4 model samples](https://c4model.com/#examples) created by [Simon Brown](https://simonbrown.je/).
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
!if %variable_exists("RELATIVE_INCLUDE")
|
||||
!include ./../C4_Container.puml
|
||||
!else
|
||||
!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Container.puml
|
||||
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master//C4_Container.puml
|
||||
!endif
|
||||
|
||||
SET_SKETCH_STYLE($bgColor="lightblue", $fontColor="darkblue", $warningColor="darkred", $footerWarning="Sketch", $footerText="Created for discussion")
|
||||
@@ -25,4 +25,4 @@ Rel(admin, web_app, "Uses", "HTTPS")
|
||||
Rel(web_app, twitter, "Gets tweets from", "HTTPS")
|
||||
|
||||
SHOW_LEGEND()
|
||||
@enduml
|
||||
@enduml
|
||||
|
||||
Reference in New Issue
Block a user