X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2FDygraphOps.js;h=460547bb53ee74059c2056a477b27501ab03873b;hb=ac928d203b05de4a8d43ad89667347865e98bb7c;hp=52f594385cbfb68c4b5b02d2ab4aa16194b85d14;hpb=15e340f4441909628981699e6d0b374b0e98177e;p=dygraphs.git diff --git a/auto_tests/tests/DygraphOps.js b/auto_tests/tests/DygraphOps.js index 52f5943..460547b 100644 --- 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. +import * as utils from '../../src/dygraph-utils'; /** * @fileoverview Utility functions for Dygraphs. @@ -109,7 +110,7 @@ DygraphOps.dispatchDoubleClick = function(g, custom) { * type, screenX, screenY, clientX, clientY. */ DygraphOps.createOptsForPoint_ = function(g, type, x, y) { - var pos = Dygraph.findPos(g.canvas_); + var pos = utils.findPos(g.canvas_); var pageX = pos.x + x; var pageY = pos.y + y; @@ -213,3 +214,5 @@ DygraphOps.dispatchMouseOut = function(g, x, y, custom) { custom); }; + +export default DygraphOps;