mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Prebuilt module for commit f50a81e089
This commit is contained in:
parent
e2adfebb8b
commit
6d238440ee
7 changed files with 49 additions and 64 deletions
21
dist/docs/assets/js/paper.js
vendored
21
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Oct 17 16:45:02 2018 +0200
|
||||
* Date: Sat Oct 20 20:06:48 2018 +0900
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -2521,11 +2521,11 @@ var Matrix = Base.extend({
|
|||
},
|
||||
|
||||
getScaling: function() {
|
||||
return (this.decompose() || {}).scaling;
|
||||
return this.decompose().scaling;
|
||||
},
|
||||
|
||||
getRotation: function() {
|
||||
return (this.decompose() || {}).rotation;
|
||||
return this.decompose().rotation;
|
||||
},
|
||||
|
||||
applyToContext: function(ctx) {
|
||||
|
@ -12666,9 +12666,8 @@ var View = Base.extend(Emitter, {
|
|||
},
|
||||
|
||||
getZoom: function() {
|
||||
var decomposed = this._decompose(),
|
||||
scaling = decomposed && decomposed.scaling;
|
||||
return scaling ? (scaling.x + scaling.y) / 2 : 0;
|
||||
var scaling = this._decompose().scaling;
|
||||
return (scaling.x + scaling.y) / 2;
|
||||
},
|
||||
|
||||
setZoom: function(zoom) {
|
||||
|
@ -12677,8 +12676,7 @@ var View = Base.extend(Emitter, {
|
|||
},
|
||||
|
||||
getRotation: function() {
|
||||
var decomposed = this._decompose();
|
||||
return decomposed && decomposed.rotation;
|
||||
return this._decompose().rotation;
|
||||
},
|
||||
|
||||
setRotation: function(rotation) {
|
||||
|
@ -12689,11 +12687,8 @@ var View = Base.extend(Emitter, {
|
|||
},
|
||||
|
||||
getScaling: function() {
|
||||
var decomposed = this._decompose(),
|
||||
scaling = decomposed && decomposed.scaling;
|
||||
return scaling
|
||||
? new LinkedPoint(scaling.x, scaling.y, this, 'setScaling')
|
||||
: undefined;
|
||||
var scaling = this._decompose().scaling;
|
||||
return new LinkedPoint(scaling.x, scaling.y, this, 'setScaling');
|
||||
},
|
||||
|
||||
setScaling: function() {
|
||||
|
|
4
dist/docs/classes/Matrix.html
vendored
4
dist/docs/classes/Matrix.html
vendored
|
@ -1641,7 +1641,7 @@ Array of <tt>Number</tt>s
|
|||
</div>
|
||||
<div class="member-description hidden">
|
||||
<div class="member-text">
|
||||
<p>Attempts to decompose the affine transformation described by this matrix into <code>scaling</code>, <code>rotation</code> and <code>skewing</code>, and returns an object with these properties if it succeeded, <code>null</code> otherwise.</p>
|
||||
<p>Decomposes the affine transformation described by this matrix into <code>scaling</code>, <code>rotation</code> and <code>skewing</code>, and returns an object with these properties.</p>
|
||||
|
||||
|
||||
|
||||
|
@ -1649,7 +1649,7 @@ Array of <tt>Number</tt>s
|
|||
<h4>Returns:</h4>
|
||||
|
||||
<li>
|
||||
<tt><tt>Object</tt></tt> — the decomposed matrix, or <code>null</code> if decomposition is not possible
|
||||
<tt><tt>Object</tt></tt> — the decomposed matrix
|
||||
</li>
|
||||
|
||||
|
||||
|
|
21
dist/paper-core.js
vendored
21
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Oct 17 16:45:02 2018 +0200
|
||||
* Date: Sat Oct 20 20:06:48 2018 +0900
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -2518,11 +2518,11 @@ var Matrix = Base.extend({
|
|||
},
|
||||
|
||||
getScaling: function() {
|
||||
return (this.decompose() || {}).scaling;
|
||||
return this.decompose().scaling;
|
||||
},
|
||||
|
||||
getRotation: function() {
|
||||
return (this.decompose() || {}).rotation;
|
||||
return this.decompose().rotation;
|
||||
},
|
||||
|
||||
applyToContext: function(ctx) {
|
||||
|
@ -12663,9 +12663,8 @@ var View = Base.extend(Emitter, {
|
|||
},
|
||||
|
||||
getZoom: function() {
|
||||
var decomposed = this._decompose(),
|
||||
scaling = decomposed && decomposed.scaling;
|
||||
return scaling ? (scaling.x + scaling.y) / 2 : 0;
|
||||
var scaling = this._decompose().scaling;
|
||||
return (scaling.x + scaling.y) / 2;
|
||||
},
|
||||
|
||||
setZoom: function(zoom) {
|
||||
|
@ -12674,8 +12673,7 @@ var View = Base.extend(Emitter, {
|
|||
},
|
||||
|
||||
getRotation: function() {
|
||||
var decomposed = this._decompose();
|
||||
return decomposed && decomposed.rotation;
|
||||
return this._decompose().rotation;
|
||||
},
|
||||
|
||||
setRotation: function(rotation) {
|
||||
|
@ -12686,11 +12684,8 @@ var View = Base.extend(Emitter, {
|
|||
},
|
||||
|
||||
getScaling: function() {
|
||||
var decomposed = this._decompose(),
|
||||
scaling = decomposed && decomposed.scaling;
|
||||
return scaling
|
||||
? new LinkedPoint(scaling.x, scaling.y, this, 'setScaling')
|
||||
: undefined;
|
||||
var scaling = this._decompose().scaling;
|
||||
return new LinkedPoint(scaling.x, scaling.y, this, 'setScaling');
|
||||
},
|
||||
|
||||
setScaling: function() {
|
||||
|
|
8
dist/paper-core.min.js
vendored
8
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
21
dist/paper-full.js
vendored
21
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Oct 17 16:45:02 2018 +0200
|
||||
* Date: Sat Oct 20 20:06:48 2018 +0900
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -2521,11 +2521,11 @@ var Matrix = Base.extend({
|
|||
},
|
||||
|
||||
getScaling: function() {
|
||||
return (this.decompose() || {}).scaling;
|
||||
return this.decompose().scaling;
|
||||
},
|
||||
|
||||
getRotation: function() {
|
||||
return (this.decompose() || {}).rotation;
|
||||
return this.decompose().rotation;
|
||||
},
|
||||
|
||||
applyToContext: function(ctx) {
|
||||
|
@ -12666,9 +12666,8 @@ var View = Base.extend(Emitter, {
|
|||
},
|
||||
|
||||
getZoom: function() {
|
||||
var decomposed = this._decompose(),
|
||||
scaling = decomposed && decomposed.scaling;
|
||||
return scaling ? (scaling.x + scaling.y) / 2 : 0;
|
||||
var scaling = this._decompose().scaling;
|
||||
return (scaling.x + scaling.y) / 2;
|
||||
},
|
||||
|
||||
setZoom: function(zoom) {
|
||||
|
@ -12677,8 +12676,7 @@ var View = Base.extend(Emitter, {
|
|||
},
|
||||
|
||||
getRotation: function() {
|
||||
var decomposed = this._decompose();
|
||||
return decomposed && decomposed.rotation;
|
||||
return this._decompose().rotation;
|
||||
},
|
||||
|
||||
setRotation: function(rotation) {
|
||||
|
@ -12689,11 +12687,8 @@ var View = Base.extend(Emitter, {
|
|||
},
|
||||
|
||||
getScaling: function() {
|
||||
var decomposed = this._decompose(),
|
||||
scaling = decomposed && decomposed.scaling;
|
||||
return scaling
|
||||
? new LinkedPoint(scaling.x, scaling.y, this, 'setScaling')
|
||||
: undefined;
|
||||
var scaling = this._decompose().scaling;
|
||||
return new LinkedPoint(scaling.x, scaling.y, this, 'setScaling');
|
||||
},
|
||||
|
||||
setScaling: function() {
|
||||
|
|
12
dist/paper-full.min.js
vendored
12
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
26
package-lock.json
generated
26
package-lock.json
generated
|
@ -2998,9 +2998,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"js-beautify": {
|
||||
"version": "1.8.7",
|
||||
"resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.8.7.tgz",
|
||||
"integrity": "sha512-yhAMCTv0L9GNg6Gql7i+g4C1z9rQhfHXy4J0TGYFoBzzHR4reWYS573gkRrPuE58dYOH451LmBeAb8L1pLEfdA==",
|
||||
"version": "1.8.8",
|
||||
"resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.8.8.tgz",
|
||||
"integrity": "sha512-qVNq7ZZ7ZbLdzorvSlRDadS0Rh5oyItaE95v6I4wbbuSiijxn7SnnsV6dvKlcXuO2jX7lK8tn9fBulx34K/Ejg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"config-chain": "~1.1.5",
|
||||
|
@ -3574,7 +3574,7 @@
|
|||
},
|
||||
"meow": {
|
||||
"version": "3.7.0",
|
||||
"resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
|
||||
"resolved": "http://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
|
||||
"integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
|
@ -3659,18 +3659,18 @@
|
|||
"dev": true
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.36.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz",
|
||||
"integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw==",
|
||||
"version": "1.37.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.37.0.tgz",
|
||||
"integrity": "sha512-R3C4db6bgQhlIhPU48fUtdVmKnflq+hRdad7IyKhtFj06VPNVdk2RhiYL3UjQIlso8L+YxAtFkobT0VK+S/ybg==",
|
||||
"dev": true
|
||||
},
|
||||
"mime-types": {
|
||||
"version": "2.1.20",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz",
|
||||
"integrity": "sha512-HrkrPaP9vGuWbLK1B1FfgAkbqNjIuy4eHlIYnFi7kamZyLLrGlo2mpcx0bBmNpKqBtYtAfGbodDddIgddSJC2A==",
|
||||
"version": "2.1.21",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz",
|
||||
"integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"mime-db": "~1.36.0"
|
||||
"mime-db": "~1.37.0"
|
||||
}
|
||||
},
|
||||
"minimatch": {
|
||||
|
@ -5408,13 +5408,13 @@
|
|||
"dependencies": {
|
||||
"mime-db": {
|
||||
"version": "1.12.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.12.0.tgz",
|
||||
"resolved": "http://registry.npmjs.org/mime-db/-/mime-db-1.12.0.tgz",
|
||||
"integrity": "sha1-PQxjGA9FjrENMlqqN9fFiuMS6dc=",
|
||||
"dev": true
|
||||
},
|
||||
"mime-types": {
|
||||
"version": "2.0.14",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.0.14.tgz",
|
||||
"resolved": "http://registry.npmjs.org/mime-types/-/mime-types-2.0.14.tgz",
|
||||
"integrity": "sha1-MQ4VnbI+B3+Lsit0jav6SVcUCqY=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
|
|
Loading…
Reference in a new issue