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