|
|
|
@ -139,7 +139,7 @@ The plugin also adds four public methods:
|
|
|
|
ctx.translate(plotOffset.left, plotOffset.top);
|
|
|
|
ctx.translate(plotOffset.left, plotOffset.top);
|
|
|
|
|
|
|
|
|
|
|
|
if (crosshair.x != -1) {
|
|
|
|
if (crosshair.x != -1) {
|
|
|
|
var adj = plot.getOptions().crosshair.lineWidth % 2 === 0 ? 0 : 0.5;
|
|
|
|
var adj = plot.getOptions().crosshair.lineWidth % 2 ? 0.5 : 0;
|
|
|
|
|
|
|
|
|
|
|
|
ctx.strokeStyle = c.color;
|
|
|
|
ctx.strokeStyle = c.color;
|
|
|
|
ctx.lineWidth = c.lineWidth;
|
|
|
|
ctx.lineWidth = c.lineWidth;
|
|
|
|
|