mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-07 17:56:35 +08:00
部分连接线拖拽完成
This commit is contained in:
@@ -23,16 +23,16 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
|
||||
}
|
||||
|
||||
public ConnectionItem(ConnectionViewModel viewmodel) : base(viewmodel)
|
||||
public ConnectionItem(ConnectionViewModel viewmodel) : base(viewmodel)//Todo,半连接线也可序列化
|
||||
{
|
||||
this.SourceId = viewmodel.SourceConnectorInfo.DataItem.Id;
|
||||
this.SourceOrientation = viewmodel.SourceConnectorInfo.Orientation;
|
||||
this.SourceType = viewmodel.SourceConnectorInfo.DataItem.GetType();
|
||||
this.SourceTypeName = viewmodel.SourceConnectorInfo.DataItem.GetType().FullName;
|
||||
this.SourceXRatio = viewmodel.SourceConnectorInfo.GetXRatioFromConnector();
|
||||
this.SourceYRatio = viewmodel.SourceConnectorInfo.GetYRatioFromConnector();
|
||||
this.SourceInnerPoint = viewmodel.SourceConnectorInfo.IsInnerPoint;
|
||||
this.SourceIsPortless = viewmodel.SourceConnectorInfo.IsPortless;
|
||||
this.SourceId = viewmodel.SourceConnectorInfoFully.DataItem.Id;
|
||||
this.SourceOrientation = viewmodel.SourceConnectorInfoFully.Orientation;
|
||||
this.SourceType = viewmodel.SourceConnectorInfoFully.DataItem.GetType();
|
||||
this.SourceTypeName = viewmodel.SourceConnectorInfoFully.DataItem.GetType().FullName;
|
||||
this.SourceXRatio = viewmodel.SourceConnectorInfoFully.GetXRatioFromConnector();
|
||||
this.SourceYRatio = viewmodel.SourceConnectorInfoFully.GetYRatioFromConnector();
|
||||
this.SourceInnerPoint = viewmodel.SourceConnectorInfoFully.IsInnerPoint;
|
||||
this.SourceIsPortless = viewmodel.SourceConnectorInfoFully.IsPortless;
|
||||
|
||||
this.SinkId = viewmodel.SinkConnectorInfoFully.DataItem.Id;
|
||||
this.SinkOrientation = viewmodel.SinkConnectorInfoFully.Orientation;
|
||||
@@ -41,7 +41,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
this.SinkXRatio = viewmodel.SinkConnectorInfoFully.GetXRatioFromConnector();
|
||||
this.SinkYRatio = viewmodel.SinkConnectorInfoFully.GetYRatioFromConnector();
|
||||
this.SinkInnerPoint = viewmodel.SinkConnectorInfoFully.IsInnerPoint;
|
||||
this.SinkIsPortless = viewmodel.SourceConnectorInfo.IsPortless;
|
||||
this.SinkIsPortless = viewmodel.SourceConnectorInfoFully.IsPortless;
|
||||
|
||||
this.RouterMode = viewmodel.RouterMode;
|
||||
this.PathMode = viewmodel.PathMode;
|
||||
|
||||
Reference in New Issue
Block a user