@senad-d/drawme 0.1.5 → 0.1.8

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.
@@ -1,207 +1,215 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <mxfile host="drawio" version="26.0.9">
3
3
  <diagram id="git-graph-example" name="Git Graph">
4
- <mxGraphModel dx="1800" dy="920" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1920" pageHeight="940" math="0" shadow="0" background="#FFFFFF">
4
+ <mxGraphModel dx="1800" dy="920" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1840" pageHeight="950" math="0" shadow="0" background="#FFFFFF">
5
5
  <root>
6
- <mxCell id="0" />
7
- <mxCell id="1" parent="0" />
6
+ <mxCell id="0"/>
7
+ <mxCell id="1" parent="0"/>
8
8
  <mxCell id="2" value="Git Graph Example" style="text;html=1;align=left;verticalAlign=middle;fontSize=32;fontStyle=1;fontColor=#172B4D;" vertex="1" parent="1">
9
- <mxGeometry x="40" y="20" width="900" height="50" as="geometry" />
9
+ <mxGeometry x="40" y="40" width="900" height="50" as="geometry"/>
10
10
  </mxCell>
11
11
  <mxCell id="3" value="A documentation refresh with focused edits, updated references, and regenerated examples" style="text;html=1;align=left;verticalAlign=middle;fontSize=17;fontColor=#536273;" vertex="1" parent="1">
12
- <mxGeometry x="40" y="70" width="1250" height="40" as="geometry" />
12
+ <mxGeometry x="40" y="90" width="1250" height="40" as="geometry"/>
13
13
  </mxCell>
14
14
  <mxCell id="4" value="TIME FLOWS LEFT → RIGHT" style="rounded=1;arcSize=20;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=13;fontStyle=1;fontColor=#172B4D;fillColor=#F4F1EA;strokeColor=#A8B0BA;strokeWidth=2;" vertex="1" parent="1">
15
- <mxGeometry x="1450" y="35" width="350" height="50" as="geometry" />
15
+ <mxGeometry x="1450" y="55" width="350" height="50" as="geometry"/>
16
16
  </mxCell>
17
17
  <mxCell id="5" value="" style="rounded=1;arcSize=8;container=1;pointerEvents=0;html=1;fillColor=#FAFAFC;strokeColor=#C7CED6;strokeWidth=2;" vertex="1" parent="1">
18
- <mxGeometry x="40" y="130" width="1760" height="620" as="geometry" />
18
+ <mxGeometry x="40" y="150" width="1760" height="620" as="geometry"/>
19
19
  </mxCell>
20
20
  <mxCell id="6" value="examples/refresh" style="rounded=1;arcSize=20;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#FFFFFF;fillColor=#E74C3C;strokeColor=#B83227;strokeWidth=2;" vertex="1" parent="5">
21
- <mxGeometry x="40" y="30" width="180" height="35" as="geometry" />
21
+ <mxGeometry x="40" y="30" width="180" height="35" as="geometry"/>
22
22
  </mxCell>
23
23
  <mxCell id="7" value="main" style="rounded=1;arcSize=20;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#FFFFFF;fillColor=#172B4D;strokeColor=#0D1A2E;strokeWidth=2;" vertex="1" parent="5">
24
- <mxGeometry x="40" y="180" width="180" height="35" as="geometry" />
24
+ <mxGeometry x="40" y="180" width="180" height="35" as="geometry"/>
25
25
  </mxCell>
26
26
  <mxCell id="8" value="docs/cleanup" style="rounded=1;arcSize=20;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#FFFFFF;fillColor=#00A6A6;strokeColor=#007A7A;strokeWidth=2;" vertex="1" parent="5">
27
- <mxGeometry x="40" y="340" width="180" height="35" as="geometry" />
27
+ <mxGeometry x="40" y="340" width="180" height="35" as="geometry"/>
28
28
  </mxCell>
29
29
  <mxCell id="9" value="references/tools" style="rounded=1;arcSize=20;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#FFFFFF;fillColor=#8E44AD;strokeColor=#663080;strokeWidth=2;" vertex="1" parent="5">
30
- <mxGeometry x="40" y="500" width="180" height="35" as="geometry" />
30
+ <mxGeometry x="40" y="500" width="180" height="35" as="geometry"/>
31
31
  </mxCell>
32
32
  <mxCell id="10" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#172B4D;strokeWidth=8;" edge="1" parent="5" source="25" target="26">
33
- <mxGeometry relative="1" as="geometry" />
33
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="330" y="230"/></Array></mxGeometry>
34
34
  </mxCell>
35
35
  <mxCell id="11" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#172B4D;strokeWidth=8;" edge="1" parent="5" source="26" target="27">
36
- <mxGeometry relative="1" as="geometry" />
36
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="580" y="230"/></Array></mxGeometry>
37
37
  </mxCell>
