mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Path#cubicCurveTo: convert arguments to points first.
This commit is contained in:
parent
91d8dd1187
commit
60dca8c2e8
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue