0.9.2 • Published 6 years ago

particles-on-map v0.9.2

Weekly downloads
245
License
-
Repository
github
Last release
6 years ago

Particles On Map

Code Overview

The codebase is split into areas of responsibility. We have:

  • external: externally facing (to the app) functions, except for the component.
  • jobs: peridocally ran jobs set off by timers (or requestAnimationFrame).
  • redux: redux actions and events triggered from the UI. Also includes the driver of the particles (events/time.js - which should really be split out).
  • ui: the React components & containers.

Exported functions

filterFunc: Filter the particles being rendered. This MUST be fast as it gets called as fast as possible (on requestAnimationFrame).

Input data format

Data inputted needs to be an array of objects with shape: { startTime: Integer (seconds since epoch) endTime: Integer (seconds since epoch) orig: Array(2) lat, lng (lat & lng of origin) dest: Array(2) lat, lng (lat & lng of destination) key: String - random key to identify particle. Returned when a particle is clicked. colour: rgb(Integer, Integer, Integer): Colour for the particle origKey destKey touchedNodes: keys }

Input props

  • showStatic: Show the particles when static (ie 0 distance) (default=true).
  • variableSpeed={initialSpeed}: Add a speed slider and set the initial speed to initialSpeed
  • node: (keys) => Component. Define how the node labels should be rendered.
0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.11

7 years ago

0.8.10

7 years ago

0.8.9

7 years ago

0.8.8

7 years ago

0.8.7

7 years ago

0.8.6

7 years ago

0.8.5

7 years ago

0.8.4

7 years ago

0.8.3

7 years ago

0.8.2

7 years ago

0.8.1

7 years ago

0.8.0

7 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3-c

7 years ago

0.0.3-b

7 years ago

0.0.3-a

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago