mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Prebuilt module for commit 8bef865892
This commit is contained in:
parent
36b5e7834c
commit
ce5d6d2dda
5 changed files with 52 additions and 37 deletions
23
dist/docs/assets/js/paper.js
vendored
23
dist/docs/assets/js/paper.js
vendored
|
@ -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
23
dist/paper-core.js
vendored
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
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
23
dist/paper-full.js
vendored
23
dist/paper-full.js
vendored
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
dist/paper-full.min.js
vendored
6
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue