ramongilmoreno / slotdesign

Slot cars track web designer
2 stars 0 forks source link

Fixed margin for viewBox (now margin depends on the original track dimensions) #6

Open ramongilmoreno opened 9 years ago

ramongilmoreno commented 9 years ago

The simple initial implementation of the margin for the viewBox simply added a +20 units to the (view)Box, but those are units in track coordinates. They get scaled depending on the size of the track.

Implement a fitTransformerToContents so the actual margin is constant regardless of the contents to be fit.