mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
No need for two parameter version of formatPoint().
This commit is contained in:
parent
ab633f15ac
commit
aa35226916
1 changed files with 2 additions and 6 deletions
|
@ -28,12 +28,8 @@ var SvgExporter = this.SvgExporter = new function() {
|
|||
// Shortcut to Base.formatNumber
|
||||
var formatNumber = Base.formatNumber;
|
||||
|
||||
function formatPoint(x, y) {
|
||||
if (arguments.length == 1) {
|
||||
y = x._y;
|
||||
x = x._x;
|
||||
}
|
||||
return formatNumber(x) + ',' + formatNumber(y);
|
||||
function formatPoint(point) {
|
||||
return formatNumber(point._x) + ',' + formatNumber(point._y);
|
||||
}
|
||||
|
||||
function setAttributes(svg, attrs) {
|
||||
|
|
Loading…
Reference in a new issue