mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-06 09:16:37 +08:00
Portless序列化
This commit is contained in:
@@ -32,6 +32,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
this.SourceXRatio = viewmodel.SourceConnectorInfo.GetXRatioFromConnector();
|
||||
this.SourceYRatio = viewmodel.SourceConnectorInfo.GetYRatioFromConnector();
|
||||
this.SourceInnerPoint = viewmodel.SourceConnectorInfo.IsInnerPoint;
|
||||
this.SourceIsPortless = viewmodel.SourceConnectorInfo.IsPortless;
|
||||
|
||||
this.SinkId = viewmodel.SinkConnectorInfoFully.DataItem.Id;
|
||||
this.SinkOrientation = viewmodel.SinkConnectorInfoFully.Orientation;
|
||||
@@ -40,6 +41,8 @@ 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.RouterMode = viewmodel.RouterMode;
|
||||
this.PathMode = viewmodel.PathMode;
|
||||
this.Vertices = viewmodel.Vertices.Select(p => new ConnectorVertexItem(p)).ToList();
|
||||
@@ -68,6 +71,12 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
[XmlAttribute]
|
||||
public bool SourceInnerPoint { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public bool SourceIsPortless
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public Guid SinkId { get; set; }
|
||||
|
||||
@@ -89,6 +98,12 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
[XmlAttribute]
|
||||
public bool SinkInnerPoint { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public bool SinkIsPortless
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public string RouterMode
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user