X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=tests%2Fzoom.html;h=286e1b30f4dfbc4d60a1f3f47f4c65e52c93ac46;hb=916a000e22d330b5f8690af07f561da1bdf7f8e3;hp=65f23a4c20325c53213e0a1c5b5356342a940123;hpb=88cd3434ef1ca9bdff38ee7cfafd076fbbe88b8e;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index 65f23a4..286e1b3 100644 --- a/tests/zoom.html +++ b/tests/zoom.html @@ -18,8 +18,14 @@ buttons are useful for testing.
Zoomed: False
+Zoomed X: False
+Zoomed Y: False
+Zoom operations:
@@ -46,8 +52,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"); } } );