diff --git a/HISTORY.md b/HISTORY.md index 1ede2723..c23c12f1 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -8,6 +8,11 @@ http://visjs.org - Properly fixed the _lockedRedraw method. - Fixed node resizing on dragging. +### Graph3d + +- Do not change `backgroundColor` when not provided in options. Thanks @ozydingo. + + ## 2015-07-03, version 4.4.0 ### General diff --git a/lib/graph3d/Graph3d.js b/lib/graph3d/Graph3d.js index 27ccc961..20c7b6b1 100644 --- a/lib/graph3d/Graph3d.js +++ b/lib/graph3d/Graph3d.js @@ -1512,7 +1512,7 @@ Graph3d.prototype._redrawDataGrid = function() { else { v = 1; fillStyle = this._hsv2rgb(h, s, v); - strokeStyle = this.axisColor; + strokeStyle = this.axisColor; // TODO: should be customizable } } else { @@ -1530,7 +1530,7 @@ Graph3d.prototype._redrawDataGrid = function() { ctx.lineTo(top.screen.x, top.screen.y); ctx.closePath(); ctx.fill(); - ctx.stroke(); + ctx.stroke(); // TODO: only draw stroke when strokeWidth > 0 } } }