Prebuilt module for commit 00b2102b6d

This commit is contained in:
Paper.js Bot 2016-03-17 12:39:07 +00:00
parent 4e88de0c05
commit ab87fd5eca
7 changed files with 93 additions and 100 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Thu Mar 17 13:09:02 2016 +0100
* Date: Thu Mar 17 13:36:02 2016 +0100
*
***
*
@ -3631,7 +3631,7 @@ new function() {
}
var checkSelf = !(options.guides && !this._guide
|| options.selected && !this.isSelected(true)
|| options.selected && !this.isSelected()
|| options.type && options.type !== Base.hyphenate(this._class)
|| options.class && !(this instanceof options.class)),
callback = options.match,
@ -5464,24 +5464,19 @@ var Segment = Base.extend({
}
},
_getSelection: function(point) {
return !point ? 7
: point === this._point ? 1
: point === this._handleIn ? 2
: point === this._handleOut ? 4
: 0;
},
isSelected: function(_point) {
return !!(this._selection & this._getSelection(_point));
},
setSelected: function(selected, _point) {
var selection = this._selection,
flag = this._getSelection(_point);
changeSelection: function(flag, selected) {
var selection = this._selection;
this.setSelection(selected ? selection | flag : selection & ~flag);
},
isSelected: function() {
return !!(this._selection & 7);
},
setSelected: function(selected) {
this.changeSelection(7, selected);
},
getIndex: function() {
return this._index !== undefined ? this._index : null;
},
@ -5748,12 +5743,20 @@ var SegmentPoint = Point.extend({
return Numerical.isZero(this._x) && Numerical.isZero(this._y);
},
setSelected: function(selected) {
this._owner.setSelected(selected, this);
isSelected: function() {
return !!(this._owner._selection & this._getSelection());
},
isSelected: function() {
return this._owner.isSelected(this);
setSelected: function(selected) {
this._owner.changeSelection(this._getSelection(), selected);
},
_getSelection: function() {
var owner = this._owner;
return this === owner._point ? 1
: this === owner._handleIn ? 2
: this === owner._handleOut ? 4
: 0;
}
});
@ -7874,7 +7877,7 @@ var Path = PathItem.extend({
isFullySelected: function() {
var length = this._segments.length;
return this.isSelected(true) && length > 0 && this._segmentSelection
return this.isSelected() && length > 0 && this._segmentSelection
=== length * 7;
},

View file

@ -913,22 +913,6 @@ console.log(point.quadrant); // 4</code></pre>
</div>
<div class="member-description hidden">
<div class="member-text">
<p>This property is only present if the point is an anchor or control point of a <a href="../classes/Segment.html"><tt>Segment</tt></a> or a <a href="../classes/Curve.html"><tt>Curve</tt></a>. In this case, it returns <tt>true</tt> it is selected, <tt>false</tt> otherwise</p>
<ul class="member-list">
<h4>Type:</h4>
<li>
<tt>Boolean</tt>
</li>
</ul>
</div>
</div>
</div>

View file

@ -261,7 +261,7 @@ var path = new Path({
<div class="member-description hidden">
<div class="member-text">
<p>Specifies whether the <a href="../classes/Segment.html#point"><tt>point</tt></a> of the segment is selected.</p>
<p>Specifies whether the segment is selected.</p>

47
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Thu Mar 17 13:09:02 2016 +0100
* Date: Thu Mar 17 13:36:02 2016 +0100
*
***
*
@ -3631,7 +3631,7 @@ new function() {
}
var checkSelf = !(options.guides && !this._guide
|| options.selected && !this.isSelected(true)
|| options.selected && !this.isSelected()
|| options.type && options.type !== Base.hyphenate(this._class)
|| options.class && !(this instanceof options.class)),
callback = options.match,
@ -5464,24 +5464,19 @@ var Segment = Base.extend({
}
},
_getSelection: function(point) {
return !point ? 7
: point === this._point ? 1
: point === this._handleIn ? 2
: point === this._handleOut ? 4
: 0;
},
isSelected: function(_point) {
return !!(this._selection & this._getSelection(_point));
},
setSelected: function(selected, _point) {
var selection = this._selection,
flag = this._getSelection(_point);
changeSelection: function(flag, selected) {
var selection = this._selection;
this.setSelection(selected ? selection | flag : selection & ~flag);
},
isSelected: function() {
return !!(this._selection & 7);
},
setSelected: function(selected) {
this.changeSelection(7, selected);
},
getIndex: function() {
return this._index !== undefined ? this._index : null;
},
@ -5748,12 +5743,20 @@ var SegmentPoint = Point.extend({
return Numerical.isZero(this._x) && Numerical.isZero(this._y);
},
setSelected: function(selected) {
this._owner.setSelected(selected, this);
isSelected: function() {
return !!(this._owner._selection & this._getSelection());
},
isSelected: function() {
return this._owner.isSelected(this);
setSelected: function(selected) {
this._owner.changeSelection(this._getSelection(), selected);
},
_getSelection: function() {
var owner = this._owner;
return this === owner._point ? 1
: this === owner._handleIn ? 2
: this === owner._handleOut ? 4
: 0;
}
});
@ -7874,7 +7877,7 @@ var Path = PathItem.extend({
isFullySelected: function() {
var length = this._segments.length;
return this.isSelected(true) && length > 0 && this._segmentSelection
return this.isSelected() && length > 0 && this._segmentSelection
=== length * 7;
},

File diff suppressed because one or more lines are too long

47
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Thu Mar 17 13:09:02 2016 +0100
* Date: Thu Mar 17 13:36:02 2016 +0100
*
***
*
@ -3631,7 +3631,7 @@ new function() {
}
var checkSelf = !(options.guides && !this._guide
|| options.selected && !this.isSelected(true)
|| options.selected && !this.isSelected()
|| options.type && options.type !== Base.hyphenate(this._class)
|| options.class && !(this instanceof options.class)),
callback = options.match,
@ -5464,24 +5464,19 @@ var Segment = Base.extend({
}
},
_getSelection: function(point) {
return !point ? 7
: point === this._point ? 1
: point === this._handleIn ? 2
: point === this._handleOut ? 4
: 0;
},
isSelected: function(_point) {
return !!(this._selection & this._getSelection(_point));
},
setSelected: function(selected, _point) {
var selection = this._selection,
flag = this._getSelection(_point);
changeSelection: function(flag, selected) {
var selection = this._selection;
this.setSelection(selected ? selection | flag : selection & ~flag);
},
isSelected: function() {
return !!(this._selection & 7);
},
setSelected: function(selected) {
this.changeSelection(7, selected);
},
getIndex: function() {
return this._index !== undefined ? this._index : null;
},
@ -5748,12 +5743,20 @@ var SegmentPoint = Point.extend({
return Numerical.isZero(this._x) && Numerical.isZero(this._y);
},
setSelected: function(selected) {
this._owner.setSelected(selected, this);
isSelected: function() {
return !!(this._owner._selection & this._getSelection());
},
isSelected: function() {
return this._owner.isSelected(this);
setSelected: function(selected) {
this._owner.changeSelection(this._getSelection(), selected);
},
_getSelection: function() {
var owner = this._owner;
return this === owner._point ? 1
: this === owner._handleIn ? 2
: this === owner._handleOut ? 4
: 0;
}
});
@ -7874,7 +7877,7 @@ var Path = PathItem.extend({
isFullySelected: function() {
var length = this._segments.length;
return this.isSelected(true) && length > 0 && this._segmentSelection
return this.isSelected() && length > 0 && this._segmentSelection
=== length * 7;
},

File diff suppressed because one or more lines are too long