pyrbd 0.2.5__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyrbd-0.2.5 → pyrbd-0.3.0}/.coverage +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/PKG-INFO +10 -4
- {pyrbd-0.2.5 → pyrbd-0.3.0}/README.md +9 -3
- pyrbd-0.3.0/docs/examples/example_RBD.png +0 -0
- pyrbd-0.3.0/docs/examples/example_RBD.svg +176 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/docs/examples/example_rbd.py +18 -7
- pyrbd-0.3.0/docs/examples/simple_RBD.pdf +0 -0
- pyrbd-0.3.0/docs/examples/simple_RBD.svg +75 -0
- pyrbd-0.3.0/docs/examples/simple_rbd.py +28 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/docs/index.md +2 -1
- {pyrbd-0.2.5 → pyrbd-0.3.0}/docs/stylesheets/extra.ccs +3 -1
- pyrbd-0.3.0/docs/tutorials.md +19 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/mkdocs.yml +10 -7
- {pyrbd-0.2.5 → pyrbd-0.3.0}/pyproject.toml +1 -1
- {pyrbd-0.2.5 → pyrbd-0.3.0}/pyrbd/block.py +6 -4
- {pyrbd-0.2.5 → pyrbd-0.3.0}/pyrbd/diagram.py +80 -36
- {pyrbd-0.2.5 → pyrbd-0.3.0}/tests/unit/test_block.py +1 -1
- {pyrbd-0.2.5 → pyrbd-0.3.0}/tests/unit/test_diagram.py +4 -3
- {pyrbd-0.2.5 → pyrbd-0.3.0}/uv.lock +1 -1
- pyrbd-0.2.5/docs/examples/example_RBD.png +0 -0
- pyrbd-0.2.5/docs/examples/example_RBD.svg +0 -172
- pyrbd-0.2.5/docs/examples/simple_RBD.pdf +0 -0
- pyrbd-0.2.5/docs/examples/simple_RBD.svg +0 -71
- pyrbd-0.2.5/docs/examples/simple_rbd.py +0 -18
- pyrbd-0.2.5/docs/tutorials.md +0 -16
- {pyrbd-0.2.5 → pyrbd-0.3.0}/.github/workflows/deploy_docs.yml +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/.github/workflows/pylint_pytest.yml +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/.github/workflows/pylint_pytest_windows.yml +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/.github/workflows/pypi_publish.yml +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/.gitignore +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/LICENSE +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/docs/images/logo.png +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/docs/images/logo.svg +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/docs/reference/block.md +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/docs/reference/diagram.md +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/docs/reference/index.md +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/pyrbd/__init__.py +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/tests/integration/__init__.py +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/tests/latex/__init__.py +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/tests/latex/test_diagram_latex.py +0 -0
- {pyrbd-0.2.5 → pyrbd-0.3.0}/tests/unit/__init__.py +0 -0
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pyrbd
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.3.0
|
4
4
|
Summary: Package for creating simple reliability block diagrams (RBDs) using LaTeX and TikZ.
|
5
5
|
Project-URL: Repository, https://github.com/hghugdal/pyrbd
|
6
6
|
Project-URL: Issues, https://github.com/hghugdal/pyrbd/issues
|
@@ -14,9 +14,13 @@ Requires-Python: >=3.10
|
|
14
14
|
Requires-Dist: pymupdf>=1.26.3
|
15
15
|
Description-Content-Type: text/markdown
|
16
16
|
|
17
|
-
# <img alt="pyRBDlogo" src=docs/images/logo.svg width=40 align=top> pyRBD
|
17
|
+
# <img alt="pyRBDlogo" src="https://raw.githubusercontent.com/hghugdal/pyrbd/23d7f00ca74e8465df3760821488b4bb78df803c/docs/images/logo.svg" width=40 align=top> pyRBD
|
18
18
|
|
19
|
-
|
19
|
+
[](https://pypi.org/project/pyrbd/)
|
20
|
+
<img alt="Python" src="https://img.shields.io/badge/Python->= 3.10-blue?logo=python&link=None">
|
21
|
+
<img alt="Tests" src="https://img.shields.io/badge/Tests-Passing-darkgreen?logo=pytest&link=None">
|
22
|
+
<img alt="Coverage" src="https://img.shields.io/badge/Coverage-100%25-darkgreen?link=None">
|
23
|
+
<img alt="Pylint" src="https://img.shields.io/badge/Pylint-10%2F10-darkgreen?link=None">
|
20
24
|
|
21
25
|
A Python package for creating simple reliability block diagrams (RBDs) using `LaTeX` and [`TikZ`](https://en.wikipedia.org/wiki/PGF/TikZ).
|
22
26
|
|
@@ -25,6 +29,7 @@ A Python package for creating simple reliability block diagrams (RBDs) using `La
|
|
25
29
|
|
26
30
|
## Simple example diagram
|
27
31
|
The blocks of the RBD are defined using `Block`, `Series` and `Group`, and the diagram itself is handled by the `Diagram` class. A simple example is given by the code
|
32
|
+
|
28
33
|
```python linenums="1"
|
29
34
|
from pyrbd import Block, Diagram
|
30
35
|
|
@@ -39,7 +44,8 @@ diagram = Diagram(
|
|
39
44
|
diagram.write()
|
40
45
|
diagram.compile()
|
41
46
|
```
|
47
|
+
|
42
48
|
producing the following diagram
|
43
|
-
<div><img src="docs/examples/simple_RBD.svg" width=500/></div>
|
49
|
+
<div><img src="https://raw.githubusercontent.com/hghugdal/pyrbd/23d7f00ca74e8465df3760821488b4bb78df803c/docs/examples/simple_RBD.svg" width=500/></div>
|
44
50
|
|
45
51
|
For more examples, visit the [documentation](https://hghugdal.github.io/pyrbd/).
|
@@ -1,6 +1,10 @@
|
|
1
|
-
# <img alt="pyRBDlogo" src=docs/images/logo.svg width=40 align=top> pyRBD
|
1
|
+
# <img alt="pyRBDlogo" src="https://raw.githubusercontent.com/hghugdal/pyrbd/23d7f00ca74e8465df3760821488b4bb78df803c/docs/images/logo.svg" width=40 align=top> pyRBD
|
2
2
|
|
3
|
-
|
3
|
+
[](https://pypi.org/project/pyrbd/)
|
4
|
+
<img alt="Python" src="https://img.shields.io/badge/Python->= 3.10-blue?logo=python&link=None">
|
5
|
+
<img alt="Tests" src="https://img.shields.io/badge/Tests-Passing-darkgreen?logo=pytest&link=None">
|
6
|
+
<img alt="Coverage" src="https://img.shields.io/badge/Coverage-100%25-darkgreen?link=None">
|
7
|
+
<img alt="Pylint" src="https://img.shields.io/badge/Pylint-10%2F10-darkgreen?link=None">
|
4
8
|
|
5
9
|
A Python package for creating simple reliability block diagrams (RBDs) using `LaTeX` and [`TikZ`](https://en.wikipedia.org/wiki/PGF/TikZ).
|
6
10
|
|
@@ -9,6 +13,7 @@ A Python package for creating simple reliability block diagrams (RBDs) using `La
|
|
9
13
|
|
10
14
|
## Simple example diagram
|
11
15
|
The blocks of the RBD are defined using `Block`, `Series` and `Group`, and the diagram itself is handled by the `Diagram` class. A simple example is given by the code
|
16
|
+
|
12
17
|
```python linenums="1"
|
13
18
|
from pyrbd import Block, Diagram
|
14
19
|
|
@@ -23,7 +28,8 @@ diagram = Diagram(
|
|
23
28
|
diagram.write()
|
24
29
|
diagram.compile()
|
25
30
|
```
|
31
|
+
|
26
32
|
producing the following diagram
|
27
|
-
<div><img src="docs/examples/simple_RBD.svg" width=500/></div>
|
33
|
+
<div><img src="https://raw.githubusercontent.com/hghugdal/pyrbd/23d7f00ca74e8465df3760821488b4bb78df803c/docs/examples/simple_RBD.svg" width=500/></div>
|
28
34
|
|
29
35
|
For more examples, visit the [documentation](https://hghugdal.github.io/pyrbd/).
|
Binary file
|
@@ -0,0 +1,176 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" width="489.133" height="85.093" viewBox="0 0 489.133 85.093">
|
2
|
+
<style>
|
3
|
+
@media (prefers-color-scheme: light) { :root { --color: #000000; } }
|
4
|
+
@media (prefers-color-scheme: dark) { :root { --color: #DDDDDD; } }
|
5
|
+
</style>
|
6
|
+
<defs>
|
7
|
+
<path id="font_1_9" d="M.5509949 .33203126V0H.6439972V.7285156H.5509949V.41401673H.17599488V.7285156H.08299255V0H.1769867V.33203126H.5509949Z"/>
|
8
|
+
<path id="font_1_12" d="M.5349884 .048553468C.526001 .046554567 .5219879 .046554567 .5169983 .046554567 .48799134 .046554567 .47200013 .061569215 .47200013 .08760071V.39598084C.47200013 .48905946 .4039917 .5390625 .2749939 .5390625 .19898987 .5390625 .13598633 .5170593 .100997928 .47805787 .07699585 .45103456 .066986087 .42100526 .06498718 .36894227H.14898682C.1559906 .43301393 .19400025 .4620514 .27198792 .4620514 .34700013 .4620514 .3889923 .434021 .3889923 .3839569V.36193849C.3889923 .32688905 .36799623 .3118744 .3019867 .30386354 .18399048 .28884889 .1659851 .28483583 .13398743 .27182008 .07299805 .24679566 .041992189 .19973755 .041992189 .13165283 .041992189 .03656006 .10798645-.0234375 .21398926-.0234375 .27999879-.0234375 .33299256-.00044250489 .3919983 .05355835 .397995 .0005493164 .42399598-.0234375 .47799684-.0234375 .49499513-.0234375 .5079956-.021438599 .5349884-.014450073V.048553468M.3889923 .16468811C.3889923 .13665772 .3809967 .119644168 .35598756 .09661865 .32199098 .06556702 .2809906 .049560548 .23199463 .049560548 .16699219 .049560548 .1289978 .080596927 .1289978 .13365174 .1289978 .1887207 .1659851 .2167511 .25498963 .22976685 .34298707 .24179077 .36099244 .24578858 .3889923 .25880433V.16468811Z"/>
|
9
|
+
<path id="font_1_27" d="M.44299317 .52441409H.051986696V.45140077H.34399415L.0309906 .07499695V0H.45700074V.07299805H.13198853L.44299317 .45040895V.52441409Z"/>
|
10
|
+
<path id="font_1_23" d="M.068984989 .52441409V0H.15299988V.27220155C.15299988 .34727479 .17199707 .39631654 .21199036 .42533876 .23799134 .4443512 .2630005 .45036317 .32099916 .45135499V.5364075C.30699159 .5380554 .2999878 .5390625 .2889862 .5390625 .23498535 .5390625 .19400025 .50704959 .1459961 .42904664V.52441409H.068984989Z"/>
|
11
|
+
<path id="font_1_15" d="M.49499513 .7285156H.4119873V.4580536C.3769989 .51104739 .32099916 .5390625 .25099183 .5390625 .114990238 .5390625 .025985718 .43000794 .025985718 .26280213 .025985718 .08558655 .11299133-.0234375 .2539978-.0234375 .32598878-.0234375 .37599183 .0035552979 .42099 .068573V-.00044250489H.49499513V.7285156M.2649994 .46105958C.35499574 .46105958 .4119873 .38095094 .4119873 .25579835 .4119873 .13465882 .35398866 .05455017 .2659912 .05455017 .17399597 .05455017 .11299133 .13565064 .11299133 .25779725 .11299133 .3799591 .17399597 .46105958 .2649994 .46105958Z"/>
|
12
|
+
<path id="font_1_11" d="M.59599307 .51504519C.59498599 .6582031 .49699403 .74121096 .32899476 .74121096 .16899109 .74121096 .069992069 .65919497 .069992069 .52705386 .069992069 .43795777 .116989139 .38189698 .21299744 .35687257L.3939972 .30882264C.48599244 .2848053 .5279999 .24775696 .5279999 .19070435 .5279999 .1516571 .5069885 .11161804 .47599793 .08958435 .44699098 .06956482 .40098573 .058547975 .34199525 .058547975 .2630005 .058547975 .20899964 .07757568 .17399597 .11961365 .14698792 .1516571 .1349945 .18669129 .13598633 .23173523H.04798889C.04899597 .16467285 .06199646 .12062073 .09098816 .080581668 .14099121 .012557983 .22499085-.0234375 .33599855-.0234375 .4229889-.0234375 .49398805-.0034484864 .54100039 .032562257 .58999636 .07156372 .62098696 .13664246 .62098696 .19970703 .62098696 .28981019 .5649872 .35588075 .46598817 .38290406L.2829895 .43196107C.19499207 .4559784 .16299439 .4840088 .16299439 .5400696 .16299439 .614151 .22799683 .663208 .32598878 .663208 .44198609 .663208 .5069885 .6101532 .5079956 .51504519H.59599307Z"/>
|
13
|
+
<path id="font_1_25" d="M.2539978 .52441409H.16799927V.66841128H.084991458V.52441409H.01399231V.45640565H.084991458V.059570314C.084991458 .0065612795 .12098694-.0234375 .18598938-.0234375 .20599365-.0234375 .22599793-.021438599 .2539978-.016448975V.05355835C.24299622 .05055237 .22999573 .049560548 .21398926 .049560548 .17799378 .049560548 .16799927 .059570314 .16799927 .09664917V.45640565H.2539978V.52441409Z"/>
|
14
|
+
<path id="font_1_10" d="M.18399048 .30862428H.41299439C.46998597 .30862428 .5149994 .32562257 .55400088 .36061097 .59799197 .4006195 .61698916 .44758607 .61698916 .5145569 .61698916 .6515045 .5359955 .7285156 .3919983 .7285156H.09098816V0H.18399048V.30862428M.18399048 .390625V.6465149H.37799073C.46699525 .6465149 .519989 .598526 .519989 .51856997 .519989 .43859864 .46699525 .390625 .37799073 .390625H.18399048Z"/>
|
15
|
+
<path id="font_1_19" d="M.1519928 .7285156H.067993167V0H.1519928V.7285156Z"/>
|
16
|
+
<path id="font_1_16" d="M.5130005 .23374939C.5130005 .31376649 .5069885 .36186219 .49198915 .40093995 .45799256 .48706056 .37799073 .5390625 .27999879 .5390625 .13398743 .5390625 .039993287 .4269867 .039993287 .25474549 .039993287 .08258057 .1309967-.0234375 .27799989-.0234375 .397995-.0234375 .48098756 .044555665 .5019989 .15867615H.41799928C.394989 .08959961 .34799195 .05355835 .2809906 .05355835 .22799683 .05355835 .18299866 .07757568 .15499878 .12162781 .1349945 .1516571 .12799073 .18170166 .1269989 .23374939H.5130005M.1289978 .3017578C.13598633 .39894105 .19499207 .4620514 .2789917 .4620514 .36099244 .4620514 .42399598 .3939209 .42399598 .30775453 .42399598 .30575563 .42399598 .3037567 .4229889 .3017578H.1289978Z"/>
|
17
|
+
<path id="font_1_13" d="M.053985597 .7285156V-.00044250489H.1289978V.0665741C.16899109 .005554199 .22200012-.0234375 .29499818-.0234375 .43299867-.0234375 .522995 .08959961 .522995 .2638092 .522995 .434021 .43699647 .5390625 .29899598 .5390625 .22698975 .5390625 .17599488 .51205447 .13699341 .4530487V.7285156H.053985597M.2829895 .46105958C.37599183 .46105958 .43598939 .3799591 .43598939 .25480653 .43598939 .13565064 .37399293 .05455017 .2829895 .05455017 .19499207 .05455017 .13699341 .13465882 .13699341 .25779725 .13699341 .38095094 .19499207 .46105958 .2829895 .46105958Z"/>
|
18
|
+
<path id="font_1_21" d="M.27198792 .5390625C.125 .5390625 .035995485 .434021 .035995485 .25779725 .035995485 .081588748 .12399292-.0234375 .272995-.0234375 .41999818-.0234375 .5099945 .081588748 .5099945 .25379945 .5099945 .43502809 .4229889 .5390625 .27198792 .5390625M.272995 .4620514C.36698915 .4620514 .4229889 .384964 .4229889 .25480653 .4229889 .13165283 .36499024 .05355835 .272995 .05355835 .17999268 .05355835 .12298584 .13064575 .12298584 .25779725 .12298584 .3839569 .17999268 .4620514 .272995 .4620514Z"/>
|
19
|
+
<path id="font_1_14" d="M.47099305 .34791566C.46699525 .39897157 .45599366 .4320221 .43598939 .46105958 .3999939 .51005557 .33699037 .5390625 .2639923 .5390625 .12298584 .5390625 .0309906 .4270172 .0309906 .25279237 .0309906 .08358765 .12098694-.0234375 .2630005-.0234375 .3880005-.0234375 .46699525 .05155945 .47698976 .17970276H.3929901C.3789978 .09561157 .33599855 .05355835 .2649994 .05355835 .17298889 .05355835 .117996219 .12864685 .117996219 .25279237 .117996219 .3839569 .17199707 .4620514 .2630005 .4620514 .33299256 .4620514 .3769989 .42100526 .3869934 .34791566H.47099305Z"/>
|
20
|
+
<path id="font_1_18" d="M.14099121 .7285156H.057998659V0H.14099121V.20385742L.22200012 .28381349 .39898683 0H.5019989L.28799439 .34277345 .46998597 .52363589H.36299134L.14099121 .30178834V.7285156Z"/>
|
21
|
+
<path id="font_1_24" d="M.43798829 .37794496C.43699647 .48104859 .36898805 .5390625 .24798584 .5390625 .12599182 .5390625 .04699707 .47605897 .04699707 .37895204 .04699707 .29685975 .08898926 .25779725 .21299744 .22776795L.29100038 .20874024C.34899903 .19473267 .37199403 .17370606 .37199403 .13565064 .37199403 .08659363 .32299806 .05355835 .25 .05355835 .20498657 .05355835 .16699219 .0665741 .1459961 .08859253 .1329956 .10362244 .1269989 .118637088 .12199402 .15568543H.033996583C.037994386 .034561159 .10598755-.0234375 .24299622-.0234375 .375-.0234375 .45899964 .041549684 .45899964 .14266968 .45899964 .22076416 .4149933 .2638092 .31098939 .28884889L.23098755 .30786134C.16299439 .32388307 .13398743 .34591676 .13398743 .3829651 .13398743 .431015 .1769867 .4620514 .24499512 .4620514 .31199647 .4620514 .34799195 .43301393 .34999085 .37794496H.43798829Z"/>
|
22
|
+
<path id="font_1_6" d="M.07899475 0H.4079895C.47698976 0 .5279999 .018997193 .5669861 .06098938 .6029968 .09899902 .6230011 .15100098 .6230011 .20799256 .6230011 .29600526 .58299258 .34899903 .48999024 .3849945 .55599978 .41600038 .59098818 .46987916 .59098818 .5437317 .59098818 .59661868 .57099917 .6435089 .5329895 .6775055 .49499513 .71250918 .44499208 .7285156 .375 .7285156H.07899475V0M.17199707 .4149933V.6465149H.35198976C.4039917 .6465149 .43299867 .63952639 .45799256 .6205597 .48399354 .6006012 .49798585 .57066348 .49798585 .53074648 .49798585 .49183656 .48399354 .46090699 .45799256 .4409485 .43299867 .4219818 .4039917 .4149933 .35198976 .4149933H.17199707M.17199707 .08198547V.3330078H.39898683C.44400025 .3330078 .47399903 .32200624 .49598695 .29800416 .5179901 .2749939 .5299988 .24299622 .5299988 .20700073 .5299988 .17199707 .5179901 .13999939 .49598695 .116989139 .47399903 .09298706 .44400025 .08198547 .39898683 .08198547H.17199707Z"/>
|
23
|
+
<path id="font_1_1" d="M.25898744 .5049896V0H.34700013V.70899966H.2889862C.2579956 .59999087 .23799134 .58499148 .101989749 .56799319V.5049896H.25898744Z"/>
|
24
|
+
<path id="font_1_2" d="M.5059967 .08699036H.1329956C.14199829 .14498902 .17399597 .18199158 .26098634 .23298645L.36099244 .2869873C.45999146 .34098817 .5109863 .4139862 .5109863 .50097659 .5109863 .5599823 .4869995 .614975 .44499208 .65296939 .40299989 .690979 .35099793 .7089844 .28399659 .7089844 .19400025 .7089844 .1269989 .67697146 .08799744 .6169739 .06298828 .5789795 .051986696 .53497317 .049987794 .46298219H.13798523C.14099121 .5109863 .14698792 .539978 .15899658 .562973 .18199158 .6059723 .22799683 .63197329 .2809906 .63197329 .36099244 .63197329 .42099 .5749817 .42099 .49897767 .42099 .4429779 .3880005 .394989 .32499696 .35897828L.23298645 .30699159C.084991458 .22299195 .041992189 .1559906 .033996583 0H.5059967V.08699036Z"/>
|
25
|
+
<path id="font_1_3" d="M.22099304 .3247528H.23199463L.2689972 .3257599C.3659973 .3257599 .41600038 .28172303 .41600038 .19665528 .41600038 .10758972 .36099244 .05455017 .2689972 .05455017 .17298889 .05455017 .12599182 .10258484 .11999512 .20567322H.03199768C.035995485 .1486206 .04598999 .11160278 .06298828 .079574588 .09899902 .011550903 .16899109-.0234375 .2659912-.0234375 .4119873-.0234375 .5059967 .063568118 .5059967 .19766236 .5059967 .28771974 .47099305 .33776856 .38598634 .36679078 .45199586 .392807 .4850006 .44284059 .4850006 .5138855 .4850006 .63597109 .4039917 .7089844 .2689972 .7089844 .12599182 .7089844 .049987794 .63098147 .04699707 .47987367H.1349945C.13598633 .52290347 .13999939 .5469208 .15098572 .56892397 .17098999 .60795596 .21499634 .63197329 .269989 .63197329 .34799195 .63197329 .394989 .5859375 .394989 .5108948 .394989 .46084596 .3769989 .4308319 .33799745 .41482545 .31399537 .40481568 .2829895 .4008026 .22099304 .3998108V.3247528Z"/>
|
26
|
+
<path id="font_1_4" d="M.32699586 .17001343V0H.4149933V.17001343H.519989V.24902344H.4149933V.7090149H.34999085L.027999878 .26301576V.17001343H.32699586M.32699586 .24902344H.10499573L.32699586 .559021V.24902344Z"/>
|
27
|
+
<path id="font_1_8" d="M.70899966 .38476563H.40499879V.3027649H.6269989V.28274537C.6269989 .15263367 .5309906 .058547975 .397995 .058547975 .32398988 .058547975 .25698854 .08557129 .21398926 .13261414 .1659851 .18466187 .13699341 .27172853 .13699341 .36175538 .13699341 .5410156 .23899842 .6592102 .3929901 .6592102 .5039978 .6592102 .58399966 .6021118 .60398867 .5079651H.69898989C.6729889 .6562042 .5609894 .74121096 .3939972 .74121096 .30499269 .74121096 .23298645 .7182007 .17599488 .6712036 .09199524 .60110476 .04399109 .4879303 .04399109 .3567505 .04399109 .13261414 .18099976-.0234375 .37799073-.0234375 .47698976-.0234375 .55599978 .013549805 .6269989 .09259033L.6499939-.0044403078H.70899966V.38476563Z"/>
|
28
|
+
<path id="font_1_26" d="M.48199464-.00044250489V.52441409H.39898683V.22688294C.39898683 .11968994 .34298707 .049560548 .2559967 .049560548 .18998719 .049560548 .147995 .08963013 .147995 .15275574V.52441409H.06498718V.11968994C.06498718 .032562257 .12998963-.0234375 .23199463-.0234375 .30899049-.0234375 .35798646 .0035552979 .40699769 .07260132V-.00044250489H.48199464Z"/>
|
29
|
+
<path id="font_1_22" d="M.053985597-.21824646H.13798523V.05455017C.18199158 .0005493164 .23098755-.0234375 .29899598-.0234375 .43399049-.0234375 .522995 .08558655 .522995 .25279237 .522995 .4290161 .43699647 .5390625 .2979889 .5390625 .22698975 .5390625 .16999817 .50704959 .1309967 .44503785V.52404788H.053985597V-.21824646M.28399659 .46105958C.37599183 .46105958 .43598939 .3799591 .43598939 .25480653 .43598939 .13565064 .375 .05455017 .28399659 .05455017 .19599915 .05455017 .13798523 .13465882 .13798523 .25779725 .13798523 .38095094 .19599915 .46105958 .28399659 .46105958Z"/>
|
30
|
+
<path id="font_1_5" d="M.47399903 .21887207 .548996 0H.6529999L.39698792 .7285156H.2769928L.016998291 0H.115997318L.19299317 .21887207H.47399903M.44799806 .296875H.21598816L.33599855 .62857058 .44799806 .296875Z"/>
|
31
|
+
<path id="font_1_17" d="M.1499939 .5235901H.066986087V0H.1499939V.5235901M.1499939 .7285156H.06599426V.62350466H.1499939V.7285156Z"/>
|
32
|
+
<path id="font_1_7" d="M.18299866 .33203126H.5799866V.41401673H.18299866V.6465149H.59498599V.7285156H.08999634V0H.61299136V.08198547H.18299866V.33203126Z"/>
|
33
|
+
<path id="font_1_20" d="M.069992069 .52441409V0H.1539917V.2892151C.1539917 .39604188 .20999146 .4660492 .29599 .4660492 .3619995 .4660492 .4039917 .42604066 .4039917 .3630371V0H.4869995V.39604188C.4869995 .4830475 .42199708 .5390625 .32099916 .5390625 .24299622 .5390625 .19299317 .50904849 .14698792 .43605042V.52441409H.069992069Z"/>
|
34
|
+
</defs>
|
35
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#fff200" d="M209.61196-34.21536V34.21536H339.8741V-34.21536ZM339.8741 34.21536"/>
|
36
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#ff8000" d="M348.3782-17.2073V17.2073H451.70826V-17.2073ZM451.70826 17.2073"/>
|
37
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" d="M39.22955 14.17339H.85039C.38072 14.17339 0 13.79266 0 13.323V-13.323C0-13.79266 .38072-14.17339 .85039-14.17339H39.22955C39.69922-14.17339 40.07994-13.79266 40.07994-13.323V13.323C40.07994 13.79266 39.69922 14.17339 39.22955 14.17339ZM0-14.17339" fill="#ff6666"/>
|
38
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M39.22955 14.17339H.85039C.38072 14.17339 0 13.79266 0 13.323V-13.323C0-13.79266 .38072-14.17339 .85039-14.17339H39.22955C39.69922-14.17339 40.07994-13.79266 40.07994-13.323V13.323C40.07994 13.79266 39.69922 14.17339 39.22955 14.17339ZM0-14.17339"/>
|
39
|
+
<use data-text="H" xlink:href="#font_1_9" transform="matrix(9.9626,0,0,-9.9626,4.184,53.971)"/>
|
40
|
+
<use data-text="a" xlink:href="#font_1_12" transform="matrix(9.9626,0,0,-9.9626,11.376997,53.971)"/>
|
41
|
+
<use data-text="z" xlink:href="#font_1_27" transform="matrix(9.9626,0,0,-9.9626,16.916203,53.971)"/>
|
42
|
+
<use data-text="a" xlink:href="#font_1_12" transform="matrix(9.9626,0,0,-9.9626,21.897503,53.971)"/>
|
43
|
+
<use data-text="r" xlink:href="#font_1_23" transform="matrix(9.9626,0,0,-9.9626,27.436709,53.971)"/>
|
44
|
+
<use data-text="d" xlink:href="#font_1_15" transform="matrix(9.9626,0,0,-9.9626,30.754254,53.971)"/>
|
45
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" d="M82.81255 14.17339H55.10374C54.63408 14.17339 54.25334 13.79266 54.25334 13.323V-13.323C54.25334-13.79266 54.63408-14.17339 55.10374-14.17339H82.81255C83.28221-14.17339 83.66293-13.79266 83.66293-13.323V13.323C83.66293 13.79266 83.28221 14.17339 82.81255 14.17339ZM54.25334-14.17339" fill="#8888ff"/>
|
46
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M82.81255 14.17339H55.10374C54.63408 14.17339 54.25334 13.79266 54.25334 13.323V-13.323C54.25334-13.79266 54.63408-14.17339 55.10374-14.17339H82.81255C83.28221-14.17339 83.66293-13.79266 83.66293-13.323V13.323C83.66293 13.79266 83.28221 14.17339 82.81255 14.17339ZM54.25334-14.17339"/>
|
47
|
+
<use data-text="S" xlink:href="#font_1_11" transform="matrix(9.9626,0,0,-9.9626,58.437,54.041)"/>
|
48
|
+
<use data-text="t" xlink:href="#font_1_25" transform="matrix(9.9626,0,0,-9.9626,65.082057,54.041)"/>
|
49
|
+
<use data-text="a" xlink:href="#font_1_12" transform="matrix(9.9626,0,0,-9.9626,67.851657,54.041)"/>
|
50
|
+
<use data-text="r" xlink:href="#font_1_23" transform="matrix(9.9626,0,0,-9.9626,73.39086,54.041)"/>
|
51
|
+
<use data-text="t" xlink:href="#font_1_25" transform="matrix(9.9626,0,0,-9.9626,77.10691,54.041)"/>
|
52
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M40.07994 0H47.16664 49.59087"/>
|
53
|
+
<path transform="matrix(1,0,0,-1,49.78987,50.480005)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
54
|
+
<path transform="matrix(1,0,0,-1,98.433,33.472)" d="M84.61607 14.17339H15.02379C14.55412 14.17339 14.17339 13.79266 14.17339 13.323V-13.323C14.17339-13.79266 14.55412-14.17339 15.02379-14.17339H84.61607C85.08574-14.17339 85.46648-13.79266 85.46648-13.323V13.323C85.46648 13.79266 85.08574 14.17339 84.61607 14.17339ZM14.17339-14.17339" fill="#7f807f"/>
|
55
|
+
<path transform="matrix(1,0,0,-1,98.433,33.472)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M84.61607 14.17339H15.02379C14.55412 14.17339 14.17339 13.79266 14.17339 13.323V-13.323C14.17339-13.79266 14.55412-14.17339 15.02379-14.17339H84.61607C85.08574-14.17339 85.46648-13.79266 85.46648-13.323V13.323C85.46648 13.79266 85.08574 14.17339 84.61607 14.17339ZM14.17339-14.17339"/>
|
56
|
+
<use data-text="P" xlink:href="#font_1_10" transform="matrix(9.9626,0,0,-9.9626,116.591,36.964)"/>
|
57
|
+
<use data-text="a" xlink:href="#font_1_12" transform="matrix(9.9626,0,0,-9.9626,122.837558,36.964)"/>
|
58
|
+
<use data-text="r" xlink:href="#font_1_23" transform="matrix(9.9626,0,0,-9.9626,128.37676,36.964)"/>
|
59
|
+
<use data-text="a" xlink:href="#font_1_12" transform="matrix(9.9626,0,0,-9.9626,131.59468,36.964)"/>
|
60
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,137.13388,36.964)"/>
|
61
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,139.34558,36.964)"/>
|
62
|
+
<use data-text="e" xlink:href="#font_1_16" transform="matrix(9.9626,0,0,-9.9626,141.55728,36.964)"/>
|
63
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,147.09648,36.964)"/>
|
64
|
+
<use data-text="b" xlink:href="#font_1_13" transform="matrix(9.9626,0,0,-9.9626,152.07779,36.964)"/>
|
65
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,157.41774,36.964)"/>
|
66
|
+
<use data-text="o" xlink:href="#font_1_21" transform="matrix(9.9626,0,0,-9.9626,159.62944,36.964)"/>
|
67
|
+
<use data-text="c" xlink:href="#font_1_14" transform="matrix(9.9626,0,0,-9.9626,165.16864,36.964)"/>
|
68
|
+
<use data-text="k" xlink:href="#font_1_18" transform="matrix(9.9626,0,0,-9.9626,169.95069,36.964)"/>
|
69
|
+
<use data-text="s" xlink:href="#font_1_24" transform="matrix(9.9626,0,0,-9.9626,174.93198,36.964)"/>
|
70
|
+
<path transform="matrix(1,0,0,-1,98.433,33.472)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M0 0V0H9.51091"/>
|
71
|
+
<path transform="matrix(1,0,0,-1,107.94391,33.472)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
72
|
+
<path transform="matrix(1,0,0,-1,98.433,33.472)" d="M84.61607-19.8427H15.02379C14.55412-19.8427 14.17339-20.22343 14.17339-20.6931V-47.3391C14.17339-47.80876 14.55412-48.18948 15.02379-48.18948H84.61607C85.08574-48.18948 85.46648-47.80876 85.46648-47.3391V-20.6931C85.46648-20.22343 85.08574-19.8427 84.61607-19.8427ZM14.17339-48.18948" fill="#7f807f"/>
|
73
|
+
<path transform="matrix(1,0,0,-1,98.433,33.472)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M84.61607-19.8427H15.02379C14.55412-19.8427 14.17339-20.22343 14.17339-20.6931V-47.3391C14.17339-47.80876 14.55412-48.18948 15.02379-48.18948H84.61607C85.08574-48.18948 85.46648-47.80876 85.46648-47.3391V-20.6931C85.46648-20.22343 85.08574-19.8427 84.61607-19.8427ZM14.17339-48.18948"/>
|
74
|
+
<use data-text="P" xlink:href="#font_1_10" transform="matrix(9.9626,0,0,-9.9626,116.591,70.979007)"/>
|
75
|
+
<use data-text="a" xlink:href="#font_1_12" transform="matrix(9.9626,0,0,-9.9626,122.837558,70.979007)"/>
|
76
|
+
<use data-text="r" xlink:href="#font_1_23" transform="matrix(9.9626,0,0,-9.9626,128.37676,70.979007)"/>
|
77
|
+
<use data-text="a" xlink:href="#font_1_12" transform="matrix(9.9626,0,0,-9.9626,131.59468,70.979007)"/>
|
78
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,137.13388,70.979007)"/>
|
79
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,139.34558,70.979007)"/>
|
80
|
+
<use data-text="e" xlink:href="#font_1_16" transform="matrix(9.9626,0,0,-9.9626,141.55728,70.979007)"/>
|
81
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,147.09648,70.979007)"/>
|
82
|
+
<use data-text="b" xlink:href="#font_1_13" transform="matrix(9.9626,0,0,-9.9626,152.07779,70.979007)"/>
|
83
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,157.41774,70.979007)"/>
|
84
|
+
<use data-text="o" xlink:href="#font_1_21" transform="matrix(9.9626,0,0,-9.9626,159.62944,70.979007)"/>
|
85
|
+
<use data-text="c" xlink:href="#font_1_14" transform="matrix(9.9626,0,0,-9.9626,165.16864,70.979007)"/>
|
86
|
+
<use data-text="k" xlink:href="#font_1_18" transform="matrix(9.9626,0,0,-9.9626,169.95069,70.979007)"/>
|
87
|
+
<use data-text="s" xlink:href="#font_1_24" transform="matrix(9.9626,0,0,-9.9626,174.93198,70.979007)"/>
|
88
|
+
<path transform="matrix(1,0,0,-1,98.433,33.472)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M0 0V0-34.0161H9.51091"/>
|
89
|
+
<path transform="matrix(1,0,0,-1,107.94391,67.4881)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
90
|
+
<path transform="matrix(1,0,0,-1,98.433,33.472)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M85.46648 0H99.63988V-34.0161H85.46648"/>
|
91
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M83.66293 0H97.83633"/>
|
92
|
+
<path transform="matrix(1,0,0,-1,227.41402,33.472)" d="M39.58817 14.17339H.85039C.38072 14.17339 0 13.79266 0 13.323V-13.323C0-13.79266 .38072-14.17339 .85039-14.17339H39.58817C40.05783-14.17339 40.43857-13.79266 40.43857-13.323V13.323C40.43857 13.79266 40.05783 14.17339 39.58817 14.17339ZM0-14.17339" fill="#fff799"/>
|
93
|
+
<path transform="matrix(1,0,0,-1,227.41402,33.472)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M39.58817 14.17339H.85039C.38072 14.17339 0 13.79266 0 13.323V-13.323C0-13.79266 .38072-14.17339 .85039-14.17339H39.58817C40.05783-14.17339 40.43857-13.79266 40.43857-13.323V13.323C40.43857 13.79266 40.05783 14.17339 39.58817 14.17339ZM0-14.17339"/>
|
94
|
+
<use data-text="B" xlink:href="#font_1_6" transform="matrix(9.9626,0,0,-9.9626,231.39902,36.964)"/>
|
95
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,238.04407,36.964)"/>
|
96
|
+
<use data-text="o" xlink:href="#font_1_21" transform="matrix(9.9626,0,0,-9.9626,240.25577,36.964)"/>
|
97
|
+
<use data-text="c" xlink:href="#font_1_14" transform="matrix(9.9626,0,0,-9.9626,245.79497,36.964)"/>
|
98
|
+
<use data-text="k" xlink:href="#font_1_18" transform="matrix(9.9626,0,0,-9.9626,250.57701,36.964)"/>
|
99
|
+
<use data-text="1" xlink:href="#font_1_1" transform="matrix(9.9626,0,0,-9.9626,258.32789,36.964)"/>
|
100
|
+
<path transform="matrix(1,0,0,-1,227.41402,33.472)" d="M94.20013 14.17339H55.46236C54.99269 14.17339 54.61195 13.79266 54.61195 13.323V-13.323C54.61195-13.79266 54.99269-14.17339 55.46236-14.17339H94.20013C94.6698-14.17339 95.05052-13.79266 95.05052-13.323V13.323C95.05052 13.79266 94.6698 14.17339 94.20013 14.17339ZM54.61195-14.17339" fill="#fff799"/>
|
101
|
+
<path transform="matrix(1,0,0,-1,227.41402,33.472)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M94.20013 14.17339H55.46236C54.99269 14.17339 54.61195 13.79266 54.61195 13.323V-13.323C54.61195-13.79266 54.99269-14.17339 55.46236-14.17339H94.20013C94.6698-14.17339 95.05052-13.79266 95.05052-13.323V13.323C95.05052 13.79266 94.6698 14.17339 94.20013 14.17339ZM54.61195-14.17339"/>
|
102
|
+
<use data-text="B" xlink:href="#font_1_6" transform="matrix(9.9626,0,0,-9.9626,286.01,36.964)"/>
|
103
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,292.65507,36.964)"/>
|
104
|
+
<use data-text="o" xlink:href="#font_1_21" transform="matrix(9.9626,0,0,-9.9626,294.86677,36.964)"/>
|
105
|
+
<use data-text="c" xlink:href="#font_1_14" transform="matrix(9.9626,0,0,-9.9626,300.40599,36.964)"/>
|
106
|
+
<use data-text="k" xlink:href="#font_1_18" transform="matrix(9.9626,0,0,-9.9626,305.18803,36.964)"/>
|
107
|
+
<use data-text="2" xlink:href="#font_1_2" transform="matrix(9.9626,0,0,-9.9626,312.9389,36.964)"/>
|
108
|
+
<path transform="matrix(1,0,0,-1,227.41402,33.472)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M40.43857 0V0H49.94948"/>
|
109
|
+
<path transform="matrix(1,0,0,-1,277.3635,33.472)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
110
|
+
<path transform="matrix(1,0,0,-1,213.042,33.472)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M0 0V0H9.51091"/>
|
111
|
+
<path transform="matrix(1,0,0,-1,222.55292,33.472)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
112
|
+
<path transform="matrix(1,0,0,-1,227.41402,67.487)" d="M39.58817 14.17339H.85039C.38072 14.17339 0 13.79266 0 13.323V-13.323C0-13.79266 .38072-14.17339 .85039-14.17339H39.58817C40.05783-14.17339 40.43857-13.79266 40.43857-13.323V13.323C40.43857 13.79266 40.05783 14.17339 39.58817 14.17339ZM0-14.17339" fill="#fff799"/>
|
113
|
+
<path transform="matrix(1,0,0,-1,227.41402,67.487)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M39.58817 14.17339H.85039C.38072 14.17339 0 13.79266 0 13.323V-13.323C0-13.79266 .38072-14.17339 .85039-14.17339H39.58817C40.05783-14.17339 40.43857-13.79266 40.43857-13.323V13.323C40.43857 13.79266 40.05783 14.17339 39.58817 14.17339ZM0-14.17339"/>
|
114
|
+
<use data-text="B" xlink:href="#font_1_6" transform="matrix(9.9626,0,0,-9.9626,231.39902,70.935)"/>
|
115
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,238.04407,70.935)"/>
|
116
|
+
<use data-text="o" xlink:href="#font_1_21" transform="matrix(9.9626,0,0,-9.9626,240.25577,70.935)"/>
|
117
|
+
<use data-text="c" xlink:href="#font_1_14" transform="matrix(9.9626,0,0,-9.9626,245.79497,70.935)"/>
|
118
|
+
<use data-text="k" xlink:href="#font_1_18" transform="matrix(9.9626,0,0,-9.9626,250.57701,70.935)"/>
|
119
|
+
<use data-text="3" xlink:href="#font_1_3" transform="matrix(9.9626,0,0,-9.9626,258.32789,70.935)"/>
|
120
|
+
<path transform="matrix(1,0,0,-1,227.41402,67.487)" d="M94.20013 14.17339H55.46236C54.99269 14.17339 54.61195 13.79266 54.61195 13.323V-13.323C54.61195-13.79266 54.99269-14.17339 55.46236-14.17339H94.20013C94.6698-14.17339 95.05052-13.79266 95.05052-13.323V13.323C95.05052 13.79266 94.6698 14.17339 94.20013 14.17339ZM54.61195-14.17339" fill="#fff799"/>
|
121
|
+
<path transform="matrix(1,0,0,-1,227.41402,67.487)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M94.20013 14.17339H55.46236C54.99269 14.17339 54.61195 13.79266 54.61195 13.323V-13.323C54.61195-13.79266 54.99269-14.17339 55.46236-14.17339H94.20013C94.6698-14.17339 95.05052-13.79266 95.05052-13.323V13.323C95.05052 13.79266 94.6698 14.17339 94.20013 14.17339ZM54.61195-14.17339"/>
|
122
|
+
<use data-text="B" xlink:href="#font_1_6" transform="matrix(9.9626,0,0,-9.9626,286.01,70.979)"/>
|
123
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,292.65507,70.979)"/>
|
124
|
+
<use data-text="o" xlink:href="#font_1_21" transform="matrix(9.9626,0,0,-9.9626,294.86677,70.979)"/>
|
125
|
+
<use data-text="c" xlink:href="#font_1_14" transform="matrix(9.9626,0,0,-9.9626,300.40599,70.979)"/>
|
126
|
+
<use data-text="k" xlink:href="#font_1_18" transform="matrix(9.9626,0,0,-9.9626,305.18803,70.979)"/>
|
127
|
+
<use data-text="4" xlink:href="#font_1_4" transform="matrix(9.9626,0,0,-9.9626,312.9389,70.979)"/>
|
128
|
+
<path transform="matrix(1,0,0,-1,227.41402,67.487)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M40.43857 0V0H49.94948"/>
|
129
|
+
<path transform="matrix(1,0,0,-1,277.3635,67.487)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
130
|
+
<path transform="matrix(1,0,0,-1,213.042,33.472)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M0 0V0-34.0161H9.51091"/>
|
131
|
+
<path transform="matrix(1,0,0,-1,222.55292,67.4881)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
132
|
+
<path transform="matrix(1,0,0,-1,213.042,33.472)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M109.62242 0H123.7958V-34.0161H109.62242"/>
|
133
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M198.27323 0H212.44663"/>
|
134
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" d="M209.61196 34.21536V48.38876H339.8741V34.21536ZM339.8741 48.38876" fill="#fff799"/>
|
135
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#fff200" d="M209.61196 34.21536V48.38876H339.8741V34.21536ZM339.8741 48.38876"/>
|
136
|
+
<use data-text="G" xlink:href="#font_1_8" transform="matrix(9.9626,0,0,-9.9626,261.096,10.648003)"/>
|
137
|
+
<use data-text="r" xlink:href="#font_1_23" transform="matrix(9.9626,0,0,-9.9626,268.84693,10.648003)"/>
|
138
|
+
<use data-text="o" xlink:href="#font_1_21" transform="matrix(9.9626,0,0,-9.9626,272.16447,10.648003)"/>
|
139
|
+
<use data-text="u" xlink:href="#font_1_26" transform="matrix(9.9626,0,0,-9.9626,277.70368,10.648003)"/>
|
140
|
+
<use data-text="p" xlink:href="#font_1_22" transform="matrix(9.9626,0,0,-9.9626,283.2429,10.648003)"/>
|
141
|
+
<path transform="matrix(1,0,0,-1,351.60704,50.480005)" d="M40.69402 14.17339H.85039C.38072 14.17339 0 13.79266 0 13.323V-13.323C0-13.79266 .38072-14.17339 .85039-14.17339H40.69402C41.16368-14.17339 41.54442-13.79266 41.54442-13.323V13.323C41.54442 13.79266 41.16368 14.17339 40.69402 14.17339ZM0-14.17339" fill="#ffbf80"/>
|
142
|
+
<path transform="matrix(1,0,0,-1,351.60704,50.480005)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M40.69402 14.17339H.85039C.38072 14.17339 0 13.79266 0 13.323V-13.323C0-13.79266 .38072-14.17339 .85039-14.17339H40.69402C41.16368-14.17339 41.54442-13.79266 41.54442-13.323V13.323C41.54442 13.79266 41.16368 14.17339 40.69402 14.17339ZM0-14.17339"/>
|
143
|
+
<use data-text="B" xlink:href="#font_1_6" transform="matrix(9.9626,0,0,-9.9626,355.592,53.972)"/>
|
144
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,362.23707,53.972)"/>
|
145
|
+
<use data-text="o" xlink:href="#font_1_21" transform="matrix(9.9626,0,0,-9.9626,364.44877,53.972)"/>
|
146
|
+
<use data-text="c" xlink:href="#font_1_14" transform="matrix(9.9626,0,0,-9.9626,369.98799,53.972)"/>
|
147
|
+
<use data-text="k" xlink:href="#font_1_18" transform="matrix(9.9626,0,0,-9.9626,374.77003,53.972)"/>
|
148
|
+
<use data-text="A" xlink:href="#font_1_5" transform="matrix(9.9626,0,0,-9.9626,382.5209,53.972)"/>
|
149
|
+
<path transform="matrix(1,0,0,-1,351.60704,50.480005)" d="M96.41183 14.17339H56.5682C56.09854 14.17339 55.71782 13.79266 55.71782 13.323V-13.323C55.71782-13.79266 56.09854-14.17339 56.5682-14.17339H96.41183C96.8815-14.17339 97.26224-13.79266 97.26224-13.323V13.323C97.26224 13.79266 96.8815 14.17339 96.41183 14.17339ZM55.71782-14.17339" fill="#ffbf80"/>
|
150
|
+
<path transform="matrix(1,0,0,-1,351.60704,50.480005)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M96.41183 14.17339H56.5682C56.09854 14.17339 55.71782 13.79266 55.71782 13.323V-13.323C55.71782-13.79266 56.09854-14.17339 56.5682-14.17339H96.41183C96.8815-14.17339 97.26224-13.79266 97.26224-13.323V13.323C97.26224 13.79266 96.8815 14.17339 96.41183 14.17339ZM55.71782-14.17339"/>
|
151
|
+
<use data-text="B" xlink:href="#font_1_6" transform="matrix(9.9626,0,0,-9.9626,411.30903,53.972)"/>
|
152
|
+
<use data-text="l" xlink:href="#font_1_19" transform="matrix(9.9626,0,0,-9.9626,417.95408,53.972)"/>
|
153
|
+
<use data-text="o" xlink:href="#font_1_21" transform="matrix(9.9626,0,0,-9.9626,420.16578,53.972)"/>
|
154
|
+
<use data-text="c" xlink:href="#font_1_14" transform="matrix(9.9626,0,0,-9.9626,425.705,53.972)"/>
|
155
|
+
<use data-text="k" xlink:href="#font_1_18" transform="matrix(9.9626,0,0,-9.9626,430.48704,53.972)"/>
|
156
|
+
<use data-text="B" xlink:href="#font_1_6" transform="matrix(9.9626,0,0,-9.9626,438.2379,53.972)"/>
|
157
|
+
<path transform="matrix(1,0,0,-1,351.60704,50.480005)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M41.54442 0H48.6311 51.05533"/>
|
158
|
+
<path transform="matrix(1,0,0,-1,402.66236,50.480005)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
159
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M337.03947 0H344.12614 346.55039"/>
|
160
|
+
<path transform="matrix(1,0,0,-1,346.7494,50.480005)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
161
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" d="M348.3782 17.2073V31.3807H451.70826V17.2073ZM451.70826 31.3807" fill="#ffbf80"/>
|
162
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#ff8000" d="M348.3782 17.2073V31.3807H451.70826V17.2073ZM451.70826 31.3807"/>
|
163
|
+
<use data-text="S" xlink:href="#font_1_11" transform="matrix(9.9626,0,0,-9.9626,386.046,29.549004)"/>
|
164
|
+
<use data-text="e" xlink:href="#font_1_16" transform="matrix(9.9626,0,0,-9.9626,392.69105,29.549004)"/>
|
165
|
+
<use data-text="r" xlink:href="#font_1_23" transform="matrix(9.9626,0,0,-9.9626,398.23027,29.549004)"/>
|
166
|
+
<use data-text="i" xlink:href="#font_1_17" transform="matrix(9.9626,0,0,-9.9626,401.69725,29.549004)"/>
|
167
|
+
<use data-text="e" xlink:href="#font_1_16" transform="matrix(9.9626,0,0,-9.9626,403.90895,29.549004)"/>
|
168
|
+
<use data-text="s" xlink:href="#font_1_24" transform="matrix(9.9626,0,0,-9.9626,409.44816,29.549004)"/>
|
169
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" d="M487.89036 14.17339H463.89738C463.42774 14.17339 463.04698 13.79266 463.04698 13.323V-13.323C463.04698-13.79266 463.42774-14.17339 463.89738-14.17339H487.89036C488.36003-14.17339 488.74076-13.79266 488.74076-13.323V13.323C488.74076 13.79266 488.36003 14.17339 487.89036 14.17339ZM463.04698-14.17339" fill="#80ff80"/>
|
170
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M487.89036 14.17339H463.89738C463.42774 14.17339 463.04698 13.79266 463.04698 13.323V-13.323C463.04698-13.79266 463.42774-14.17339 463.89738-14.17339H487.89036C488.36003-14.17339 488.74076-13.79266 488.74076-13.323V13.323C488.74076 13.79266 488.36003 14.17339 487.89036 14.17339ZM463.04698-14.17339"/>
|
171
|
+
<use data-text="E" xlink:href="#font_1_7" transform="matrix(9.9626,0,0,-9.9626,467.225,53.972)"/>
|
172
|
+
<use data-text="n" xlink:href="#font_1_20" transform="matrix(9.9626,0,0,-9.9626,473.87007,53.972)"/>
|
173
|
+
<use data-text="d" xlink:href="#font_1_15" transform="matrix(9.9626,0,0,-9.9626,479.40928,53.972)"/>
|
174
|
+
<path transform="matrix(1,0,0,-1,.199,50.480005)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M448.87358 0H455.96028 458.3845"/>
|
175
|
+
<path transform="matrix(1,0,0,-1,458.5835,50.480005)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
176
|
+
</svg>
|
@@ -1,4 +1,13 @@
|
|
1
|
-
"""Simple RBD example.
|
1
|
+
"""Simple RBD example.
|
2
|
+
|
3
|
+
Code comments:
|
4
|
+
1. Here, a `Group` block is made by simply multiplying a `Block` instance by an integer
|
5
|
+
2. To group different blocks vertically and set a title and color, use the `Group` class
|
6
|
+
3. Adding `Block` instances creates a `Series` instance
|
7
|
+
4. To group different blocks horizontally and set a title and color, use the `Series` class
|
8
|
+
5. Custom color `myblue` used in first block is defined here
|
9
|
+
|
10
|
+
"""
|
2
11
|
|
3
12
|
from os import path, chdir
|
4
13
|
|
@@ -6,28 +15,30 @@ from pyrbd import Block, Group, Series, Diagram
|
|
6
15
|
|
7
16
|
chdir(path.dirname(__file__))
|
8
17
|
|
9
|
-
|
10
|
-
|
18
|
+
# Define all the blocks in the diagram
|
19
|
+
start_block = Block("Start", "myblue", parent=None)
|
20
|
+
parallel = 2 * Block("Parallel blocks", "gray", parent=start_block) # (1)
|
11
21
|
block_1 = Block(r"Block 1", "yellow!50")
|
12
22
|
block_2 = Block(r"Block 2", "yellow!50")
|
13
23
|
block_3 = Block(r"Block 3", "yellow!50")
|
14
24
|
block_4 = Block(r"Block 4", "yellow!50")
|
15
|
-
group = Group(
|
16
|
-
[block_1 + block_2, block_3 + block_4],
|
25
|
+
group = Group( # (2)
|
26
|
+
[block_1 + block_2, block_3 + block_4], # (3)
|
17
27
|
parent=parallel,
|
18
28
|
text="Group",
|
19
29
|
color="yellow",
|
20
30
|
)
|
21
31
|
block_a = Block(r"Block A", "orange!50")
|
22
32
|
block_b = Block(r"Block B", "orange!50")
|
23
|
-
series = Series([block_a, block_b], "Series", "orange", parent=group)
|
33
|
+
series = Series([block_a, block_b], "Series", "orange", parent=group) # (4)
|
24
34
|
end_block = Block("End", "green!50", parent=series)
|
25
35
|
|
26
|
-
|
36
|
+
# Add blocks to Diagram class instance and compile diagram
|
27
37
|
diag = Diagram(
|
28
38
|
"example_RBD",
|
29
39
|
blocks=[start_block, parallel, group, series, end_block],
|
30
40
|
hazard="Hazard",
|
41
|
+
colors={"myblue": "8888ff"}, # (5)
|
31
42
|
)
|
32
43
|
diag.write()
|
33
44
|
diag.compile(["svg", "png"])
|
Binary file
|
@@ -0,0 +1,75 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" width="184.283" height="62.761" viewBox="0 0 184.283 62.761">
|
2
|
+
<style>
|
3
|
+
@media (prefers-color-scheme: light) { :root { --color: #000000; } }
|
4
|
+
@media (prefers-color-scheme: dark) { :root { --color: #DDDDDD; } }
|
5
|
+
</style>
|
6
|
+
<defs>
|
7
|
+
<path id="font_1_3" d="M.59599307 .51504519C.59498599 .6582031 .49699403 .74121096 .32899476 .74121096 .16899109 .74121096 .069992069 .65919497 .069992069 .52705386 .069992069 .43795777 .116989139 .38189698 .21299744 .35687257L.3939972 .30882264C.48599244 .2848053 .5279999 .24775696 .5279999 .19070435 .5279999 .1516571 .5069885 .11161804 .47599793 .08958435 .44699098 .06956482 .40098573 .058547975 .34199525 .058547975 .2630005 .058547975 .20899964 .07757568 .17399597 .11961365 .14698792 .1516571 .1349945 .18669129 .13598633 .23173523H.04798889C.04899597 .16467285 .06199646 .12062073 .09098816 .080581668 .14099121 .012557983 .22499085-.0234375 .33599855-.0234375 .4229889-.0234375 .49398805-.0034484864 .54100039 .032562257 .58999636 .07156372 .62098696 .13664246 .62098696 .19970703 .62098696 .28981019 .5649872 .35588075 .46598817 .38290406L.2829895 .43196107C.19499207 .4559784 .16299439 .4840088 .16299439 .5400696 .16299439 .614151 .22799683 .663208 .32598878 .663208 .44198609 .663208 .5069885 .6101532 .5079956 .51504519H.59599307Z"/>
|
8
|
+
<path id="font_1_15" d="M.2539978 .52441409H.16799927V.66841128H.084991458V.52441409H.01399231V.45640565H.084991458V.059570314C.084991458 .0065612795 .12098694-.0234375 .18598938-.0234375 .20599365-.0234375 .22599793-.021438599 .2539978-.016448975V.05355835C.24299622 .05055237 .22999573 .049560548 .21398926 .049560548 .17799378 .049560548 .16799927 .059570314 .16799927 .09664917V.45640565H.2539978V.52441409Z"/>
|
9
|
+
<path id="font_1_4" d="M.5349884 .048553468C.526001 .046554567 .5219879 .046554567 .5169983 .046554567 .48799134 .046554567 .47200013 .061569215 .47200013 .08760071V.39598084C.47200013 .48905946 .4039917 .5390625 .2749939 .5390625 .19898987 .5390625 .13598633 .5170593 .100997928 .47805787 .07699585 .45103456 .066986087 .42100526 .06498718 .36894227H.14898682C.1559906 .43301393 .19400025 .4620514 .27198792 .4620514 .34700013 .4620514 .3889923 .434021 .3889923 .3839569V.36193849C.3889923 .32688905 .36799623 .3118744 .3019867 .30386354 .18399048 .28884889 .1659851 .28483583 .13398743 .27182008 .07299805 .24679566 .041992189 .19973755 .041992189 .13165283 .041992189 .03656006 .10798645-.0234375 .21398926-.0234375 .27999879-.0234375 .33299256-.00044250489 .3919983 .05355835 .397995 .0005493164 .42399598-.0234375 .47799684-.0234375 .49499513-.0234375 .5079956-.021438599 .5349884-.014450073V.048553468M.3889923 .16468811C.3889923 .13665772 .3809967 .119644168 .35598756 .09661865 .32199098 .06556702 .2809906 .049560548 .23199463 .049560548 .16699219 .049560548 .1289978 .080596927 .1289978 .13365174 .1289978 .1887207 .1659851 .2167511 .25498963 .22976685 .34298707 .24179077 .36099244 .24578858 .3889923 .25880433V.16468811Z"/>
|
10
|
+
<path id="font_1_13" d="M.068984989 .52441409V0H.15299988V.27220155C.15299988 .34727479 .17199707 .39631654 .21199036 .42533876 .23799134 .4443512 .2630005 .45036317 .32099916 .45135499V.5364075C.30699159 .5380554 .2999878 .5390625 .2889862 .5390625 .23498535 .5390625 .19400025 .50704959 .1459961 .42904664V.52441409H.068984989Z"/>
|
11
|
+
<path id="font_1_2" d="M.18399048 .30862428H.41299439C.46998597 .30862428 .5149994 .32562257 .55400088 .36061097 .59799197 .4006195 .61698916 .44758607 .61698916 .5145569 .61698916 .6515045 .5359955 .7285156 .3919983 .7285156H.09098816V0H.18399048V.30862428M.18399048 .390625V.6465149H.37799073C.46699525 .6465149 .519989 .598526 .519989 .51856997 .519989 .43859864 .46699525 .390625 .37799073 .390625H.18399048Z"/>
|
12
|
+
<path id="font_1_10" d="M.1519928 .7285156H.067993167V0H.1519928V.7285156Z"/>
|
13
|
+
<path id="font_1_8" d="M.5130005 .23374939C.5130005 .31376649 .5069885 .36186219 .49198915 .40093995 .45799256 .48706056 .37799073 .5390625 .27999879 .5390625 .13398743 .5390625 .039993287 .4269867 .039993287 .25474549 .039993287 .08258057 .1309967-.0234375 .27799989-.0234375 .397995-.0234375 .48098756 .044555665 .5019989 .15867615H.41799928C.394989 .08959961 .34799195 .05355835 .2809906 .05355835 .22799683 .05355835 .18299866 .07757568 .15499878 .12162781 .1349945 .1516571 .12799073 .18170166 .1269989 .23374939H.5130005M.1289978 .3017578C.13598633 .39894105 .19499207 .4620514 .2789917 .4620514 .36099244 .4620514 .42399598 .3939209 .42399598 .30775453 .42399598 .30575563 .42399598 .3037567 .4229889 .3017578H.1289978Z"/>
|
14
|
+
<path id="font_1_5" d="M.053985597 .7285156V-.00044250489H.1289978V.0665741C.16899109 .005554199 .22200012-.0234375 .29499818-.0234375 .43299867-.0234375 .522995 .08959961 .522995 .2638092 .522995 .434021 .43699647 .5390625 .29899598 .5390625 .22698975 .5390625 .17599488 .51205447 .13699341 .4530487V.7285156H.053985597M.2829895 .46105958C.37599183 .46105958 .43598939 .3799591 .43598939 .25480653 .43598939 .13565064 .37399293 .05455017 .2829895 .05455017 .19499207 .05455017 .13699341 .13465882 .13699341 .25779725 .13699341 .38095094 .19499207 .46105958 .2829895 .46105958Z"/>
|
15
|
+
<path id="font_1_12" d="M.27198792 .5390625C.125 .5390625 .035995485 .434021 .035995485 .25779725 .035995485 .081588748 .12399292-.0234375 .272995-.0234375 .41999818-.0234375 .5099945 .081588748 .5099945 .25379945 .5099945 .43502809 .4229889 .5390625 .27198792 .5390625M.272995 .4620514C.36698915 .4620514 .4229889 .384964 .4229889 .25480653 .4229889 .13165283 .36499024 .05355835 .272995 .05355835 .17999268 .05355835 .12298584 .13064575 .12298584 .25779725 .12298584 .3839569 .17999268 .4620514 .272995 .4620514Z"/>
|
16
|
+
<path id="font_1_6" d="M.47099305 .34791566C.46699525 .39897157 .45599366 .4320221 .43598939 .46105958 .3999939 .51005557 .33699037 .5390625 .2639923 .5390625 .12298584 .5390625 .0309906 .4270172 .0309906 .25279237 .0309906 .08358765 .12098694-.0234375 .2630005-.0234375 .3880005-.0234375 .46699525 .05155945 .47698976 .17970276H.3929901C.3789978 .09561157 .33599855 .05355835 .2649994 .05355835 .17298889 .05355835 .117996219 .12864685 .117996219 .25279237 .117996219 .3839569 .17199707 .4620514 .2630005 .4620514 .33299256 .4620514 .3769989 .42100526 .3869934 .34791566H.47099305Z"/>
|
17
|
+
<path id="font_1_9" d="M.14099121 .7285156H.057998659V0H.14099121V.20385742L.22200012 .28381349 .39898683 0H.5019989L.28799439 .34277345 .46998597 .52363589H.36299134L.14099121 .30178834V.7285156Z"/>
|
18
|
+
<path id="font_1_14" d="M.43798829 .37794496C.43699647 .48104859 .36898805 .5390625 .24798584 .5390625 .12599182 .5390625 .04699707 .47605897 .04699707 .37895204 .04699707 .29685975 .08898926 .25779725 .21299744 .22776795L.29100038 .20874024C.34899903 .19473267 .37199403 .17370606 .37199403 .13565064 .37199403 .08659363 .32299806 .05355835 .25 .05355835 .20498657 .05355835 .16699219 .0665741 .1459961 .08859253 .1329956 .10362244 .1269989 .118637088 .12199402 .15568543H.033996583C.037994386 .034561159 .10598755-.0234375 .24299622-.0234375 .375-.0234375 .45899964 .041549684 .45899964 .14266968 .45899964 .22076416 .4149933 .2638092 .31098939 .28884889L.23098755 .30786134C.16299439 .32388307 .13398743 .34591676 .13398743 .3829651 .13398743 .431015 .1769867 .4620514 .24499512 .4620514 .31199647 .4620514 .34799195 .43301393 .34999085 .37794496H.43798829Z"/>
|
19
|
+
<path id="font_1_1" d="M.18299866 .33203126H.5799866V.41401673H.18299866V.6465149H.59498599V.7285156H.08999634V0H.61299136V.08198547H.18299866V.33203126Z"/>
|
20
|
+
<path id="font_1_11" d="M.069992069 .52441409V0H.1539917V.2892151C.1539917 .39604188 .20999146 .4660492 .29599 .4660492 .3619995 .4660492 .4039917 .42604066 .4039917 .3630371V0H.4869995V.39604188C.4869995 .4830475 .42199708 .5390625 .32099916 .5390625 .24299622 .5390625 .19299317 .50904849 .14698792 .43605042V.52441409H.069992069Z"/>
|
21
|
+
<path id="font_1_7" d="M.49499513 .7285156H.4119873V.4580536C.3769989 .51104739 .32099916 .5390625 .25099183 .5390625 .114990238 .5390625 .025985718 .43000794 .025985718 .26280213 .025985718 .08558655 .11299133-.0234375 .2539978-.0234375 .32598878-.0234375 .37599183 .0035552979 .42099 .068573V-.00044250489H.49499513V.7285156M.2649994 .46105958C.35499574 .46105958 .4119873 .38095094 .4119873 .25579835 .4119873 .13465882 .35398866 .05455017 .2659912 .05455017 .17399597 .05455017 .11299133 .13565064 .11299133 .25779725 .11299133 .3799591 .17399597 .46105958 .2649994 .46105958Z"/>
|
22
|
+
</defs>
|
23
|
+
<path transform="matrix(1,0,0,-1,.199,31.381003)" d="M28.55919 14.17339H.85039C.38072 14.17339 0 13.79266 0 13.323V-13.323C0-13.79266 .38072-14.17339 .85039-14.17339H28.55919C29.02885-14.17339 29.40959-13.79266 29.40959-13.323V13.323C29.40959 13.79266 29.02885 14.17339 28.55919 14.17339ZM0-14.17339" fill="#b3b3ff"/>
|
24
|
+
<path transform="matrix(1,0,0,-1,.199,31.381003)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M28.55919 14.17339H.85039C.38072 14.17339 0 13.79266 0 13.323V-13.323C0-13.79266 .38072-14.17339 .85039-14.17339H28.55919C29.02885-14.17339 29.40959-13.79266 29.40959-13.323V13.323C29.40959 13.79266 29.02885 14.17339 28.55919 14.17339ZM0-14.17339"/>
|
25
|
+
<use data-text="S" xlink:href="#font_1_3" transform="matrix(9.9626,0,0,-9.9626,4.184,34.942)"/>
|
26
|
+
<use data-text="t" xlink:href="#font_1_15" transform="matrix(9.9626,0,0,-9.9626,10.829055,34.942)"/>
|
27
|
+
<use data-text="a" xlink:href="#font_1_4" transform="matrix(9.9626,0,0,-9.9626,13.598658,34.942)"/>
|
28
|
+
<use data-text="r" xlink:href="#font_1_13" transform="matrix(9.9626,0,0,-9.9626,19.137864,34.942)"/>
|
29
|
+
<use data-text="t" xlink:href="#font_1_15" transform="matrix(9.9626,0,0,-9.9626,22.853913,34.942)"/>
|
30
|
+
<path transform="matrix(1,0,0,-1,44.18,14.373001)" d="M84.61607 14.17339H15.02379C14.55412 14.17339 14.17339 13.79266 14.17339 13.323V-13.323C14.17339-13.79266 14.55412-14.17339 15.02379-14.17339H84.61607C85.08574-14.17339 85.46648-13.79266 85.46648-13.323V13.323C85.46648 13.79266 85.08574 14.17339 84.61607 14.17339ZM14.17339-14.17339" fill="#7f807f"/>
|
31
|
+
<path transform="matrix(1,0,0,-1,44.18,14.373001)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M84.61607 14.17339H15.02379C14.55412 14.17339 14.17339 13.79266 14.17339 13.323V-13.323C14.17339-13.79266 14.55412-14.17339 15.02379-14.17339H84.61607C85.08574-14.17339 85.46648-13.79266 85.46648-13.323V13.323C85.46648 13.79266 85.08574 14.17339 84.61607 14.17339ZM14.17339-14.17339"/>
|
32
|
+
<use data-text="P" xlink:href="#font_1_2" transform="matrix(9.9626,0,0,-9.9626,62.338,17.865002)"/>
|
33
|
+
<use data-text="a" xlink:href="#font_1_4" transform="matrix(9.9626,0,0,-9.9626,68.58455,17.865002)"/>
|
34
|
+
<use data-text="r" xlink:href="#font_1_13" transform="matrix(9.9626,0,0,-9.9626,74.12376,17.865002)"/>
|
35
|
+
<use data-text="a" xlink:href="#font_1_4" transform="matrix(9.9626,0,0,-9.9626,77.341678,17.865002)"/>
|
36
|
+
<use data-text="l" xlink:href="#font_1_10" transform="matrix(9.9626,0,0,-9.9626,82.88088,17.865002)"/>
|
37
|
+
<use data-text="l" xlink:href="#font_1_10" transform="matrix(9.9626,0,0,-9.9626,85.09258,17.865002)"/>
|
38
|
+
<use data-text="e" xlink:href="#font_1_8" transform="matrix(9.9626,0,0,-9.9626,87.30428,17.865002)"/>
|
39
|
+
<use data-text="l" xlink:href="#font_1_10" transform="matrix(9.9626,0,0,-9.9626,92.84349,17.865002)"/>
|
40
|
+
<use data-text="b" xlink:href="#font_1_5" transform="matrix(9.9626,0,0,-9.9626,97.82479,17.865002)"/>
|
41
|
+
<use data-text="l" xlink:href="#font_1_10" transform="matrix(9.9626,0,0,-9.9626,103.16475,17.865002)"/>
|
42
|
+
<use data-text="o" xlink:href="#font_1_12" transform="matrix(9.9626,0,0,-9.9626,105.37645,17.865002)"/>
|
43
|
+
<use data-text="c" xlink:href="#font_1_6" transform="matrix(9.9626,0,0,-9.9626,110.91566,17.865002)"/>
|
44
|
+
<use data-text="k" xlink:href="#font_1_9" transform="matrix(9.9626,0,0,-9.9626,115.69771,17.865002)"/>
|
45
|
+
<use data-text="s" xlink:href="#font_1_14" transform="matrix(9.9626,0,0,-9.9626,120.67901,17.865002)"/>
|
46
|
+
<path transform="matrix(1,0,0,-1,44.18,14.373001)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M0 0V0H9.51091"/>
|
47
|
+
<path transform="matrix(1,0,0,-1,53.69091,14.373001)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
48
|
+
<path transform="matrix(1,0,0,-1,44.18,14.373001)" d="M84.61607-19.8427H15.02379C14.55412-19.8427 14.17339-20.22343 14.17339-20.6931V-47.3391C14.17339-47.80876 14.55412-48.18948 15.02379-48.18948H84.61607C85.08574-48.18948 85.46648-47.80876 85.46648-47.3391V-20.6931C85.46648-20.22343 85.08574-19.8427 84.61607-19.8427ZM14.17339-48.18948" fill="#7f807f"/>
|
49
|
+
<path transform="matrix(1,0,0,-1,44.18,14.373001)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M84.61607-19.8427H15.02379C14.55412-19.8427 14.17339-20.22343 14.17339-20.6931V-47.3391C14.17339-47.80876 14.55412-48.18948 15.02379-48.18948H84.61607C85.08574-48.18948 85.46648-47.80876 85.46648-47.3391V-20.6931C85.46648-20.22343 85.08574-19.8427 84.61607-19.8427ZM14.17339-48.18948"/>
|
50
|
+
<use data-text="P" xlink:href="#font_1_2" transform="matrix(9.9626,0,0,-9.9626,62.338,51.88)"/>
|
51
|
+
<use data-text="a" xlink:href="#font_1_4" transform="matrix(9.9626,0,0,-9.9626,68.58455,51.88)"/>
|
52
|
+
<use data-text="r" xlink:href="#font_1_13" transform="matrix(9.9626,0,0,-9.9626,74.12376,51.88)"/>
|
53
|
+
<use data-text="a" xlink:href="#font_1_4" transform="matrix(9.9626,0,0,-9.9626,77.341678,51.88)"/>
|
54
|
+
<use data-text="l" xlink:href="#font_1_10" transform="matrix(9.9626,0,0,-9.9626,82.88088,51.88)"/>
|
55
|
+
<use data-text="l" xlink:href="#font_1_10" transform="matrix(9.9626,0,0,-9.9626,85.09258,51.88)"/>
|
56
|
+
<use data-text="e" xlink:href="#font_1_8" transform="matrix(9.9626,0,0,-9.9626,87.30428,51.88)"/>
|
57
|
+
<use data-text="l" xlink:href="#font_1_10" transform="matrix(9.9626,0,0,-9.9626,92.84349,51.88)"/>
|
58
|
+
<use data-text="b" xlink:href="#font_1_5" transform="matrix(9.9626,0,0,-9.9626,97.82479,51.88)"/>
|
59
|
+
<use data-text="l" xlink:href="#font_1_10" transform="matrix(9.9626,0,0,-9.9626,103.16475,51.88)"/>
|
60
|
+
<use data-text="o" xlink:href="#font_1_12" transform="matrix(9.9626,0,0,-9.9626,105.37645,51.88)"/>
|
61
|
+
<use data-text="c" xlink:href="#font_1_6" transform="matrix(9.9626,0,0,-9.9626,110.91566,51.88)"/>
|
62
|
+
<use data-text="k" xlink:href="#font_1_9" transform="matrix(9.9626,0,0,-9.9626,115.69771,51.88)"/>
|
63
|
+
<use data-text="s" xlink:href="#font_1_14" transform="matrix(9.9626,0,0,-9.9626,120.67901,51.88)"/>
|
64
|
+
<path transform="matrix(1,0,0,-1,44.18,14.373001)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M0 0V0-34.0161H9.51091"/>
|
65
|
+
<path transform="matrix(1,0,0,-1,53.69091,48.389104)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
66
|
+
<path transform="matrix(1,0,0,-1,44.18,14.373001)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M85.46648 0H99.63988V-34.0161H85.46648"/>
|
67
|
+
<path transform="matrix(1,0,0,-1,.199,31.381003)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M29.40959 0H43.583"/>
|
68
|
+
<path transform="matrix(1,0,0,-1,.199,31.381003)" d="M183.03665 14.17339H159.04367C158.574 14.17339 158.19327 13.79266 158.19327 13.323V-13.323C158.19327-13.79266 158.574-14.17339 159.04367-14.17339H183.03665C183.50632-14.17339 183.88704-13.79266 183.88704-13.323V13.323C183.88704 13.79266 183.50632 14.17339 183.03665 14.17339ZM158.19327-14.17339" fill="#80ff80"/>
|
69
|
+
<path transform="matrix(1,0,0,-1,.199,31.381003)" stroke-width=".3985" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="#262626" d="M183.03665 14.17339H159.04367C158.574 14.17339 158.19327 13.79266 158.19327 13.323V-13.323C158.19327-13.79266 158.574-14.17339 159.04367-14.17339H183.03665C183.50632-14.17339 183.88704-13.79266 183.88704-13.323V13.323C183.88704 13.79266 183.50632 14.17339 183.03665 14.17339ZM158.19327-14.17339"/>
|
70
|
+
<use data-text="E" xlink:href="#font_1_1" transform="matrix(9.9626,0,0,-9.9626,162.375,34.873)"/>
|
71
|
+
<use data-text="n" xlink:href="#font_1_11" transform="matrix(9.9626,0,0,-9.9626,169.02005,34.873)"/>
|
72
|
+
<use data-text="d" xlink:href="#font_1_7" transform="matrix(9.9626,0,0,-9.9626,174.55925,34.873)"/>
|
73
|
+
<path transform="matrix(1,0,0,-1,.199,31.381003)" stroke-width=".79701" stroke-linecap="butt" stroke-miterlimit="10" stroke-linejoin="miter" fill="none" stroke="var(--color)" d="M144.01987 0H151.10657 153.53079"/>
|
74
|
+
<path transform="matrix(1,0,0,-1,153.7298,31.381003)" d="M4.66248 0C3.28098 .25902 1.0361 1.0361-.51805 1.94269V-1.94269C1.0361-1.0361 3.28098-.25902 4.66248 0" fill="var(--color)"/>
|
75
|
+
</svg>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"""Simple RBD example.
|
2
|
+
|
3
|
+
Annotations:
|
4
|
+
1. The first block does not need a parent
|
5
|
+
2. To get identical parallel blocks, multiply a `Block` instance by an `int`
|
6
|
+
3. For the other blocks we must specify the previous block in the diagram as the parent block
|
7
|
+
4. We can specify multiple output formats by providing a list of formats.
|
8
|
+
Defaults to PDF if unspecified.
|
9
|
+
"""
|
10
|
+
|
11
|
+
from os import path, chdir
|
12
|
+
|
13
|
+
from pyrbd import Block, Diagram
|
14
|
+
|
15
|
+
chdir(path.dirname(__file__))
|
16
|
+
|
17
|
+
# Define the blocks comprising the diagram
|
18
|
+
start_block = Block("Start", "blue!30") # (1)
|
19
|
+
parallel = 2 * Block("Parallel blocks", "gray", parent=start_block) # (2)
|
20
|
+
end_block = Block("End", "green!50", parent=parallel) # (3)
|
21
|
+
|
22
|
+
# Define and compile the diagram
|
23
|
+
diagram = Diagram(
|
24
|
+
"simple_RBD",
|
25
|
+
blocks=[start_block, parallel, end_block],
|
26
|
+
)
|
27
|
+
diagram.write()
|
28
|
+
diagram.compile(["pdf", "svg"]) # (4)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
## Simple diagram
|
2
|
+
```python linenums="1"
|
3
|
+
--8<-- "simple_rbd.py:13:13,16:"
|
4
|
+
```
|
5
|
+
|
6
|
+
--8<-- "simple_rbd.py:4:8"
|
7
|
+
|
8
|
+
<img width="500" src='examples/simple_RBD.svg'/>
|
9
|
+
|
10
|
+
|
11
|
+
## Example with more functionality
|
12
|
+
|
13
|
+
```python linenums="1"
|
14
|
+
--8<-- "example_rbd.py:14:14,17:"
|
15
|
+
```
|
16
|
+
|
17
|
+
--8<-- "example_rbd.py:4:8"
|
18
|
+
|
19
|
+
<div class="highlight"><img width="1000" src='examples/example_RBD.svg'/></div>
|
@@ -1,5 +1,6 @@
|
|
1
1
|
site_name: pyRBD Docs
|
2
2
|
repo_url: https://github.com/hghugdal/pyrbd
|
3
|
+
site_url: https://hghugdal.github.io/pyrbd
|
3
4
|
|
4
5
|
theme:
|
5
6
|
name: "material"
|
@@ -33,7 +34,7 @@ theme:
|
|
33
34
|
toggle:
|
34
35
|
icon: material/toggle-switch
|
35
36
|
name: Switch to light mode
|
36
|
-
font: true
|
37
|
+
# font: true
|
37
38
|
|
38
39
|
nav:
|
39
40
|
- index.md
|
@@ -60,12 +61,14 @@ plugins:
|
|
60
61
|
markdown_extensions:
|
61
62
|
- pymdownx.highlight
|
62
63
|
- pymdownx.superfences:
|
63
|
-
custom_fences:
|
64
|
-
- name: python
|
65
|
-
|
66
|
-
|
67
|
-
|
64
|
+
# custom_fences:
|
65
|
+
# - name: python
|
66
|
+
# class: python
|
67
|
+
# validator: !!python/name:markdown_exec.validator
|
68
|
+
# format: !!python/name:markdown_exec.formatter
|
68
69
|
- pymdownx.inlinehilite
|
69
70
|
- pymdownx.snippets:
|
70
71
|
check_paths: true
|
71
|
-
base_path: [docs/examples, "."]
|
72
|
+
base_path: [docs/examples, "."]
|
73
|
+
- attr_list
|
74
|
+
- md_in_html
|