|
@@ -1,6 +1,8 @@
|
|
|
// Copyright (c) The Avalonia Project. All rights reserved.
|
|
// Copyright (c) The Avalonia Project. All rights reserved.
|
|
|
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|
|
|
|
|
|
|
|
|
+using System.Globalization;
|
|
|
|
|
+
|
|
|
namespace Avalonia.Media
|
|
namespace Avalonia.Media
|
|
|
{
|
|
{
|
|
|
public sealed class ArcSegment : PathSegment
|
|
public sealed class ArcSegment : PathSegment
|
|
@@ -99,5 +101,8 @@ namespace Avalonia.Media
|
|
|
{
|
|
{
|
|
|
ctx.ArcTo(Point, Size, RotationAngle, IsLargeArc, SweepDirection);
|
|
ctx.ArcTo(Point, Size, RotationAngle, IsLargeArc, SweepDirection);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public override string ToString()
|
|
|
|
|
+ => $"A {Size} {RotationAngle.ToString(CultureInfo.InvariantCulture)} {(IsLargeArc ? 1 : 0)} {(int)SweepDirection} {Point}";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|