Module
Hylograph.Forces.Random
- Package
- purescript-hylograph-forces
- Repository
- afcondon/purescript-hylograph-forces
d3-force's random source: the linear congruential generator of lcg.js
and the jiggle that separates coincident nodes.
Ported from d3-force 3.0.0 (ISC, Copyright 2010-2021 Mike Bostock); see LICENSE.
The generator is a pure step on a Seed, so the tree walks can thread it
as a loop variable; a Source is the same seed in a Ref, shared by the
forces of one simulation the way d3 shares one random function.
#Seed Source
newtype SeedThe generator's state: an integer in [0, 2^32), held as a Number
because the multiplication needs 53 bits.
#initialSeed Source
initialSeed :: Seedd3 starts every generator at 1.
- Modules
- Hylograph.
Forces - Hylograph.
Forces. Center - Hylograph.
Forces. Cohesion - Hylograph.
Forces. Collide - Hylograph.
Forces. Contain - Hylograph.
Forces. Directional - Hylograph.
Forces. Group - Hylograph.
Forces. Link - Hylograph.
Forces. Linkage - Hylograph.
Forces. ManyBody - Hylograph.
Forces. Measure - Hylograph.
Forces. Node - Hylograph.
Forces. Position - Hylograph.
Forces. Quadtree - Hylograph.
Forces. Radial - Hylograph.
Forces. Random - Hylograph.
Forces. RectCollide - Hylograph.
Forces. Snapshot - Hylograph.
Forces. Tick - Hylograph.
Forces. Towards