แก้ coding style ภาค 8

This commit is contained in:
Pitchaya Boonsarngsuk
2018-03-22 16:35:48 +00:00
parent 93af0e646a
commit 0d1fa385f8
2 changed files with 6 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ export default function () {
if (y === 0) { y = jiggle(); l += y * y; }
if (quad.data) {
l = (l - +distance(node, quad.data)) / l * alpha;
x *= l, y *= l;
x *= l; y *= l;
quad.data.vx -= x;
quad.data.vy -= y;
node.vx += x;

View File

@@ -36,7 +36,7 @@ export default function (sim, forceS, forceF) {
simulation = sim,
forceSample = forceS,
forceFull = forceF,
event = d3.dispatch('sampleTick', 'fullTick', 'startInterp', 'end'),
event = dispatch('sampleTick', 'fullTick', 'startInterp', 'end'),
initAlready = false,
nodes,
alreadyRanIterations,