mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
automowerconnect.js: lineDash, split attribute to array
git-svn-id: https://svn.fhem.de/fhem/trunk@27205 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c16392d9bd
commit
6fd0100bbb
@ -165,7 +165,7 @@ function AutomowerConnectDrawPath ( ctx, div, pos, type ) {
|
||||
ctx.beginPath();
|
||||
ctx.strokeStyle = div.getAttribute( 'data-'+ type + 'LineColor' );
|
||||
ctx.lineWidth=div.getAttribute( 'data-'+ type + 'LineWidth' );
|
||||
ctx.setLineDash([ div.getAttribute( 'data-'+ type + 'LineDash' ) ]);
|
||||
ctx.setLineDash( div.getAttribute( 'data-'+ type + 'LineDash' ).split(",") );
|
||||
|
||||
ctx.moveTo(parseInt(pos[0]),parseInt(pos[1]));
|
||||
for (var i=2;i<pos.length-1;i+=2){
|
||||
|
Loading…
Reference in New Issue
Block a user