mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Prebuilt module for commit 40d0fca9d0
This commit is contained in:
parent
f444c36fd7
commit
220ccdb6d4
5 changed files with 53 additions and 26 deletions
17
dist/docs/assets/js/paper.js
vendored
17
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sun Feb 14 01:45:16 2016 +0100
|
||||
* Date: Sun Feb 14 10:44:41 2016 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -3171,13 +3171,19 @@ new function() {
|
|||
setBounds: function() {
|
||||
var rect = Rectangle.read(arguments),
|
||||
bounds = this.getBounds(),
|
||||
_matrix = this._matrix,
|
||||
matrix = new Matrix(),
|
||||
center = rect.getCenter();
|
||||
matrix.translate(center);
|
||||
if (rect.width != bounds.width || rect.height != bounds.height) {
|
||||
if (!_matrix.isInvertible()) {
|
||||
_matrix.initialize(_matrix._backup
|
||||
|| new Matrix().translate(_matrix.getTranslation()));
|
||||
bounds = this.getBounds();
|
||||
}
|
||||
matrix.scale(
|
||||
bounds.width !== 0 ? rect.width / bounds.width : 1,
|
||||
bounds.height !== 0 ? rect.height / bounds.height : 1);
|
||||
bounds.width !== 0 ? rect.width / bounds.width : 0,
|
||||
bounds.height !== 0 ? rect.height / bounds.height : 0);
|
||||
}
|
||||
center = bounds.getCenter();
|
||||
matrix.translate(-center.x, -center.y);
|
||||
|
@ -4042,8 +4048,11 @@ new function() {
|
|||
|| _applyMatrix && _applyRecursively && this._children);
|
||||
if (!matrix && !applyMatrix)
|
||||
return this;
|
||||
if (matrix)
|
||||
if (matrix) {
|
||||
if (!matrix.isInvertible() && _matrix.isInvertible())
|
||||
_matrix._backup = _matrix.getValues();
|
||||
_matrix.prepend(matrix);
|
||||
}
|
||||
if (applyMatrix = applyMatrix && this._transformContent(_matrix,
|
||||
_applyRecursively, _setApplyMatrix)) {
|
||||
var pivot = this._pivot,
|
||||
|
|
17
dist/paper-core.js
vendored
17
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sun Feb 14 01:45:16 2016 +0100
|
||||
* Date: Sun Feb 14 10:44:41 2016 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -3171,13 +3171,19 @@ new function() {
|
|||
setBounds: function() {
|
||||
var rect = Rectangle.read(arguments),
|
||||
bounds = this.getBounds(),
|
||||
_matrix = this._matrix,
|
||||
matrix = new Matrix(),
|
||||
center = rect.getCenter();
|
||||
matrix.translate(center);
|
||||
if (rect.width != bounds.width || rect.height != bounds.height) {
|
||||
if (!_matrix.isInvertible()) {
|
||||
_matrix.initialize(_matrix._backup
|
||||
|| new Matrix().translate(_matrix.getTranslation()));
|
||||
bounds = this.getBounds();
|
||||
}
|
||||
matrix.scale(
|
||||
bounds.width !== 0 ? rect.width / bounds.width : 1,
|
||||
bounds.height !== 0 ? rect.height / bounds.height : 1);
|
||||
bounds.width !== 0 ? rect.width / bounds.width : 0,
|
||||
bounds.height !== 0 ? rect.height / bounds.height : 0);
|
||||
}
|
||||
center = bounds.getCenter();
|
||||
matrix.translate(-center.x, -center.y);
|
||||
|
@ -4042,8 +4048,11 @@ new function() {
|
|||
|| _applyMatrix && _applyRecursively && this._children);
|
||||
if (!matrix && !applyMatrix)
|
||||
return this;
|
||||
if (matrix)
|
||||
if (matrix) {
|
||||
if (!matrix.isInvertible() && _matrix.isInvertible())
|
||||
_matrix._backup = _matrix.getValues();
|
||||
_matrix.prepend(matrix);
|
||||
}
|
||||
if (applyMatrix = applyMatrix && this._transformContent(_matrix,
|
||||
_applyRecursively, _setApplyMatrix)) {
|
||||
var pivot = this._pivot,
|
||||
|
|
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
17
dist/paper-full.js
vendored
17
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sun Feb 14 01:45:16 2016 +0100
|
||||
* Date: Sun Feb 14 10:44:41 2016 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -3171,13 +3171,19 @@ new function() {
|
|||
setBounds: function() {
|
||||
var rect = Rectangle.read(arguments),
|
||||
bounds = this.getBounds(),
|
||||
_matrix = this._matrix,
|
||||
matrix = new Matrix(),
|
||||
center = rect.getCenter();
|
||||
matrix.translate(center);
|
||||
if (rect.width != bounds.width || rect.height != bounds.height) {
|
||||
if (!_matrix.isInvertible()) {
|
||||
_matrix.initialize(_matrix._backup
|
||||
|| new Matrix().translate(_matrix.getTranslation()));
|
||||
bounds = this.getBounds();
|
||||
}
|
||||
matrix.scale(
|
||||
bounds.width !== 0 ? rect.width / bounds.width : 1,
|
||||
bounds.height !== 0 ? rect.height / bounds.height : 1);
|
||||
bounds.width !== 0 ? rect.width / bounds.width : 0,
|
||||
bounds.height !== 0 ? rect.height / bounds.height : 0);
|
||||
}
|
||||
center = bounds.getCenter();
|
||||
matrix.translate(-center.x, -center.y);
|
||||
|
@ -4042,8 +4048,11 @@ new function() {
|
|||
|| _applyMatrix && _applyRecursively && this._children);
|
||||
if (!matrix && !applyMatrix)
|
||||
return this;
|
||||
if (matrix)
|
||||
if (matrix) {
|
||||
if (!matrix.isInvertible() && _matrix.isInvertible())
|
||||
_matrix._backup = _matrix.getValues();
|
||||
_matrix.prepend(matrix);
|
||||
}
|
||||
if (applyMatrix = applyMatrix && this._transformContent(_matrix,
|
||||
_applyRecursively, _setApplyMatrix)) {
|
||||
var pivot = this._pivot,
|
||||
|
|
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