优化了显示

This commit is contained in:
fengjiayi
2024-08-08 21:39:42 +08:00
parent 81206ffbd5
commit 0ddbcc7ef6
11 changed files with 101 additions and 28 deletions

View File

@@ -397,7 +397,7 @@ namespace Serein.WorkBench
}
var connection = new Connection { Start = fromNode, End = toNode, Type = connectionType };
toNode.Node.PreviousNodes.Add(fromNode.Node);
DraggableControl.CreateLinx(FlowChartCanvas, connection);
BsControl.Draw(FlowChartCanvas, connection);
ConfigureLineContextMenu(connection);
connections.Add(connection);
}
@@ -1362,7 +1362,7 @@ namespace Serein.WorkBench
}
// 保存连接关系
DraggableControl.CreateLinx(FlowChartCanvas, connection);
BsControl.Draw(FlowChartCanvas, connection);
ConfigureLineContextMenu(connection);
targetBlock.Node.PreviousNodes.Add(startConnectBlock.Node); // 将当前发起连接的节点,添加到被连接的节点的上一节点队列。(用于回溯)
@@ -2004,9 +2004,9 @@ namespace Serein.WorkBench
#region UI层面上显示为 线
public static class DraggableControl
public static class BsControl
{
public static Connection CreateLinx(Canvas canvas, Connection connection)
public static Connection Draw(Canvas canvas, Connection connection)
{
UpdateBezierLine(canvas, connection);
//MakeDraggable(canvas, connection, connection.Start);
@@ -2101,7 +2101,6 @@ namespace Serein.WorkBench
//}
}