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:
parent
cdecd93734
commit
ee8d1b1e27
@ -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
|
||||
|
@ -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 <x> <y><br>Renders the current date in DD.MM.YYYY format.</li><br>
|
||||
|
||||
<li>line <x1> <y1> <x2> <y2> [<thickness>]<br>Draws a line from position (<x1>, <y1>) to position (<x2>, <y2>) with optional thickness (default=1).</li><br>
|
||||
<li>rect <x1> <y1> <x2> <y2> [<filled>]<br>Draws a rectangle with corners at positions (<x1>, <y1>) and (<x2>, <y2>), which is filled if the <filled> parameter is set and not zero.</li><br>
|
||||
<li>rect <x1> <y1> <x2> <y2> [<filled>]<br>Draws a rectangle with corners at positions (<x1>, <y1>) and (<x2>, <y2>), which is filled if the <filled> 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 <x> <y> <['w' or 'h']s> <imgtype> <srctype> <arg> <br>Renders a picture at the
|
||||
position (<x>, <y>). The <imgtype> is one of <code>gif</code>, <code>jpeg</code>, <code>png</code>.
|
||||
|
Loading…
Reference in New Issue
Block a user