X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fzoom.html;h=286e1b30f4dfbc4d60a1f3f47f4c65e52c93ac46;hb=2d9596f2fd2a3c8d8d064c0f68a22c69ef82626b;hp=4801a996639549d2565f261134ba90a3926c624e;hpb=dea29a4d4be3876830153021ed8825745dfcead9;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index 4801a99..286e1b3 100644 --- a/tests/zoom.html +++ b/tests/zoom.html @@ -18,8 +18,14 @@ buttons are useful for testing.

Window coordinates (in dates and values):

+
+

Zoomed: False

+

Zoomed X: False

+

Zoomed Y: False

+

+

Zoom operations:

  @@ -27,13 +33,17 @@       -
+

        -
+

  +

+   +   +  

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