Favor proper imports.

This commit is contained in:
Mike Bostock 2018-11-13 07:27:48 -08:00
parent 8d2a75121a
commit 00268ddf6a
6 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
import constant from "./constant";
import jiggle from "./jiggle";
import {quadtree} from "d3-quadtree";
import constant from "./constant.js";
import jiggle from "./jiggle.js";
function x(d) {
return d.x + d.vx;

View File

@ -1,5 +1,5 @@
import constant from "./constant";
import jiggle from "./jiggle";
import constant from "./constant.js";
import jiggle from "./jiggle.js";
function index(d) {
return d.index;

View File

@ -1,7 +1,7 @@
import constant from "./constant";
import jiggle from "./jiggle";
import {quadtree} from "d3-quadtree";
import {x, y} from "./simulation";
import constant from "./constant.js";
import jiggle from "./jiggle.js";
import {x, y} from "./simulation.js";
export default function() {
var nodes,

View File

@ -1,4 +1,4 @@
import constant from "./constant";
import constant from "./constant.js";
export default function(radius, x, y) {
var nodes,

View File

@ -1,4 +1,4 @@
import constant from "./constant";
import constant from "./constant.js";
export default function(x) {
var strength = constant(0.1),

View File

@ -1,4 +1,4 @@
import constant from "./constant";
import constant from "./constant.js";
export default function(y) {
var strength = constant(0.1),