mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Prebuilt module for commit 4d9c0c9f05
This commit is contained in:
parent
7d1c45bb7f
commit
baeb2b0512
6 changed files with 63 additions and 11 deletions
10
dist/docs/assets/js/paper.js
vendored
10
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue Jul 19 16:14:46 2016 +0200
|
||||
* Date: Tue Jul 19 19:09:23 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -9451,6 +9451,14 @@ var CompoundPath = PathItem.extend({
|
|||
for (var i = 0, l = children.length; i < l; i++)
|
||||
area += children[i].getArea();
|
||||
return area;
|
||||
},
|
||||
|
||||
getLength: function() {
|
||||
var children = this._children,
|
||||
length = 0;
|
||||
for (var i = 0, l = children.length; i < l; i++)
|
||||
length += children[i].getLength();
|
||||
return length;
|
||||
}
|
||||
}, {
|
||||
beans: true,
|
||||
|
|
28
dist/docs/classes/CompoundPath.html
vendored
28
dist/docs/classes/CompoundPath.html
vendored
|
@ -377,6 +377,34 @@ path.fillColor = 'black';
|
|||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="length" class="member">
|
||||
<div class="member-link">
|
||||
<a name="length" href="#length"><tt><b>length</b></tt></a>
|
||||
</div>
|
||||
<div class="member-description hidden">
|
||||
|
||||
<div class="member-text">
|
||||
<p>The total length of all sub-paths in this compound-path, calculated by getting <tt>Path#getLength</tt>() of each sub-path and it adding up.</p>
|
||||
|
||||
<p>Read only.</p>
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>Type:</h4>
|
||||
<li>
|
||||
<tt>Number</tt>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
10
dist/paper-core.js
vendored
10
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue Jul 19 16:14:46 2016 +0200
|
||||
* Date: Tue Jul 19 19:09:23 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -9451,6 +9451,14 @@ var CompoundPath = PathItem.extend({
|
|||
for (var i = 0, l = children.length; i < l; i++)
|
||||
area += children[i].getArea();
|
||||
return area;
|
||||
},
|
||||
|
||||
getLength: function() {
|
||||
var children = this._children,
|
||||
length = 0;
|
||||
for (var i = 0, l = children.length; i < l; i++)
|
||||
length += children[i].getLength();
|
||||
return length;
|
||||
}
|
||||
}, {
|
||||
beans: true,
|
||||
|
|
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
10
dist/paper-full.js
vendored
10
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue Jul 19 16:14:46 2016 +0200
|
||||
* Date: Tue Jul 19 19:09:23 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -9451,6 +9451,14 @@ var CompoundPath = PathItem.extend({
|
|||
for (var i = 0, l = children.length; i < l; i++)
|
||||
area += children[i].getArea();
|
||||
return area;
|
||||
},
|
||||
|
||||
getLength: function() {
|
||||
var children = this._children,
|
||||
length = 0;
|
||||
for (var i = 0, l = children.length; i < l; i++)
|
||||
length += children[i].getLength();
|
||||
return length;
|
||||
}
|
||||
}, {
|
||||
beans: true,
|
||||
|
|
8
dist/paper-full.min.js
vendored
8
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue