Automated dotnet-format update

This commit is contained in:
github-actions-dotnet-formatter[bot] committed 2022-03-13 14:27:46 +00:00
1 parent ed41aabdef
commit 4cb300574c
747 files changed
+1000 -1000

No files matched your search

@@ -353,4 +353,4 @@ internal static class BezierCurveFlattener
return _numSteps != 0;
}
}
}
}
@@ -111,4 +111,4 @@ internal static class CommonExtensions
{
list.RemoveAt(list.Count - 1);
}
}
}
@@ -35,4 +35,4 @@ internal class ExceptionStringTable
internal static string TypeNotSupported =>
ResourceManager.GetString("TypeNotSupported", Culture);
}
}
@@ -217,4 +217,4 @@ public static class GeometryHelper
return false;
}
}
}
@@ -46,4 +46,4 @@ internal class MarchLocation
{
return GeometryHelper.Lerp(points[Index], points[Index + 1], Ratio);
}
}
}
@@ -5,4 +5,4 @@ internal enum MarchStopReason
CompleteStep,
CompletePolyline,
CornerPoint
}
}
@@ -65,4 +65,4 @@ internal static class MathHelper
}
return fallback;
}
}
}
@@ -111,4 +111,4 @@ internal static class PathFigureHelper
flag |= figure.SetIfDifferent(PathFigure.IsClosedProperty, isClosed);
return flag | figure.SetIfDifferent(PathFigure.IsFilledProperty, isFilled);
}
}
}
@@ -21,4 +21,4 @@ internal static class PathGeometryHelper
}
internal static Geometry FixPathGeometryBoundary(Geometry geometry) => geometry;
}
}
@@ -13,4 +13,4 @@ internal sealed class PathSegmentData
public System.Windows.Media.PathSegment PathSegment { get; }
public Point StartPoint { get; }
}
}
@@ -745,4 +745,4 @@ internal static class PathSegmentHelper
yield return SimpleSegment.Create(Start, _segment.Point1, _segment.Point2);
}
}
}
}
@@ -148,4 +148,4 @@ internal class PolylineData
return Normals[index];
}
}
}
@@ -112,4 +112,4 @@ internal static class PolylineHelper
}
}
}
}
}
@@ -41,4 +41,4 @@ internal class RandomEngine
public double NextUniform(double min, double max) => Uniform() * (max - min) + min;
private double Uniform() => _random.NextDouble();
}
}
@@ -72,4 +72,4 @@ internal class SimpleSegment
return;
}
}
}
}
@@ -466,4 +466,4 @@ internal class ArcGeometrySource : GeometrySource<IArcGeometrySourceParameters>
flag |= geometry.SetIfDifferent(LineGeometry.StartPointProperty, arcPoint);
return flag | geometry.SetIfDifferent(LineGeometry.EndPointProperty, point2);
}
}
}
@@ -7,4 +7,4 @@ internal class DrawingPropertyChangedEventArgs : EventArgs
public bool IsAnimated { get; set; }
public DrawingPropertyMetadata Metadata { get; set; }
}
}
@@ -73,4 +73,4 @@ internal class DrawingPropertyMetadata : FrameworkPropertyMetadata
propertyChangedCallback?.Invoke(sender, e);
}
}
}
@@ -8,4 +8,4 @@ internal enum DrawingPropertyMetadataOptions
AffectsMeasure = 1,
AffectsRender = 0x10,
None = 0
}
}
@@ -168,4 +168,4 @@ public abstract class GeometryEffect : Freezable
return false;
}
}
}
}
@@ -55,4 +55,4 @@ public sealed class GeometryEffectConverter : TypeConverter
return null;
}
}
}
@@ -84,4 +84,4 @@ public abstract class GeometrySource<TParameters> : IGeometrySource
}
protected abstract bool UpdateCachedGeometry(TParameters parameters);
}
}
@@ -9,4 +9,4 @@ public interface IArcGeometrySourceParameters : IGeometrySourceParameters
double EndAngle { get; }
double StartAngle { get; }
}
}
@@ -13,4 +13,4 @@ public interface IGeometrySource
Rect LayoutBounds { get; }
Rect LogicalBounds { get; }
}
}
@@ -27,4 +27,4 @@ internal static class GeometrySourceExtensions
return 0.0;
}
}
}
@@ -9,4 +9,4 @@ public interface IGeometrySourceParameters
Brush Stroke { get; }
double StrokeThickness { get; }
}
}
@@ -21,4 +21,4 @@ public interface IShape
Brush Stroke { get; set; }
double StrokeThickness { get; set; }
}
}
@@ -10,4 +10,4 @@ public enum InvalidateGeometryReasons
ParentInvalidated = 8,
PropertyChanged = 1,
TemplateChanged = 0x10
}
}
@@ -45,12 +45,12 @@ public sealed class SketchGeometryEffect : GeometryEffect
{
var startPoint = pathFigure.StartPoint;
foreach (var iteratorVariable1 in pathFigure.AllSegments())
foreach (var iteratorVariable2 in iteratorVariable1.PathSegment.GetSimpleSegments(
iteratorVariable1.StartPoint))
{
yield return iteratorVariable2;
startPoint = iteratorVariable2.Points.Last();
}
foreach (var iteratorVariable2 in iteratorVariable1.PathSegment.GetSimpleSegments(
iteratorVariable1.StartPoint))
{
yield return iteratorVariable2;
startPoint = iteratorVariable2.Points.Last();
}
if (pathFigure.IsClosed) yield return SimpleSegment.Create(startPoint, pathFigure.StartPoint);
}
@@ -131,4 +131,4 @@ public sealed class SketchGeometryEffect : GeometryEffect
if (flag) CachedGeometry = PathGeometryHelper.FixPathGeometryBoundary(CachedGeometry);
return flag;
}
}
}
@@ -4,4 +4,4 @@ public enum UnitType
{
Pixel,
Percent
}
}
@@ -56,4 +56,4 @@ public sealed class Arc : PrimitiveShape, IArcGeometrySourceParameters
{
return new ArcGeometrySource();
}
}
}
@@ -76,4 +76,4 @@ public abstract class PrimitiveShape : Shape, IGeometrySourceParameters, IShape
protected override Size MeasureOverride(Size availableSize) => new(base.StrokeThickness, base.StrokeThickness);
private void RealizeGeometry() => RenderedGeometryChanged?.Invoke(this, EventArgs.Empty);
}
}