Label LayoutAnimations enums with numbers for debugging

Summary:
Just makes it easier to log and inspect these values.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D27407778

fbshipit-source-id: 68e93d100b56bc9065f0ff1370260412d729312d
This commit is contained in:
Joshua Gross 2021-03-29 20:27:38 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 2aee39cdc1
Коммит 72d45de21e
1 изменённых файлов: 16 добавлений и 16 удалений

Просмотреть файл

@ -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.