projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rewrite tests to use ES6 modules.
[dygraphs.git]
/
src
/
dygraph-canvas.js
diff --git
a/src/dygraph-canvas.js
b/src/dygraph-canvas.js
index
256edc1
..
7ba66ff
100644
(file)
--- a/
src/dygraph-canvas.js
+++ b/
src/dygraph-canvas.js
@@
-28,6
+28,7
@@
"use strict";
import * as utils from './dygraph-utils';
"use strict";
import * as utils from './dygraph-utils';
+import Dygraph from './dygraph';
/**
/**
@@
-153,7
+154,7
@@
DygraphCanvasRenderer._drawStyledLine = function(e,
var ctx = e.drawingContext;
ctx.save();
if (stroking) {
var ctx = e.drawingContext;
ctx.save();
if (stroking) {
-
ctx.installPattern
(strokePattern);
+
if (ctx.setLineDash) ctx.setLineDash
(strokePattern);
}
var pointsOnLine = DygraphCanvasRenderer._drawSeries(
}
var pointsOnLine = DygraphCanvasRenderer._drawSeries(
@@
-162,7
+163,7
@@
DygraphCanvasRenderer._drawStyledLine = function(e,
e, pointsOnLine, drawPointCallback, color, pointSize);
if (stroking) {
e, pointsOnLine, drawPointCallback, color, pointSize);
if (stroking) {
-
ctx.uninstallPattern(
);
+
if (ctx.setLineDash) ctx.setLineDash([]
);
}
ctx.restore();
}
ctx.restore();