Prebuilt module for commit e057f20f37

This commit is contained in:
Paper.js Bot 2018-09-29 04:35:49 +00:00
parent a346e31943
commit 3532357932
5 changed files with 62 additions and 20 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sat Sep 29 12:29:12 2018 +0900
* Date: Sat Sep 29 13:31:38 2018 +0900
*
***
*
@ -4098,6 +4098,8 @@ new function() {
var owner = this._getOwner(),
project = this._project,
index = this._index;
if (this._style)
this._style._dispose();
if (owner) {
if (this._name)
this._removeNamed();
@ -11857,8 +11859,10 @@ var Style = Base.extend(new function() {
var old = this._values[key];
if (old !== value) {
if (isColor) {
if (old && old._owner !== undefined)
if (old && old._owner !== undefined) {
old._owner = undefined;
old._canvasStyle = null;
}
if (value && value.constructor === Color) {
if (value._owner)
value = value.clone();
@ -11962,6 +11966,16 @@ var Style = Base.extend(new function() {
|| false;
},
_dispose: function() {
var color;
color = this.getFillColor();
if (color) color._canvasStyle = null;
color = this.getStrokeColor();
if (color) color._canvasStyle = null;
color = this.getShadowColor();
if (color) color._canvasStyle = null;
},
hasFill: function() {
var color = this.getFillColor();
return !!color && color.alpha > 0;

18
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sat Sep 29 12:29:12 2018 +0900
* Date: Sat Sep 29 13:31:38 2018 +0900
*
***
*
@ -4098,6 +4098,8 @@ new function() {
var owner = this._getOwner(),
project = this._project,
index = this._index;
if (this._style)
this._style._dispose();
if (owner) {
if (this._name)
this._removeNamed();
@ -11857,8 +11859,10 @@ var Style = Base.extend(new function() {
var old = this._values[key];
if (old !== value) {
if (isColor) {
if (old && old._owner !== undefined)
if (old && old._owner !== undefined) {
old._owner = undefined;
old._canvasStyle = null;
}
if (value && value.constructor === Color) {
if (value._owner)
value = value.clone();
@ -11962,6 +11966,16 @@ var Style = Base.extend(new function() {
|| false;
},
_dispose: function() {
var color;
color = this.getFillColor();
if (color) color._canvasStyle = null;
color = this.getStrokeColor();
if (color) color._canvasStyle = null;
color = this.getShadowColor();
if (color) color._canvasStyle = null;
},
hasFill: function() {
var color = this.getFillColor();
return !!color && color.alpha > 0;

File diff suppressed because one or more lines are too long

18
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sat Sep 29 12:29:12 2018 +0900
* Date: Sat Sep 29 13:31:38 2018 +0900
*
***
*
@ -4098,6 +4098,8 @@ new function() {
var owner = this._getOwner(),
project = this._project,
index = this._index;
if (this._style)
this._style._dispose();
if (owner) {
if (this._name)
this._removeNamed();
@ -11857,8 +11859,10 @@ var Style = Base.extend(new function() {
var old = this._values[key];
if (old !== value) {
if (isColor) {
if (old && old._owner !== undefined)
if (old && old._owner !== undefined) {
old._owner = undefined;
old._canvasStyle = null;
}
if (value && value.constructor === Color) {
if (value._owner)
value = value.clone();
@ -11962,6 +11966,16 @@ var Style = Base.extend(new function() {
|| false;
},
_dispose: function() {
var color;
color = this.getFillColor();
if (color) color._canvasStyle = null;
color = this.getStrokeColor();
if (color) color._canvasStyle = null;
color = this.getShadowColor();
if (color) color._canvasStyle = null;
},
hasFill: function() {
var color = this.getFillColor();
return !!color && color.alpha > 0;

File diff suppressed because one or more lines are too long