projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump to version 2 🎉
[dygraphs.git]
/
auto_tests
/
tests
/
DygraphOps.js
diff --git
a/auto_tests/tests/DygraphOps.js
b/auto_tests/tests/DygraphOps.js
index
779b845
..
460547b
100644
(file)
--- a/
auto_tests/tests/DygraphOps.js
+++ b/
auto_tests/tests/DygraphOps.js
@@
-18,6
+18,7
@@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
+import * as utils from '../../src/dygraph-utils';
/**
* @fileoverview Utility functions for Dygraphs.
/**
* @fileoverview Utility functions for Dygraphs.
@@
-109,8
+110,9
@@
DygraphOps.dispatchDoubleClick = function(g, custom) {
* type, screenX, screenY, clientX, clientY.
*/
DygraphOps.createOptsForPoint_ = function(g, type, x, y) {
* type, screenX, screenY, clientX, clientY.
*/
DygraphOps.createOptsForPoint_ = function(g, type, x, y) {
- var pageX = Dygraph.findPosX(g.canvas_) + x;
- var pageY = Dygraph.findPosY(g.canvas_) + y;
+ var pos = utils.findPos(g.canvas_);
+ var pageX = pos.x + x;
+ var pageY = pos.y + y;
return {
type : type,
return {
type : type,
@@
-212,3
+214,5
@@
DygraphOps.dispatchMouseOut = function(g, x, y, custom) {
custom);
};
custom);
};
+
+export default DygraphOps;