Prebuilt module for commit bc5a361470

This commit is contained in:
Paper.js Bot 2019-06-19 20:49:54 +00:00
parent 2aedeb6ca0
commit e4fb666b8a
7 changed files with 92 additions and 96 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Jun 19 22:05:26 2019 +0200
* Date: Wed Jun 19 22:44:54 2019 +0200
*
***
*
@ -11653,7 +11653,11 @@ var Color = Base.extend(new function() {
_changed: function() {
this._canvasStyle = null;
if (this._owner) {
this._owner[this._setter](this);
if (this._setter) {
this._owner[this._setter](this);
} else {
this._owner._changed(129);
}
}
},
@ -11863,18 +11867,6 @@ new function() {
});
});
var LinkedColor = Color.extend({
initialize: function Color(color, item, setter) {
paper.Color.apply(this, [color]);
this._item = item;
this._setter = setter;
},
_changed: function(){
this._item[this._setter](this);
}
});
var Gradient = Base.extend({
_class: 'Gradient',
@ -12131,7 +12123,8 @@ var Style = Base.extend(new function() {
old._canvasStyle = null;
}
if (value && value.constructor === Color) {
value = Color._setOwner(value, owner, set);
value = Color._setOwner(value, owner,
applyToChildren && set);
}
}
this._values[key] = value;
@ -12144,9 +12137,19 @@ var Style = Base.extend(new function() {
fields[get] = function(_dontMerge) {
var owner = this._owner,
children = owner && owner._children,
applyToChildren = children && children.length > 0
&& !(owner instanceof CompoundPath),
value;
if (key in this._defaults && (!children || !children.length
|| _dontMerge || owner instanceof CompoundPath)) {
if (applyToChildren && !_dontMerge) {
for (var i = 0, l = children.length; i < l; i++) {
var childValue = children[i]._style[get]();
if (!i) {
value = childValue;
} else if (!Base.equals(value, childValue)) {
return undefined;
}
}
} else if (key in this._defaults) {
var value = this._values[key];
if (value === undefined) {
value = this._defaults[key];
@ -12160,18 +12163,9 @@ var Style = Base.extend(new function() {
{ readNull: true, clone: true });
}
}
} else if (children) {
for (var i = 0, l = children.length; i < l; i++) {
var childValue = children[i]._style[get]();
if (!i) {
value = childValue;
} else if (!Base.equals(value, childValue)) {
return undefined;
}
}
}
if (value && isColor) {
value = Color._setOwner(value, owner, set);
value = Color._setOwner(value, owner, applyToChildren && set);
}
return value;
};

48
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Jun 19 22:05:26 2019 +0200
* Date: Wed Jun 19 22:44:54 2019 +0200
*
***
*
@ -11650,7 +11650,11 @@ var Color = Base.extend(new function() {
_changed: function() {
this._canvasStyle = null;
if (this._owner) {
this._owner[this._setter](this);
if (this._setter) {
this._owner[this._setter](this);
} else {
this._owner._changed(129);
}
}
},
@ -11860,18 +11864,6 @@ new function() {
});
});
var LinkedColor = Color.extend({
initialize: function Color(color, item, setter) {
paper.Color.apply(this, [color]);
this._item = item;
this._setter = setter;
},
_changed: function(){
this._item[this._setter](this);
}
});
var Gradient = Base.extend({
_class: 'Gradient',
@ -12128,7 +12120,8 @@ var Style = Base.extend(new function() {
old._canvasStyle = null;
}
if (value && value.constructor === Color) {
value = Color._setOwner(value, owner, set);
value = Color._setOwner(value, owner,
applyToChildren && set);
}
}
this._values[key] = value;
@ -12141,9 +12134,19 @@ var Style = Base.extend(new function() {
fields[get] = function(_dontMerge) {
var owner = this._owner,
children = owner && owner._children,
applyToChildren = children && children.length > 0
&& !(owner instanceof CompoundPath),
value;
if (key in this._defaults && (!children || !children.length
|| _dontMerge || owner instanceof CompoundPath)) {
if (applyToChildren && !_dontMerge) {
for (var i = 0, l = children.length; i < l; i++) {
var childValue = children[i]._style[get]();
if (!i) {
value = childValue;
} else if (!Base.equals(value, childValue)) {
return undefined;
}
}
} else if (key in this._defaults) {
var value = this._values[key];
if (value === undefined) {
value = this._defaults[key];
@ -12157,18 +12160,9 @@ var Style = Base.extend(new function() {
{ readNull: true, clone: true });
}
}
} else if (children) {
for (var i = 0, l = children.length; i < l; i++) {
var childValue = children[i]._style[get]();
if (!i) {
value = childValue;
} else if (!Base.equals(value, childValue)) {
return undefined;
}
}
}
if (value && isColor) {
value = Color._setOwner(value, owner, set);
value = Color._setOwner(value, owner, applyToChildren && set);
}
return value;
};

File diff suppressed because one or more lines are too long

48
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Jun 19 22:05:26 2019 +0200
* Date: Wed Jun 19 22:44:54 2019 +0200
*
***
*
@ -11653,7 +11653,11 @@ var Color = Base.extend(new function() {
_changed: function() {
this._canvasStyle = null;
if (this._owner) {
this._owner[this._setter](this);
if (this._setter) {
this._owner[this._setter](this);
} else {
this._owner._changed(129);
}
}
},
@ -11863,18 +11867,6 @@ new function() {
});
});
var LinkedColor = Color.extend({
initialize: function Color(color, item, setter) {
paper.Color.apply(this, [color]);
this._item = item;
this._setter = setter;
},
_changed: function(){
this._item[this._setter](this);
}
});
var Gradient = Base.extend({
_class: 'Gradient',
@ -12131,7 +12123,8 @@ var Style = Base.extend(new function() {
old._canvasStyle = null;
}
if (value && value.constructor === Color) {
value = Color._setOwner(value, owner, set);
value = Color._setOwner(value, owner,
applyToChildren && set);
}
}
this._values[key] = value;
@ -12144,9 +12137,19 @@ var Style = Base.extend(new function() {
fields[get] = function(_dontMerge) {
var owner = this._owner,
children = owner && owner._children,
applyToChildren = children && children.length > 0
&& !(owner instanceof CompoundPath),
value;
if (key in this._defaults && (!children || !children.length
|| _dontMerge || owner instanceof CompoundPath)) {
if (applyToChildren && !_dontMerge) {
for (var i = 0, l = children.length; i < l; i++) {
var childValue = children[i]._style[get]();
if (!i) {
value = childValue;
} else if (!Base.equals(value, childValue)) {
return undefined;
}
}
} else if (key in this._defaults) {
var value = this._values[key];
if (value === undefined) {
value = this._defaults[key];
@ -12160,18 +12163,9 @@ var Style = Base.extend(new function() {
{ readNull: true, clone: true });
}
}
} else if (children) {
for (var i = 0, l = children.length; i < l; i++) {
var childValue = children[i]._style[get]();
if (!i) {
value = childValue;
} else if (!Base.equals(value, childValue)) {
return undefined;
}
}
}
if (value && isColor) {
value = Color._setOwner(value, owner, set);
value = Color._setOwner(value, owner, applyToChildren && set);
}
return value;
};

File diff suppressed because one or more lines are too long

2
dist/paper.d.ts vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Jun 19 22:05:26 2019 +0200
* Date: Wed Jun 19 22:44:54 2019 +0200
*
* This is an auto-generated type definition.
*/

26
package-lock.json generated
View file

@ -2947,6 +2947,14 @@
"inherits": "2.0.3",
"setprototypeof": "1.1.0",
"statuses": ">= 1.4.0 < 2"
},
"dependencies": {
"inherits": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
"dev": true
}
}
},
"http-parser-js": {
@ -3071,9 +3079,9 @@
}
},
"inherits": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"dev": true
},
"ini": {
@ -4792,9 +4800,9 @@
"dev": true
},
"process-nextick-args": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
"integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==",
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
"dev": true
},
"progress": {
@ -5336,6 +5344,12 @@
"toidentifier": "1.0.0"
}
},
"inherits": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
"dev": true
},
"ms": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",