38
38
  <mxCell id="12" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#172B4D;strokeWidth=8;" edge="1" parent="5" source="27" target="28">
39
- <mxGeometry relative="1" as="geometry" />
39
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="900" y="230"/></Array></mxGeometry>
40
40
  </mxCell>
41
41
  <mxCell id="13" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#172B4D;strokeWidth=8;" edge="1" parent="5" source="28" target="30">
42
- <mxGeometry relative="1" as="geometry" />
42
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1330" y="230"/></Array></mxGeometry>
43
43
  </mxCell>
44
44
  <mxCell id="14" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#00A6A6;strokeWidth=8;" edge="1" parent="5" source="26" target="32">
45
- <mxGeometry relative="1" as="geometry" />
45
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="520" y="310"/></Array></mxGeometry>
46
46
  </mxCell>
47
47
  <mxCell id="15" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#00A6A6;strokeWidth=8;" edge="1" parent="5" source="32" target="33">
48
- <mxGeometry relative="1" as="geometry" />
48
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="690" y="390"/></Array></mxGeometry>
49
49
  </mxCell>
50
50
  <mxCell id="16" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#00A6A6;strokeWidth=8;" edge="1" parent="5" source="33" target="34">
51
- <mxGeometry relative="1" as="geometry" />
51
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="970" y="390"/></Array></mxGeometry>
52
52
  </mxCell>
53
53
  <mxCell id="17" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#00A6A6;strokeWidth=8;" edge="1" parent="5" source="34" target="36">
54
- <mxGeometry relative="1" as="geometry" />
54
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1260" y="390"/></Array></mxGeometry>
55
55
  </mxCell>
56
56
  <mxCell id="18" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#00A6A6;strokeWidth=8;" edge="1" parent="5" source="36" target="30">
57
- <mxGeometry relative="1" as="geometry" />
57
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1470" y="310"/></Array></mxGeometry>
58
58
  </mxCell>
59
59
  <mxCell id="19" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#8E44AD;strokeWidth=8;" edge="1" parent="5" source="32" target="37">
60
- <mxGeometry relative="1" as="geometry" />
60
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="690" y="470"/></Array></mxGeometry>
61
61
  </mxCell>
62
62
  <mxCell id="20" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#8E44AD;strokeWidth=8;" edge="1" parent="5" source="37" target="38">
63
- <mxGeometry relative="1" as="geometry" />
63
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="860" y="550"/></Array></mxGeometry>
64
64
  </mxCell>
65
65
  <mxCell id="21" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#8E44AD;strokeWidth=8;" edge="1" parent="5" source="38" target="39">
66
- <mxGeometry relative="1" as="geometry" />
66
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1010" y="550"/></Array></mxGeometry>
67
67
  </mxCell>
68
68
  <mxCell id="22" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#8E44AD;strokeWidth=8;" edge="1" parent="5" source="39" target="34">
69
- <mxGeometry relative="1" as="geometry" />
69
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1120" y="470"/></Array></mxGeometry>
70
70
  </mxCell>
71
71
  <mxCell id="23" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#E74C3C;strokeWidth=8;" edge="1" parent="5" source="27" target="40">
72
- <mxGeometry relative="1" as="geometry" />
72
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="810" y="155"/></Array></mxGeometry>
73
73
  </mxCell>
74
74
  <mxCell id="24" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startArrow=none;strokeColor=#E74C3C;strokeWidth=8;" edge="1" parent="5" source="40" target="28">
75
- <mxGeometry relative="1" as="geometry" />
75
+ <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="990" y="155"/></Array></mxGeometry>
76
76
  </mxCell>
77
77
  <mxCell id="25" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#172B4D;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
78
- <mxGeometry x="207" y="217" width="26" height="26" as="geometry" />
78
+ <mxGeometry x="207" y="217" width="26" height="26" as="geometry"/>
79
79
  </mxCell>
80
80
  <mxCell id="26" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#172B4D;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
81
- <mxGeometry x="427" y="217" width="26" height="26" as="geometry" />
81
+ <mxGeometry x="427" y="217" width="26" height="26" as="geometry"/>
82
82
  </mxCell>
83
83
  <mxCell id="27" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#172B4D;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
84
- <mxGeometry x="707" y="217" width="26" height="26" as="geometry" />
84
+ <mxGeometry x="707" y="217" width="26" height="26" as="geometry"/>
85
85
  </mxCell>
86
86
  <mxCell id="28" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#172B4D;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
87
- <mxGeometry x="1061" y="211" width="38" height="38" as="geometry" />
87
+ <mxGeometry x="1061" y="211" width="38" height="38" as="geometry"/>
88
88
  </mxCell>
89
89
  <mxCell id="29" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#172B4D;strokeWidth=3;perimeter=ellipsePerimeter;" vertex="1" parent="28">
