From c65e5de534485ce311a3f24d89c6bfa30fa78fa3 Mon Sep 17 00:00:00 2001 From: KIRCHSTH Date: Sun, 6 Mar 2022 11:53:41 +0100 Subject: [PATCH] #186 LAYOUT_AS_SKETCH() styles can be set via SET_SKETCH_STYLE() (3 - cleanup) --- LayoutOptions.md | 2 +- README.md | 8 -------- percy/TestSketchStyle.puml | 4 ++-- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/LayoutOptions.md b/LayoutOptions.md index 59d6231..103a75d 100644 --- a/LayoutOptions.md +++ b/LayoutOptions.md @@ -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 diff --git a/README.md b/README.md index 1ffff25..334c0d7 100644 --- a/README.md +++ b/README.md @@ -685,14 +685,6 @@ It is possible to save them directly inside VS Code: [Creating your own snippets ![C4-PlantUML Snippets Video](images/intellij_c4plantum_live_template1.gif) ![C4-PlantUML Snippets Video](images/intellij_c4plantum_live_template2.gif) -## 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/). diff --git a/percy/TestSketchStyle.puml b/percy/TestSketchStyle.puml index 6d3222c..d0b85ff 100644 --- a/percy/TestSketchStyle.puml +++ b/percy/TestSketchStyle.puml @@ -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 \ No newline at end of file +@enduml