Skip to content

Commit f976353

Browse files
Update namespace
1 parent bf57cfe commit f976353

File tree

10 files changed

+12
-11
lines changed

10 files changed

+12
-11
lines changed

src/ImageSharp.Drawing/Shapes/ClipPathExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the Six Labors Split License.
33

44
using SixLabors.ImageSharp.Drawing.Processing;
5-
using SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper;
5+
using SixLabors.ImageSharp.Drawing.Shapes.PolygonGeometry;
66

77
namespace SixLabors.ImageSharp.Drawing;
88

src/ImageSharp.Drawing/Shapes/PolygonClipper/ArrayBuilder{T}.cs renamed to src/ImageSharp.Drawing/Shapes/Helpers/ArrayBuilder{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Diagnostics.CodeAnalysis;
55
using System.Runtime.CompilerServices;
66

7-
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper;
7+
namespace SixLabors.ImageSharp.Drawing.Shapes.Helpers;
88

99
/// <summary>
1010
/// A helper type for avoiding allocations while building arrays.

src/ImageSharp.Drawing/Shapes/OutlinePathExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the Six Labors Split License.
33

44
using System.Numerics;
5-
using SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper;
5+
using SixLabors.ImageSharp.Drawing.Shapes.PolygonGeometry;
66

77
namespace SixLabors.ImageSharp.Drawing;
88

src/ImageSharp.Drawing/Shapes/PolygonClipper/ClippedShapeGenerator.cs renamed to src/ImageSharp.Drawing/Shapes/PolygonGeometry/ClippedShapeGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using ClipperPolygon = SixLabors.PolygonClipper.Polygon;
66
using PolygonClipperAction = SixLabors.PolygonClipper.PolygonClipper;
77

8-
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper;
8+
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonGeometry;
99

1010
/// <summary>
1111
/// Generates clipped shapes from one or more input paths using polygon boolean operations.

src/ImageSharp.Drawing/Shapes/PolygonClipper/ClippingType.cs renamed to src/ImageSharp.Drawing/Shapes/PolygonGeometry/ClippingType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
33

4-
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper;
4+
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonGeometry;
55

66
/// <summary>
77
/// Defines the polygon clipping type.

src/ImageSharp.Drawing/Shapes/PolygonClipper/PolygonClipperFactory.cs renamed to src/ImageSharp.Drawing/Shapes/PolygonGeometry/PolygonClipperFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using SixLabors.PolygonClipper;
66
using ClipperPolygon = SixLabors.PolygonClipper.Polygon;
77

8-
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper;
8+
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonGeometry;
99

1010
/// <summary>
1111
/// Builders for <see cref="ClipperPolygon"/> from ImageSharp paths.

src/ImageSharp.Drawing/Shapes/PolygonClipper/PolygonStroker.cs renamed to src/ImageSharp.Drawing/Shapes/PolygonGeometry/PolygonStroker.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
// Licensed under the Six Labors Split License.
33

44
using System.Runtime.CompilerServices;
5+
using SixLabors.ImageSharp.Drawing.Shapes.Helpers;
56

67
#pragma warning disable SA1201 // Elements should appear in the correct order
7-
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper;
8+
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonGeometry;
89

910
/// <summary>
1011
/// Generates polygonal stroke outlines for vector paths using analytic joins and caps.
@@ -47,7 +48,7 @@ internal sealed class PolygonStroker
4748

4849
public double ApproximationScale { get; set; } = 1.0;
4950

50-
public LineJoin LineJoin { get; set; } = LineJoin.MiterJoin;
51+
public LineJoin LineJoin { get; set; } = LineJoin.BevelJoin;
5152

5253
public LineCap LineCap { get; set; } = LineCap.Butt;
5354

src/ImageSharp.Drawing/Shapes/PolygonClipper/StrokedShapeGenerator.cs renamed to src/ImageSharp.Drawing/Shapes/PolygonGeometry/StrokedShapeGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using SixLabors.PolygonClipper;
55

6-
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper;
6+
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonGeometry;
77

88
/// <summary>
99
/// Generates stroked and merged shapes using polygon stroking and boolean clipping.

src/ImageSharp.Drawing/Shapes/PolygonClipper/VertexDistance.cs renamed to src/ImageSharp.Drawing/Shapes/PolygonGeometry/VertexDistance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using System.Runtime.CompilerServices;
55

6-
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper;
6+
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonGeometry;
77

88
// TODO: We can improve the performance of some of the operations here by using unsafe casting to Vector128<double>
99
// Like we do in PolygonClipper.

tests/ImageSharp.Drawing.Tests/Shapes/PolygonClipper/ClipperTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the Six Labors Split License.
33

44
using System.Numerics;
5-
using SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper;
5+
using SixLabors.ImageSharp.Drawing.Shapes.PolygonGeometry;
66
using SixLabors.ImageSharp.Drawing.Tests.TestUtilities;
77
using SixLabors.PolygonClipper;
88

0 commit comments

Comments
 (0)