90
- <mxGeometry x="10" y="10" width="18" height="18" as="geometry" />
90
+ <mxGeometry x="0.5" y="0.5" width="18" height="18" relative="1" as="geometry">
91
+ <mxPoint x="-9" y="-9" as="offset"/>
92
+ </mxGeometry>
91
93
  </mxCell>
92
94
  <mxCell id="30" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#172B4D;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
93
- <mxGeometry x="1561" y="211" width="38" height="38" as="geometry" />
95
+ <mxGeometry x="1561" y="211" width="38" height="38" as="geometry"/>
94
96
  </mxCell>
95
97
  <mxCell id="31" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#172B4D;strokeWidth=3;perimeter=ellipsePerimeter;" vertex="1" parent="30">
96
- <mxGeometry x="10" y="10" width="18" height="18" as="geometry" />
98
+ <mxGeometry x="0.5" y="0.5" width="18" height="18" relative="1" as="geometry">
99
+ <mxPoint x="-9" y="-9" as="offset"/>
100
+ </mxGeometry>
97
101
  </mxCell>
98
102
  <mxCell id="32" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#00A6A6;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
99
- <mxGeometry x="587" y="377" width="26" height="26" as="geometry" />
103
+ <mxGeometry x="587" y="377" width="26" height="26" as="geometry"/>
100
104
  </mxCell>
101
105
  <mxCell id="33" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#00A6A6;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
102
- <mxGeometry x="767" y="377" width="26" height="26" as="geometry" />
106
+ <mxGeometry x="767" y="377" width="26" height="26" as="geometry"/>
103
107
  </mxCell>
104
108
  <mxCell id="34" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#00A6A6;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
105
- <mxGeometry x="1141" y="371" width="38" height="38" as="geometry" />
109
+ <mxGeometry x="1141" y="371" width="38" height="38" as="geometry"/>
106
110
  </mxCell>
107
111
  <mxCell id="35" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#00A6A6;strokeWidth=3;perimeter=ellipsePerimeter;" vertex="1" parent="34">
108
- <mxGeometry x="10" y="10" width="18" height="18" as="geometry" />
112
+ <mxGeometry x="0.5" y="0.5" width="18" height="18" relative="1" as="geometry">
113
+ <mxPoint x="-9" y="-9" as="offset"/>
114
+ </mxGeometry>
109
115
  </mxCell>
110
116
  <mxCell id="36" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#00A6A6;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
111
- <mxGeometry x="1347" y="377" width="26" height="26" as="geometry" />
117
+ <mxGeometry x="1347" y="377" width="26" height="26" as="geometry"/>
112
118
  </mxCell>
113
119
  <mxCell id="37" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#8E44AD;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
114
- <mxGeometry x="767" y="537" width="26" height="26" as="geometry" />
120
+ <mxGeometry x="767" y="537" width="26" height="26" as="geometry"/>
115
121
  </mxCell>
116
122
  <mxCell id="38" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#8E44AD;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
117
- <mxGeometry x="927" y="537" width="26" height="26" as="geometry" />
123
+ <mxGeometry x="927" y="537" width="26" height="26" as="geometry"/>
118
124
  </mxCell>
119
125
  <mxCell id="39" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#8E44AD;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
120
- <mxGeometry x="1067" y="537" width="26" height="26" as="geometry" />
126
+ <mxGeometry x="1067" y="537" width="26" height="26" as="geometry"/>
121
127
  </mxCell>
122
128
  <mxCell id="40" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#E74C3C;strokeWidth=5;perimeter=ellipsePerimeter;" vertex="1" parent="5">
123
- <mxGeometry x="887" y="67" width="26" height="26" as="geometry" />
129
+ <mxGeometry x="887" y="67" width="26" height="26" as="geometry"/>
124
130
  </mxCell>
125
131
  <mxCell id="41" value="&lt;b&gt;a1b2c3&lt;/b&gt;&lt;br&gt;Baseline docs" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
126
- <mxGeometry x="150" y="260" width="140" height="45" as="geometry" />
132
+ <mxGeometry x="150" y="260" width="140" height="45" as="geometry"/>
127
133
  </mxCell>
128
134
  <mxCell id="42" value="&lt;b&gt;d4e5f6&lt;/b&gt;&lt;br&gt;Current v0.1.2" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
129
- <mxGeometry x="370" y="155" width="140" height="45" as="geometry" />
135
+ <mxGeometry x="370" y="155" width="140" height="45" as="geometry"/>
130
136
  </mxCell>
131
137
  <mxCell id="43" value="&lt;b&gt;71ac90&lt;/b&gt;&lt;br&gt;Plan cleanup" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
132
- <mxGeometry x="650" y="155" width="140" height="45" as="geometry" />
138
+ <mxGeometry x="650" y="260" width="140" height="45" as="geometry"/>
133
139
  </mxCell>
