修改几个名字

This commit is contained in:
艾竹
2023-01-22 22:10:39 +08:00
parent 4c37fb9772
commit bb2882c618
25 changed files with 115 additions and 118 deletions

View File

@@ -0,0 +1,30 @@
using AIStudio.Wpf.DiagramDesigner.Geometrys;
namespace AIStudio.Wpf.DiagramDesigner
{
public class ConnectorVertexModel : ConnectorPoint
{
public ConnectorVertexModel(ConnectorViewModel parent, PointBase? position = null)
{
Parent = parent;
X = position?.X ?? 0;
Y = position?.Y ?? 0;
}
public ConnectorViewModel Parent
{
get;
}
public override PointBase Position
{
get
{
return new PointBase(Parent.Area.Left + Left, Parent.Area.Top + Top);
}
}
public override PointBase MiddlePosition => new PointBase(Parent.Area.Left + Left + ConnectorWidth / 2, Parent.Area.Top + Top + ConnectorHeight / 2);
}
}