From f20bbe9f0c9d11757d2c243b9243ab7887cec66e Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Wed, 7 Aug 2019 10:39:41 -0700 Subject: [PATCH] Exact paths. Related d3/d3#3265. --- src/drag.js | 8 ++++---- src/index.js | 4 ++-- src/nodrag.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/drag.js b/src/drag.js index 32b5048..3d07746 100644 --- a/src/drag.js +++ b/src/drag.js @@ -1,9 +1,9 @@ import {dispatch} from "d3-dispatch"; import {event, customEvent, select, mouse, touch} from "d3-selection"; -import nodrag, {yesdrag} from "./nodrag"; -import noevent, {nopropagation} from "./noevent"; -import constant from "./constant"; -import DragEvent from "./event"; +import nodrag, {yesdrag} from "./nodrag.js"; +import noevent, {nopropagation} from "./noevent.js"; +import constant from "./constant.js"; +import DragEvent from "./event.js"; // Ignore right-click, since that should open the context menu. function defaultFilter() { diff --git a/src/index.js b/src/index.js index 3d86027..d2dd601 100644 --- a/src/index.js +++ b/src/index.js @@ -1,2 +1,2 @@ -export {default as drag} from "./drag"; -export {default as dragDisable, yesdrag as dragEnable} from "./nodrag"; +export {default as drag} from "./drag.js"; +export {default as dragDisable, yesdrag as dragEnable} from "./nodrag.js"; diff --git a/src/nodrag.js b/src/nodrag.js index fe085ee..eab81d3 100644 --- a/src/nodrag.js +++ b/src/nodrag.js @@ -1,5 +1,5 @@ import {select} from "d3-selection"; -import noevent from "./noevent"; +import noevent from "./noevent.js"; export default function(view) { var root = view.document.documentElement,