Changes based on PR feedback
This commit is contained in:
Родитель
4b0b1e065e
Коммит
d2fe25507d
|
@ -51,7 +51,8 @@ namespace Microsoft.Maui.Graphics.Controls
|
|||
|
||||
public Action<ICanvas, RectangleF, TViewDrawable, TVirtualView> this[string key]
|
||||
{
|
||||
set => genericMap[key] = (c, r, h, v) => value?.Invoke(c, r, (TViewDrawable)h, (TVirtualView)v);
|
||||
set => genericMap[key] = (canvas, rect, drawable, virtualView) =>
|
||||
value?.Invoke(canvas, rect, (TViewDrawable)drawable, (TVirtualView)virtualView);
|
||||
}
|
||||
|
||||
public override Action<ICanvas, RectangleF, IViewDrawable, IView>? Get(string key)
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using System.Linq;
|
||||
|
||||
namespace Microsoft.Maui.Graphics.Controls
|
||||
{
|
||||
public static class RectExtensions
|
||||
public static class RectangleExtensions
|
||||
{
|
||||
public static PointF Center(this RectangleF rectangle) =>
|
||||
new PointF(rectangle.X + (rectangle.Width / 2), rectangle.Y + (rectangle.Height / 2));
|
||||
|
|
Загрузка…
Ссылка в новой задаче