Use the correct notation in the new smooth() calls.

This commit is contained in:
Jürg Lehni 2016-01-15 17:25:15 +01:00
parent 31297c359a
commit 9f448a97ef
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -39,7 +39,7 @@
path.segments[i].point.y = yPos;
}
if (smooth)
path.smooth({ continuous: true });
path.smooth( { type: 'continuous' });
}
function onMouseMove(event) {

View file

@ -34,7 +34,7 @@
vector.length = length;
nextSegment.point = segment.point - vector;
}
path.smooth({ continuous: true });
path.smooth( { type: 'continuous' });
}
function onMouseDown(event) {

View file

@ -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) {