mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Prebuilt module for commit 21033f7850
This commit is contained in:
parent
5f89204cb3
commit
8605af4d61
6 changed files with 83 additions and 28 deletions
16
dist/docs/assets/js/paper.js
vendored
16
dist/docs/assets/js/paper.js
vendored
|
@ -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) {
|
||||
|
|
43
dist/docs/classes/PathItem.html
vendored
43
dist/docs/classes/PathItem.html
vendored
|
@ -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>
|
||||
— 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> — the newly created path item
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- =========================== inherited properties ====================== -->
|
||||
|
|
16
dist/paper-core.js
vendored
16
dist/paper-core.js
vendored
|
@ -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) {
|
||||
|
|
10
dist/paper-core.min.js
vendored
10
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
16
dist/paper-full.js
vendored
16
dist/paper-full.js
vendored
|
@ -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) {
|
||||
|
|
10
dist/paper-full.min.js
vendored
10
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue