From d6f9c012e9282204292a4af7b270d66e29b5cb38 Mon Sep 17 00:00:00 2001 From: Sebastian Kupke Date: Fri, 24 May 2019 14:35:37 +0200 Subject: [PATCH] Fixed Flippable bug. --- assets/images/shadow.png | Bin 0 -> 13873 bytes dist/iwmlib.pixi.js | 4 ++-- lib/pixi/flippable.html | 2 ++ lib/pixi/flippable.js | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100755 assets/images/shadow.png diff --git a/assets/images/shadow.png b/assets/images/shadow.png new file mode 100755 index 0000000000000000000000000000000000000000..def939aaebda01afa325b916b7be2ce5ec50b074 GIT binary patch literal 13873 zcmeI(v1=1i90%~%Bubi6kh&CI9_OG-?vhK=nj;B`iM0h&OGqIF3%xYgc$nNv@2=#s zwJx?(M^QwaTm(U!0v)V>fglJv6wyH!cLfFC<&riH-Ce$cBkz9s{eJJg-205Tx3qX` zGIS|K2$@`%FO&%J|8TFMk4N4e=HKwIKs{H?5%PL};*WZc-;cNES1dv%F1ptkdGd6c z5TB`+D|V%LTUlpKQLVA6COXX)&n6`0D16w|Y?V6AhG8jATIgjceC&oLf%a1D`)Q$4 zT%vhqYBV9n#fXpzQA$&0Z9^#)=KAIQE-l=%?Uo`*?RHyi$3$k}9NsVYZpc}2Zld6T8wR?13Avsh!xT~uaPPWAeq3ZAUaE6B5E%hW8(ElBk9 zhhwApm9r)o4h|LY^(%Q(Q*CCJ8Ea(b8XeuJ(;|=1+&VK2IwM9!zRJ(>FQ= z)z&g{Bzip@nF&W@@DiFLtv)g3MhXMWsoCGL<0w{n2 zD1ZVefC4Ch0w{n2D1ZVefC4Ch0w{n2D1ZVefC4Ch0w{n2D1ZVefC4Ch0w{n2D1ZVe zfC4Ch0w{n2D1ZVe_>T&fcUGIvpLvhq*BvSxl^*{#$46d!d4KK8*Q4E+i9z`7!S?=# ggYMqY*}c2tfAr$KKYm#K?7qacaC5Qn>c-lGf8KbThyVZp literal 0 HcmV?d00001 diff --git a/dist/iwmlib.pixi.js b/dist/iwmlib.pixi.js index 17ba583..52c0965 100644 --- a/dist/iwmlib.pixi.js +++ b/dist/iwmlib.pixi.js @@ -9924,7 +9924,7 @@ * @param {boolean} [opts.shadow=false] - Should be a shadow been display during the animation? * @param {numer} [opts.eulerX=0] - The shift of the x-axis during the animation. * @param {numer} [opts.eulerY=0] - The shift of the y-axis during the animation. - * @param {GSAP.Ease} [opts.eulerEase=Sine.easeOut] - The ease of the shift. + * @param {GSAP.Ease} [opts.eulerEase=Power1.easeOut] - The ease of the shift. * @param {boolean} [opts.useBackTransforms=false] - When set to true, the flip animation also animates to the transform parameters of the back-object. * @param {GSAP.Ease} [opts.transformEase=Power2.easeOut] - The ease of the transform. * @param {numer} [opts.focus=800] - The value of the focus of the 3D camera (see pixi-projection). @@ -9948,7 +9948,7 @@ shadow: false, eulerX: 0, eulerY: 0, - eulerEase: Sine.easeOut, + eulerEase: Power1.easeOut, useBackTransforms: false, transformEase: Power2.easeOut, focus: 800, diff --git a/lib/pixi/flippable.html b/lib/pixi/flippable.html index e31c20e..891483c 100644 --- a/lib/pixi/flippable.html +++ b/lib/pixi/flippable.html @@ -13,6 +13,8 @@ + +

Flippable

diff --git a/lib/pixi/flippable.js b/lib/pixi/flippable.js index 00ab301..3b07f24 100644 --- a/lib/pixi/flippable.js +++ b/lib/pixi/flippable.js @@ -56,7 +56,7 @@ export default class Flippable extends PIXI.projection.Camera3d { * @param {boolean} [opts.shadow=false] - Should be a shadow been display during the animation? * @param {numer} [opts.eulerX=0] - The shift of the x-axis during the animation. * @param {numer} [opts.eulerY=0] - The shift of the y-axis during the animation. - * @param {GSAP.Ease} [opts.eulerEase=Sine.easeOut] - The ease of the shift. + * @param {GSAP.Ease} [opts.eulerEase=Power1.easeOut] - The ease of the shift. * @param {boolean} [opts.useBackTransforms=false] - When set to true, the flip animation also animates to the transform parameters of the back-object. * @param {GSAP.Ease} [opts.transformEase=Power2.easeOut] - The ease of the transform. * @param {numer} [opts.focus=800] - The value of the focus of the 3D camera (see pixi-projection). @@ -80,7 +80,7 @@ export default class Flippable extends PIXI.projection.Camera3d { shadow: false, eulerX: 0, eulerY: 0, - eulerEase: Sine.easeOut, + eulerEase: Power1.easeOut, useBackTransforms: false, transformEase: Power2.easeOut, focus: 800,