Prebuilt module for commit aa75374406

This commit is contained in:
Paper.js Bot 2017-01-03 12:28:31 +00:00
parent 15b8bbd30b
commit 5ab18ad157
16 changed files with 69 additions and 45 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Tue Jan 3 00:53:54 2017 +0100
* Date: Tue Jan 3 13:23:44 2017 +0100
*
***
*
@ -3337,7 +3337,9 @@ new function() {
beans: true,
_decompose: function() {
return this._decomposed || (this._decomposed = this._matrix.decompose());
return this._applyMatrix
? null
: this._decomposed || (this._decomposed = this._matrix.decompose());
},
getRotation: function() {
@ -3348,7 +3350,10 @@ new function() {
setRotation: function(rotation) {
var current = this.getRotation();
if (current != null && rotation != null) {
var decomposed = this._decomposed;
this.rotate(rotation - current);
decomposed.rotation = rotation;
this._decomposed = decomposed;
}
},
@ -3363,8 +3368,11 @@ new function() {
setScaling: function() {
var current = this.getScaling(),
scaling = Point.read(arguments, 0, { clone: true, readNull: true });
if (current && scaling) {
if (current && scaling && !current.equals(scaling)) {
var decomposed = this._decomposed;
this.scale(scaling.x / current.x, scaling.y / current.y);
decomposed.scaling = scaling;
this._decomposed = decomposed;
}
},

View file

@ -1127,7 +1127,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>
@ -1153,7 +1153,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>

View file

@ -995,7 +995,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>
@ -1021,7 +1021,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>

View file

@ -758,7 +758,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>
@ -784,7 +784,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>

View file

@ -909,7 +909,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>
@ -935,7 +935,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>

View file

@ -3905,7 +3905,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>
@ -3931,7 +3931,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>

View file

@ -2589,7 +2589,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>
@ -2615,7 +2615,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>

View file

@ -918,7 +918,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>
@ -944,7 +944,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>

View file

@ -1731,7 +1731,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>
@ -1757,7 +1757,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>

View file

@ -1473,7 +1473,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>
@ -1499,7 +1499,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>

View file

@ -889,7 +889,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>
@ -915,7 +915,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>

View file

@ -1006,7 +1006,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current rotation angle of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>
@ -1032,7 +1032,7 @@ circle.position.x += 100;
<div class="member-description hidden">
<div class="member-text">
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>.</p>
<p>The current scale factor of the item, as described by its <a href="../classes/Item.html#matrix"><tt>matrix</tt></a>. Please note that this only works for items with <a href="../classes/Item.html#applymatrix"><tt>applyMatrix</tt></a> set to <code>false</code>, meaning they do not directly bake transformations into their content.</p>

14
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Tue Jan 3 00:53:54 2017 +0100
* Date: Tue Jan 3 13:23:44 2017 +0100
*
***
*
@ -3337,7 +3337,9 @@ new function() {
beans: true,
_decompose: function() {
return this._decomposed || (this._decomposed = this._matrix.decompose());
return this._applyMatrix
? null
: this._decomposed || (this._decomposed = this._matrix.decompose());
},
getRotation: function() {
@ -3348,7 +3350,10 @@ new function() {
setRotation: function(rotation) {
var current = this.getRotation();
if (current != null && rotation != null) {
var decomposed = this._decomposed;
this.rotate(rotation - current);
decomposed.rotation = rotation;
this._decomposed = decomposed;
}
},
@ -3363,8 +3368,11 @@ new function() {
setScaling: function() {
var current = this.getScaling(),
scaling = Point.read(arguments, 0, { clone: true, readNull: true });
if (current && scaling) {
if (current && scaling && !current.equals(scaling)) {
var decomposed = this._decomposed;
this.scale(scaling.x / current.x, scaling.y / current.y);
decomposed.scaling = scaling;
this._decomposed = decomposed;
}
},

File diff suppressed because one or more lines are too long

14
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Tue Jan 3 00:53:54 2017 +0100
* Date: Tue Jan 3 13:23:44 2017 +0100
*
***
*
@ -3337,7 +3337,9 @@ new function() {
beans: true,
_decompose: function() {
return this._decomposed || (this._decomposed = this._matrix.decompose());
return this._applyMatrix
? null
: this._decomposed || (this._decomposed = this._matrix.decompose());
},
getRotation: function() {
@ -3348,7 +3350,10 @@ new function() {
setRotation: function(rotation) {
var current = this.getRotation();
if (current != null && rotation != null) {
var decomposed = this._decomposed;
this.rotate(rotation - current);
decomposed.rotation = rotation;
this._decomposed = decomposed;
}
},
@ -3363,8 +3368,11 @@ new function() {
setScaling: function() {
var current = this.getScaling(),
scaling = Point.read(arguments, 0, { clone: true, readNull: true });
if (current && scaling) {
if (current && scaling && !current.equals(scaling)) {
var decomposed = this._decomposed;
this.scale(scaling.x / current.x, scaling.y / current.y);
decomposed.scaling = scaling;
this._decomposed = decomposed;
}
},

File diff suppressed because one or more lines are too long