Prebuilt module for commit a12e99e387

This commit is contained in:
Paper.js Bot 2016-02-01 19:18:21 +00:00
parent 56b753f892
commit d2de7cee9e
17 changed files with 47 additions and 74 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Mon Feb 1 12:58:52 2016 +0100
* Date: Mon Feb 1 20:15:37 2016 +0100
*
***
*
@ -3801,7 +3801,6 @@ new function() {
} else {
child.remove();
}
child.copyAttributes(this);
return child;
}
return this;
@ -4890,9 +4889,9 @@ var Raster = Item.extend({
image = document.getElementById(src) || new window.Image();
if (crossOrigin)
image.crossOrigin = crossOrigin;
this.setImage(image);
if (!image.src)
image.src = src;
this.setImage(image);
},
getCrossOrigin: function() {
@ -13641,7 +13640,7 @@ new function() {
onLoad = options.onLoad,
view = scope.project && scope.getView();
if (onLoad)
onLoad.call(this, item);
onLoad.call(this, item, svg);
}
if (isRoot) {

View file

@ -3730,9 +3730,7 @@ function onMouseDown(event) {
<ul class="member-list">
<h4>Options:</h4>
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
<li>[options.onLoad] {Function} the callback function to call once
the SVG content is loaded from the given URL. Only required when
loading from external files.</li>
<li><tt>options.onLoad: <tt>Function</tt></tt> &mdash; the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.</li>
<li><tt>options.applyMatrix: <tt>Boolean</tt></tt> &mdash; whether imported items should have their transformation matrices applied to their contents or not &mdash;&nbsp;default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
</ul>
@ -3794,7 +3792,7 @@ function onMouseDown(event) {
<li>
<tt>onLoad:</tt>
<tt>Function</tt>
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL.
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.
</li>

View file

@ -3608,9 +3608,7 @@ function onMouseDown(event) {
<ul class="member-list">
<h4>Options:</h4>
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
<li>[options.onLoad] {Function} the callback function to call once
the SVG content is loaded from the given URL. Only required when
loading from external files.</li>
<li><tt>options.onLoad: <tt>Function</tt></tt> &mdash; the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.</li>
<li><tt>options.applyMatrix: <tt>Boolean</tt></tt> &mdash; whether imported items should have their transformation matrices applied to their contents or not &mdash;&nbsp;default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
</ul>
@ -3672,7 +3670,7 @@ function onMouseDown(event) {
<li>
<tt>onLoad:</tt>
<tt>Function</tt>
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL.
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.
</li>

View file

@ -3365,9 +3365,7 @@ function onMouseDown(event) {
<ul class="member-list">
<h4>Options:</h4>
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
<li>[options.onLoad] {Function} the callback function to call once
the SVG content is loaded from the given URL. Only required when
loading from external files.</li>
<li><tt>options.onLoad: <tt>Function</tt></tt> &mdash; the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.</li>
<li><tt>options.applyMatrix: <tt>Boolean</tt></tt> &mdash; whether imported items should have their transformation matrices applied to their contents or not &mdash;&nbsp;default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
</ul>
@ -3429,7 +3427,7 @@ function onMouseDown(event) {
<li>
<tt>onLoad:</tt>
<tt>Function</tt>
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL.
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.
</li>

View file

@ -3522,9 +3522,7 @@ function onMouseDown(event) {
<ul class="member-list">
<h4>Options:</h4>
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
<li>[options.onLoad] {Function} the callback function to call once
the SVG content is loaded from the given URL. Only required when
loading from external files.</li>
<li><tt>options.onLoad: <tt>Function</tt></tt> &mdash; the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.</li>
<li><tt>options.applyMatrix: <tt>Boolean</tt></tt> &mdash; whether imported items should have their transformation matrices applied to their contents or not &mdash;&nbsp;default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
</ul>
@ -3586,7 +3584,7 @@ function onMouseDown(event) {
<li>
<tt>onLoad:</tt>
<tt>Function</tt>
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL.
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.
</li>

View file

@ -6970,9 +6970,7 @@ function onMouseDown(event) {
<ul class="member-list">
<h4>Options:</h4>
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
<li>[options.onLoad] {Function} the callback function to call once
the SVG content is loaded from the given URL. Only required when
loading from external files.</li>
<li><tt>options.onLoad: <tt>Function</tt></tt> &mdash; the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.</li>
<li><tt>options.applyMatrix: <tt>Boolean</tt></tt> &mdash; whether imported items should have their transformation matrices applied to their contents or not &mdash;&nbsp;default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
</ul>
@ -7034,7 +7032,7 @@ function onMouseDown(event) {
<li>
<tt>onLoad:</tt>
<tt>Function</tt>
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL.
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.
</li>

View file

@ -4676,9 +4676,7 @@ function onMouseDown(event) {
<ul class="member-list">
<h4>Options:</h4>
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
<li>[options.onLoad] {Function} the callback function to call once
the SVG content is loaded from the given URL. Only required when
loading from external files.</li>
<li><tt>options.onLoad: <tt>Function</tt></tt> &mdash; the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.</li>
<li><tt>options.applyMatrix: <tt>Boolean</tt></tt> &mdash; whether imported items should have their transformation matrices applied to their contents or not &mdash;&nbsp;default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
</ul>
@ -4740,7 +4738,7 @@ function onMouseDown(event) {
<li>
<tt>onLoad:</tt>
<tt>Function</tt>
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL.
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.
</li>

View file

@ -3531,9 +3531,7 @@ function onMouseDown(event) {
<ul class="member-list">
<h4>Options:</h4>
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
<li>[options.onLoad] {Function} the callback function to call once
the SVG content is loaded from the given URL. Only required when
loading from external files.</li>
<li><tt>options.onLoad: <tt>Function</tt></tt> &mdash; the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.</li>
<li><tt>options.applyMatrix: <tt>Boolean</tt></tt> &mdash; whether imported items should have their transformation matrices applied to their contents or not &mdash;&nbsp;default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
</ul>
@ -3595,7 +3593,7 @@ function onMouseDown(event) {
<li>
<tt>onLoad:</tt>
<tt>Function</tt>
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL.
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.
</li>

View file

@ -1085,9 +1085,7 @@ for (var i = 0; i < items.length; i++) {
<ul class="member-list">
<h4>Options:</h4>
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
<li>[options.onLoad] {Function} the callback function to call once
the SVG content is loaded from the given URL. Only required when loading
from external files.</li>
<li><tt>options.onLoad: undefined</tt> &mdash; (item, svg) {Function} the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.</li>
<li><tt>options.applyMatrix: <tt>Boolean</tt></tt> &mdash; whether imported items should have their transformation matrices applied to their contents or not &mdash;&nbsp;default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
</ul>
@ -1149,7 +1147,7 @@ from external files.</li>
<li>
<tt>onLoad:</tt>
<tt>Function</tt>
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL.
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.
</li>

View file

@ -4316,9 +4316,7 @@ function onMouseDown(event) {
<ul class="member-list">
<h4>Options:</h4>
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
<li>[options.onLoad] {Function} the callback function to call once
the SVG content is loaded from the given URL. Only required when
loading from external files.</li>
<li><tt>options.onLoad: <tt>Function</tt></tt> &mdash; the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.</li>
<li><tt>options.applyMatrix: <tt>Boolean</tt></tt> &mdash; whether imported items should have their transformation matrices applied to their contents or not &mdash;&nbsp;default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
</ul>
@ -4380,7 +4378,7 @@ function onMouseDown(event) {
<li>
<tt>onLoad:</tt>
<tt>Function</tt>
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL.
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.
</li>

View file

@ -4086,9 +4086,7 @@ function onMouseDown(event) {
<ul class="member-list">
<h4>Options:</h4>
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
<li>[options.onLoad] {Function} the callback function to call once
the SVG content is loaded from the given URL. Only required when
loading from external files.</li>
<li><tt>options.onLoad: <tt>Function</tt></tt> &mdash; the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.</li>
<li><tt>options.applyMatrix: <tt>Boolean</tt></tt> &mdash; whether imported items should have their transformation matrices applied to their contents or not &mdash;&nbsp;default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
</ul>
@ -4150,7 +4148,7 @@ function onMouseDown(event) {
<li>
<tt>onLoad:</tt>
<tt>Function</tt>
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL.
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.
</li>

View file

@ -3502,9 +3502,7 @@ function onMouseDown(event) {
<ul class="member-list">
<h4>Options:</h4>
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
<li>[options.onLoad] {Function} the callback function to call once
the SVG content is loaded from the given URL. Only required when
loading from external files.</li>
<li><tt>options.onLoad: <tt>Function</tt></tt> &mdash; the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.</li>
<li><tt>options.applyMatrix: <tt>Boolean</tt></tt> &mdash; whether imported items should have their transformation matrices applied to their contents or not &mdash;&nbsp;default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
</ul>
@ -3566,7 +3564,7 @@ function onMouseDown(event) {
<li>
<tt>onLoad:</tt>
<tt>Function</tt>
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL.
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.
</li>

View file

@ -3619,9 +3619,7 @@ function onMouseDown(event) {
<ul class="member-list">
<h4>Options:</h4>
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
<li>[options.onLoad] {Function} the callback function to call once
the SVG content is loaded from the given URL. Only required when
loading from external files.</li>
<li><tt>options.onLoad: <tt>Function</tt></tt> &mdash; the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.</li>
<li><tt>options.applyMatrix: <tt>Boolean</tt></tt> &mdash; whether imported items should have their transformation matrices applied to their contents or not &mdash;&nbsp;default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
</ul>
@ -3683,7 +3681,7 @@ function onMouseDown(event) {
<li>
<tt>onLoad:</tt>
<tt>Function</tt>
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL.
&mdash;&nbsp;the callback function to call once the SVG content is loaded from the given URL receiving two arguments: the converted <code>item</code> and the original <code>svg</code> data as a string. Only required when loading from external files.
</li>

7
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Mon Feb 1 12:58:52 2016 +0100
* Date: Mon Feb 1 20:15:37 2016 +0100
*
***
*
@ -3801,7 +3801,6 @@ new function() {
} else {
child.remove();
}
child.copyAttributes(this);
return child;
}
return this;
@ -4890,9 +4889,9 @@ var Raster = Item.extend({
image = document.getElementById(src) || new window.Image();
if (crossOrigin)
image.crossOrigin = crossOrigin;
this.setImage(image);
if (!image.src)
image.src = src;
this.setImage(image);
},
getCrossOrigin: function() {
@ -13641,7 +13640,7 @@ new function() {
onLoad = options.onLoad,
view = scope.project && scope.getView();
if (onLoad)
onLoad.call(this, item);
onLoad.call(this, item, svg);
}
if (isRoot) {

File diff suppressed because one or more lines are too long

7
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Mon Feb 1 12:58:52 2016 +0100
* Date: Mon Feb 1 20:15:37 2016 +0100
*
***
*
@ -3801,7 +3801,6 @@ new function() {
} else {
child.remove();
}
child.copyAttributes(this);
return child;
}
return this;
@ -4890,9 +4889,9 @@ var Raster = Item.extend({
image = document.getElementById(src) || new window.Image();
if (crossOrigin)
image.crossOrigin = crossOrigin;
this.setImage(image);
if (!image.src)
image.src = src;
this.setImage(image);
},
getCrossOrigin: function() {
@ -13641,7 +13640,7 @@ new function() {
onLoad = options.onLoad,
view = scope.project && scope.getView();
if (onLoad)
onLoad.call(this, item);
onLoad.call(this, item, svg);
}
if (isRoot) {

File diff suppressed because one or more lines are too long