From faddd158d424dc84a1dbd988ab207e24ae5de266 Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 8 Jul 2015 10:16:50 +0200 Subject: [PATCH] Updated history --- HISTORY.md | 5 +++++ lib/graph3d/Graph3d.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 } } }