mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Implement new private Format object that handles formatting of number, point, size and rectangle.
This commit is contained in:
parent
e392496f9d
commit
9d8cddbe42
12 changed files with 74 additions and 51 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue