连线优化1:开始和结束节点。

This commit is contained in:
艾竹
2023-05-02 17:28:16 +08:00
parent 06c3ddde7e
commit 6de36f2473
7 changed files with 100 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ namespace AIStudio.Wpf.DiagramDesigner
ConnectorWidth = designer.ConnectorWidth;
ConnectorHeight = designer.ConnectorHeight;
}
}
}
/// <summary>
/// 中间X

View File

@@ -51,6 +51,11 @@ namespace AIStudio.Wpf.DiagramDesigner
}
public ConnectorVertexType ConnectorVertexType
{
get; set;
}
public ConnectionViewModel Connector
{
get
@@ -82,5 +87,18 @@ namespace AIStudio.Wpf.DiagramDesigner
}
}
public void SetPosition(PointBase position)
{
X = position.X;
Y = position.Y;
}
}
public enum ConnectorVertexType
{
None,
Start,
End,
}
}