mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Prebuilt module for commit a12e99e387
This commit is contained in:
parent
56b753f892
commit
d2de7cee9e
17 changed files with 47 additions and 74 deletions
7
dist/docs/assets/js/paper.js
vendored
7
dist/docs/assets/js/paper.js
vendored
|
@ -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) {
|
||||
|
|
6
dist/docs/classes/CompoundPath.html
vendored
6
dist/docs/classes/CompoundPath.html
vendored
|
@ -3730,9 +3730,7 @@ function onMouseDown(event) {
|
|||
<ul class="member-list">
|
||||
<h4>Options:</h4>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — 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> — 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> — whether imported items should have their transformation matrices applied to their contents or not — 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>
|
||||
— the callback function to call once the SVG content is loaded from the given URL.
|
||||
— 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>
|
||||
|
||||
|
|
6
dist/docs/classes/Group.html
vendored
6
dist/docs/classes/Group.html
vendored
|
@ -3608,9 +3608,7 @@ function onMouseDown(event) {
|
|||
<ul class="member-list">
|
||||
<h4>Options:</h4>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — 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> — 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> — whether imported items should have their transformation matrices applied to their contents or not — 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>
|
||||
— the callback function to call once the SVG content is loaded from the given URL.
|
||||
— 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>
|
||||
|
||||
|
|
6
dist/docs/classes/Item.html
vendored
6
dist/docs/classes/Item.html
vendored
|
@ -3365,9 +3365,7 @@ function onMouseDown(event) {
|
|||
<ul class="member-list">
|
||||
<h4>Options:</h4>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — 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> — 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> — whether imported items should have their transformation matrices applied to their contents or not — 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>
|
||||
— the callback function to call once the SVG content is loaded from the given URL.
|
||||
— 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>
|
||||
|
||||
|
|
6
dist/docs/classes/Layer.html
vendored
6
dist/docs/classes/Layer.html
vendored
|
@ -3522,9 +3522,7 @@ function onMouseDown(event) {
|
|||
<ul class="member-list">
|
||||
<h4>Options:</h4>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — 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> — 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> — whether imported items should have their transformation matrices applied to their contents or not — 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>
|
||||
— the callback function to call once the SVG content is loaded from the given URL.
|
||||
— 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>
|
||||
|
||||
|
|
6
dist/docs/classes/Path.html
vendored
6
dist/docs/classes/Path.html
vendored
|
@ -6970,9 +6970,7 @@ function onMouseDown(event) {
|
|||
<ul class="member-list">
|
||||
<h4>Options:</h4>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — 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> — 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> — whether imported items should have their transformation matrices applied to their contents or not — 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>
|
||||
— the callback function to call once the SVG content is loaded from the given URL.
|
||||
— 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>
|
||||
|
||||
|
|
6
dist/docs/classes/PathItem.html
vendored
6
dist/docs/classes/PathItem.html
vendored
|
@ -4676,9 +4676,7 @@ function onMouseDown(event) {
|
|||
<ul class="member-list">
|
||||
<h4>Options:</h4>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — 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> — 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> — whether imported items should have their transformation matrices applied to their contents or not — 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>
|
||||
— the callback function to call once the SVG content is loaded from the given URL.
|
||||
— 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>
|
||||
|
||||
|
|
6
dist/docs/classes/PointText.html
vendored
6
dist/docs/classes/PointText.html
vendored
|
@ -3531,9 +3531,7 @@ function onMouseDown(event) {
|
|||
<ul class="member-list">
|
||||
<h4>Options:</h4>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — 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> — 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> — whether imported items should have their transformation matrices applied to their contents or not — 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>
|
||||
— the callback function to call once the SVG content is loaded from the given URL.
|
||||
— 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>
|
||||
|
||||
|
|
16
dist/docs/classes/Project.html
vendored
16
dist/docs/classes/Project.html
vendored
|
@ -1084,11 +1084,9 @@ for (var i = 0; i < items.length; i++) {
|
|||
<p>Converts the provided SVG content into Paper.js items and adds them to the active layer of this project. Note that the project is not cleared first. You can call <a href="../classes/Project.html#clear"><tt>project.clear</tt></a>() to do so.</p>
|
||||
<ul class="member-list">
|
||||
<h4>Options:</h4>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — 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.applyMatrix: <tt>Boolean</tt></tt> — whether imported items should have their transformation matrices applied to their contents or not — default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — default: <tt>false</tt></li>
|
||||
<li><tt>options.onLoad: undefined</tt> — (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> — whether imported items should have their transformation matrices applied to their contents or not — default: <tt><a href="../classes/PaperScope.html#settings"><tt>paperScope.settings</tt></a>.applyMatrix</tt></li>
|
||||
</ul>
|
||||
|
||||
<ul class="member-list">
|
||||
|
@ -1097,7 +1095,7 @@ from external files.</li>
|
|||
<li>
|
||||
<tt>svg:</tt>
|
||||
<tt>SVGElement</tt>⟋<tt>String</tt>
|
||||
— the SVG content to import, either as a SVG DOM node, a string containing SVG content, or a string describing the URL of the SVG file to fetch.
|
||||
— the SVG content to import, either as a SVG DOM node, a string containing SVG content, or a string describing the URL of the SVG file to fetch.
|
||||
|
||||
</li>
|
||||
|
||||
|
@ -1115,7 +1113,7 @@ from external files.</li>
|
|||
<h4>Returns:</h4>
|
||||
|
||||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
@ -1149,7 +1147,7 @@ from external files.</li>
|
|||
<li>
|
||||
<tt>onLoad:</tt>
|
||||
<tt>Function</tt>
|
||||
— the callback function to call once the SVG content is loaded from the given URL.
|
||||
— 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>
|
||||
|
||||
|
@ -1160,7 +1158,7 @@ from external files.</li>
|
|||
<h4>Returns:</h4>
|
||||
|
||||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
|
6
dist/docs/classes/Raster.html
vendored
6
dist/docs/classes/Raster.html
vendored
|
@ -4316,9 +4316,7 @@ function onMouseDown(event) {
|
|||
<ul class="member-list">
|
||||
<h4>Options:</h4>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — 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> — 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> — whether imported items should have their transformation matrices applied to their contents or not — 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>
|
||||
— the callback function to call once the SVG content is loaded from the given URL.
|
||||
— 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>
|
||||
|
||||
|
|
6
dist/docs/classes/Shape.html
vendored
6
dist/docs/classes/Shape.html
vendored
|
@ -4086,9 +4086,7 @@ function onMouseDown(event) {
|
|||
<ul class="member-list">
|
||||
<h4>Options:</h4>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — 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> — 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> — whether imported items should have their transformation matrices applied to their contents or not — 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>
|
||||
— the callback function to call once the SVG content is loaded from the given URL.
|
||||
— 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>
|
||||
|
||||
|
|
6
dist/docs/classes/SymbolItem.html
vendored
6
dist/docs/classes/SymbolItem.html
vendored
|
@ -3502,9 +3502,7 @@ function onMouseDown(event) {
|
|||
<ul class="member-list">
|
||||
<h4>Options:</h4>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — 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> — 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> — whether imported items should have their transformation matrices applied to their contents or not — 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>
|
||||
— the callback function to call once the SVG content is loaded from the given URL.
|
||||
— 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>
|
||||
|
||||
|
|
6
dist/docs/classes/TextItem.html
vendored
6
dist/docs/classes/TextItem.html
vendored
|
@ -3619,9 +3619,7 @@ function onMouseDown(event) {
|
|||
<ul class="member-list">
|
||||
<h4>Options:</h4>
|
||||
<li><tt>options.expandShapes: <tt>Boolean</tt></tt> — whether imported shape items should be expanded to path items — 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> — 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> — whether imported items should have their transformation matrices applied to their contents or not — 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>
|
||||
— the callback function to call once the SVG content is loaded from the given URL.
|
||||
— 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
7
dist/paper-core.js
vendored
|
@ -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) {
|
||||
|
|
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
7
dist/paper-full.js
vendored
7
dist/paper-full.js
vendored
|
@ -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) {
|
||||
|
|
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