widgets: some convas cleaning

This commit is contained in:
jean-emmanuel 2016-09-13 23:14:03 +02:00
parent 1597f5a836
commit 784756e713
4 changed files with 8 additions and 8 deletions

View file

@ -139,7 +139,7 @@ module.exports.create = function(widgetData,container) {
point = newpoint
}
ctx.lineWidth = 1.5*PXSCALE
ctx.lineWidth = 1*PXSCALE
ctx.strokeStyle= widget.lineColor
ctx.stroke()

View file

@ -143,11 +143,11 @@ module.exports.create = function(widgetData,container) {
}
}
ctx.arc(newpoint[0],newpoint[1],1,0,2*Math.PI)
ctx.rect(newpoint[0]-1*PXSCALE,newpoint[1]-1*PXSCALE,2,2)
point = newpoint
}
ctx.lineWidth = 1.5*PXSCALE
ctx.lineWidth = 1*PXSCALE
ctx.strokeStyle= widget.lineColor
ctx.stroke()

View file

@ -128,7 +128,7 @@ module.exports.create = function(widgetData,container) {
point = newpoint
}
ctx.lineWidth = 1.5*PXSCALE
ctx.lineWidth = 1*PXSCALE
ctx.strokeStyle= widget.lineColor
ctx.stroke()

View file

@ -1831,7 +1831,7 @@ module.exports.create = function(widgetData,container) {
point = newpoint
}
ctx.lineWidth = 1.5*PXSCALE
ctx.lineWidth = 1*PXSCALE
ctx.strokeStyle= widget.lineColor
ctx.stroke()
@ -3201,11 +3201,11 @@ module.exports.create = function(widgetData,container) {
}
}
ctx.arc(newpoint[0],newpoint[1],1,0,2*Math.PI)
ctx.rect(newpoint[0]-1*PXSCALE,newpoint[1]-1*PXSCALE,2,2)
point = newpoint
}
ctx.lineWidth = 1.5*PXSCALE
ctx.lineWidth = 1*PXSCALE
ctx.strokeStyle= widget.lineColor
ctx.stroke()
@ -4159,7 +4159,7 @@ module.exports.create = function(widgetData,container) {
point = newpoint
}
ctx.lineWidth = 1.5*PXSCALE
ctx.lineWidth = 1*PXSCALE
ctx.strokeStyle= widget.lineColor
ctx.stroke()