mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Forgotten in previous commit.
This commit is contained in:
parent
4464950301
commit
68db4f9b59
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ var Formatter = Base.extend(/** @lends Formatter# */{
|
|||
return Math.round(val * this.multiplier) / this.multiplier;
|
||||
},
|
||||
|
||||
pair: function(val1, val2, separator) {
|
||||
return this.number(val1) + (separator || ',') + this.number(val2);
|
||||
},
|
||||
|
||||
point: function(val, separator) {
|
||||
return this.number(val.x) + (separator || ',') + this.number(val.y);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue