X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fzoom.html;h=99125d37f9fb3080cf966428e2a414c3d2b21eb3;hb=f9b5a82c0e67c25b47cc5a40b46ca2f1056c35f5;hp=c0de5c1e69471cdf4b47f9c68dfe60b31839dc11;hpb=4cac8c7a5228904d09da929b13375a4f5cda8563;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index c0de5c1..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:

  @@ -33,9 +39,9 @@

 

-   -   -   +   +   +  

@@ -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"); } } ); @@ -96,8 +107,8 @@ }); } - function panFrame(value) { - g.updateOptions({ panFrame : value }); + function panEdgeFraction(value) { + g.updateOptions({ panEdgeFraction : value }); }