X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fzoom.html;h=d37a26d0eb100f31f63e5f135241651d97352c3f;hb=a593879d42f14356ba6ff9c213d9d64f32d1714c;hp=10b0457f5a8270be8664339a2ec3611fd811ec92;hpb=62ac7bd0768c8899e2561ebbbe23f33ad4d59568;p=dygraphs.git diff --git a/tests/zoom.html b/tests/zoom.html index 10b0457..d37a26d 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:

  @@ -42,6 +48,11 @@ errorBars: true, 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"); } } );