mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Add comments.
This commit is contained in:
parent
2fe21586df
commit
046f9cef6e
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ var PathFitter = Base.extend({
|
|||
this.points = [];
|
||||
var segments = path._segments,
|
||||
prev;
|
||||
// Copy over points from path and filter out adjacent duplicates.
|
||||
for (var i = 0, l = segments.length; i < l; i++) {
|
||||
var point = segments[i].point.clone();
|
||||
if (!prev || !prev.equals(point)) {
|
||||
|
|
Loading…
Reference in a new issue