|
|
|
|
@ -200,11 +200,11 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L
|
|
|
|
|
args = {};
|
|
|
|
|
|
|
|
|
|
if (!args.amount)
|
|
|
|
|
args.amount = plot.getOptions().zoom.amount
|
|
|
|
|
args.amount = plot.getOptions().zoom.amount;
|
|
|
|
|
|
|
|
|
|
args.amount = 1 / args.amount;
|
|
|
|
|
plot.zoom(args);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
plot.zoom = function (args) {
|
|
|
|
|
if (!args)
|
|
|
|
|
@ -274,7 +274,7 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L
|
|
|
|
|
|
|
|
|
|
if (!args.preventEvent)
|
|
|
|
|
plot.getPlaceholder().trigger("plotzoom", [ plot, args ]);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
plot.pan = function (args) {
|
|
|
|
|
var delta = {
|
|
|
|
|
@ -322,7 +322,7 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L
|
|
|
|
|
|
|
|
|
|
if (!args.preventEvent)
|
|
|
|
|
plot.getPlaceholder().trigger("plotpan", [ plot ]);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function shutdown(plot, eventHolder) {
|
|
|
|
|
eventHolder.unbind(plot.getOptions().zoom.trigger, onZoomClick);
|
|
|
|
|
|