Prebuilt module for commit 8bef865892

This commit is contained in:
Paper.js Bot 2018-10-13 14:33:41 +00:00
parent 36b5e7834c
commit ce5d6d2dda
5 changed files with 52 additions and 37 deletions

View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Sat Oct 13 15:33:21 2018 +0200 * Date: Sat Oct 13 16:30:19 2018 +0200
* *
*** ***
* *
@ -3059,8 +3059,8 @@ new function() {
cacheParent = this._parent || symbol, cacheParent = this._parent || symbol,
project = this._project; project = this._project;
if (flags & 8) { if (flags & 8) {
this._bounds = this._position = this._decomposed = this._bounds = this._position = this._decomposed = undefined;
this._globalMatrix = undefined; this._globalMatrix = undefined;
} }
if (cacheParent if (cacheParent
&& (flags & 40)) { && (flags & 40)) {
@ -3479,16 +3479,22 @@ new function() {
}, },
getGlobalMatrix: function(_dontClone) { getGlobalMatrix: function(_dontClone) {
var matrix = this._globalMatrix, var matrix = this._globalMatrix;
updateVersion = this._project._updateVersion; if (matrix) {
if (matrix && matrix._updateVersion !== updateVersion) var parent = this._parent;
matrix = null; while (parent) {
if (!parent._globalMatrix) {
matrix = null;
break;
}
parent = parent._parent;
}
}
if (!matrix) { if (!matrix) {
matrix = this._globalMatrix = this._matrix.clone(); matrix = this._globalMatrix = this._matrix.clone();
var parent = this._parent; var parent = this._parent;
if (parent) if (parent)
matrix.prepend(parent.getGlobalMatrix(true)); matrix.prepend(parent.getGlobalMatrix(true));
matrix._updateVersion = updateVersion;
} }
return _dontClone ? matrix : matrix.clone(); return _dontClone ? matrix : matrix.clone();
}, },
@ -4445,7 +4451,6 @@ new function() {
matrices.push(globalMatrix); matrices.push(globalMatrix);
if (param.updateMatrix) { if (param.updateMatrix) {
globalMatrix._updateVersion = updateVersion;
this._globalMatrix = globalMatrix; this._globalMatrix = globalMatrix;
} }

23
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Sat Oct 13 15:33:21 2018 +0200 * Date: Sat Oct 13 16:30:19 2018 +0200
* *
*** ***
* *
@ -3059,8 +3059,8 @@ new function() {
cacheParent = this._parent || symbol, cacheParent = this._parent || symbol,
project = this._project; project = this._project;
if (flags & 8) { if (flags & 8) {
this._bounds = this._position = this._decomposed = this._bounds = this._position = this._decomposed = undefined;
this._globalMatrix = undefined; this._globalMatrix = undefined;
} }
if (cacheParent if (cacheParent
&& (flags & 40)) { && (flags & 40)) {
@ -3479,16 +3479,22 @@ new function() {
}, },
getGlobalMatrix: function(_dontClone) { getGlobalMatrix: function(_dontClone) {
var matrix = this._globalMatrix, var matrix = this._globalMatrix;
updateVersion = this._project._updateVersion; if (matrix) {
if (matrix && matrix._updateVersion !== updateVersion) var parent = this._parent;
matrix = null; while (parent) {
if (!parent._globalMatrix) {
matrix = null;
break;
}
parent = parent._parent;
}
}
if (!matrix) { if (!matrix) {
matrix = this._globalMatrix = this._matrix.clone(); matrix = this._globalMatrix = this._matrix.clone();
var parent = this._parent; var parent = this._parent;
if (parent) if (parent)
matrix.prepend(parent.getGlobalMatrix(true)); matrix.prepend(parent.getGlobalMatrix(true));
matrix._updateVersion = updateVersion;
} }
return _dontClone ? matrix : matrix.clone(); return _dontClone ? matrix : matrix.clone();
}, },
@ -4445,7 +4451,6 @@ new function() {
matrices.push(globalMatrix); matrices.push(globalMatrix);
if (param.updateMatrix) { if (param.updateMatrix) {
globalMatrix._updateVersion = updateVersion;
this._globalMatrix = globalMatrix; this._globalMatrix = globalMatrix;
} }

File diff suppressed because one or more lines are too long

23
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Sat Oct 13 15:33:21 2018 +0200 * Date: Sat Oct 13 16:30:19 2018 +0200
* *
*** ***
* *
@ -3059,8 +3059,8 @@ new function() {
cacheParent = this._parent || symbol, cacheParent = this._parent || symbol,
project = this._project; project = this._project;
if (flags & 8) { if (flags & 8) {
this._bounds = this._position = this._decomposed = this._bounds = this._position = this._decomposed = undefined;
this._globalMatrix = undefined; this._globalMatrix = undefined;
} }
if (cacheParent if (cacheParent
&& (flags & 40)) { && (flags & 40)) {
@ -3479,16 +3479,22 @@ new function() {
}, },
getGlobalMatrix: function(_dontClone) { getGlobalMatrix: function(_dontClone) {
var matrix = this._globalMatrix, var matrix = this._globalMatrix;
updateVersion = this._project._updateVersion; if (matrix) {
if (matrix && matrix._updateVersion !== updateVersion) var parent = this._parent;
matrix = null; while (parent) {
if (!parent._globalMatrix) {
matrix = null;
break;
}
parent = parent._parent;
}
}
if (!matrix) { if (!matrix) {
matrix = this._globalMatrix = this._matrix.clone(); matrix = this._globalMatrix = this._matrix.clone();
var parent = this._parent; var parent = this._parent;
if (parent) if (parent)
matrix.prepend(parent.getGlobalMatrix(true)); matrix.prepend(parent.getGlobalMatrix(true));
matrix._updateVersion = updateVersion;
} }
return _dontClone ? matrix : matrix.clone(); return _dontClone ? matrix : matrix.clone();
}, },
@ -4445,7 +4451,6 @@ new function() {
matrices.push(globalMatrix); matrices.push(globalMatrix);
if (param.updateMatrix) { if (param.updateMatrix) {
globalMatrix._updateVersion = updateVersion;
this._globalMatrix = globalMatrix; this._globalMatrix = globalMatrix;
} }

File diff suppressed because one or more lines are too long