2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

02_RSS: height/width for rect layout directive

git-svn-id: https://svn.fhem.de/fhem/trunk@14405 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2017-05-28 17:30:51 +00:00
parent cdecd93734
commit ee8d1b1e27
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- change: 02_RSS: height/width for rect layout directive
- change: 34_ESPEasy: performance tuning, some fixes
- feature: 74_Unifi.pm: added get poeMode and set poeState commands
added _utilization and _poePower readings

View File

@ -516,6 +516,8 @@ RSS_itemLine {
sub
RSS_itemRect {
my ($S,$x1,$y1,$x2,$y2,$filled,%params)= @_;
$x2 = $x1 + $x2 if ($x2 =~ /^\+/);
$y2 = $y1 + $y2 if ($y2 =~ /^\+/);
if($filled) {
$S->filledRectangle($x1,$y1,$x2,$y2,RSS_color($S,$params{rgb}));
} else {
@ -1178,7 +1180,7 @@ plotFromUrl(@)
<li>date &lt;x&gt; &lt;y&gt;<br>Renders the current date in DD.MM.YYYY format.</li><br>
<li>line &lt;x1&gt; &lt;y1&gt; &lt;x2&gt; &lt;y2&gt; [&lt;thickness&gt;]<br>Draws a line from position (&lt;x1&gt;, &lt;y1&gt;) to position (&lt;x2&gt;, &lt;y2&gt;) with optional thickness (default=1).</li><br>
<li>rect &lt;x1&gt; &lt;y1&gt; &lt;x2&gt; &lt;y2&gt; [&lt;filled&gt;]<br>Draws a rectangle with corners at positions (&lt;x1&gt;, &lt;y1&gt;) and (&lt;x2&gt;, &lt;y2&gt;), which is filled if the &lt;filled&gt; parameter is set and not zero.</li><br>
<li>rect &lt;x1&gt; &lt;y1&gt; &lt;x2&gt; &lt;y2&gt; [&lt;filled&gt;]<br>Draws a rectangle with corners at positions (&lt;x1&gt;, &lt;y1&gt;) and (&lt;x2&gt;, &lt;y2&gt;), which is filled if the &lt;filled&gt; parameter is set and not zero.<br>If x2 or y2 is preceeded with a + (plus sign) then the coordinate is relative to x1 or y1, or in other words, it is the width-1 or height-1 of the rectangle, respectively.</li><br>
<li>img &lt;x&gt; &lt;y&gt; &lt;['w' or 'h']s&gt; &lt;imgtype&gt; &lt;srctype&gt; &lt;arg&gt; <br>Renders a picture at the
position (&lt;x&gt;, &lt;y&gt;). The &lt;imgtype&gt; is one of <code>gif</code>, <code>jpeg</code>, <code>png</code>.