mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Shorten CompoundPath#moveBy().
This commit is contained in:
parent
54161f81f1
commit
ebdf5a2dfd
1 changed files with 3 additions and 5 deletions
|
@ -89,11 +89,9 @@ var CompoundPath = this.CompoundPath = PathItem.extend({
|
||||||
path.moveTo.apply(path, arguments);
|
path.moveTo.apply(path, arguments);
|
||||||
},
|
},
|
||||||
|
|
||||||
moveBy: function() {
|
moveBy: function(point) {
|
||||||
var point = arguments.length ? Point.read(arguments) : new Point(),
|
this.moveTo(getCurrentPath(this).getLastSegment()._point.add(
|
||||||
path = getCurrentPath(this),
|
Point.read(arguments)));
|
||||||
current = path.segments[path.segments.length - 1]._point;
|
|
||||||
this.moveTo(current.add(point));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
closePath: function() {
|
closePath: function() {
|
||||||
|
|
Loading…
Reference in a new issue