From 6ace73a81e14176f18a521979b38ba98a70cf642 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Thu, 2 Jun 2011 15:55:08 -0400 Subject: [PATCH] Add useful comments to some of the mousedispatch methods. --- auto_tests/tests/DygraphOps.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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, -- 2.7.4