Skip to content

Commit

Permalink
Label LayoutAnimations enums with numbers for debugging
Browse files Browse the repository at this point in the history
Summary:
Just makes it easier to log and inspect these values.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D27407778

fbshipit-source-id: 68e93d100b56bc9065f0ff1370260412d729312d
  • Loading branch information
JoshuaGross authored and facebook-github-bot committed Mar 30, 2021
1 parent 2aee39c commit 72d45de
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,27 @@ void PrintMutationInstructionRelative(

// This corresponds exactly with JS.
enum class AnimationType {
None,
Spring,
Linear,
EaseInEaseOut,
EaseIn,
EaseOut,
Keyboard
None = 0,
Spring = 1,
Linear = 2,
EaseInEaseOut = 4,
EaseIn = 8,
EaseOut = 16,
Keyboard = 32
};
enum class AnimationProperty {
NotApplicable,
Opacity,
ScaleX,
ScaleY,
ScaleXY
NotApplicable = 0,
Opacity = 1,
ScaleX = 2,
ScaleY = 4,
ScaleXY = 8
};
enum class AnimationConfigurationType {
Noop, // for animation placeholders that are not animated, and should be
Noop = 0, // for animation placeholders that are not animated, and should be
// executed once other animations have completed
Create,
Update,
Delete
Create = 1,
Update = 2,
Delete = 4
};

// This corresponds exactly with JS.
Expand Down

0 comments on commit 72d45de

Please sign in to comment.