Favor proper imports.
This commit is contained in:
parent
8d2a75121a
commit
00268ddf6a
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import constant from "./constant";
|
||||
import constant from "./constant.js";
|
||||
|
||||
export default function(radius, x, y) {
|
||||
var nodes,
|
||||
|
|
|
|||
2
src/x.js
2
src/x.js
|
|
@ -1,4 +1,4 @@
|
|||
import constant from "./constant";
|
||||
import constant from "./constant.js";
|
||||
|
||||
export default function(x) {
|
||||
var strength = constant(0.1),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user