修改暂存一下

This commit is contained in:
艾竹
2023-01-12 23:02:53 +08:00
parent 5d7717cc2b
commit 6a4c31106a
58 changed files with 776 additions and 468 deletions

View File

@@ -1,5 +1,6 @@
using System;
using AIStudio.Wpf.DiagramDesigner.Geometry;
using System.Linq;
using AIStudio.Wpf.DiagramDesigner.Geometrys;
namespace AIStudio.Wpf.DiagramDesigner
{
@@ -28,8 +29,20 @@ namespace AIStudio.Wpf.DiagramDesigner
var result = new PointBase[route.Length + 2];
result[0] = source;
route.CopyTo(result, 1);
result[route.Length - 1] = target;
result[result.Length - 1] = target;
return result;
}
private static void DoShift(PointBase[] points, ConnectorViewModel link)
{
double left = link.Area.Left;
double top = link.Area.Top;
for (int i = 0; i < points.Length; i++)
{
points[i].X = points[i].X - left;
points[i].Y = points[i].Y - top;
}
}
}
}