@@ -25,7 +25,7 @@ public static class OutlinePathExtensions
2525 /// <param name="width">The final width outline</param>
2626 /// <param name="pattern">The pattern made of multiples of the width.</param>
2727 /// <returns>A new path representing the outline.</returns>
28- public static ComplexPolygon GenerateOutline ( this IPath path , float width , float [ ] pattern )
28+ public static IPath GenerateOutline ( this IPath path , float width , float [ ] pattern )
2929 => path . GenerateOutline ( width , new ReadOnlySpan < float > ( pattern ) ) ;
3030
3131 /// <summary>
@@ -35,7 +35,7 @@ public static ComplexPolygon GenerateOutline(this IPath path, float width, float
3535 /// <param name="width">The final width outline</param>
3636 /// <param name="pattern">The pattern made of multiples of the width.</param>
3737 /// <returns>A new path representing the outline.</returns>
38- public static ComplexPolygon GenerateOutline ( this IPath path , float width , ReadOnlySpan < float > pattern )
38+ public static IPath GenerateOutline ( this IPath path , float width , ReadOnlySpan < float > pattern )
3939 => path . GenerateOutline ( width , pattern , false ) ;
4040
4141 /// <summary>
@@ -46,7 +46,7 @@ public static ComplexPolygon GenerateOutline(this IPath path, float width, ReadO
4646 /// <param name="pattern">The pattern made of multiples of the width.</param>
4747 /// <param name="startOff">Weather the first item in the pattern is on or off.</param>
4848 /// <returns>A new path representing the outline.</returns>
49- public static ComplexPolygon GenerateOutline ( this IPath path , float width , float [ ] pattern , bool startOff )
49+ public static IPath GenerateOutline ( this IPath path , float width , float [ ] pattern , bool startOff )
5050 => path . GenerateOutline ( width , new ReadOnlySpan < float > ( pattern ) , startOff ) ;
5151
5252 /// <summary>
@@ -57,7 +57,7 @@ public static ComplexPolygon GenerateOutline(this IPath path, float width, float
5757 /// <param name="pattern">The pattern made of multiples of the width.</param>
5858 /// <param name="startOff">Weather the first item in the pattern is on or off.</param>
5959 /// <returns>A new path representing the outline.</returns>
60- public static ComplexPolygon GenerateOutline ( this IPath path , float width , ReadOnlySpan < float > pattern , bool startOff )
60+ public static IPath GenerateOutline ( this IPath path , float width , ReadOnlySpan < float > pattern , bool startOff )
6161 => GenerateOutline ( path , width , pattern , startOff , JointStyle . Square , EndCapStyle . Butt ) ;
6262
6363 /// <summary>
@@ -70,7 +70,7 @@ public static ComplexPolygon GenerateOutline(this IPath path, float width, ReadO
7070 /// <param name="jointStyle">The style to render the joints.</param>
7171 /// <param name="patternSectionCapStyle">The style to render between sections of the specified pattern.</param>
7272 /// <returns>A new path representing the outline.</returns>
73- public static ComplexPolygon GenerateOutline ( this IPath path , float width , ReadOnlySpan < float > pattern , bool startOff , JointStyle jointStyle = JointStyle . Square , EndCapStyle patternSectionCapStyle = EndCapStyle . Butt )
73+ public static IPath GenerateOutline ( this IPath path , float width , ReadOnlySpan < float > pattern , bool startOff , JointStyle jointStyle = JointStyle . Square , EndCapStyle patternSectionCapStyle = EndCapStyle . Butt )
7474 {
7575 if ( pattern . Length < 2 )
7676 {
@@ -177,7 +177,7 @@ public static ComplexPolygon GenerateOutline(this IPath path, float width, ReadO
177177 /// <param name="path">the path to outline</param>
178178 /// <param name="width">The final width outline</param>
179179 /// <returns>A new path representing the outline.</returns>
180- public static ComplexPolygon GenerateOutline ( this IPath path , float width ) => GenerateOutline ( path , width , JointStyle . Square , EndCapStyle . Butt ) ;
180+ public static IPath GenerateOutline ( this IPath path , float width ) => GenerateOutline ( path , width , JointStyle . Square , EndCapStyle . Butt ) ;
181181
182182 /// <summary>
183183 /// Generates a solid outline of the path.
@@ -187,7 +187,7 @@ public static ComplexPolygon GenerateOutline(this IPath path, float width, ReadO
187187 /// <param name="jointStyle">The style to render the joints.</param>
188188 /// <param name="endCapStyle">The style to render the end caps of open paths (ignored on closed paths).</param>
189189 /// <returns>A new path representing the outline.</returns>
190- public static ComplexPolygon GenerateOutline ( this IPath path , float width , JointStyle jointStyle = JointStyle . Square , EndCapStyle endCapStyle = EndCapStyle . Square )
190+ public static IPath GenerateOutline ( this IPath path , float width , JointStyle jointStyle = JointStyle . Square , EndCapStyle endCapStyle = EndCapStyle . Square )
191191 {
192192 var offset = new ClipperOffset ( )
193193 {
0 commit comments