แก้ coding style ภาค 8
This commit is contained in:
@@ -82,7 +82,7 @@ export default function () {
|
|||||||
if (y === 0) { y = jiggle(); l += y * y; }
|
if (y === 0) { y = jiggle(); l += y * y; }
|
||||||
if (quad.data) {
|
if (quad.data) {
|
||||||
l = (l - +distance(node, quad.data)) / l * alpha;
|
l = (l - +distance(node, quad.data)) / l * alpha;
|
||||||
x *= l, y *= l;
|
x *= l; y *= l;
|
||||||
quad.data.vx -= x;
|
quad.data.vx -= x;
|
||||||
quad.data.vy -= y;
|
quad.data.vy -= y;
|
||||||
node.vx += x;
|
node.vx += x;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export default function (sim, forceS, forceF) {
|
|||||||
simulation = sim,
|
simulation = sim,
|
||||||
forceSample = forceS,
|
forceSample = forceS,
|
||||||
forceFull = forceF,
|
forceFull = forceF,
|
||||||
event = d3.dispatch('sampleTick', 'fullTick', 'startInterp', 'end'),
|
event = dispatch('sampleTick', 'fullTick', 'startInterp', 'end'),
|
||||||
initAlready = false,
|
initAlready = false,
|
||||||
nodes,
|
nodes,
|
||||||
alreadyRanIterations,
|
alreadyRanIterations,
|
||||||
|
|||||||
Reference in New Issue
Block a user