Reverted some code formatting, since it is not needed anymore

This commit is contained in:
aborziak-ms 2021-06-14 11:54:28 -07:00
Родитель 93ce5d0af8
Коммит 493f9ddb9f
2 изменённых файлов: 5 добавлений и 15 удалений

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

@ -254,10 +254,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Lottie.LottieToWinComp
sprite.StrokeBrush = brush;
}
public static CompositionBrush? TranslateShapeFill(
LayerContext context,
ShapeFill? shapeFill,
CompositeOpacity opacity)
public static CompositionBrush? TranslateShapeFill(LayerContext context, ShapeFill? shapeFill, CompositeOpacity opacity)
{
if (shapeFill is null)
{
@ -266,12 +263,9 @@ namespace Microsoft.Toolkit.Uwp.UI.Lottie.LottieToWinComp
return shapeFill.FillKind switch
{
ShapeFill.ShapeFillKind.SolidColor =>
TranslateSolidColorFill(context, (SolidColorFill)shapeFill, opacity),
ShapeFill.ShapeFillKind.LinearGradient =>
TranslateLinearGradient(context, (LinearGradientFill)shapeFill, opacity),
ShapeFill.ShapeFillKind.RadialGradient =>
TranslateRadialGradient(context, (RadialGradientFill)shapeFill, opacity),
ShapeFill.ShapeFillKind.SolidColor => TranslateSolidColorFill(context, (SolidColorFill)shapeFill, opacity),
ShapeFill.ShapeFillKind.LinearGradient => TranslateLinearGradient(context, (LinearGradientFill)shapeFill, opacity),
ShapeFill.ShapeFillKind.RadialGradient => TranslateRadialGradient(context, (RadialGradientFill)shapeFill, opacity),
_ => throw new InvalidOperationException(),
};
}

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

@ -34,11 +34,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Lottie.LottieToWinComp
ShapeContext context,
CompositionSpriteShape shape,
bool reverseDirection) =>
TranslateAndApplyShapeContextWithTrimOffset(
context,
shape,
reverseDirection,
trimOffsetDegrees: 0);
TranslateAndApplyShapeContextWithTrimOffset(context, shape, reverseDirection, 0);
public static void TranslateAndApplyShapeContextWithTrimOffset(
ShapeContext context,