Prebuilt module for commit 4d9c0c9f05

This commit is contained in:
Paper.js Bot 2016-07-19 17:21:41 +00:00
parent 7d1c45bb7f
commit baeb2b0512
6 changed files with 63 additions and 11 deletions

View file

@ -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,

View file

@ -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
View file

@ -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,

File diff suppressed because one or more lines are too long

10
dist/paper-full.js vendored
View file

@ -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,

File diff suppressed because one or more lines are too long