mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-06 17:26:35 +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
|
||||
{
|
||||
|
||||
@@ -27,23 +27,41 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
XRatio = viewmodel.XRatio;
|
||||
YRatio = viewmodel.YRatio;
|
||||
IsInnerPoint = viewmodel.IsInnerPoint;
|
||||
IsPortless = viewmodel.IsPortless;
|
||||
ValueTypePoint = viewmodel.ValueTypePoint;
|
||||
}
|
||||
|
||||
|
||||
[XmlAttribute]
|
||||
public double XRatio { get; set; }
|
||||
public double XRatio
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public double YRatio { get; set; }
|
||||
|
||||
public double YRatio
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public bool IsInnerPoint { get; set; }
|
||||
public bool IsInnerPoint
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public ValueTypePoint ValueTypePoint { get; set; }
|
||||
public bool IsPortless
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public ValueTypePoint ValueTypePoint
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user