mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-13 21:23:59 -04: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…
Add table
Add a link
Reference in a new issue