Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-engine
Commits
a2a8ee9a
Commit
a2a8ee9a
authored
May 18, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复视图动效
parent
0b317c13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
view-effects.ts
src/zeroing/game-warpper/view-effects.ts
+4
-4
No files found.
src/zeroing/game-warpper/view-effects.ts
View file @
a2a8ee9a
...
@@ -79,7 +79,7 @@ const effects = {
...
@@ -79,7 +79,7 @@ const effects = {
const
{
duration
=
300
,
direction
=
'top'
,
ease
=
'backOut'
,
inPos
:
inPosInput
}
=
params
;
const
{
duration
=
300
,
direction
=
'top'
,
ease
=
'backOut'
,
inPos
:
inPosInput
}
=
params
;
const
{
stage
:
{
width
,
height
}}
=
gameStage
;
const
{
stage
:
{
width
,
height
}}
=
gameStage
;
let
outPos
:
any
;
let
outPos
:
any
=
{}
;
switch
(
direction
)
{
switch
(
direction
)
{
case
'left'
:
case
'left'
:
outPos
.
x
=
-
width
;
outPos
.
x
=
-
width
;
...
@@ -96,7 +96,7 @@ const effects = {
...
@@ -96,7 +96,7 @@ const effects = {
}
}
let
inEase
=
ease
;
let
inEase
=
ease
;
let
outEase
=
ease
.
indexOf
(
'Out'
)
?
ease
.
replace
(
'Out'
,
'In'
)
:
ease
.
replace
(
'In'
,
'Out'
)
;
let
outEase
=
ease
?
ease
.
indexOf
(
'Out'
)
?
ease
.
replace
(
'Out'
,
'In'
)
:
ease
.
replace
(
'In'
,
'Out'
)
:
''
;
if
(
mutex
)
{
if
(
mutex
)
{
flewOut
(()
=>
{
flewOut
(()
=>
{
...
@@ -148,7 +148,7 @@ const effects = {
...
@@ -148,7 +148,7 @@ const effects = {
const
{
duration
=
300
,
ease
=
'backOut'
,
x
=
0
,
y
=
0
}
=
params
;
const
{
duration
=
300
,
ease
=
'backOut'
,
x
=
0
,
y
=
0
}
=
params
;
let
inEase
=
ease
;
let
inEase
=
ease
;
let
outEase
=
ease
.
indexOf
(
'Out'
)
?
ease
.
replace
(
'Out'
,
'In'
)
:
ease
.
replace
(
'In'
,
'Out'
)
;
let
outEase
=
ease
?
ease
.
indexOf
(
'Out'
)
?
ease
.
replace
(
'Out'
,
'In'
)
:
ease
.
replace
(
'In'
,
'Out'
)
:
''
;
let
outPos
=
{
let
outPos
=
{
x
:
parseInt
(
x
),
x
:
parseInt
(
x
),
...
@@ -214,7 +214,7 @@ const effects = {
...
@@ -214,7 +214,7 @@ const effects = {
const
{
duration
=
300
,
ease
=
'backOut'
}
=
params
;
const
{
duration
=
300
,
ease
=
'backOut'
}
=
params
;
let
inEase
=
ease
;
let
inEase
=
ease
;
let
outEase
=
ease
.
indexOf
(
'Out'
)
?
ease
.
replace
(
'Out'
,
'In'
)
:
ease
.
replace
(
'In'
,
'Out'
)
;
let
outEase
=
ease
?
ease
.
indexOf
(
'Out'
)
?
ease
.
replace
(
'Out'
,
'In'
)
:
ease
.
replace
(
'In'
,
'Out'
)
:
''
;
if
(
mutex
)
{
if
(
mutex
)
{
zoomOut
(()
=>
{
zoomOut
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment