Browse Source

Removed incomplete line joins and caps for rectangle

Krzysztof Krysiński 4 months ago
parent
commit
01045c0f9b

+ 1 - 1
src/PixiEditor.ChangeableDocument/Changeables/Graph/Interfaces/Shapes/IReadOnlyRectangleData.cs

@@ -2,7 +2,7 @@
 
 
 namespace PixiEditor.ChangeableDocument.Changeables.Graph.Interfaces.Shapes;
 namespace PixiEditor.ChangeableDocument.Changeables.Graph.Interfaces.Shapes;
 
 
-public interface IReadOnlyRectangleData : IReadOnlyShapeVectorData, IReadOnlyStrokeJoinable
+public interface IReadOnlyRectangleData : IReadOnlyShapeVectorData
 {
 {
     public VecD Center { get; }
     public VecD Center { get; }
     public VecD Size { get; }
     public VecD Size { get; }

+ 0 - 4
src/PixiEditor.ChangeableDocument/Changeables/Graph/Nodes/Shapes/Data/RectangleVectorData.cs

@@ -13,8 +13,6 @@ public class RectangleVectorData : ShapeVectorData, IReadOnlyRectangleData
     public VecD Center { get; set; }
     public VecD Center { get; set; }
     public VecD Size { get; set; }
     public VecD Size { get; set; }
     public double CornerRadius { get; set; }
     public double CornerRadius { get; set; }
-    public StrokeJoin StrokeLineJoin { get; set; } = StrokeJoin.Round;
-    public StrokeCap StrokeLineCap { get; } = StrokeCap.Butt;
 
 
     public override RectD GeometryAABB => RectD.FromCenterAndSize(Center, Size);
     public override RectD GeometryAABB => RectD.FromCenterAndSize(Center, Size);
 
 
@@ -79,8 +77,6 @@ public class RectangleVectorData : ShapeVectorData, IReadOnlyRectangleData
             paint.Style = PaintStyle.Stroke;
             paint.Style = PaintStyle.Stroke;
 
 
             paint.StrokeWidth = StrokeWidth;
             paint.StrokeWidth = StrokeWidth;
-            paint.StrokeCap = StrokeLineCap;
-            paint.StrokeJoin = StrokeLineJoin;
 
 
             DrawRect(canvas, paint);
             DrawRect(canvas, paint);
         }
         }