X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fzoom.html;h=afc39a3a0851f6e32bd0d8728cc9f8f5919081a6;hb=051a854a82738473230fd1c20b6c9cacb036269d;hp=6073a33276923747c539e7fc9779033ca77589cf;hpb=9ec21d0ac23104544e00892196eca0129c5e504a;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index 6073a33..afc39a3 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:

  @@ -44,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"); } } );