mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-26 21:59:46 -04:00
Use internal variables in CompoundPath#moveBy and Segment#isSelected.
This commit is contained in:
parent
af0543dac8
commit
1ea0a811b5
2 changed files with 5 additions and 5 deletions
src/path
|
@ -108,7 +108,7 @@ var CompoundPath = this.CompoundPath = PathItem.extend({
|
|||
moveBy: function() {
|
||||
var point = arguments.length ? Point.read(arguments) : new Point();
|
||||
var path = getCurrentPath(this);
|
||||
var current = path.segments[path.segments.length - 1].point;
|
||||
var current = path.segments[path.segments.length - 1]._point;
|
||||
this.moveTo(current.add(point));
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue