stravid/slotcars — Issue #17: Track Model instead of Raphael
Author: DominikGuzei
Created: 2012-02-23 14:08:59+00:00
State: open

Currently we use Raphael in CarController to get 'pointAtLength' and 'totalLength' of the current track path. Since we know that we have to replace that with our 'rasterized' version of a path, we should create a 'Track' model that provides the domain logic (API) for all classes that work with tracks.

* use ember-data addon to create Track model
* implement #getPointAtLength and #getTotalLength that uses Raphael at first as first replacement
* use our custom rasterized format to calculate these values faster