支持添加中间节点

This commit is contained in:
艾竹
2023-01-21 22:01:10 +08:00
parent c4ab1a6355
commit 2e396d687b
8 changed files with 249 additions and 219 deletions

View File

@@ -16,5 +16,15 @@ namespace AIStudio.Wpf.DiagramDesigner
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);
}
}