mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-13 14:38:49 -04:00
Introduce Base.toFloat() and rename Base.formatNumber() to Base.formatFloat()
This commit is contained in:
parent
a7320cf2e2
commit
d671a08205
10 changed files with 24 additions and 21 deletions
src/basic
|
@ -238,7 +238,7 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
|
|||
* @return {String} A string representation of this transform.
|
||||
*/
|
||||
toString: function() {
|
||||
var format = Base.formatNumber;
|
||||
var format = Base.formatFloat;
|
||||
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