mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 02:10:32 +00:00
98_SVG.pm: activate the hour ticks (Forum #33742)
git-svn-id: https://svn.fhem.de/fhem/trunk@7981 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e297683f74
commit
f87a2a1d70
@ -1487,8 +1487,8 @@ SVG_render($$$$$$$$$$)
|
|||||||
$step /= 2 if( $step > 10 );
|
$step /= 2 if( $step > 10 );
|
||||||
for(my $i = $mi; $i <= $ma; $i += $step) {
|
for(my $i = $mi; $i <= $ma; $i += $step) {
|
||||||
$off1 = int($x+($i-$xmin)*$xmul);
|
$off1 = int($x+($i-$xmin)*$xmul);
|
||||||
SVG_pO "<polyline points=\"$off1,$y $off1,$off2\"/>";
|
SVG_pO "<polyline class='SVGplot' points='$off1,$y $off1,$off2'/>";
|
||||||
SVG_pO "<polyline points=\"$off1,$off3 $off1,$off4\"/>";
|
SVG_pO "<polyline class='SVGplot' points='$off1,$off3 $off1,$off4'/>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1497,8 +1497,8 @@ SVG_render($$$$$$$$$$)
|
|||||||
for(my $i = $fromsec+$initoffset; $i < $tosec; $i += $tstep) {
|
for(my $i = $fromsec+$initoffset; $i < $tosec; $i += $tstep) {
|
||||||
$i = SVG_time_align($i,$aligntics);
|
$i = SVG_time_align($i,$aligntics);
|
||||||
$off1 = int($x+($i-$fromsec)*$tmul);
|
$off1 = int($x+($i-$fromsec)*$tmul);
|
||||||
SVG_pO "<polyline points=\"$off1,$y $off1,$off2\"/>";
|
SVG_pO "<polyline class='SVGplot' points='$off1,$y $off1,$off2'/>";
|
||||||
SVG_pO "<polyline points=\"$off1,$off3 $off1,$off4\"/>";
|
SVG_pO "<polyline class='SVGplot' points='$off1,$off3 $off1,$off4'/>";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user