Portless序列化

This commit is contained in:
艾竹
2023-01-27 20:43:41 +08:00
parent e8bd6faa21
commit 6d1960a8df
9 changed files with 120 additions and 36 deletions

View File

@@ -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
{