Prebuilt module for commit 21033f7850

This commit is contained in:
Paper.js Bot 2016-02-14 22:19:34 +00:00
parent 5f89204cb3
commit 8605af4d61
6 changed files with 83 additions and 28 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sun Feb 14 23:04:48 2016 +0100
* Date: Sun Feb 14 23:16:22 2016 +0100
*
***
*
@ -7221,6 +7221,14 @@ var PathItem = Item.extend({
initialize: function PathItem() {
},
statics: {
create: function(pathData) {
var ctor = (pathData && pathData.match(/m/gi) || []).length > 1
|| /z\s*\S+/i.test(pathData) ? CompoundPath : Path;
return new ctor(pathData);
}
},
_asPathItem: function() {
return this;
},
@ -13552,11 +13560,7 @@ new function() {
}
function importPath(node) {
var data = node.getAttribute('d'),
param = { pathData: data };
return (data && data.match(/m/gi) || []).length > 1 || /z\b/i.test(data)
? new CompoundPath(param)
: new Path(param);
return PathItem.create(node.getAttribute('d'));
}
function importGradient(node, type) {

View file

@ -1642,6 +1642,49 @@ path.smooth();
</div>
<div class="reference-members">
<h2>Static Methods</h2>
<div id="create-pathData" class="member">
<div class="member-link">
<a name="create-pathData" href="#create-pathData"><tt><b>PathItem.create</b>(pathData)</tt></a>
</div>
<div class="member-description hidden">
<div class="member-text">
<p>Creates a path item from the given SVG path-data, determining if the data describes a plain path or a compound-path with multiple sub-paths.</p>
<ul class="member-list">
<h4>Parameters:</h4>
<li>
<tt>pathData:</tt>
<tt>String</tt>
&mdash;&nbsp;the SVG path-data to parse
</li>
</ul>
<ul class="member-list">
<h4>Returns:</h4>
<li>
<tt><a href="../classes/Path.html"><tt>Path</tt></a><a href="../classes/CompoundPath.html"><tt>CompoundPath</tt></a></tt>&nbsp;&mdash;&nbsp;the newly created path item
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- =========================== inherited properties ====================== -->

16
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sun Feb 14 23:04:48 2016 +0100
* Date: Sun Feb 14 23:16:22 2016 +0100
*
***
*
@ -7221,6 +7221,14 @@ var PathItem = Item.extend({
initialize: function PathItem() {
},
statics: {
create: function(pathData) {
var ctor = (pathData && pathData.match(/m/gi) || []).length > 1
|| /z\s*\S+/i.test(pathData) ? CompoundPath : Path;
return new ctor(pathData);
}
},
_asPathItem: function() {
return this;
},
@ -13552,11 +13560,7 @@ new function() {
}
function importPath(node) {
var data = node.getAttribute('d'),
param = { pathData: data };
return (data && data.match(/m/gi) || []).length > 1 || /z\b/i.test(data)
? new CompoundPath(param)
: new Path(param);
return PathItem.create(node.getAttribute('d'));
}
function importGradient(node, type) {

File diff suppressed because one or more lines are too long

16
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sun Feb 14 23:04:48 2016 +0100
* Date: Sun Feb 14 23:16:22 2016 +0100
*
***
*
@ -7221,6 +7221,14 @@ var PathItem = Item.extend({
initialize: function PathItem() {
},
statics: {
create: function(pathData) {
var ctor = (pathData && pathData.match(/m/gi) || []).length > 1
|| /z\s*\S+/i.test(pathData) ? CompoundPath : Path;
return new ctor(pathData);
}
},
_asPathItem: function() {
return this;
},
@ -13552,11 +13560,7 @@ new function() {
}
function importPath(node) {
var data = node.getAttribute('d'),
param = { pathData: data };
return (data && data.match(/m/gi) || []).length > 1 || /z\b/i.test(data)
? new CompoundPath(param)
: new Path(param);
return PathItem.create(node.getAttribute('d'));
}
function importGradient(node, type) {

File diff suppressed because one or more lines are too long