Implement new private Format object that handles formatting of number, point, size and rectangle.

This commit is contained in:
Jürg Lehni 2013-02-28 14:57:29 -08:00
parent e392496f9d
commit 9d8cddbe42
12 changed files with 74 additions and 51 deletions

View file

@ -261,7 +261,7 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
* @return {String} A string representation of this transform.
*/
toString: function() {
var format = Base.formatFloat;
var format = Format.number;
return '[[' + [format(this._a), format(this._b),
format(this._tx)].join(', ') + '], ['
+ [format(this._c), format(this._d),