mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
连线优化1:开始和结束节点。
This commit is contained in:
@@ -73,7 +73,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
ConnectorWidth = designer.ConnectorWidth;
|
||||
ConnectorHeight = designer.ConnectorHeight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 中间X
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user