I used "stroking" to keep it as similar to the implementation in dygraph-canvas.js (_drawStyledLine()) as possible and you used "stroking" as variable name there, but I'm also fine with changing it to hasStrokePattern.