mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
SvgExporter: Some more code shortening.
This commit is contained in:
parent
cd924f066e
commit
4c463eb1f1
1 changed files with 2 additions and 4 deletions
|
@ -240,10 +240,8 @@ var SvgExporter = this.SvgExporter = new function() {
|
||||||
case 'polyline':
|
case 'polyline':
|
||||||
case 'polygon':
|
case 'polygon':
|
||||||
var parts = [];
|
var parts = [];
|
||||||
for(i = 0; i < segments.length; i++) {
|
for(i = 0; i < segments.length; i++)
|
||||||
var point = segments[i]._point;
|
parts.push(formatPoint(segments[i]._point));
|
||||||
parts.push(formatPoint(point));
|
|
||||||
}
|
|
||||||
attrs = {
|
attrs = {
|
||||||
points: parts.join(' ')
|
points: parts.join(' ')
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue