mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Curve: Implement selection of curves.
This commit is contained in:
parent
cf541901dd
commit
abb0878a25
1 changed files with 11 additions and 0 deletions
|
@ -140,6 +140,17 @@ var Curve = this.Curve = Base.extend({
|
||||||
return curves && (curves[this._index1 - 1]
|
return curves && (curves[this._index1 - 1]
|
||||||
|| this._path.closed && curves[curves.length - 1]) || null;
|
|| this._path.closed && curves[curves.length - 1]) || null;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// TODO: port back to Scriptographer?
|
||||||
|
setSelected: function(selected) {
|
||||||
|
this.getHandle1().setSelected(selected);
|
||||||
|
this.getHandle2().setSelected(selected);
|
||||||
|
},
|
||||||
|
|
||||||
|
// TODO: port back to Scriptographer?
|
||||||
|
isSelected: function() {
|
||||||
|
return this.getHandle1().isSelected() && this.getHandle2.isSelected();
|
||||||
|
},
|
||||||
|
|
||||||
getCurveValues: function() {
|
getCurveValues: function() {
|
||||||
var p1 = this._segment1._point,
|
var p1 = this._segment1._point,
|
||||||
|
|
Loading…
Reference in a new issue