From 6d238440eee0df24400e6a5756e4f426527b0df9 Mon Sep 17 00:00:00 2001 From: "Paper.js Bot" Date: Sat, 20 Oct 2018 13:18:01 +0000 Subject: [PATCH] Prebuilt module for commit f50a81e089108e70a2cfa20a2b3c8fc4168cf0a9 --- dist/docs/assets/js/paper.js | 21 ++++++++------------- dist/docs/classes/Matrix.html | 4 ++-- dist/paper-core.js | 21 ++++++++------------- dist/paper-core.min.js | 8 ++++---- dist/paper-full.js | 21 ++++++++------------- dist/paper-full.min.js | 12 ++++++------ package-lock.json | 26 +++++++++++++------------- 7 files changed, 49 insertions(+), 64 deletions(-) diff --git a/dist/docs/assets/js/paper.js b/dist/docs/assets/js/paper.js index f560deef..51ddd49d 100644 --- a/dist/docs/assets/js/paper.js +++ b/dist/docs/assets/js/paper.js @@ -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() { diff --git a/dist/docs/classes/Matrix.html b/dist/docs/classes/Matrix.html index 2170ba1c..5868896e 100644 --- a/dist/docs/classes/Matrix.html +++ b/dist/docs/classes/Matrix.html @@ -1641,7 +1641,7 @@ Array of Numbers