X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fzoom.html;h=99125d37f9fb3080cf966428e2a414c3d2b21eb3;hb=0a5aa490041ec62b5c7e4951d4d4e7a2fd345fc2;hp=ad0bc9da10bd516e94c30bbfc88bab68998b7abe;hpb=9f1439f420651f077e8d8d15598a5a6bda7881f5;p=dygraphs.git
diff --git a/tests/zoom.html b/tests/zoom.html
index ad0bc9d..99125d3 100644
--- a/tests/zoom.html
+++ b/tests/zoom.html
@@ -1,13 +1,13 @@
+
zoom
-
-
-
-
-
+
+
+
@@ -16,8 +16,14 @@
buttons are useful for testing.
Window coordinates (in dates and values):
+
+
Zoomed: False
+
Zoomed X: False
+
Zoomed Y: False
+
+
Zoom operations:
@@ -25,13 +31,17 @@
-
+
-
+
+
+
+
+
@@ -40,8 +50,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");
}
}
);
@@ -91,6 +106,10 @@
valueRange: null
});
}
+
+ function panEdgeFraction(value) {
+ g.updateOptions({ panEdgeFraction : value });
+ }