Browse Source

Adjusted STYLE enum to previous

codeClimate
Wim Rijnders 8 years ago
parent
commit
e6351b63bd
1 changed files with 4 additions and 12 deletions
  1. +4
    -12
      lib/graph3d/Graph3d.js

+ 4
- 12
lib/graph3d/Graph3d.js View File

@ -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;
}

Loading…
Cancel
Save