mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Prebuilt module for commit 00b2102b6d
This commit is contained in:
parent
4e88de0c05
commit
ab87fd5eca
7 changed files with 93 additions and 100 deletions
47
dist/docs/assets/js/paper.js
vendored
47
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* 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
|
var checkSelf = !(options.guides && !this._guide
|
||||||
|| options.selected && !this.isSelected(true)
|
|| options.selected && !this.isSelected()
|
||||||
|| options.type && options.type !== Base.hyphenate(this._class)
|
|| options.type && options.type !== Base.hyphenate(this._class)
|
||||||
|| options.class && !(this instanceof options.class)),
|
|| options.class && !(this instanceof options.class)),
|
||||||
callback = options.match,
|
callback = options.match,
|
||||||
|
@ -5464,24 +5464,19 @@ var Segment = Base.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_getSelection: function(point) {
|
changeSelection: function(flag, selected) {
|
||||||
return !point ? 7
|
var selection = this._selection;
|
||||||
: 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);
|
|
||||||
this.setSelection(selected ? selection | flag : selection & ~flag);
|
this.setSelection(selected ? selection | flag : selection & ~flag);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
isSelected: function() {
|
||||||
|
return !!(this._selection & 7);
|
||||||
|
},
|
||||||
|
|
||||||
|
setSelected: function(selected) {
|
||||||
|
this.changeSelection(7, selected);
|
||||||
|
},
|
||||||
|
|
||||||
getIndex: function() {
|
getIndex: function() {
|
||||||
return this._index !== undefined ? this._index : null;
|
return this._index !== undefined ? this._index : null;
|
||||||
},
|
},
|
||||||
|
@ -5748,12 +5743,20 @@ var SegmentPoint = Point.extend({
|
||||||
return Numerical.isZero(this._x) && Numerical.isZero(this._y);
|
return Numerical.isZero(this._x) && Numerical.isZero(this._y);
|
||||||
},
|
},
|
||||||
|
|
||||||
setSelected: function(selected) {
|
isSelected: function() {
|
||||||
this._owner.setSelected(selected, this);
|
return !!(this._owner._selection & this._getSelection());
|
||||||
},
|
},
|
||||||
|
|
||||||
isSelected: function() {
|
setSelected: function(selected) {
|
||||||
return this._owner.isSelected(this);
|
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() {
|
isFullySelected: function() {
|
||||||
var length = this._segments.length;
|
var length = this._segments.length;
|
||||||
return this.isSelected(true) && length > 0 && this._segmentSelection
|
return this.isSelected() && length > 0 && this._segmentSelection
|
||||||
=== length * 7;
|
=== length * 7;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
16
dist/docs/classes/Point.html
vendored
16
dist/docs/classes/Point.html
vendored
|
@ -913,22 +913,6 @@ console.log(point.quadrant); // 4</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="member-description hidden">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
2
dist/docs/classes/Segment.html
vendored
2
dist/docs/classes/Segment.html
vendored
|
@ -261,7 +261,7 @@ var path = new Path({
|
||||||
<div class="member-description hidden">
|
<div class="member-description hidden">
|
||||||
|
|
||||||
<div class="member-text">
|
<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
47
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* 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
|
var checkSelf = !(options.guides && !this._guide
|
||||||
|| options.selected && !this.isSelected(true)
|
|| options.selected && !this.isSelected()
|
||||||
|| options.type && options.type !== Base.hyphenate(this._class)
|
|| options.type && options.type !== Base.hyphenate(this._class)
|
||||||
|| options.class && !(this instanceof options.class)),
|
|| options.class && !(this instanceof options.class)),
|
||||||
callback = options.match,
|
callback = options.match,
|
||||||
|
@ -5464,24 +5464,19 @@ var Segment = Base.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_getSelection: function(point) {
|
changeSelection: function(flag, selected) {
|
||||||
return !point ? 7
|
var selection = this._selection;
|
||||||
: 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);
|
|
||||||
this.setSelection(selected ? selection | flag : selection & ~flag);
|
this.setSelection(selected ? selection | flag : selection & ~flag);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
isSelected: function() {
|
||||||
|
return !!(this._selection & 7);
|
||||||
|
},
|
||||||
|
|
||||||
|
setSelected: function(selected) {
|
||||||
|
this.changeSelection(7, selected);
|
||||||
|
},
|
||||||
|
|
||||||
getIndex: function() {
|
getIndex: function() {
|
||||||
return this._index !== undefined ? this._index : null;
|
return this._index !== undefined ? this._index : null;
|
||||||
},
|
},
|
||||||
|
@ -5748,12 +5743,20 @@ var SegmentPoint = Point.extend({
|
||||||
return Numerical.isZero(this._x) && Numerical.isZero(this._y);
|
return Numerical.isZero(this._x) && Numerical.isZero(this._y);
|
||||||
},
|
},
|
||||||
|
|
||||||
setSelected: function(selected) {
|
isSelected: function() {
|
||||||
this._owner.setSelected(selected, this);
|
return !!(this._owner._selection & this._getSelection());
|
||||||
},
|
},
|
||||||
|
|
||||||
isSelected: function() {
|
setSelected: function(selected) {
|
||||||
return this._owner.isSelected(this);
|
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() {
|
isFullySelected: function() {
|
||||||
var length = this._segments.length;
|
var length = this._segments.length;
|
||||||
return this.isSelected(true) && length > 0 && this._segmentSelection
|
return this.isSelected() && length > 0 && this._segmentSelection
|
||||||
=== length * 7;
|
=== length * 7;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
16
dist/paper-core.min.js
vendored
16
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
47
dist/paper-full.js
vendored
47
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* 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
|
var checkSelf = !(options.guides && !this._guide
|
||||||
|| options.selected && !this.isSelected(true)
|
|| options.selected && !this.isSelected()
|
||||||
|| options.type && options.type !== Base.hyphenate(this._class)
|
|| options.type && options.type !== Base.hyphenate(this._class)
|
||||||
|| options.class && !(this instanceof options.class)),
|
|| options.class && !(this instanceof options.class)),
|
||||||
callback = options.match,
|
callback = options.match,
|
||||||
|
@ -5464,24 +5464,19 @@ var Segment = Base.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_getSelection: function(point) {
|
changeSelection: function(flag, selected) {
|
||||||
return !point ? 7
|
var selection = this._selection;
|
||||||
: 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);
|
|
||||||
this.setSelection(selected ? selection | flag : selection & ~flag);
|
this.setSelection(selected ? selection | flag : selection & ~flag);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
isSelected: function() {
|
||||||
|
return !!(this._selection & 7);
|
||||||
|
},
|
||||||
|
|
||||||
|
setSelected: function(selected) {
|
||||||
|
this.changeSelection(7, selected);
|
||||||
|
},
|
||||||
|
|
||||||
getIndex: function() {
|
getIndex: function() {
|
||||||
return this._index !== undefined ? this._index : null;
|
return this._index !== undefined ? this._index : null;
|
||||||
},
|
},
|
||||||
|
@ -5748,12 +5743,20 @@ var SegmentPoint = Point.extend({
|
||||||
return Numerical.isZero(this._x) && Numerical.isZero(this._y);
|
return Numerical.isZero(this._x) && Numerical.isZero(this._y);
|
||||||
},
|
},
|
||||||
|
|
||||||
setSelected: function(selected) {
|
isSelected: function() {
|
||||||
this._owner.setSelected(selected, this);
|
return !!(this._owner._selection & this._getSelection());
|
||||||
},
|
},
|
||||||
|
|
||||||
isSelected: function() {
|
setSelected: function(selected) {
|
||||||
return this._owner.isSelected(this);
|
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() {
|
isFullySelected: function() {
|
||||||
var length = this._segments.length;
|
var length = this._segments.length;
|
||||||
return this.isSelected(true) && length > 0 && this._segmentSelection
|
return this.isSelected() && length > 0 && this._segmentSelection
|
||||||
=== length * 7;
|
=== length * 7;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
18
dist/paper-full.min.js
vendored
18
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue