From 5f45bbdba44f8aadd6ceb71b4bd6c29e7a4431c4 Mon Sep 17 00:00:00 2001 From: ZareMate <0.zaremate@gmail.com> Date: Thu, 12 Dec 2024 18:51:06 +0100 Subject: [PATCH] fixed formatting --- pl-version/prad-szablon.md | 36 ++++++++++++++++++++++++++++++++++++ power/power-example.md | 3 +-- power/power-template.md | 11 +++++++++++ 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 pl-version/prad-szablon.md diff --git a/pl-version/prad-szablon.md b/pl-version/prad-szablon.md new file mode 100644 index 0000000..fe21ed1 --- /dev/null +++ b/pl-version/prad-szablon.md @@ -0,0 +1,36 @@ +```mermaid + graph TD; + %%{init: {'theme':'dark'}}%% + %% Class Definitions + classDef root fill:#ff0000,stroke:#000,stroke-width:2,color:#fff; %% Red background, white text + classDef branch fill:#000000,stroke:#000,stroke-width:2,color:#fff; %% Black background, white text + classDef wind fill:gray,stroke:#000,stroke-width:2,color:#fff; %% Grey background, white text circle + classDef solar fill:yellow,stroke:#000,stroke-width:2,color:#000; %% Yellow background, black text + classDef batt fill:blue,stroke:#000,stroke-width:2,color:#000; %% Light blue background, black text + classDef splitter fill:gray,stroke:#000,stroke-width:2,color:#000; %% Light grey background, black text + + Wind1((Wiatrak)) + Solar1[Solar] + Root1(Root) + Splitter1([Splitter]) + Batt1[(Batteria)] + Branch1{{Branch}} + + %% Graph Nodes + Wind1 -->| | Root1; + Solar1 -->| | Root1; + Root1 -->| | Splitter1; + Splitter1 -->| | Batt1; + Batt1 -->|100| Branch1; + + %% Link Styles + linkStyle 0,1,2,3,4 stroke:red,stroke-width:2; + + %% Class Assignments + class Root1 root; + class Branch1 branch; + class Wind1 wind; + class Solar1 solar; + class Batt1 batt; + class Splitter1 splitter; +``` diff --git a/power/power-example.md b/power/power-example.md index 503bf26..c264065 100644 --- a/power/power-example.md +++ b/power/power-example.md @@ -1,12 +1,11 @@ ```mermaid - %%{init: {'theme':'base'}}%% graph TD; %% Class Definitions classDef root fill:#ff0000,stroke:#000,stroke-width:2,color:#fff; %% Red background, white text classDef branch fill:#000000,stroke:#000,stroke-width:2,color:#fff; %% Black background, white text classDef wind fill:gray,stroke:#000,stroke-width:2,color:#fff; %% Grey background, white text circle classDef solar fill:yellow,stroke:#000,stroke-width:2,color:#000; %% Yellow background, black text - classDef batt fill:#add8e6,stroke:#000,stroke-width:2,color:#000; %% Light blue background, black text + classDef batt fill:blue,stroke:#000,stroke-width:2,color:#000; %% Light blue background, black text classDef splitter fill:gray,stroke:#000,stroke-width:2,color:#000; %% Light grey background, black text Wind1((Wind)) diff --git a/power/power-template.md b/power/power-template.md index 511e0fa..13bdc7e 100644 --- a/power/power-template.md +++ b/power/power-template.md @@ -1,7 +1,13 @@ ```mermaid graph TD; + %%{init: {'theme':'base'}}%% %% Class Definitions classDef root fill:#ff0000,stroke:#000,stroke-width:2,color:#fff; %% Red background, white text + classDef branch fill:#000000,stroke:#000,stroke-width:2,color:#fff; %% Black background, white text + classDef wind fill:gray,stroke:#000,stroke-width:2,color:#fff; %% Grey background, white text circle + classDef solar fill:yellow,stroke:#000,stroke-width:2,color:#000; %% Yellow background, black text + classDef batt fill:blue,stroke:#000,stroke-width:2,color:#000; %% Light blue background, black text + classDef splitter fill:gray,stroke:#000,stroke-width:2,color:#000; %% Light grey background, black text Wind1((Wind)) Solar1[Solar] @@ -22,4 +28,9 @@ %% Class Assignments class Root1 root; + class Branch1 branch; + class Wind1 wind; + class Solar1 solar; + class Batt1 batt; + class Splitter1 splitter; ```