mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-05-01 13:39:28 +08:00
使用PointBase代替Point
This commit is contained in:
13
AIStudio.Wpf.DiagramDesigner/Routers/Routers.Normal.cs
Normal file
13
AIStudio.Wpf.DiagramDesigner/Routers/Routers.Normal.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Linq;
|
||||
using AIStudio.Wpf.DiagramDesigner.Geometry;
|
||||
|
||||
namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
public static partial class Routers
|
||||
{
|
||||
public static PointBase[] Normal(IDiagramViewModel _, ConnectorViewModel link)
|
||||
{
|
||||
return link.Vertices.Select(v => (PointBase)v).ToArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user