@flashist/appframework 0.0.253 → 0.0.254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NumberTools, ObjectTools } from "@flashist/fcore";
|
|
2
2
|
import { getInstance } from "@flashist/flibs";
|
|
3
|
-
import {
|
|
3
|
+
import { gsap } from "gsap";
|
|
4
4
|
import { BaseAppCommand } from "../../base/commands/BaseAppCommand";
|
|
5
5
|
import { ContainersManager } from "../../containers/managers/ContainersManager";
|
|
6
6
|
import { HintContainerId } from "../data/HintContainerId";
|
|
@@ -23,21 +23,25 @@ export class AnimateHintCommand extends BaseAppCommand {
|
|
|
23
23
|
this.hint.x = localPos.x;
|
|
24
24
|
this.hint.y = localPos.y;
|
|
25
25
|
const tempFinalY = localPos.y + NumberTools.getRandomFloat(this.config.finalGlobalPosMinChange.y, this.config.finalGlobalPosMaxChange.y);
|
|
26
|
-
|
|
26
|
+
gsap.to(this.hint, {
|
|
27
|
+
duration: this.config.positionTweenDuration,
|
|
27
28
|
y: tempFinalY,
|
|
28
|
-
ease:
|
|
29
|
+
ease: "sine.out"
|
|
29
30
|
});
|
|
30
31
|
const tempFinalX = localPos.x + NumberTools.getRandomFloat(this.config.finalGlobalPosMinChange.x, this.config.finalGlobalPosMaxChange.x);
|
|
31
|
-
|
|
32
|
+
gsap.to(this.hint, {
|
|
33
|
+
duration: this.config.positionTweenDuration,
|
|
32
34
|
x: tempFinalX,
|
|
33
|
-
ease:
|
|
35
|
+
ease: "back.out"
|
|
34
36
|
});
|
|
35
37
|
this.hint.alpha = this.config.startAlpha;
|
|
36
|
-
|
|
38
|
+
gsap.to(this.hint, {
|
|
39
|
+
duration: this.config.startAlphaTweenDuration,
|
|
37
40
|
delay: this.config.startAlphaTweenDelay,
|
|
38
41
|
alpha: this.config.mainAlpha
|
|
39
42
|
});
|
|
40
|
-
|
|
43
|
+
gsap.to(this.hint, {
|
|
44
|
+
duration: this.config.startAlphaTweenDuration,
|
|
41
45
|
delay: this.config.finalAlphaTweenDelay,
|
|
42
46
|
alpha: this.config.finalAlpha,
|
|
43
47
|
onComplete: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimateHintCommand.js","sourceRoot":"","sources":["../../../src/hints/commands/AnimateHintCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAyB,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"AnimateHintCommand.js","sourceRoot":"","sources":["../../../src/hints/commands/AnimateHintCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAyB,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,EAAE,IAAI,EAAc,MAAM,MAAM,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IAIlD,YAAsB,IAAe,EAAE,MAA4B;QAC/D,KAAK,EAAE,CAAC;QADU,SAAI,GAAJ,IAAI,CAAW;QAGjC,IAAI,CAAC,MAAM,GAAG,EAAS,CAAC;QAExB,WAAW,CAAC,SAAS,CACjB,IAAI,CAAC,MAAM,EACX,MAAM,CACT,CAAC;QAEF,WAAW,CAAC,SAAS,CACjB,IAAI,CAAC,MAAM,EACX,IAAI,iBAAiB,EAAE,EACvB;YACI,uBAAuB,EAAE,IAAI;SAChC,CACJ,CAAC;IACN,CAAC;IAES,eAA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AI,CAAC,IAAI,EACT;YACI,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,uBAAuB;YAE7C,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB;YAEvC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS;SAC/B,CACJ,CAAC;QACF,IAAI,CAAC,EAAE,CACH,IAAI,CAAC,IAAI,EACT;YACI,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,uBAAuB;YAE7C,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB;YACvC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU;YAC7B,UAAU,EAAE,GAAG,EAAE;gBACb,IAAI,CAAC,eAAe,EAAE,CAAC;YAC3B,CAAC;SACJ,CACJ,CAAC;IACN,CAAC;IAES,eAAe;QACrB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAExC,IAAI,CAAC,cAAc,EAAE,CAAC;IAC1B,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flashist/appframework",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.254",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "gulp",
|
|
6
6
|
"publish:patch": "npm version patch && npm run build && cd ./dist && npm publish",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@flashist/fbuildscripts": "0.x",
|
|
23
|
+
"gsap": "^3.12.7",
|
|
23
24
|
"pixi.js": "^8.8.1",
|
|
24
25
|
"typescript": "^5.8.2"
|
|
25
26
|
}
|