mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Use the correct notation in the new smooth() calls.
This commit is contained in:
parent
31297c359a
commit
9f448a97ef
4 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@
|
|||
var vector = offset.normalize(l * (j % 2 ? 0.1 : -0.1));
|
||||
path.add(offset + vector);
|
||||
}
|
||||
path.smooth({ continuous: true });
|
||||
path.smooth( { type: 'continuous' });
|
||||
layer.insertChild(0, new Group({
|
||||
children: [path],
|
||||
applyMatrix: false
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
path.segments[i].point.y = yPos;
|
||||
}
|
||||
if (smooth)
|
||||
path.smooth({ continuous: true });
|
||||
path.smooth( { type: 'continuous' });
|
||||
}
|
||||
|
||||
function onMouseMove(event) {
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
vector.length = length;
|
||||
nextSegment.point = segment.point - vector;
|
||||
}
|
||||
path.smooth({ continuous: true });
|
||||
path.smooth( { type: 'continuous' });
|
||||
}
|
||||
|
||||
function onMouseDown(event) {
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
for (var j = 0, l = springs.length; j < l; j++) {
|
||||
springs[j].update();
|
||||
}
|
||||
path.smooth({ continuous: true });
|
||||
path.smooth( { type: 'continuous' });
|
||||
}
|
||||
|
||||
function onKeyDown(event) {
|
||||
|
|
Loading…
Reference in a new issue