X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fzoom.html;h=5803af61c5ea9207ec21c93cae7f69162e7c9f48;hb=93a5bb4c827d6665f395c48b216438f95e94d76e;hp=4801a996639549d2565f261134ba90a3926c624e;hpb=10494b48b43d9ca8710d441d3c530c7d546f3edf;p=dygraphs.git
diff --git a/tests/zoom.html b/tests/zoom.html
index 4801a99..5803af6 100644
--- a/tests/zoom.html
+++ b/tests/zoom.html
@@ -1,15 +1,14 @@
-
+
zoom
-
-
-
-
-
+
+
+
@@ -18,8 +17,14 @@
buttons are useful for testing.
Window coordinates (in dates and values):
+
+
Zoomed: False
+
Zoomed X: False
+
Zoomed Y: False
+
+
Zoom operations:
@@ -27,13 +32,17 @@
-
+
-
+
+
+
+
+
@@ -42,8 +51,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");
}
}
);
@@ -93,6 +107,10 @@
valueRange: null
});
}
+
+ function panEdgeFraction(value) {
+ g.updateOptions({ panEdgeFraction : value });
+ }