mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Prebuilt module for commit 77886f90cf9c8a8275f6a78f71b70e56f681c4c3
This commit is contained in:
parent
41df546301
commit
9600285103
6 changed files with 95 additions and 65 deletions
42
dist/docs/assets/js/paper.js
vendored
42
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue May 26 11:49:14 2020 +0200
|
||||
* Date: Wed May 27 18:04:59 2020 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -3660,15 +3660,25 @@ new function() {
|
|||
var rotation = this.getRotation(),
|
||||
decomposed = this._decomposed,
|
||||
matrix = new Matrix(),
|
||||
center = this.getPosition(true);
|
||||
matrix.translate(center);
|
||||
if (rotation)
|
||||
matrix.rotate(rotation);
|
||||
matrix.scale(scaling.x / current.x, scaling.y / current.y);
|
||||
if (rotation)
|
||||
matrix.rotate(-rotation);
|
||||
matrix.translate(center.negate());
|
||||
this.transform(matrix);
|
||||
isZero = Numerical.isZero;
|
||||
if (isZero(current.x) || isZero(current.y)) {
|
||||
matrix.translate(decomposed.translation);
|
||||
if (rotation) {
|
||||
matrix.rotate(rotation);
|
||||
}
|
||||
matrix.scale(scaling.x, scaling.y);
|
||||
this._matrix.set(matrix);
|
||||
} else {
|
||||
var center = this.getPosition(true);
|
||||
matrix.translate(center);
|
||||
if (rotation)
|
||||
matrix.rotate(rotation);
|
||||
matrix.scale(scaling.x / current.x, scaling.y / current.y);
|
||||
if (rotation)
|
||||
matrix.rotate(-rotation);
|
||||
matrix.translate(center.negate());
|
||||
this.transform(matrix);
|
||||
}
|
||||
if (decomposed) {
|
||||
decomposed.scaling = scaling;
|
||||
this._decomposed = decomposed;
|
||||
|
@ -3682,7 +3692,7 @@ new function() {
|
|||
|
||||
setMatrix: function() {
|
||||
var matrix = this._matrix;
|
||||
matrix.initialize.apply(matrix, arguments);
|
||||
matrix.set.apply(matrix, arguments);
|
||||
},
|
||||
|
||||
getGlobalMatrix: function(_dontClone) {
|
||||
|
@ -13126,7 +13136,7 @@ var View = Base.extend(Emitter, {
|
|||
|
||||
setMatrix: function() {
|
||||
var matrix = this._matrix;
|
||||
matrix.initialize.apply(matrix, arguments);
|
||||
matrix.set.apply(matrix, arguments);
|
||||
},
|
||||
|
||||
transform: function(matrix) {
|
||||
|
@ -14126,7 +14136,7 @@ var Tween = Base.extend(Emitter, {
|
|||
|
||||
update: function(progress) {
|
||||
if (this.running) {
|
||||
if (progress > 1) {
|
||||
if (progress >= 1) {
|
||||
progress = 1;
|
||||
this.running = false;
|
||||
}
|
||||
|
@ -14148,15 +14158,15 @@ var Tween = Base.extend(Emitter, {
|
|||
this._setProperty(this._parsedKeys[key], value);
|
||||
}
|
||||
|
||||
if (!this.running && this._then) {
|
||||
this._then(this.object);
|
||||
}
|
||||
if (this.responds('update')) {
|
||||
this.emit('update', new Base({
|
||||
progress: progress,
|
||||
factor: factor
|
||||
}));
|
||||
}
|
||||
if (!this.running && this._then) {
|
||||
this._then(this.object);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
|
42
dist/paper-core.js
vendored
42
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue May 26 11:49:14 2020 +0200
|
||||
* Date: Wed May 27 18:04:59 2020 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -3657,15 +3657,25 @@ new function() {
|
|||
var rotation = this.getRotation(),
|
||||
decomposed = this._decomposed,
|
||||
matrix = new Matrix(),
|
||||
center = this.getPosition(true);
|
||||
matrix.translate(center);
|
||||
if (rotation)
|
||||
matrix.rotate(rotation);
|
||||
matrix.scale(scaling.x / current.x, scaling.y / current.y);
|
||||
if (rotation)
|
||||
matrix.rotate(-rotation);
|
||||
matrix.translate(center.negate());
|
||||
this.transform(matrix);
|
||||
isZero = Numerical.isZero;
|
||||
if (isZero(current.x) || isZero(current.y)) {
|
||||
matrix.translate(decomposed.translation);
|
||||
if (rotation) {
|
||||
matrix.rotate(rotation);
|
||||
}
|
||||
matrix.scale(scaling.x, scaling.y);
|
||||
this._matrix.set(matrix);
|
||||
} else {
|
||||
var center = this.getPosition(true);
|
||||
matrix.translate(center);
|
||||
if (rotation)
|
||||
matrix.rotate(rotation);
|
||||
matrix.scale(scaling.x / current.x, scaling.y / current.y);
|
||||
if (rotation)
|
||||
matrix.rotate(-rotation);
|
||||
matrix.translate(center.negate());
|
||||
this.transform(matrix);
|
||||
}
|
||||
if (decomposed) {
|
||||
decomposed.scaling = scaling;
|
||||
this._decomposed = decomposed;
|
||||
|
@ -3679,7 +3689,7 @@ new function() {
|
|||
|
||||
setMatrix: function() {
|
||||
var matrix = this._matrix;
|
||||
matrix.initialize.apply(matrix, arguments);
|
||||
matrix.set.apply(matrix, arguments);
|
||||
},
|
||||
|
||||
getGlobalMatrix: function(_dontClone) {
|
||||
|
@ -13123,7 +13133,7 @@ var View = Base.extend(Emitter, {
|
|||
|
||||
setMatrix: function() {
|
||||
var matrix = this._matrix;
|
||||
matrix.initialize.apply(matrix, arguments);
|
||||
matrix.set.apply(matrix, arguments);
|
||||
},
|
||||
|
||||
transform: function(matrix) {
|
||||
|
@ -14123,7 +14133,7 @@ var Tween = Base.extend(Emitter, {
|
|||
|
||||
update: function(progress) {
|
||||
if (this.running) {
|
||||
if (progress > 1) {
|
||||
if (progress >= 1) {
|
||||
progress = 1;
|
||||
this.running = false;
|
||||
}
|
||||
|
@ -14145,15 +14155,15 @@ var Tween = Base.extend(Emitter, {
|
|||
this._setProperty(this._parsedKeys[key], value);
|
||||
}
|
||||
|
||||
if (!this.running && this._then) {
|
||||
this._then(this.object);
|
||||
}
|
||||
if (this.responds('update')) {
|
||||
this.emit('update', new Base({
|
||||
progress: progress,
|
||||
factor: factor
|
||||
}));
|
||||
}
|
||||
if (!this.running && this._then) {
|
||||
this._then(this.object);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
|
16
dist/paper-core.min.js
vendored
16
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
42
dist/paper-full.js
vendored
42
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue May 26 11:49:14 2020 +0200
|
||||
* Date: Wed May 27 18:04:59 2020 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -3660,15 +3660,25 @@ new function() {
|
|||
var rotation = this.getRotation(),
|
||||
decomposed = this._decomposed,
|
||||
matrix = new Matrix(),
|
||||
center = this.getPosition(true);
|
||||
matrix.translate(center);
|
||||
if (rotation)
|
||||
matrix.rotate(rotation);
|
||||
matrix.scale(scaling.x / current.x, scaling.y / current.y);
|
||||
if (rotation)
|
||||
matrix.rotate(-rotation);
|
||||
matrix.translate(center.negate());
|
||||
this.transform(matrix);
|
||||
isZero = Numerical.isZero;
|
||||
if (isZero(current.x) || isZero(current.y)) {
|
||||
matrix.translate(decomposed.translation);
|
||||
if (rotation) {
|
||||
matrix.rotate(rotation);
|
||||
}
|
||||
matrix.scale(scaling.x, scaling.y);
|
||||
this._matrix.set(matrix);
|
||||
} else {
|
||||
var center = this.getPosition(true);
|
||||
matrix.translate(center);
|
||||
if (rotation)
|
||||
matrix.rotate(rotation);
|
||||
matrix.scale(scaling.x / current.x, scaling.y / current.y);
|
||||
if (rotation)
|
||||
matrix.rotate(-rotation);
|
||||
matrix.translate(center.negate());
|
||||
this.transform(matrix);
|
||||
}
|
||||
if (decomposed) {
|
||||
decomposed.scaling = scaling;
|
||||
this._decomposed = decomposed;
|
||||
|
@ -3682,7 +3692,7 @@ new function() {
|
|||
|
||||
setMatrix: function() {
|
||||
var matrix = this._matrix;
|
||||
matrix.initialize.apply(matrix, arguments);
|
||||
matrix.set.apply(matrix, arguments);
|
||||
},
|
||||
|
||||
getGlobalMatrix: function(_dontClone) {
|
||||
|
@ -13126,7 +13136,7 @@ var View = Base.extend(Emitter, {
|
|||
|
||||
setMatrix: function() {
|
||||
var matrix = this._matrix;
|
||||
matrix.initialize.apply(matrix, arguments);
|
||||
matrix.set.apply(matrix, arguments);
|
||||
},
|
||||
|
||||
transform: function(matrix) {
|
||||
|
@ -14126,7 +14136,7 @@ var Tween = Base.extend(Emitter, {
|
|||
|
||||
update: function(progress) {
|
||||
if (this.running) {
|
||||
if (progress > 1) {
|
||||
if (progress >= 1) {
|
||||
progress = 1;
|
||||
this.running = false;
|
||||
}
|
||||
|
@ -14148,15 +14158,15 @@ var Tween = Base.extend(Emitter, {
|
|||
this._setProperty(this._parsedKeys[key], value);
|
||||
}
|
||||
|
||||
if (!this.running && this._then) {
|
||||
this._then(this.object);
|
||||
}
|
||||
if (this.responds('update')) {
|
||||
this.emit('update', new Base({
|
||||
progress: progress,
|
||||
factor: factor
|
||||
}));
|
||||
}
|
||||
if (!this.running && this._then) {
|
||||
this._then(this.object);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
|
16
dist/paper-full.min.js
vendored
16
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/paper.d.ts
vendored
2
dist/paper.d.ts
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue May 26 11:49:14 2020 +0200
|
||||
* Date: Wed May 27 18:04:59 2020 +0200
|
||||
*
|
||||
* This is an auto-generated type definition.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue