Reverted some code formatting, since it is not needed anymore
This commit is contained in:
Родитель
93ce5d0af8
Коммит
493f9ddb9f
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче