mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Prebuilt module for commit bd98e067c3
This commit is contained in:
parent
dc95eaf67c
commit
316da0f7b2
6 changed files with 39 additions and 92 deletions
14
dist/docs/assets/js/paper.js
vendored
14
dist/docs/assets/js/paper.js
vendored
|
@ -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,
|
||||
|
|
75
dist/docs/classes/Curve.html
vendored
75
dist/docs/classes/Curve.html
vendored
|
@ -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>
|
||||
— 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> — 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
|
||||
— the curve values, as returned by <tt>Curve#getValues</tt>()
|
||||
<tt>curve:</tt>
|
||||
<a href="../classes/Curve.html"><tt>Curve</tt></a>
|
||||
— 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>
|
||||
— the direction in which the curves should be monotone, <code>0</code>: monotone in x-direction, <code>1</code>: monotone in y-direction
|
||||
— 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> — 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> — 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
14
dist/paper-core.js
vendored
|
@ -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,
|
||||
|
|
8
dist/paper-core.min.js
vendored
8
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
14
dist/paper-full.js
vendored
14
dist/paper-full.js
vendored
|
@ -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,
|
||||
|
|
6
dist/paper-full.min.js
vendored
6
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue