mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Prebuilt module for commit e057f20f37
This commit is contained in:
parent
a346e31943
commit
3532357932
5 changed files with 62 additions and 20 deletions
18
dist/docs/assets/js/paper.js
vendored
18
dist/docs/assets/js/paper.js
vendored
|
@ -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
18
dist/paper-core.js
vendored
|
@ -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;
|
||||
|
|
14
dist/paper-core.min.js
vendored
14
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
18
dist/paper-full.js
vendored
18
dist/paper-full.js
vendored
|
@ -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;
|
||||
|
|
14
dist/paper-full.min.js
vendored
14
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue