SVGHMI: prototype of widget interface description using SVG's desc field, added to SVGHMI's internal svg widget library.
--- a/svghmi/widgetlib/meter_template.svg Tue Apr 06 16:05:58 2021 +0200
+++ b/svghmi/widgetlib/meter_template.svg Tue Apr 06 16:07:56 2021 +0200
@@ -91,15 +91,15 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.49497475"
- inkscape:cx="65.09798"
- inkscape:cy="624.46966"
+ inkscape:cx="494.41281"
+ inkscape:cy="773.97224"
inkscape:document-units="mm"
inkscape:current-layer="svg2092"
showgrid="false"
inkscape:window-width="1414"
inkscape:window-height="801"
- inkscape:window-x="1795"
- inkscape:window-y="512"
+ inkscape:window-x="186"
+ inkscape:window-y="62"
inkscape:window-maximized="0" />
<metadata
id="metadata2089">
@@ -109,7 +109,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
+ <dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
@@ -117,6 +117,11 @@
id="g7998"
transform="matrix(0.57180538,0,0,0.57180538,22.524027,122.59857)"
inkscape:label="HMI:Meter@/PUMP0/SLOTH">
+ <desc
+ id="desc3869">A sophisticated meter looking like real
+
+@position : HMI_INT, HMI_REAL # the position as int or real
+</desc>
<path
style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#3ee800;stroke-width:1.38814712;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:url(#marker19820);marker-end:url(#marker25117);color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
id="path7978"