Precompute all offset ratios.

index.js
  -Prevent redundant offset ratio computation (it'll be the same for any
  point being rendered along a given line segment) by pre-calculating
  all of them.