134
140
  <mxCell id="44" value="&lt;b&gt;b77c12&lt;/b&gt;&lt;br&gt;Merge examples" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
135
- <mxGeometry x="1000" y="150" width="160" height="45" as="geometry" />
141
+ <mxGeometry x="1000" y="260" width="160" height="45" as="geometry"/>
136
142
  </mxCell>
137
143
  <mxCell id="45" value="&lt;b&gt;c91e44&lt;/b&gt;&lt;br&gt;Validated docs" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
138
- <mxGeometry x="1500" y="150" width="160" height="45" as="geometry" />
144
+ <mxGeometry x="1500" y="150" width="160" height="45" as="geometry"/>
139
145
  </mxCell>
140
146
  <mxCell id="46" value="&lt;b&gt;18ad20&lt;/b&gt;&lt;br&gt;Refocus README" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
141
- <mxGeometry x="530" y="420" width="140" height="45" as="geometry" />
147
+ <mxGeometry x="430" y="420" width="140" height="45" as="geometry"/>
142
148
  </mxCell>
143
149
  <mxCell id="47" value="&lt;b&gt;42be11&lt;/b&gt;&lt;br&gt;Update security" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
144
- <mxGeometry x="710" y="420" width="140" height="45" as="geometry" />
150
+ <mxGeometry x="710" y="420" width="140" height="45" as="geometry"/>
145
151
  </mxCell>
146
152
  <mxCell id="48" value="&lt;b&gt;9dd0a8&lt;/b&gt;&lt;br&gt;Merge references" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
147
- <mxGeometry x="1080" y="420" width="160" height="45" as="geometry" />
153
+ <mxGeometry x="1080" y="315" width="160" height="45" as="geometry"/>
148
154
  </mxCell>
149
155
  <mxCell id="49" value="&lt;b&gt;a30f14&lt;/b&gt;&lt;br&gt;Align metadata" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
150
- <mxGeometry x="1290" y="420" width="140" height="45" as="geometry" />
156
+ <mxGeometry x="1290" y="420" width="140" height="45" as="geometry"/>
151
157
  </mxCell>
152
158
  <mxCell id="50" value="&lt;b&gt;33fa80&lt;/b&gt;&lt;br&gt;Remove old paths" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
153
- <mxGeometry x="710" y="570" width="140" height="45" as="geometry" />
159
+ <mxGeometry x="710" y="570" width="140" height="45" as="geometry"/>
154
160
  </mxCell>
155
161
  <mxCell id="51" value="&lt;b&gt;6cb821&lt;/b&gt;&lt;br&gt;Use DrawMe tools" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
156
- <mxGeometry x="870" y="570" width="140" height="45" as="geometry" />
162
+ <mxGeometry x="870" y="570" width="140" height="45" as="geometry"/>
157
163
  </mxCell>
158
164
  <mxCell id="52" value="&lt;b&gt;70ee91&lt;/b&gt;&lt;br&gt;Refresh references" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
159
- <mxGeometry x="1010" y="570" width="140" height="45" as="geometry" />
165
+ <mxGeometry x="1010" y="570" width="140" height="45" as="geometry"/>
160
166
  </mxCell>
161
167
  <mxCell id="53" value="&lt;b&gt;f00d42&lt;/b&gt;&lt;br&gt;Refresh examples" style="text;html=1;align=center;verticalAlign=middle;fontSize=12;fontColor=#263746;" vertex="1" parent="5">
162
- <mxGeometry x="830" y="100" width="140" height="45" as="geometry" />
168
+ <mxGeometry x="830" y="10" width="140" height="45" as="geometry"/>
163
169
  </mxCell>
164
170
  <mxCell id="54" value="baseline: v0.1.2" style="rounded=1;arcSize=20;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=11;fontStyle=1;fontColor=#2D5E36;fillColor=#D5E8D4;strokeColor=#82B366;" vertex="1" parent="5">
165
- <mxGeometry x="385" y="100" width="110" height="30" as="geometry" />
171
+ <mxGeometry x="385" y="100" width="110" height="30" as="geometry"/>
166
172
  </mxCell>
167
173
  <mxCell id="55" value="HEAD → main • docs ready" style="rounded=1;arcSize=20;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=11;fontStyle=1;fontColor=#2D5E36;fillColor=#D5E8D4;strokeColor=#82B366;" vertex="1" parent="5">
168
- <mxGeometry x="1480" y="100" width="200" height="30" as="geometry" />
174
+ <mxGeometry x="1480" y="100" width="200" height="30" as="geometry"/>
169
175
  </mxCell>
170
176
  <mxCell id="56" value="Focused documentation branches reconnect at double-ring merge commits." style="rounded=1;arcSize=10;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=13;fontColor=#405466;fillColor=#FFFFFF;strokeColor=#C7CED6;dashed=1;" vertex="1" parent="5">
