From e6351b63bdd8e9dd9db72bfba89fe001c47060bf Mon Sep 17 00:00:00 2001 From: Wim Rijnders Date: Wed, 19 Oct 2016 13:32:31 +0200 Subject: [PATCH] Adjusted STYLE enum to previous --- lib/graph3d/Graph3d.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/lib/graph3d/Graph3d.js b/lib/graph3d/Graph3d.js index 273d6cf8..fbb909cb 100644 --- a/lib/graph3d/Graph3d.js +++ b/lib/graph3d/Graph3d.js @@ -13,7 +13,7 @@ var StepNumber = require('./StepNumber'); // ----------------------------------------------------------------------------- /// enumerate the available styles -var STYLE = { +Graph3d.STYLE = { BAR : 0, BARCOLOR: 1, BARSIZE : 2, @@ -106,7 +106,7 @@ var DEFAULTS = { // Following not in OPTIONKEYS because they require special handling, - style : STYLE.DOT, // Can't use Graph3d.STYLE here, not defined yet + style : Graph3d.STYLE.DOT, backgroundColor : undefined, dataColor : { @@ -169,14 +169,6 @@ function safeCopy(src, dst, fields) { // Class Graph3d // ----------------------------------------------------------------------------- -/** - * Enumerate the available styles. - * - * This definition retained for external compatibility - * (It should be internal, but you never know) - */ -Graph3d.STYLE = STYLE; - /** * @constructor Graph3d @@ -454,8 +446,8 @@ Graph3d.prototype._setStyle = function(style, dst) { } else { // Do a pedantic check on style number value var valid = false; - for (var n in STYLE) { - if (STYLE[n] === style) { + for (var n in Graph3d.STYLE) { + if (Graph3d.STYLE[n] === style) { valid = true; break; }