mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Prebuilt module for commit 677c073c84
This commit is contained in:
parent
6ba2a18d35
commit
8d1e3868ab
6 changed files with 80 additions and 30 deletions
13
dist/docs/assets/js/paper.js
vendored
13
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Mar 8 13:41:23 2017 +0100
|
||||
* Date: Wed Mar 8 14:13:19 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -2552,9 +2552,12 @@ var Line = Base.extend({
|
|||
},
|
||||
|
||||
getDistance: function(point) {
|
||||
return Math.abs(Line.getSignedDistance(
|
||||
this._px, this._py, this._vx, this._vy,
|
||||
point.x, point.y, true));
|
||||
return Math.abs(this.getSignedDistance(point));
|
||||
},
|
||||
|
||||
getSignedDistance: function(point) {
|
||||
return Line.getSignedDistance(this._px, this._py, this._vx, this._vy,
|
||||
point.x, point.y, true);
|
||||
},
|
||||
|
||||
isCollinear: function(line) {
|
||||
|
@ -9084,7 +9087,7 @@ new function() {
|
|||
extent += extent < 0 ? 360 : -360;
|
||||
}
|
||||
}
|
||||
var epsilon = 1e-12,
|
||||
var epsilon = 1e-7,
|
||||
ext = abs(extent),
|
||||
count = ext >= 360 ? 4 : Math.ceil((ext - epsilon) / 90),
|
||||
inc = extent / count,
|
||||
|
|
41
dist/docs/classes/Line.html
vendored
41
dist/docs/classes/Line.html
vendored
|
@ -329,6 +329,47 @@
|
|||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="getsigneddistance-point" class="member">
|
||||
<div class="member-link">
|
||||
<a name="getsigneddistance-point" href="#getsigneddistance-point"><tt><b>getSignedDistance</b>(point)</tt></a>
|
||||
</div>
|
||||
<div class="member-description hidden">
|
||||
<div class="member-text">
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>Parameters:</h4>
|
||||
|
||||
<li>
|
||||
<tt>point:</tt>
|
||||
<a href="../classes/Point.html"><tt>Point</tt></a>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>Returns:</h4>
|
||||
|
||||
<li>
|
||||
<tt><tt>Number</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
13
dist/paper-core.js
vendored
13
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Mar 8 13:41:23 2017 +0100
|
||||
* Date: Wed Mar 8 14:13:19 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -2552,9 +2552,12 @@ var Line = Base.extend({
|
|||
},
|
||||
|
||||
getDistance: function(point) {
|
||||
return Math.abs(Line.getSignedDistance(
|
||||
this._px, this._py, this._vx, this._vy,
|
||||
point.x, point.y, true));
|
||||
return Math.abs(this.getSignedDistance(point));
|
||||
},
|
||||
|
||||
getSignedDistance: function(point) {
|
||||
return Line.getSignedDistance(this._px, this._py, this._vx, this._vy,
|
||||
point.x, point.y, true);
|
||||
},
|
||||
|
||||
isCollinear: function(line) {
|
||||
|
@ -9084,7 +9087,7 @@ new function() {
|
|||
extent += extent < 0 ? 360 : -360;
|
||||
}
|
||||
}
|
||||
var epsilon = 1e-12,
|
||||
var epsilon = 1e-7,
|
||||
ext = abs(extent),
|
||||
count = ext >= 360 ? 4 : Math.ceil((ext - epsilon) / 90),
|
||||
inc = extent / count,
|
||||
|
|
14
dist/paper-core.min.js
vendored
14
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
13
dist/paper-full.js
vendored
13
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Mar 8 13:41:23 2017 +0100
|
||||
* Date: Wed Mar 8 14:13:19 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -2552,9 +2552,12 @@ var Line = Base.extend({
|
|||
},
|
||||
|
||||
getDistance: function(point) {
|
||||
return Math.abs(Line.getSignedDistance(
|
||||
this._px, this._py, this._vx, this._vy,
|
||||
point.x, point.y, true));
|
||||
return Math.abs(this.getSignedDistance(point));
|
||||
},
|
||||
|
||||
getSignedDistance: function(point) {
|
||||
return Line.getSignedDistance(this._px, this._py, this._vx, this._vy,
|
||||
point.x, point.y, true);
|
||||
},
|
||||
|
||||
isCollinear: function(line) {
|
||||
|
@ -9084,7 +9087,7 @@ new function() {
|
|||
extent += extent < 0 ? 360 : -360;
|
||||
}
|
||||
}
|
||||
var epsilon = 1e-12,
|
||||
var epsilon = 1e-7,
|
||||
ext = abs(extent),
|
||||
count = ext >= 360 ? 4 : Math.ceil((ext - epsilon) / 90),
|
||||
inc = extent / count,
|
||||
|
|
16
dist/paper-full.min.js
vendored
16
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue