-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
An animation is controlled by its alpha — a value between 0 and 1 — that gradually decreases at regular intervals toward a target value. The simulation ends when that target is reached. This takes about 300 iterations. You can control the duration and dynamics of a simulation by adjusting settings like decay rates, target, and minimum values, as well as the alpha itself in real time using the methods described in Table 18.4, which also lists controls to stop and restart a simulation and manually trigger iterations when necessary.
|
Method |
Description |
|
|
Stops the simulation. To update positions in this state, it is necessary to call |
|
|
Restarts an existing simulation, maintaining current position and alpha. This method only restarts the... |