-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v1] Remove dead code from animation classes (#1018)
- Loading branch information
1 parent
8c7e1a7
commit 1940009
Showing
6 changed files
with
50 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,32 @@ | ||
// Important note: start() and stop() will only be called at most once. | ||
// Once an animation has been stopped or finished its course, it will | ||
// not be reused. | ||
import AnimatedValue from '../core/InternalAnimatedValue'; | ||
|
||
class Animation { | ||
start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) {} | ||
stop() {} | ||
static springDefaultState() { | ||
return { | ||
position: new AnimatedValue(0), | ||
finished: new AnimatedValue(0), | ||
velocity: new AnimatedValue(0), | ||
time: new AnimatedValue(0), | ||
}; | ||
} | ||
|
||
static decayDefaultState() { | ||
return { | ||
position: new AnimatedValue(0), | ||
finished: new AnimatedValue(0), | ||
velocity: new AnimatedValue(0), | ||
time: new AnimatedValue(0), | ||
}; | ||
} | ||
|
||
static timingDefaultState() { | ||
return { | ||
position: new AnimatedValue(0), | ||
finished: new AnimatedValue(0), | ||
time: new AnimatedValue(0), | ||
frameTime: new AnimatedValue(0), | ||
}; | ||
} | ||
} | ||
|
||
export default Animation; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters