stravid/slotcars — pull request #222 by tombu (2012-10-10 08:43:57+00:00)
Title: Bug/tracks are cropped

Introduces `paperOffset` (and `scaledOffset`) on `TrackView`. The paperOffset is considered when drawing the track. The old tracks are still correct as the builder saves path points the same way as it did before. This way the paperOffset can be changed if necessary without making all old tracks useless.

The EditView now considers `boundaries` when the edit points are moved, so that the points can´t be dragged outside the window any longer.

The DrawView was simplified by removing the container in which the SVG Element was inserted before. This way, it is now quite close to the TrackView which it extends. Binding event listeners is now the only difference in the setup.