|
|
@ -12,13 +12,13 @@ var Settings = require('./Settings'); |
|
|
|
|
|
|
|
|
|
|
|
/// enumerate the available styles
|
|
|
|
Graph3d.STYLE = Settings.STYLE; |
|
|
|
Graph3d.STYLE = Settings.STYLE; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Following label is used in the settings to describe values which should be |
|
|
|
* determined by the code while running, from the current data and graph style. |
|
|
|
* |
|
|
|
* |
|
|
|
* Using 'undefined' directly achieves the same thing, but this is more |
|
|
|
* descriptive by describing the intent. |
|
|
|
*/ |
|
|
@ -524,7 +524,7 @@ Graph3d.prototype._dataInitialize = function (rawData, style) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// set the scale dependent on the ranges.
|
|
|
|
this._setScale(); |
|
|
|
}; |
|
|
@ -699,7 +699,6 @@ Graph3d.prototype.create = function () { |
|
|
|
var onclick = function(event) {me._onClick(event);}; |
|
|
|
// TODO: these events are never cleaned up... can give a 'memory leakage'
|
|
|
|
|
|
|
|
util.addEventListener(this.frame.canvas, 'keydown', onkeydown); |
|
|
|
util.addEventListener(this.frame.canvas, 'mousedown', onmousedown); |
|
|
|
util.addEventListener(this.frame.canvas, 'touchstart', ontouchstart); |
|
|
|
util.addEventListener(this.frame.canvas, 'mousewheel', onmousewheel); |
|
|
@ -902,7 +901,6 @@ Graph3d.prototype.setPointDrawingMethod = function() { |
|
|
|
default: |
|
|
|
throw new Error('Can not determine point drawing method ' |
|
|
|
+ 'for graph style \'' + this.style + '\''); |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
this._pointDrawingMethod = method; |
|
|
@ -1338,7 +1336,7 @@ Graph3d.prototype._redrawAxis = function() { |
|
|
|
if (this.showYAxis) { |
|
|
|
xText = (armVector.y > 0) ? xRange.min : xRange.max; |
|
|
|
point3d = new Point3d(xText, y, zRange.min); |
|
|
|
var msg = ' ' + this.yValueLabel(y) + ' '; |
|
|
|
var msg = ' ' + this.yValueLabel(y) + ' '; |
|
|
|
this.drawAxisLabelY(ctx, point3d, msg, armAngle, textMargin); |
|
|
|
} |
|
|
|
|
|
|
|