Open syntagmatic opened 9 years ago
This block of code in autoscale.js needs improvement. It wipes out the foreground line width when autoscale is called.
autoscale
// default styles, needs to be set when canvas width changes ctx.foreground.strokeStyle = __.color; ctx.foreground.lineWidth = 1.4; ctx.foreground.globalCompositeOperation = __.composite; ctx.foreground.globalAlpha = __.alpha; ctx.highlight.lineWidth = 3; ctx.shadows.strokeStyle = "#dadada";
lineWidth could go in the __ variable with color and alpha.
lineWidth
__
color
alpha
The intention here is to set the default/configured styles on the canvas context.
This block of code in autoscale.js needs improvement. It wipes out the foreground line width when
autoscale
is called.lineWidth
could go in the__
variable withcolor
andalpha
.The intention here is to set the default/configured styles on the canvas context.