Path#cubicCurveTo: convert arguments to points first.

This commit is contained in:
Jonathan Puckey 2011-04-12 14:35:42 +02:00
parent 91d8dd1187
commit 60dca8c2e8

View file

@ -508,6 +508,9 @@ var Path = this.Path = PathItem.extend({
* to point.
*/
cubicCurveTo: function(handle1, handle2, to) {
handle1 = Point.read(arguments, 0, 1);
handle2 = Point.read(arguments, 1, 1);
to = Point.read(arguments, 2, 1);
// First modify the current segment:
var current = getCurrentSegment(this);
// Convert to relative values: