removed unnessecary Math.*() fucntions
This commit is contained in:
parent
47ab29d192
commit
a45e6d086a
1 changed files with 7 additions and 7 deletions
|
@ -70,7 +70,7 @@ vz.initInterface = function() {
|
|||
vz.uuids.add($('#addUUID input[type=text]').val());
|
||||
$('#addUUID').dialog('close');
|
||||
vz.entities.load();
|
||||
});
|
||||
});t
|
||||
|
||||
// bind plot actions
|
||||
$('#move input').click(vz.handleControls);
|
||||
|
@ -106,16 +106,16 @@ vz.bindEvents = function() {
|
|||
// handle zooming & panning
|
||||
$('#plot')
|
||||
.bind("plotselected", function (event, ranges) {
|
||||
vz.from = Math.floor(ranges.xaxis.from);
|
||||
vz.to = Math.ceil(ranges.xaxis.to);
|
||||
vz.from = ranges.xaxis.from;
|
||||
vz.to = ranges.xaxis.to;
|
||||
vz.options.plot.yaxis.min = 0;
|
||||
vz.options.plot.yaxis.max = null; // autoscaling
|
||||
vz.data.load();
|
||||
})
|
||||
/*.bind('plotpan', function (event, plot) {
|
||||
var axes = vz.plot.getAxes();
|
||||
vz.from = Math.floor(axes.xaxis.min);
|
||||
vz.to = Math.ceil(axes.xaxis.max);
|
||||
vz.from = axes.xaxis.min;
|
||||
vz.to = axes.xaxis.max;
|
||||
vz.options.plot.yaxis.min = axes.yaxis.min;
|
||||
vz.options.plot.yaxis.max = axes.yaxis.max;
|
||||
})*/
|
||||
|
@ -124,8 +124,8 @@ vz.bindEvents = function() {
|
|||
})*/
|
||||
.bind('plotzoom', function (event, plot) {
|
||||
var axes = vz.plot.getAxes();
|
||||
vz.from = Math.floor(axes.xaxis.min);
|
||||
vz.to = Math.ceil(axes.xaxis.max);
|
||||
vz.from = axes.xaxis.min;
|
||||
vz.to = axes.xaxis.max;
|
||||
vz.options.plot.yaxis.min = axes.yaxis.min;
|
||||
vz.options.plot.yaxis.max = axes.yaxis.max;
|
||||
vz.data.load();
|
||||
|
|
Loading…
Add table
Reference in a new issue