From: Robert Konigsberg Date: Thu, 2 Jun 2011 19:55:08 +0000 (-0400) Subject: Add useful comments to some of the mousedispatch methods. X-Git-Tag: v1.0.0~463^2~1^2~2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=6ace73a81e14176f18a521979b38ba98a70cf642;p=dygraphs.git Add useful comments to some of the mousedispatch methods. --- diff --git a/auto_tests/tests/DygraphOps.js b/auto_tests/tests/DygraphOps.js index ad67b2a..5dfa2be 100644 --- a/auto_tests/tests/DygraphOps.js +++ b/auto_tests/tests/DygraphOps.js @@ -139,6 +139,10 @@ DygraphOps.dispatchMouseUp_Point = function(g, x, y, custom) { g.canvas_.dispatchEvent(event); }; +/** + * Dispatches a mouse down using the graph's data coordinate system. + * (The y value mapped to the first axis.) + */ DygraphOps.dispatchMouseDown = function(g, x, y, custom) { DygraphOps.dispatchMouseDown_Point( g, @@ -147,6 +151,10 @@ DygraphOps.dispatchMouseDown = function(g, x, y, custom) { custom); }; +/** + * Dispatches a mouse move using the graph's data coordinate system. + * (The y value mapped to the first axis.) + */ DygraphOps.dispatchMouseMove = function(g, x, y, custom) { DygraphOps.dispatchMouseMove_Point( g, @@ -155,6 +163,10 @@ DygraphOps.dispatchMouseMove = function(g, x, y, custom) { custom); }; +/** + * Dispatches a mouse up using the graph's data coordinate system. + * (The y value mapped to the first axis.) + */ DygraphOps.dispatchMouseUp = function(g, x, y, custom) { DygraphOps.dispatchMouseUp_Point( g,