X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fzoom.html;h=afc39a3a0851f6e32bd0d8728cc9f8f5919081a6;hb=b55a71d768d2f8de62877c32b3aec9e9975ac389;hp=e76494e561c16a871664b0dd58de6574cef60181;hpb=54425b14df388e9337a1d77876512bb60ba74c3b;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index e76494e..afc39a3 100644 --- a/tests/zoom.html +++ b/tests/zoom.html @@ -2,13 +2,12 @@ zoom - - - - - + + + @@ -17,8 +16,14 @@ buttons are useful for testing.

Window coordinates (in dates and values):

+
+

Zoomed: False

+

Zoomed X: False

+

Zoomed Y: False

+

+

Zoom operations:

  @@ -26,13 +31,17 @@       -
+

        -
+

  +

+   +   +  

@@ -41,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"); } } ); @@ -92,6 +106,10 @@ valueRange: null }); } + + function panEdgeFraction(value) { + g.updateOptions({ panEdgeFraction : value }); + }