X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fzoom.html;h=8c9e64141ea6934f2c0e1a299f7f195ec1066275;hb=37567cceaeaee48596653c1b59adb12fca8dbc26;hp=62252a15727920f87d9c98f47c442266e9807379;hpb=a6cc9f3e09748d3764320481753c44e579a7661a;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index 62252a1..8c9e641 100644 --- a/tests/zoom.html +++ b/tests/zoom.html @@ -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:

  @@ -40,7 +46,14 @@ document.getElementById("div_g"), NoisyData, { errorBars: true, - zoomCallback : function(a,b,c,d) { showDimensions(a,b,c,d); } + zoomCallback : function(a,b,c,d) { + showDimensions(a,b,c,d); + }, + drawCallback: function(me, initial) { + document.getElementById("zoomed").innerHTML = me.zoomed ? "True" : "False"; + document.getElementById("zoomedX").innerHTML = me.zoomedX ? "True" : "False"; + document.getElementById("zoomedY").innerHTML = me.zoomedY ? "True" : "False"; + } } );