Prebuilt module for commit bd98e067c3

This commit is contained in:
Paper.js Bot 2017-02-12 14:46:21 +00:00
parent dc95eaf67c
commit 316da0f7b2
6 changed files with 39 additions and 92 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sun Feb 12 15:27:59 2017 +0100
* Date: Sun Feb 12 15:42:12 2017 +0100
*
***
*
@ -6074,12 +6074,6 @@ var Curve = Base.extend({
return Curve.getLength(this.getValues(), from, to);
},
getIntersections: function(curve) {
return Curve.getCurveIntersections(this.getValues(),
curve && curve !== this ? curve.getValues() : null,
this, curve, []);
},
divideAt: function(location) {
return this.divideAtTime(location && location.curve === this
? location.time : this.getTimeAt(location));
@ -7182,6 +7176,12 @@ new function() {
}
return {
getIntersections: function(curve) {
return getCurveIntersections(this.getValues(),
curve && curve !== this ? curve.getValues() : null,
this, curve, []);
},
statics: {
getCurveIntersections: getCurveIntersections,
getCurvesIntersections: getCurvesIntersections,

View file

@ -867,47 +867,6 @@
</div>
</div>
</div>
<div id="getintersections-curve" class="member">
<div class="member-link">
<a name="getintersections-curve" href="#getintersections-curve"><tt><b>getIntersections</b>(curve)</tt></a>
</div>
<div class="member-description hidden">
<div class="member-text">
<p>Returns all intersections between two <a href="../classes/Curve.html"><tt>Curve</tt></a> objects as an array of <a href="../classes/CurveLocation.html"><tt>CurveLocation</tt></a> objects.</p>
<ul class="member-list">
<h4>Parameters:</h4>
<li>
<tt>curve:</tt>
<a href="../classes/Curve.html"><tt>Curve</tt></a>
&mdash;&nbsp;the other curve to find the intersections with (if the curve itself or <code>null</code> is passed, the self intersection of the curve is returned, if it exists)
</li>
</ul>
<ul class="member-list">
<h4>Returns:</h4>
<li>
<tt>Array of <a href="../classes/CurveLocation.html"><tt>CurveLocation</tt></a> objects</tt>&nbsp;&mdash;&nbsp;the locations of all intersections between the curves
</li>
</ul>
</div>
</div>
</div>
@ -2264,39 +2223,24 @@
</div>
</div>
</div>
<div class="reference-members">
<h2>Static Methods</h2>
<div id="getmonocurves-v" class="member">
<div id="getintersections-curve" class="member">
<div class="member-link">
<a name="getmonocurves-v" href="#getmonocurves-v"><tt><b>Curve.getMonoCurves</b>(v[, dir])</tt></a>
<a name="getintersections-curve" href="#getintersections-curve"><tt><b>getIntersections</b>(curve)</tt></a>
</div>
<div class="member-description hidden">
<div class="member-text">
<p>Splits the specified curve values into curves that are monotone in the specified coordinate direction.</p>
<p>Returns all intersections between two <a href="../classes/Curve.html"><tt>Curve</tt></a> objects as an array of <a href="../classes/CurveLocation.html"><tt>CurveLocation</tt></a> objects.</p>
<ul class="member-list">
<h4>Parameters:</h4>
<li>
<tt>v:</tt>
Array of <tt>Number</tt>s
&mdash;&nbsp;the curve values, as returned by <tt>Curve#getValues</tt>()
<tt>curve:</tt>
<a href="../classes/Curve.html"><tt>Curve</tt></a>
&mdash;&nbsp;the other curve to find the intersections with (if the curve itself or <code>null</code> is passed, the self intersection of the curve is returned, if it exists)
</li>
<li>
<tt>dir:</tt>
<tt>Number</tt>
&mdash;&nbsp;the direction in which the curves should be monotone, <code>0</code>: monotone in x-direction, <code>1</code>: monotone in y-direction
&mdash;&nbsp;optional, default: <tt>0</tt>
</li>
</ul>
@ -2306,7 +2250,7 @@ Array of <tt>Number</tt>s
<h4>Returns:</h4>
<li>
<tt>Array of <tt>Number[]</tt> objects[]</tt>&nbsp;&mdash;&nbsp;an array of curve value arrays of the resulting monotone curve. If the original curve was already monotone, an array only containing its values are returned.
<tt>Array of <a href="../classes/CurveLocation.html"><tt>CurveLocation</tt></a> objects</tt>&nbsp;&mdash;&nbsp;the locations of all intersections between the curves
</li>
@ -2319,11 +2263,14 @@ Array of <tt>Number</tt>s
</div>
</div>
</div>
</div>
<!-- =========================== copyright notice ========================== -->
<p class="footer">
Paper.js v0.10.2 (develop)<br>

14
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sun Feb 12 15:27:59 2017 +0100
* Date: Sun Feb 12 15:42:12 2017 +0100
*
***
*
@ -6074,12 +6074,6 @@ var Curve = Base.extend({
return Curve.getLength(this.getValues(), from, to);
},
getIntersections: function(curve) {
return Curve.getCurveIntersections(this.getValues(),
curve && curve !== this ? curve.getValues() : null,
this, curve, []);
},
divideAt: function(location) {
return this.divideAtTime(location && location.curve === this
? location.time : this.getTimeAt(location));
@ -7182,6 +7176,12 @@ new function() {
}
return {
getIntersections: function(curve) {
return getCurveIntersections(this.getValues(),
curve && curve !== this ? curve.getValues() : null,
this, curve, []);
},
statics: {
getCurveIntersections: getCurveIntersections,
getCurvesIntersections: getCurvesIntersections,

File diff suppressed because one or more lines are too long

14
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sun Feb 12 15:27:59 2017 +0100
* Date: Sun Feb 12 15:42:12 2017 +0100
*
***
*
@ -6074,12 +6074,6 @@ var Curve = Base.extend({
return Curve.getLength(this.getValues(), from, to);
},
getIntersections: function(curve) {
return Curve.getCurveIntersections(this.getValues(),
curve && curve !== this ? curve.getValues() : null,
this, curve, []);
},
divideAt: function(location) {
return this.divideAtTime(location && location.curve === this
? location.time : this.getTimeAt(location));
@ -7182,6 +7176,12 @@ new function() {
}
return {
getIntersections: function(curve) {
return getCurveIntersections(this.getValues(),
curve && curve !== this ? curve.getValues() : null,
this, curve, []);
},
statics: {
getCurveIntersections: getCurveIntersections,
getCurvesIntersections: getCurvesIntersections,

File diff suppressed because one or more lines are too long