171
- <mxGeometry x="1030" y="30" width="570" height="45" as="geometry" />
177
+ <mxGeometry x="1030" y="30" width="570" height="45" as="geometry"/>
172
178
  </mxCell>
173
179
  <mxCell id="57" value="LEGEND" style="rounded=1;arcSize=8;container=1;pointerEvents=0;html=1;verticalAlign=top;align=left;spacingTop=10;spacingLeft=15;fontSize=14;fontStyle=1;fontColor=#172B4D;fillColor=#F7F8FA;strokeColor=#C7CED6;strokeWidth=2;" vertex="1" parent="1">
174
- <mxGeometry x="40" y="780" width="1760" height="110" as="geometry" />
180
+ <mxGeometry x="40" y="800" width="1760" height="110" as="geometry"/>
175
181
  </mxCell>
176
182
  <mxCell id="58" value="main" style="rounded=1;arcSize=20;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#FFFFFF;fillColor=#172B4D;strokeColor=#0D1A2E;" vertex="1" parent="57">
177
- <mxGeometry x="80" y="50" width="180" height="35" as="geometry" />
183
+ <mxGeometry x="80" y="50" width="180" height="35" as="geometry"/>
178
184
  </mxCell>
179
185
  <mxCell id="59" value="docs" style="rounded=1;arcSize=20;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#FFFFFF;fillColor=#00A6A6;strokeColor=#007A7A;" vertex="1" parent="57">
180
- <mxGeometry x="300" y="50" width="180" height="35" as="geometry" />
186
+ <mxGeometry x="300" y="50" width="180" height="35" as="geometry"/>
181
187
  </mxCell>
182
188
  <mxCell id="60" value="references" style="rounded=1;arcSize=20;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#FFFFFF;fillColor=#8E44AD;strokeColor=#663080;" vertex="1" parent="57">
183
- <mxGeometry x="520" y="50" width="180" height="35" as="geometry" />
189
+ <mxGeometry x="520" y="50" width="180" height="35" as="geometry"/>
184
190
  </mxCell>
185
191
  <mxCell id="61" value="examples" style="rounded=1;arcSize=20;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=12;fontStyle=1;fontColor=#FFFFFF;fillColor=#E74C3C;strokeColor=#B83227;" vertex="1" parent="57">
186
- <mxGeometry x="740" y="50" width="180" height="35" as="geometry" />
192
+ <mxGeometry x="740" y="50" width="180" height="35" as="geometry"/>
187
193
  </mxCell>
188
194
  <mxCell id="62" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#172B4D;strokeWidth=5;" vertex="1" parent="57">
189
- <mxGeometry x="1040" y="54" width="28" height="28" as="geometry" />
195
+ <mxGeometry x="1040" y="54" width="28" height="28" as="geometry"/>
190
196
  </mxCell>
191
197
  <mxCell id="63" value="Commit" style="text;html=1;align=left;verticalAlign=middle;fontSize=13;fontColor=#263746;" vertex="1" parent="57">
192
- <mxGeometry x="1080" y="50" width="90" height="35" as="geometry" />
198
+ <mxGeometry x="1080" y="50" width="90" height="35" as="geometry"/>
193
199
  </mxCell>
194
200
  <mxCell id="64" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#172B4D;strokeWidth=5;" vertex="1" parent="57">
195
- <mxGeometry x="1230" y="48" width="40" height="40" as="geometry" />
201
+ <mxGeometry x="1230" y="48" width="40" height="40" as="geometry"/>
196
202
  </mxCell>
197
203
  <mxCell id="65" value="" style="ellipse;aspect=fixed;html=1;fillColor=#FFFFFF;strokeColor=#172B4D;strokeWidth=3;" vertex="1" parent="64">
198
- <mxGeometry x="10" y="10" width="20" height="20" as="geometry" />
204
+ <mxGeometry x="0.5" y="0.5" width="20" height="20" relative="1" as="geometry">
205
+ <mxPoint x="-10" y="-10" as="offset"/>
206
+ </mxGeometry>
199
207
  </mxCell>
200
208
  <mxCell id="66" value="Merge commit" style="text;html=1;align=left;verticalAlign=middle;fontSize=13;fontColor=#263746;" vertex="1" parent="57">
201
- <mxGeometry x="1285" y="50" width="130" height="35" as="geometry" />
209
+ <mxGeometry x="1285" y="50" width="130" height="35" as="geometry"/>
202
210
  </mxCell>
203
211
  <mxCell id="67" value="Green pills mark the baseline and refreshed main branch." style="text;html=1;align=left;verticalAlign=middle;fontSize=12;fontColor=#667583;fontStyle=2;" vertex="1" parent="57">
204
- <mxGeometry x="1440" y="45" width="260" height="45" as="geometry" />
212
+ <mxGeometry x="1440" y="45" width="260" height="45" as="geometry"/>
205
213
  </mxCell>
206
214
  </root>
207
215
  </mxGraphModel>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@senad-d/drawme",
3
- "version": "0.1.5",
3
+ "version": "0.1.8",
4
4
  "description": "Pi extension for authoring, validating, and exporting editable draw.io diagrams from natural-language descriptions.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -73,7 +73,7 @@
73
73
  "typebox": "*"
74
74
  },
75
75
  "devDependencies": {
76
- "@earendil-works/pi-coding-agent": "^0.75.3",
76
+ "@earendil-works/pi-coding-agent": "^0.84.4",
77
77
  "@eslint/js": "^10.0.1",
78
78
  "@types/node": "^26.1.2",
79
79
  "@vitest/coverage-v8": "^4.1.10",
package/src/drawio.ts CHANGED
@@ -163,6 +163,12 @@ export interface ExportResult {
163
163
  version?: string;
164
164
  /** True if the truncated `-e` PNG IEND chunk was repaired after export. */
165
165
  repaired: boolean;
166
+ /**
167
+ * True when this preview replaced an earlier tracked preview for the same
168
+ * source — including a re-export over the same output path, where nothing is
169
+ * removed from disk. Always false for final exports.
170
+ */
171
+ replacedPreview: boolean;
166
172
  /** Superseded preview artifacts removed after this successful preview or final export. */
167
173
  removedPreviews: string[];
168
174
  /** Best-effort preview cleanup failures; the export itself still succeeded. */
@@ -186,6 +192,8 @@ function sourceKey(input: string): string {
186
192
  interface PreviewCleanup {
187
193
  removed: string[];
188
194
  warnings: string[];
195
+ /** A tracked preview for the same source existed before this export (even at the same path). */
196
+ replaced: boolean;
189
197
  }
190
198
 
191
199
  /**
@@ -215,13 +223,13 @@ async function replaceTrackedPreview(input: string, latestOutput: string): Promi
215
223
  }
216
224
 
217
225
  previewOutputs.set(key, retained);
218
- return { removed, warnings };
226
+ return { removed, warnings, replaced: previous.size > 0 };
219
227
  }
220
228
 
221
229
  async function removeTrackedPreviews(input: string, finalOutput: string): Promise<PreviewCleanup> {
222
230
  const key = sourceKey(input);
223
231
  const previews = previewOutputs.get(key);
224
- if (!previews) return { removed: [], warnings: [] };
232
+ if (!previews) return { removed: [], warnings: [], replaced: false };
225
233
 
226
234
  previewOutputs.delete(key);
227
235
  const finalPath = resolve(finalOutput);
@@ -243,7 +251,7 @@ async function removeTrackedPreviews(input: string, finalOutput: string): Promis
243
251
  }
244
252
 
245
253
  if (retry.size > 0) previewOutputs.set(key, retry);
246
- return { removed, warnings };
254
+ return { removed, warnings, replaced: false };
247
255
  }
248
256
 
249
257
  async function withSourceExportQueue<T>(input: string, action: () => Promise<T>): Promise<T> {
@@ -331,6 +339,7 @@ async function exportDiagramQueued(opts: ExportOptions): Promise<ExportResult> {
331
339
  binary: info.binary,
332
340
  version: info.version,
333
341
  repaired,
342
+ replacedPreview: cleanup.replaced,
334
343
  removedPreviews: cleanup.removed,
335
344
  previewCleanupWarnings: cleanup.warnings,
336
345
  command,
package/src/geometry.ts CHANGED
@@ -72,12 +72,10 @@ export function styleNum(style: string | null, key: string): number | undefined
72
72
  return undefined;
73
73
  }
74
74
 
75
- /** Absolute (x, y, w, h) of a non-relative vertex, summing parent-container offsets. */
76
- export function absRect(cell: DomEl, byId: ById): Rect | null {
77
- const r = rect(cell);
78
- if (r === null || hasInvalidNumber(r)) return null;
79
- let [x, y] = r;
80
- const [, , w, h] = r;
75
+ /** Accumulated origin of a cell's ancestor containers — the offset from parent-relative to absolute coordinates. */
76
+ export function parentOrigin(cell: DomEl, byId: ById): Point {
77
+ let dx = 0;
78
+ let dy = 0;
81
79
  let parent = attr(cell, "parent");
82
80
  const seen = new Set<string>();
83
81
  while (parent && byId.has(parent) && !seen.has(parent)) {
@@ -86,13 +84,21 @@ export function absRect(cell: DomEl, byId: ById): Rect | null {
86
84
  if (p.getAttribute("vertex") === "1" && !geometryIsRelative(p)) {
87
85
  const pr = rect(p);
88
86
  if (pr && !hasInvalidNumber(pr)) {
89
- x += pr[0];
90
- y += pr[1];
87
+ dx += pr[0];
88
+ dy += pr[1];
91
89
  }
92
90
  }
93
91
  parent = attr(p, "parent");
94
92
  }
95
- return [x, y, w, h];
93
+ return [dx, dy];
94
+ }
95
+
96
+ /** Absolute (x, y, w, h) of a non-relative vertex, summing parent-container offsets. */
97
+ export function absRect(cell: DomEl, byId: ById): Rect | null {
98
+ const r = rect(cell);
99
+ if (r === null || hasInvalidNumber(r)) return null;
100
+ const [ox, oy] = parentOrigin(cell, byId);
101
+ return [r[0] + ox, r[1] + oy, r[2], r[3]];
96
102
  }
97
103
 
98
104
  /** Absolute point where `edge` meets its source/target vertex (honours exit/entry). */
@@ -122,17 +128,19 @@ export function edgeWaypoints(edge: DomEl): Point[] {
122
128
  return points;
123
129
  }
124
130
 
125
- /** Absolute polyline for a waypointed edge, or null when auto-routed / unresolved. */
131
+ /** Absolute polyline for a waypointed edge, or null when auto-routed / unresolved. Waypoints are stored relative to the edge's parent. */
126
132
  export function edgeRoute(edge: DomEl, byId: ById): Point[] | null {
127
133
  const waypoints = edgeWaypoints(edge);
128
134
  if (waypoints.length === 0) return null;
129
135
  const source = endpoint(edge, "source", byId);
130
136
  const target = endpoint(edge, "target", byId);
131
137
  if (source === null || target === null) return null;
132
- return [source, ...waypoints, target];
138
+ const [ox, oy] = parentOrigin(edge, byId);
139
+ return [source, ...waypoints.map(([x, y]): Point => [x + ox, y + oy]), target];
133
140
  }
134
141
 
135
- export function routeMidpoint(points: Point[]): Point {
142
+ /** Point at `fraction` (0..1) of the route's arc length. */
143
+ export function routePointAt(points: Point[], fraction: number): Point {
136
144
  const lengths: number[] = [];
137
145
  let total = 0;
138
146
  for (let i = 0; i < points.length - 1; i++) {
@@ -140,7 +148,7 @@ export function routeMidpoint(points: Point[]): Point {
140
148
  lengths.push(length);
141
149
  total += length;
142
150
  }
143
- let remaining = total / 2;
151
+ let remaining = total * fraction;
144
152
  for (let i = 0; i < lengths.length; i++) {
145
153
  if (remaining <= lengths[i]) {
146
154
  const fraction = lengths[i] === 0 ? 0 : remaining / lengths[i];
@@ -154,6 +162,10 @@ export function routeMidpoint(points: Point[]): Point {
154
162
  return points.at(-1) ?? [0, 0];
155
163
  }
156
164
 
165
+ export function routeMidpoint(points: Point[]): Point {
166
+ return routePointAt(points, 0.5);
167
+ }
168
+
157
169
  /** Conservative box for a separately sized label on an explicitly routed edge. */
158
170
  export function explicitEdgeLabelRect(cell: DomEl, byId: ById): Rect | null {
159
171
  if (!isEdgeLabel(cell)) return null;
@@ -253,7 +265,11 @@ export function contentBounds(cells: DomEl[], ids: ById): ContentBounds | null {
253
265
  if (!isVisible(cell, ids)) continue;
254
266
  const box = contentRect(cell, ids);
255
267
  if (box && !hasInvalidNumber(box)) bounds = addRectToBounds(bounds, box);
256
- for (const point of contentWaypoints(cell)) bounds = addPointToBounds(bounds, point);
268
+ const waypoints = contentWaypoints(cell);
269
+ if (waypoints.length > 0) {
270
+ const [ox, oy] = parentOrigin(cell, ids);
271
+ for (const [x, y] of waypoints) bounds = addPointToBounds(bounds, [x + ox, y + oy]);
272
+ }
257
273
  }
258
274
  return bounds;
259
275
  }
package/src/index.ts CHANGED
@@ -106,7 +106,7 @@ export default function drawme(pi: ExtensionAPI): void {
106
106
  name: "drawio_export",
107
107
  label: "draw.io: export",
108
108
  description:
109
- "Export a .drawio file to PNG/SVG/PDF/JPG via the draw.io CLI. A successful mode:'preview' PNG is clean, width-capped, and never embedded; when the current model can view images it is attached to the tool result for visual review, and the result text always states whether it was attached. Each successful preview removes the prior preview artifact for the same source, leaving only the latest file. mode:'final' creates the deliverable (embedded editable output; truncated PNG IEND is repaired) and removes the remaining preview.",
109
+ "Export a .drawio file to PNG/SVG/PDF/JPG via the draw.io CLI. A successful mode:'preview' PNG is clean, width-capped, and never embedded; when the current model can view images it is attached to the tool result for visual review, and the result text always states whether it was attached. Each successful preview removes the prior preview artifact for the same source, leaving only the latest file; a replacement preview asks for a fixed/not-fixed/regressed verdict against the prior image. mode:'final' creates the deliverable (embedded editable output; truncated PNG IEND is repaired) and removes the remaining preview.",
110
110
  promptSnippet:
111
111
  "Export a .drawio to PNG/SVG/PDF/JPG (mode:'preview' attaches the review image when the current model can view images — the result text says so — and removes the previous preview file; mode:'final' creates the deliverable and cleans the remaining preview).",
112
112
  parameters: exportParams,
@@ -123,11 +123,17 @@ export default function drawme(pi: ExtensionAPI): void {
123
123
  const versionSuffix = r.version ? ` (${r.version})` : "";
124
124
  lines.push(`binary=${r.binary}${versionSuffix}`);
125
125
  if (r.mode === "preview" && r.format === "png") {
126
- lines.push(
127
- canView
128
- ? "Preview image attached below. Critique it category by category before editing the source."
129
- : "Preview image NOT attached: the current model cannot view images. Do not describe or judge the render; review structurally with drawio_validate and drawio_explain, and share the exported path so the user can view it.",
130
- );
126
+ if (!canView) {
127
+ lines.push(
128
+ "Preview image NOT attached: the current model cannot view images. Do not describe or judge the render; review structurally with drawio_validate and drawio_explain, and share the exported path so the user can view it.",
129
+ );
130
+ } else if (r.replacedPreview) {
131
+ lines.push(
132
+ "Preview image attached below. It replaces the previous preview, whose image is still visible earlier in this conversation: compare the two at each finding you addressed and record a verdict — fixed, not fixed, or regressed — before editing further.",
133
+ );
134
+ } else {
135
+ lines.push("Preview image attached below. Critique it against the current review pass's checklist before editing the source.");
136
+ }
131
137
  }
132
138
  return exportResult(lines.join("\n"), r, canView);
133
139
  } catch (e) {
@@ -140,7 +146,7 @@ export default function drawme(pi: ExtensionAPI): void {
140
146
  name: "drawio_validate",
141
147
  label: "draw.io: validate",
142
148
  description:
143
- "Structurally lint a .drawio file: errors for dangling endpoints, duplicate/reserved ids, broken parents, and missing/malformed vertex or edge geometry; actionable warnings for overlap, page/containment bounds, conservative readability defects, and explicit routes through shapes or across edges. Reports observations and a readability score. Deterministic and does not launch draw.io. Compressed pages cannot be linted and are reported as skipped. Fix boundary/margin/empty-space warnings (and make room for overlapping elements) by spreading elements and running drawio_fit_canvas — never by shrinking content. Run after every source edit and before exporting.",
149
+ "Structurally lint a .drawio file: errors for dangling endpoints, duplicate/reserved ids, broken parents, and missing/malformed vertex or edge geometry; actionable warnings for overlap, page/containment bounds, conservative readability defects, explicit routes through shapes or across edges, pinned anchors facing away from the next route direction, edge labels likely overlapping shapes, labels sitting on their own line, and auto-routed edges (no waypoints) whose routing cannot be checked. Auto-routed edges whose direct path pierces a shape are called out as preview-review observations. Give every edge facing-side anchors and explicit waypoints so deterministic route checks engage. Reports observations and a readability score. Deterministic and does not launch draw.io. Compressed pages cannot be linted and are reported as skipped. Fix boundary/margin/empty-space warnings (and make room for overlapping elements) by spreading elements and running drawio_fit_canvas — never by shrinking content. Run after every source edit and before exporting.",
144
150
  promptSnippet: "Lint a .drawio after every source edit and before exporting.",
145
151
  parameters: Type.Object({ input: Type.String({ description: "Path to the .drawio file" }) }),
146
152
  async execute(_id, params) {
@@ -152,7 +158,7 @@ export default function drawme(pi: ExtensionAPI): void {
152
158
  ...(r.warnings.length > 0 ? r.warnings.map((warning) => `- ${warning}`) : ["- none"]),
153
159
  `Informational observations (${r.observations.length}):`,
154
160
  ...(r.observations.length > 0 ? r.observations.map((observation) => `- ${observation}`) : ["- none"]),
155
- `Readability score: ${r.score.total} (route-through=${r.score.through}, crossings=${r.score.crossings}, overlaps=${r.score.overlaps}; lower is better for variants of this graph)`,
161
+ `Readability score: ${r.score.total} (route-through=${r.score.through}, crossings=${r.score.crossings}, overlaps=${r.score.overlaps}, anchors=${r.score.anchors}; lower is better for variants of this graph)`,
156
162
  `${r.errors.length} error(s), ${r.warnings.length} unresolved warning(s)`,
157
163
  ];
158
164
  return textResult(lines.join("\n"), r);