drawio_dsl 0.8.9 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +21 -0
- data/config/configuration.json +8 -8
- data/docs/domain-modal/domain_model_custom.drawio +2 -2
- data/docs/printspeak-architecture-controllers-custom.drawio +93 -0
- data/docs/printspeak-architecture-controllers-fat.svg +1 -0
- data/docs/printspeak-architecture-controllers-thin.svg +1 -0
- data/docs/printspeak-architecture-controllers.drawio +48 -0
- data/docs/printspeak-architecture-generator.drawio +106 -42
- data/docs/printspeak-architecture-generator.svg +1 -1
- data/docs/project-plan/project.drawio +88 -64
- data/docs/project-plan/project_done.svg +1 -1
- data/docs/project-plan/project_in_progress.svg +1 -1
- data/docs/project-plan/project_todo.svg +1 -1
- data/docs/samples/grid-direction-horizontal.svg +1 -1
- data/docs/samples/grid-direction-vertical.svg +1 -1
- data/lib/drawio_dsl/configuration.rb +81 -0
- data/lib/drawio_dsl/configuration_shapes.rb +2 -2
- data/lib/drawio_dsl/configuration_themes.rb +44 -44
- data/lib/drawio_dsl/dom_builder_shapes.rb +3 -3
- data/lib/drawio_dsl/drawio_shapes.rb +3 -3
- data/lib/drawio_dsl/schema/_.rb +55 -45
- data/lib/drawio_dsl/schema/diagram.rb +1 -1
- data/lib/drawio_dsl/schema/element.rb +23 -0
- data/lib/drawio_dsl/schema/{shapes/face.rb → elements/actor.rb} +2 -2
- data/lib/drawio_dsl/schema/{shapes/actor.rb → elements/actor2.rb} +2 -2
- data/lib/drawio_dsl/schema/{shapes/circle.rb → elements/callout.rb} +2 -2
- data/lib/drawio_dsl/schema/{shapes/callout.rb → elements/callout2.rb} +2 -2
- data/lib/drawio_dsl/schema/elements/callout3.rb +9 -0
- data/lib/drawio_dsl/schema/elements/callout4.rb +9 -0
- data/lib/drawio_dsl/schema/{shapes/cross.rb → elements/circle.rb} +2 -2
- data/lib/drawio_dsl/schema/elements/cloud.rb +9 -0
- data/lib/drawio_dsl/schema/elements/container.rb +9 -0
- data/lib/drawio_dsl/schema/elements/container2.rb +9 -0
- data/lib/drawio_dsl/schema/elements/container3.rb +9 -0
- data/lib/drawio_dsl/schema/elements/container4.rb +9 -0
- data/lib/drawio_dsl/schema/elements/cross.rb +9 -0
- data/lib/drawio_dsl/schema/elements/database.rb +9 -0
- data/lib/drawio_dsl/schema/{shapes/actor2.rb → elements/db_json.rb} +2 -2
- data/lib/drawio_dsl/schema/elements/diamond.rb +9 -0
- data/lib/drawio_dsl/schema/elements/document.rb +9 -0
- data/lib/drawio_dsl/schema/elements/ellipse.rb +9 -0
- data/lib/drawio_dsl/schema/elements/embed_col200.rb +9 -0
- data/lib/drawio_dsl/schema/elements/embed_col50.rb +9 -0
- data/lib/drawio_dsl/schema/{shapes/callout2.rb → elements/embed_row.rb} +2 -2
- data/lib/drawio_dsl/schema/elements/envelop.rb +9 -0
- data/lib/drawio_dsl/schema/elements/face.rb +9 -0
- data/lib/drawio_dsl/schema/elements/group.rb +9 -0
- data/lib/drawio_dsl/schema/elements/hexagon.rb +9 -0
- data/lib/drawio_dsl/schema/elements/interface.rb +9 -0
- data/lib/drawio_dsl/schema/elements/klass.rb +9 -0
- data/lib/drawio_dsl/schema/elements/note.rb +9 -0
- data/lib/drawio_dsl/schema/elements/process.rb +9 -0
- data/lib/drawio_dsl/schema/elements/rectangle.rb +9 -0
- data/lib/drawio_dsl/schema/elements/rectangle2.rb +9 -0
- data/lib/drawio_dsl/schema/{shapes/cloud.rb → elements/square.rb} +2 -2
- data/lib/drawio_dsl/schema/elements/step.rb +9 -0
- data/lib/drawio_dsl/schema/elements/tick.rb +9 -0
- data/lib/drawio_dsl/schema/elements/todo.rb +9 -0
- data/lib/drawio_dsl/schema/elements/triangle.rb +9 -0
- data/lib/drawio_dsl/schema/line.rb +24 -0
- data/lib/drawio_dsl/schema/lines/solid.rb +9 -0
- data/lib/drawio_dsl/schema/page.rb +8 -6
- data/lib/drawio_dsl/schema/{shapes/shape.rb → shape.rb} +14 -22
- data/lib/drawio_dsl/schema/text.rb +23 -0
- data/lib/drawio_dsl/schema/{shapes → texts}/h1.rb +2 -2
- data/lib/drawio_dsl/schema/{shapes → texts}/h2.rb +2 -2
- data/lib/drawio_dsl/schema/{shapes → texts}/h3.rb +2 -2
- data/lib/drawio_dsl/schema/{shapes → texts}/h4.rb +2 -2
- data/lib/drawio_dsl/schema/{shapes → texts}/h5.rb +2 -2
- data/lib/drawio_dsl/schema/{shapes → texts}/h6.rb +2 -2
- data/lib/drawio_dsl/schema/{shapes → texts}/p.rb +2 -2
- data/lib/drawio_dsl/version.rb +1 -1
- data/lib/drawio_dsl.rb +7 -9
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +54 -47
- data/lib/drawio_dsl/schema/shapes/callout3.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/callout4.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/container.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/container2.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/container3.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/container4.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/database.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/db_json.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/diamond.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/document.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/ellipse.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/embed_col200.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/embed_col50.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/embed_row.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/envelop.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/group.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/hexagon.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/interface.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/klass.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/line.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/note.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/process.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/rectangle.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/rectangle2.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/square.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/step.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/tick.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/todo.rb +0 -9
- data/lib/drawio_dsl/schema/shapes/triangle.rb +0 -9
@@ -1,43 +1,107 @@
|
|
1
|
-
<mxfile host="
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
1
|
+
<mxfile host="65bd71144e">
|
2
|
+
<diagram id="mBj" name="Thin Controllers">
|
3
|
+
<mxGraphModel dx="1172" dy="583" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" background="#fafafa" math="0" shadow="0">
|
4
|
+
<root>
|
5
|
+
<mxCell id="page_root_mBj"/>
|
6
|
+
<mxCell id="node_root_mBj" parent="page_root_mBj"/>
|
7
|
+
<mxCell id="21RrXMzRurO5l1FjHA6U-0" style="edgeStyle=none;html=1;exitX=1;exitY=0.25;exitDx=0;exitDy=0;fillColor=#f8cecc;strokeColor=#b85450;" edge="1" parent="node_root_mBj" source="mBj-2" target="mBj-3">
|
8
|
+
<mxGeometry relative="1" as="geometry"/>
|
9
|
+
</mxCell>
|
10
|
+
<mxCell id="21RrXMzRurO5l1FjHA6U-1" style="edgeStyle=none;shape=connector;rounded=1;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.027;entryY=0.547;entryDx=0;entryDy=0;entryPerimeter=0;labelBackgroundColor=default;fontFamily=Helvetica;fontSize=11;fontColor=default;endArrow=classic;strokeColor=#b85450;fillColor=#f8cecc;" edge="1" parent="node_root_mBj" source="mBj-2" target="mBj-4">
|
11
|
+
<mxGeometry relative="1" as="geometry"/>
|
12
|
+
</mxCell>
|
13
|
+
<mxCell id="21RrXMzRurO5l1FjHA6U-2" style="edgeStyle=none;shape=connector;rounded=1;html=1;exitX=1;exitY=0.75;exitDx=0;exitDy=0;entryX=0.017;entryY=0.455;entryDx=0;entryDy=0;entryPerimeter=0;labelBackgroundColor=default;fontFamily=Helvetica;fontSize=11;fontColor=default;endArrow=classic;strokeColor=#b85450;fillColor=#f8cecc;" edge="1" parent="node_root_mBj" source="mBj-2" target="mBj-5">
|
14
|
+
<mxGeometry relative="1" as="geometry"/>
|
15
|
+
</mxCell>
|
16
|
+
<mxCell id="21RrXMzRurO5l1FjHA6U-5" style="edgeStyle=none;shape=connector;rounded=1;html=1;entryX=0.002;entryY=0.48;entryDx=0;entryDy=0;entryPerimeter=0;labelBackgroundColor=default;fontFamily=Helvetica;fontSize=11;fontColor=default;endArrow=classic;strokeColor=#b85450;fillColor=#f8cecc;exitX=0.987;exitY=1.02;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="node_root_mBj" source="mBj-3" target="21RrXMzRurO5l1FjHA6U-4">
|
17
|
+
<mxGeometry relative="1" as="geometry"/>
|
18
|
+
</mxCell>
|
19
|
+
<mxCell id="mBj-2" value="<p style="margin:0px;margin-left:4px;margin-bottom:4px;text-align:center"><b>Reports#sales_by_profit</b></p><hr size="1"/><h3 style="margin:0px;margin-left:4px;margin-bottom:6.912px">Thin Controller</h3><h5 style="margin:0px;margin-left:4px;margin-bottom:4.8px">Param marshalling</h5><p style="margin:0px;margin-left:4px;margin-bottom:4px">my_action_params()</p><h5 style="margin:0px;margin-left:4px;margin-bottom:4.8px">Call query</h5><p style="margin:0px;margin-left:4px;margin-bottom:4px">MyActionQuery.query(scope, **inputs)</p><hr size="1"/><h5 style="margin:0px;margin-left:4px;margin-bottom:4.8px">Present</h5><p style="margin:0px;margin-left:4px;margin-bottom:4px">@vm = MyActionPresenter.new(**outputs)</p>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica" parent="node_root_mBj" vertex="1">
|
20
|
+
<mxGeometry x="72" y="167" width="249" height="196" as="geometry"/>
|
21
|
+
</mxCell>
|
22
|
+
<mxCell id="mBj-3" value="<b>Param marshaling</b><br><br>@sales_by_profit_params ||= <br>params.permit(...)<br>&nbsp;&nbsp;.symbolize_keys" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333;shape=mxgraph.basic.cloud_rect" parent="node_root_mBj" vertex="1">
|
23
|
+
<mxGeometry x="448" y="59" width="200" height="120" as="geometry"/>
|
24
|
+
</mxCell>
|
25
|
+
<mxCell id="mBj-4" value="<b>Call Query</b><br><br>SalesByProfitQuery<br>&nbsp;&nbsp;.query(scope, **custom, **params)" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333;shape=mxgraph.basic.cloud_rect" parent="node_root_mBj" vertex="1">
|
26
|
+
<mxGeometry x="448" y="202" width="200" height="120" as="geometry"/>
|
27
|
+
</mxCell>
|
28
|
+
<mxCell id="mBj-5" value="<b>Present</b><br><br>SalesByProfitPresenter<br>&nbsp;&nbsp;.new(**query.outputs)" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333;shape=mxgraph.basic.cloud_rect" parent="node_root_mBj" vertex="1">
|
29
|
+
<mxGeometry x="448" y="351" width="200" height="120" as="geometry"/>
|
30
|
+
</mxCell>
|
31
|
+
<mxCell id="21RrXMzRurO5l1FjHA6U-3" value="<b>Form Object</b><br><br>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333;shape=mxgraph.basic.cloud_rect" vertex="1" parent="node_root_mBj">
|
32
|
+
<mxGeometry x="671" y="59" width="200" height="53" as="geometry"/>
|
33
|
+
</mxCell>
|
34
|
+
<mxCell id="21RrXMzRurO5l1FjHA6U-4" value="<b>Query#contract</b>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333;shape=mxgraph.basic.cloud_rect" vertex="1" parent="node_root_mBj">
|
35
|
+
<mxGeometry x="671" y="169" width="200" height="53" as="geometry"/>
|
36
|
+
</mxCell>
|
37
|
+
</root>
|
38
|
+
</mxGraphModel>
|
39
|
+
</diagram>
|
40
|
+
<diagram id="hn6" name="Fat Controllers">
|
41
|
+
<mxGraphModel dx="0" dy="0" background="#fafafa" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
|
42
|
+
<root>
|
43
|
+
<mxCell id="page_root_hn6" parent="hn6"/>
|
44
|
+
<mxCell id="node_root_hn6" parent="page_root_hn6"/>
|
45
|
+
<mxCell id="hn6-2" value="<p style="margin:0px;margin-left:4px;margin-bottom:4px;text-align:center"><b>Reports#sales_by_profit</b></p><hr size="1"/><h3 style="margin:0px;margin-left:4px;margin-bottom:6.912px">Fat Controller</h3><h5 style="margin:0px;margin-left:4px;margin-bottom:4.8px">Param marshalling</h5><p style="margin:0px;margin-left:4px;margin-bottom:4px">params[:date_from]</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">params[:date_to]</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">params[:sort] || "gross_sales"</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">params[:direction] || "desc"</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">params[:filter_str]</p><h5 style="margin:0px;margin-left:4px;margin-bottom:4.8px">Dynamic query construction</h5><p style="margin:0px;margin-left:4px;margin-bottom:4px">switch params[:filter_str]</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">invoice_date_query</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">ugly query</p><hr size="1"/><h5 style="margin:0px;margin-left:4px;margin-bottom:4.8px">Query in controller</h5><p style="margin:0px;margin-left:4px;margin-bottom:4px">ActiveRecord::Base.connection.execute(query)</p><hr size="1"/><h5 style="margin:0px;margin-left:4px;margin-bottom:4.8px">Build outputs</h5><p style="margin:0px;margin-left:4px;margin-bottom:4px">@net_sales_total</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">@vat_total</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">@gross_sales_total</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">@document_data</p><h5 style="margin:0px;margin-left:4px;margin-bottom:4.8px">Composite outputs</h5><p style="margin:0px;margin-left:4px;margin-bottom:4px">params[:sort]</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">params[:direction]</p>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica" vertex="1" parent="node_root_hn6">
|
46
|
+
<mxGeometry x="30" y="30" width="160" height="160" as="geometry"/>
|
47
|
+
</mxCell>
|
48
|
+
<mxCell id="hn6-3" value="<b>Paramater marshalling</b><br><br>reading the params[] object<br>setting sane defaults<br><i>do not alter and reuse params[]</i>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333;shape=mxgraph.basic.cloud_rect" vertex="1" parent="node_root_hn6">
|
49
|
+
<mxGeometry x="230" y="50" width="200" height="120" as="geometry"/>
|
50
|
+
</mxCell>
|
51
|
+
<mxCell id="hn6-4" value="<b>Dynamic query construction</b><br><br>query = "select ..."<br><i>ActiveRelation vs interpolation</i>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333;shape=mxgraph.basic.cloud_rect" vertex="1" parent="node_root_hn6">
|
52
|
+
<mxGeometry x="450" y="50" width="200" height="120" as="geometry"/>
|
53
|
+
</mxCell>
|
54
|
+
<mxCell id="hn6-5" value="<b>Query in controller</b><br><i>Move out to Query object</i>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333;shape=mxgraph.basic.cloud_rect" vertex="1" parent="node_root_hn6">
|
55
|
+
<mxGeometry x="670" y="50" width="200" height="120" as="geometry"/>
|
56
|
+
</mxCell>
|
57
|
+
<mxCell id="hn6-6" value="<b>Build outputs</b><br>Multiple @instance vars<br><i>single view model @vm</i>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333;shape=mxgraph.basic.cloud_rect" vertex="1" parent="node_root_hn6">
|
58
|
+
<mxGeometry x="10" y="270" width="200" height="120" as="geometry"/>
|
59
|
+
</mxCell>
|
60
|
+
<mxCell id="hn6-7" value="<b>Composite outputs</b><br>sort, direction, page_no, page_size<br><i>single order, page or list object</i>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333;shape=mxgraph.basic.cloud_rect" vertex="1" parent="node_root_hn6">
|
61
|
+
<mxGeometry x="230" y="270" width="200" height="120" as="geometry"/>
|
62
|
+
</mxCell>
|
63
|
+
</root>
|
64
|
+
</mxGraphModel>
|
65
|
+
</diagram>
|
66
|
+
<diagram id="yyO" name="Style-Plain">
|
67
|
+
<mxGraphModel dx="0" dy="0" background="#fafafa" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
|
68
|
+
<root>
|
69
|
+
<mxCell id="page_root_yyO" parent="yyO"/>
|
70
|
+
<mxCell id="node_root_yyO" parent="page_root_yyO"/>
|
71
|
+
<mxCell id="yyO-2" value="Data Sources (Documents)" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;fontSize=20;verticalAlign=top" vertex="1" parent="node_root_yyO">
|
72
|
+
<mxGeometry x="5" y="5" width="210" height="210" as="geometry"/>
|
73
|
+
</mxCell>
|
74
|
+
<mxCell id="yyO-3" value="schema.rb" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;shape=mxgraph.flowchart.database;strokeWidth=1" vertex="1" parent="node_root_yyO">
|
75
|
+
<mxGeometry x="250" y="90" width="160" height="40" as="geometry"/>
|
76
|
+
</mxCell>
|
77
|
+
<mxCell id="yyO-4" value="db_schema.json" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;shape=mxgraph.flowchart.database;strokeWidth=1" vertex="1" parent="node_root_yyO">
|
78
|
+
<mxGeometry x="470" y="90" width="160" height="40" as="geometry"/>
|
79
|
+
</mxCell>
|
80
|
+
<mxCell id="yyO-5" value="sql_count.json" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;shape=mxgraph.flowchart.database;strokeWidth=1" vertex="1" parent="node_root_yyO">
|
81
|
+
<mxGeometry x="690" y="90" width="160" height="40" as="geometry"/>
|
82
|
+
</mxCell>
|
83
|
+
<mxCell id="yyO-6" value="robocop.txt" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;shape=mxgraph.flowchart.database;strokeWidth=1" vertex="1" parent="node_root_yyO">
|
84
|
+
<mxGeometry x="910" y="90" width="160" height="40" as="geometry"/>
|
85
|
+
</mxCell>
|
86
|
+
<mxCell id="yyO-7" value="rubocop.json" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;shape=mxgraph.flowchart.database;strokeWidth=1" vertex="1" parent="node_root_yyO">
|
87
|
+
<mxGeometry x="1130" y="90" width="160" height="40" as="geometry"/>
|
88
|
+
</mxCell>
|
89
|
+
<mxCell id="yyO-8" value="domain_model.json" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;shape=mxgraph.flowchart.database;strokeWidth=1" vertex="1" parent="node_root_yyO">
|
90
|
+
<mxGeometry x="30" y="310" width="160" height="40" as="geometry"/>
|
91
|
+
</mxCell>
|
92
|
+
<mxCell id="yyO-9" value="data_context.json" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;shape=mxgraph.flowchart.database;strokeWidth=1" vertex="1" parent="node_root_yyO">
|
93
|
+
<mxGeometry x="250" y="310" width="160" height="40" as="geometry"/>
|
94
|
+
</mxCell>
|
95
|
+
<mxCell id="yyO-10" value="routes.json" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;shape=mxgraph.flowchart.database;strokeWidth=1" vertex="1" parent="node_root_yyO">
|
96
|
+
<mxGeometry x="470" y="310" width="160" height="40" as="geometry"/>
|
97
|
+
</mxCell>
|
98
|
+
<mxCell id="yyO-11" value="<p style="margin:0px;margin-left:4px;margin-bottom:4px;text-align:center"><b>Container</b></p><hr size="1"/>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica" vertex="1" parent="node_root_yyO">
|
99
|
+
<mxGeometry x="690" y="250" width="160" height="160" as="geometry"/>
|
100
|
+
</mxCell>
|
101
|
+
<mxCell id="yyO-12" value="<p style="margin:0px;margin-left:4px;margin-bottom:4px;text-align:center"><i>&lt;&lt; Subsystems &gt;&gt;</i></p><p style="margin:0px;margin-left:4px;margin-bottom:4px;text-align:center"><b>Block Processor</b></p><hr size="1"/><p style="margin:0px;margin-left:4px;margin-bottom:4px">block: proc</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">block_state: symbol</p><hr size="1"/><p style="margin:0px;margin-left:4px;margin-bottom:4px">depend_on()</p>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=#333333;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica" vertex="1" parent="node_root_yyO">
|
102
|
+
<mxGeometry x="910" y="250" width="160" height="160" as="geometry"/>
|
103
|
+
</mxCell>
|
104
|
+
</root>
|
105
|
+
</mxGraphModel>
|
106
|
+
</diagram>
|
43
107
|
</mxfile>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1287px" height="407px" viewBox="-0.5 -0.5 1287 407"><defs/><g><rect x="0" y="0" width="210" height="210" fill="#f5f5f5" stroke="#666666" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 208px; height: 1px; padding-top: 7px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 20px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Data Sources (Documents)</div></div></div></foreignObject><text x="105" y="27" fill="#333333" font-family="Helvetica" font-size="20px" text-anchor="middle">Data Sources (Documen...</text></switch></g><path d="M 245 118.33 L 245 91.67 C 245 87.98 280.82 85 325 85 C 369.18 85 405 87.98 405 91.67 L 405 118.33 C 405 122.02 369.18 125 325 125 C 280.82 125 245 122.02 245 118.33 Z" fill="#ffe6cc" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><path d="M 245 91.67 C 245 95.35 280.82 98.33 325 98.33 C 369.18 98.33 405 95.35 405 91.67" fill="none" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 105px; margin-left: 246px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">schema.rb</div></div></div></foreignObject><text x="325" y="109" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">schema.rb</text></switch></g><path d="M 465 118.33 L 465 91.67 C 465 87.98 500.82 85 545 85 C 589.18 85 625 87.98 625 91.67 L 625 118.33 C 625 122.02 589.18 125 545 125 C 500.82 125 465 122.02 465 118.33 Z" fill="#ffe6cc" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><path d="M 465 91.67 C 465 95.35 500.82 98.33 545 98.33 C 589.18 98.33 625 95.35 625 91.67" fill="none" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 105px; margin-left: 466px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">db_schema.json</div></div></div></foreignObject><text x="545" y="109" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">db_schema.json</text></switch></g><path d="M 685 118.33 L 685 91.67 C 685 87.98 720.82 85 765 85 C 809.18 85 845 87.98 845 91.67 L 845 118.33 C 845 122.02 809.18 125 765 125 C 720.82 125 685 122.02 685 118.33 Z" fill="#ffe6cc" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><path d="M 685 91.67 C 685 95.35 720.82 98.33 765 98.33 C 809.18 98.33 845 95.35 845 91.67" fill="none" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 105px; margin-left: 686px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">sql_count.json</div></div></div></foreignObject><text x="765" y="109" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">sql_count.json</text></switch></g><path d="M 905 118.33 L 905 91.67 C 905 87.98 940.82 85 985 85 C 1029.18 85 1065 87.98 1065 91.67 L 1065 118.33 C 1065 122.02 1029.18 125 985 125 C 940.82 125 905 122.02 905 118.33 Z" fill="#ffe6cc" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><path d="M 905 91.67 C 905 95.35 940.82 98.33 985 98.33 C 1029.18 98.33 1065 95.35 1065 91.67" fill="none" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 105px; margin-left: 906px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">robocop.txt</div></div></div></foreignObject><text x="985" y="109" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">robocop.txt</text></switch></g><path d="M 1125 118.33 L 1125 91.67 C 1125 87.98 1160.82 85 1205 85 C 1249.18 85 1285 87.98 1285 91.67 L 1285 118.33 C 1285 122.02 1249.18 125 1205 125 C 1160.82 125 1125 122.02 1125 118.33 Z" fill="#ffe6cc" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><path d="M 1125 91.67 C 1125 95.35 1160.82 98.33 1205 98.33 C 1249.18 98.33 1285 95.35 1285 91.67" fill="none" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 105px; margin-left: 1126px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">rubocop.json</div></div></div></foreignObject><text x="1205" y="109" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">rubocop.json</text></switch></g><path d="M 25 338.33 L 25 311.67 C 25 307.98 60.82 305 105 305 C 149.18 305 185 307.98 185 311.67 L 185 338.33 C 185 342.02 149.18 345 105 345 C 60.82 345 25 342.02 25 338.33 Z" fill="#ffe6cc" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><path d="M 25 311.67 C 25 315.35 60.82 318.33 105 318.33 C 149.18 318.33 185 315.35 185 311.67" fill="none" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 325px; margin-left: 26px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">domain_model.json</div></div></div></foreignObject><text x="105" y="329" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">domain_model.json</text></switch></g><path d="M 245 338.33 L 245 311.67 C 245 307.98 280.82 305 325 305 C 369.18 305 405 307.98 405 311.67 L 405 338.33 C 405 342.02 369.18 345 325 345 C 280.82 345 245 342.02 245 338.33 Z" fill="#ffe6cc" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><path d="M 245 311.67 C 245 315.35 280.82 318.33 325 318.33 C 369.18 318.33 405 315.35 405 311.67" fill="none" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 325px; margin-left: 246px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">data_context.json</div></div></div></foreignObject><text x="325" y="329" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">data_context.json</text></switch></g><path d="M 465 338.33 L 465 311.67 C 465 307.98 500.82 305 545 305 C 589.18 305 625 307.98 625 311.67 L 625 338.33 C 625 342.02 589.18 345 545 345 C 500.82 345 465 342.02 465 338.33 Z" fill="#ffe6cc" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><path d="M 465 311.67 C 465 315.35 500.82 318.33 545 318.33 C 589.18 318.33 625 315.35 625 311.67" fill="none" stroke="#d79b00" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 325px; margin-left: 466px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">routes.json</div></div></div></foreignObject><text x="545" y="329" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">routes.json</text></switch></g><rect x="685" y="245" width="160" height="160" fill="#ffe6cc" stroke="#d79b00" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 162px; height: 160px; padding-top: 245px; margin-left: 685px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: left; width: 160px; height: 160px; overflow: hidden;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; width: 100%; height: 100%; white-space: normal; overflow-wrap: normal;"><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px ; text-align: center"><b>Container</b></p><hr size="1" /></div></div></div></foreignObject><text x="685" y="329" fill="#333333" font-family="Helvetica" font-size="12px">Container</text></switch></g><rect x="905" y="245" width="160" height="160" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 162px; height: 160px; padding-top: 245px; margin-left: 905px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: left; width: 160px; height: 160px; overflow: hidden;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; width: 100%; height: 100%; white-space: normal; overflow-wrap: normal;"><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px ; text-align: center"><i><< Subsystems >></i></p><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px ; text-align: center"><b>Block Processor</b></p><hr size="1" /><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">block: proc</p><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">block_state: symbol</p><hr size="1" /><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">depend_on()</p></div></div></div></foreignObject><text x="905" y="329" fill="#333333" font-family="Helvetica" font-size="12px"><< Subsystems >>...</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="402px" height="162px" viewBox="-0.5 -0.5 402 162"><defs/><g><rect x="0" y="0" width="160" height="160" fill="#ffe6cc" stroke="#d79b00" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe flex-start; width: 162px; height: 160px; padding-top: 0px; margin-left: 0px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: left; width: 160px; height: 160px; overflow: hidden;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; width: 100%; height: 100%; white-space: normal; overflow-wrap: normal;"><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px ; text-align: center"><b>FatController</b></p><hr size="1" /><h5 style="margin: 0px ; margin-left: 4px ; margin-bottom: 4.8px">Param marshalling</h5><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">params[:date_from]</p><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">params[:date_to]</p><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">params[:sort] || "gross_sales"</p><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">params[:direction] || "desc"</p><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">params[:filter_str]</p><h5 style="margin: 0px ; margin-left: 4px ; margin-bottom: 4.8px">Dynamic query construction</h5><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">switch params[:filter_str]</p><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">invoice_date_query</p><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">ugly query</p><hr size="1" /><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">ActiveRecord::Base.connection.execute(query)</p><hr size="1" /><h5 style="margin: 0px ; margin-left: 4px ; margin-bottom: 4.8px">Build outputs</h5><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">@net_sales_total</p><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">@vat_total</p><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">@gross_sales_total</p><p style="margin: 0px ; margin-left: 4px ; margin-bottom: 4px">@document_data</p></div></div></div></foreignObject><text x="0" y="84" fill="#333333" font-family="Helvetica" font-size="12px">FatController...</text></switch></g><ellipse cx="300" cy="80" rx="100" ry="60" fill="#ffe6cc" stroke="#d79b00" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 198px; height: 1px; padding-top: 80px; margin-left: 201px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"><b>paramater marshalling</b><br />reading the params[] object<br />setting sane defaults<br />do not alter and reuse params[]</div></div></div></foreignObject><text x="300" y="84" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">paramater marshalling...</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
|