From 9868fb870481fe23a6c869dd5e9564d08dafec76 Mon Sep 17 00:00:00 2001 From: christophe-g Date: Tue, 8 Oct 2019 18:46:15 +0200 Subject: [PATCH] use exact path in import --- src/active.js | 4 ++-- src/index.js | 8 ++++---- src/interrupt.js | 2 +- src/selection/index.js | 4 ++-- src/selection/interrupt.js | 2 +- src/selection/transition.js | 4 ++-- src/transition/attr.js | 4 ++-- src/transition/delay.js | 2 +- src/transition/duration.js | 2 +- src/transition/ease.js | 2 +- src/transition/end.js | 2 +- src/transition/filter.js | 2 +- src/transition/index.js | 36 ++++++++++++++++++------------------ src/transition/merge.js | 2 +- src/transition/on.js | 2 +- src/transition/select.js | 4 ++-- src/transition/selectAll.js | 4 ++-- src/transition/style.js | 6 +++--- src/transition/text.js | 2 +- src/transition/transition.js | 4 ++-- src/transition/tween.js | 2 +- 21 files changed, 50 insertions(+), 50 deletions(-) diff --git a/src/active.js b/src/active.js index 95be3ce..abd4c67 100644 --- a/src/active.js +++ b/src/active.js @@ -1,5 +1,5 @@ -import {Transition} from "./transition/index"; -import {SCHEDULED} from "./transition/schedule"; +import {Transition} from "./transition/index.js"; +import {SCHEDULED} from "./transition/schedule.js"; var root = [null]; diff --git a/src/index.js b/src/index.js index 66c4003..d6a6dd3 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -import "./selection/index"; -export {default as transition} from "./transition/index"; -export {default as active} from "./active"; -export {default as interrupt} from "./interrupt"; +import "./selection/index.js"; +export {default as transition} from "./transition/index.js"; +export {default as active} from "./active.js"; +export {default as interrupt} from "./interrupt.js"; diff --git a/src/interrupt.js b/src/interrupt.js index 5583534..efb455e 100644 --- a/src/interrupt.js +++ b/src/interrupt.js @@ -1,4 +1,4 @@ -import {STARTING, ENDING, ENDED} from "./transition/schedule"; +import {STARTING, ENDING, ENDED} from "./transition/schedule.js"; export default function(node, name) { var schedules = node.__transition, diff --git a/src/selection/index.js b/src/selection/index.js index f94bc99..c5512ef 100644 --- a/src/selection/index.js +++ b/src/selection/index.js @@ -1,6 +1,6 @@ import {selection} from "d3-selection"; -import selection_interrupt from "./interrupt"; -import selection_transition from "./transition"; +import selection_interrupt from "./interrupt.js"; +import selection_transition from "./transition.js"; selection.prototype.interrupt = selection_interrupt; selection.prototype.transition = selection_transition; diff --git a/src/selection/interrupt.js b/src/selection/interrupt.js index 38d09f2..799a923 100644 --- a/src/selection/interrupt.js +++ b/src/selection/interrupt.js @@ -1,4 +1,4 @@ -import interrupt from "../interrupt"; +import interrupt from "../interrupt.js"; export default function(name) { return this.each(function() { diff --git a/src/selection/transition.js b/src/selection/transition.js index e12f649..4cdc6ba 100644 --- a/src/selection/transition.js +++ b/src/selection/transition.js @@ -1,5 +1,5 @@ -import {Transition, newId} from "../transition/index"; -import schedule from "../transition/schedule"; +import {Transition, newId} from "../transition/index.js"; +import schedule from "../transition/schedule.js"; import {easeCubicInOut} from "d3-ease"; import {now} from "d3-timer"; diff --git a/src/transition/attr.js b/src/transition/attr.js index 98f42d9..3c3c764 100644 --- a/src/transition/attr.js +++ b/src/transition/attr.js @@ -1,7 +1,7 @@ import {interpolateTransformSvg as interpolateTransform} from "d3-interpolate"; import {namespace} from "d3-selection"; -import {tweenValue} from "./tween"; -import interpolate from "./interpolate"; +import {tweenValue} from "./tween.js"; +import interpolate from "./interpolate.js"; function attrRemove(name) { return function() { diff --git a/src/transition/delay.js b/src/transition/delay.js index 4a0f663..1ba1acd 100644 --- a/src/transition/delay.js +++ b/src/transition/delay.js @@ -1,4 +1,4 @@ -import {get, init} from "./schedule"; +import {get, init} from "./schedule.js"; function delayFunction(id, value) { return function() { diff --git a/src/transition/duration.js b/src/transition/duration.js index f87a167..445691e 100644 --- a/src/transition/duration.js +++ b/src/transition/duration.js @@ -1,4 +1,4 @@ -import {get, set} from "./schedule"; +import {get, set} from "./schedule.js"; function durationFunction(id, value) { return function() { diff --git a/src/transition/ease.js b/src/transition/ease.js index 6a88b08..83b1445 100644 --- a/src/transition/ease.js +++ b/src/transition/ease.js @@ -1,4 +1,4 @@ -import {get, set} from "./schedule"; +import {get, set} from "./schedule.js"; function easeConstant(id, value) { if (typeof value !== "function") throw new Error; diff --git a/src/transition/end.js b/src/transition/end.js index d3c0baf..252ce86 100644 --- a/src/transition/end.js +++ b/src/transition/end.js @@ -1,4 +1,4 @@ -import {set} from "./schedule"; +import {set} from "./schedule.js"; export default function() { var on0, on1, that = this, id = that._id, size = that.size(); diff --git a/src/transition/filter.js b/src/transition/filter.js index 44fe6c5..f5237be 100644 --- a/src/transition/filter.js +++ b/src/transition/filter.js @@ -1,5 +1,5 @@ import {matcher} from "d3-selection"; -import {Transition} from "./index"; +import {Transition} from "./index.js"; export default function(match) { if (typeof match !== "function") match = matcher(match); diff --git a/src/transition/index.js b/src/transition/index.js index ffb49ea..2c408de 100644 --- a/src/transition/index.js +++ b/src/transition/index.js @@ -1,22 +1,22 @@ import {selection} from "d3-selection"; -import transition_attr from "./attr"; -import transition_attrTween from "./attrTween"; -import transition_delay from "./delay"; -import transition_duration from "./duration"; -import transition_ease from "./ease"; -import transition_filter from "./filter"; -import transition_merge from "./merge"; -import transition_on from "./on"; -import transition_remove from "./remove"; -import transition_select from "./select"; -import transition_selectAll from "./selectAll"; -import transition_selection from "./selection"; -import transition_style from "./style"; -import transition_styleTween from "./styleTween"; -import transition_text from "./text"; -import transition_transition from "./transition"; -import transition_tween from "./tween"; -import transition_end from "./end"; +import transition_attr from "./attr.js"; +import transition_attrTween from "./attrTween.js"; +import transition_delay from "./delay.js"; +import transition_duration from "./duration.js"; +import transition_ease from "./ease.js"; +import transition_filter from "./filter.js"; +import transition_merge from "./merge.js"; +import transition_on from "./on.js"; +import transition_remove from "./remove.js"; +import transition_select from "./select.js"; +import transition_selectAll from "./selectAll.js"; +import transition_selection from "./selection.js"; +import transition_style from "./style.js"; +import transition_styleTween from "./styleTween.js"; +import transition_text from "./text.js"; +import transition_transition from "./transition.js"; +import transition_tween from "./tween.js"; +import transition_end from "./end.js"; var id = 0; diff --git a/src/transition/merge.js b/src/transition/merge.js index 9c68df0..4660953 100644 --- a/src/transition/merge.js +++ b/src/transition/merge.js @@ -1,4 +1,4 @@ -import {Transition} from "./index"; +import {Transition} from "./index.js"; export default function(transition) { if (transition._id !== this._id) throw new Error; diff --git a/src/transition/on.js b/src/transition/on.js index ebd0c1e..b6a91d3 100644 --- a/src/transition/on.js +++ b/src/transition/on.js @@ -1,4 +1,4 @@ -import {get, set, init} from "./schedule"; +import {get, set, init} from "./schedule.js"; function start(name) { return (name + "").trim().split(/^|\s+/).every(function(t) { diff --git a/src/transition/select.js b/src/transition/select.js index e9fbe1d..959c8c0 100644 --- a/src/transition/select.js +++ b/src/transition/select.js @@ -1,6 +1,6 @@ import {selector} from "d3-selection"; -import {Transition} from "./index"; -import schedule, {get} from "./schedule"; +import {Transition} from "./index.js"; +import schedule, {get} from "./schedule.js"; export default function(select) { var name = this._name, diff --git a/src/transition/selectAll.js b/src/transition/selectAll.js index b1df2a2..1ba4801 100644 --- a/src/transition/selectAll.js +++ b/src/transition/selectAll.js @@ -1,6 +1,6 @@ import {selectorAll} from "d3-selection"; -import {Transition} from "./index"; -import schedule, {get} from "./schedule"; +import {Transition} from "./index.js"; +import schedule, {get} from "./schedule.js"; export default function(select) { var name = this._name, diff --git a/src/transition/style.js b/src/transition/style.js index 7402ce7..7dcb187 100644 --- a/src/transition/style.js +++ b/src/transition/style.js @@ -1,8 +1,8 @@ import {interpolateTransformCss as interpolateTransform} from "d3-interpolate"; import {style} from "d3-selection"; -import {set} from "./schedule"; -import {tweenValue} from "./tween"; -import interpolate from "./interpolate"; +import {set} from "./schedule.js"; +import {tweenValue} from "./tween.js"; +import interpolate from "./interpolate.js"; function styleNull(name, interpolate) { var string00, diff --git a/src/transition/text.js b/src/transition/text.js index 4777252..a7f75d9 100644 --- a/src/transition/text.js +++ b/src/transition/text.js @@ -1,4 +1,4 @@ -import {tweenValue} from "./tween"; +import {tweenValue} from "./tween.js"; function textConstant(value) { return function() { diff --git a/src/transition/transition.js b/src/transition/transition.js index 7f5db69..6a6dd24 100644 --- a/src/transition/transition.js +++ b/src/transition/transition.js @@ -1,5 +1,5 @@ -import {Transition, newId} from "./index"; -import schedule, {get} from "./schedule"; +import {Transition, newId} from "./index.js"; +import schedule, {get} from "./schedule.js"; export default function() { var name = this._name, diff --git a/src/transition/tween.js b/src/transition/tween.js index 4704b36..ba96781 100644 --- a/src/transition/tween.js +++ b/src/transition/tween.js @@ -1,4 +1,4 @@ -import {get, set} from "./schedule"; +import {get, set} from "./schedule.js"; function tweenRemove(id, name) { var tween0, tween1;