Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use exact path in import #95

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/active.js
Original file line number Diff line number Diff line change
@@ -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];

Expand Down
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 1 addition & 1 deletion src/interrupt.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/selection/index.js
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion src/selection/interrupt.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import interrupt from "../interrupt";
import interrupt from "../interrupt.js";

export default function(name) {
return this.each(function() {
Expand Down
4 changes: 2 additions & 2 deletions src/selection/transition.js
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
4 changes: 2 additions & 2 deletions src/transition/attr.js
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/transition/delay.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {get, init} from "./schedule";
import {get, init} from "./schedule.js";

function delayFunction(id, value) {
return function() {
Expand Down
2 changes: 1 addition & 1 deletion src/transition/duration.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {get, set} from "./schedule";
import {get, set} from "./schedule.js";

function durationFunction(id, value) {
return function() {
Expand Down
2 changes: 1 addition & 1 deletion src/transition/ease.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/transition/end.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/transition/filter.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
36 changes: 18 additions & 18 deletions src/transition/index.js
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/transition/merge.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/transition/on.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/transition/select.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/transition/selectAll.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/transition/style.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/transition/text.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {tweenValue} from "./tween";
import {tweenValue} from "./tween.js";

function textConstant(value) {
return function() {
Expand Down
4 changes: 2 additions & 2 deletions src/transition/transition.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/transition/tween.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {get, set} from "./schedule";
import {get, set} from "./schedule.js";

function tweenRemove(id, name) {
var tween0, tween1;
Expand Down