kangax/fabric.js — pull request #299 by willmcneilly (2012-10-24 09:48:11+00:00)
Title: Configurable tofixed precision

I came across a case where rounding to two decimal places with toFixed in the getSvgTransform method didn't give an accurate enough output when scaling.

As these values where hardcoded I thought it may be better to use the NUM_FRACTION_DIGITS constant instead, allowing the value to be more easily changed.

Is there any particular reason this value is set at 2?