Update QuadraticBezierDrawNode.cs
This commit is contained in:
Родитель
2514262c0c
Коммит
b2f31cec54
|
@ -24,7 +24,14 @@ internal class QuadraticBezierDrawNode : DrawNode, IQuadraticBezierDrawNode
|
|||
ScaleThickness = QuadraticBezier.State.HasFlag(ShapeStateFlags.Thickness);
|
||||
ScaleSize = QuadraticBezier.State.HasFlag(ShapeStateFlags.Size);
|
||||
Geometry = PathGeometryConverter.ToSKPath(QuadraticBezier);
|
||||
Center = new SKPoint(Geometry.Bounds.MidX, Geometry.Bounds.MidY);
|
||||
if (Geometry is { })
|
||||
{
|
||||
Center = new SKPoint(Geometry.Bounds.MidX, Geometry.Bounds.MidY);
|
||||
}
|
||||
else
|
||||
{
|
||||
Center = SKPoint.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnDraw(object? dc, double zoom)
|
||||
|
|
Загрузка…
Ссылка в новой задаче