2
0
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:
Ellert 2023-02-11 23:04:14 +00:00
parent c16392d9bd
commit 6fd0100bbb

View File

@ -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){