X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fzoom.html;h=a835dc379102c2e24d3c5365e3fedfc4a5b37c47;hb=464b5f504e75c5d2b98eff12b3b8ad520a1729cb;hp=c0de5c1e69471cdf4b47f9c68dfe60b31839dc11;hpb=4cac8c7a5228904d09da929b13375a4f5cda8563;p=dygraphs.git
diff --git a/tests/zoom.html b/tests/zoom.html
index c0de5c1..a835dc3 100644
--- a/tests/zoom.html
+++ b/tests/zoom.html
@@ -1,13 +1,17 @@
+
+
zoom
-
-
-
-
+
+
+
@@ -16,8 +20,14 @@
buttons are useful for testing.
Window coordinates (in dates and values):
+
+
Zoomed: False
+
Zoomed X: False
+
Zoomed Y: False
+
+
Zoom operations:
@@ -33,9 +43,9 @@
-
-
-
+
+
+
@@ -44,8 +54,13 @@
document.getElementById("div_g"),
NoisyData, {
errorBars: true,
- zoomCallback : function(minDate, maxDate, yRanges) {
- showDimensions(minDate, maxDate, yRanges);
+ zoomCallback : function(minDate, maxDate, yRange) {
+ showDimensions(minDate, maxDate, yRange);
+ },
+ drawCallback: function(me, initial) {
+ document.getElementById("zoomed").innerHTML = "" + me.isZoomed();
+ document.getElementById("zoomedX").innerHTML = "" + me.isZoomed("x");
+ document.getElementById("zoomedY").innerHTML = "" + me.isZoomed("y");
}
}
);
@@ -96,8 +111,8 @@
});
}
- function panFrame(value) {
- g.updateOptions({ panFrame : value });
+ function panEdgeFraction(value) {
+ g.updateOptions({ panEdgeFraction : value });
}