线条动画支持大小切换

This commit is contained in:
艾竹
2023-04-29 18:36:50 +08:00
parent f4268b9fc2
commit 4a3f278a97
30 changed files with 1095 additions and 317 deletions

View File

@@ -419,7 +419,7 @@ namespace AIStudio.Wpf.DiagramDesigner
public class AnimationItem : IAnimationViewModel
{
[XmlAttribute]
public LineAnimation LineAnimation
public LineAnimation Animation
{
get; set;
}
@@ -434,7 +434,7 @@ namespace AIStudio.Wpf.DiagramDesigner
public Color Color
{
get; set;
}
}
[JsonIgnore]
[XmlElement("Color")]
@@ -450,22 +450,24 @@ namespace AIStudio.Wpf.DiagramDesigner
}
}
[XmlAttribute]
public string Path
[XmlIgnore]
public ISharpPath AnimationPath
{
get; set;
}
[XmlAttribute]
public double Width
[JsonIgnore]
[XmlElement("AnimationPath")]
public SharpPathItem XmlAnimationPath
{
get; set;
}
[XmlAttribute]
public double Height
{
get; set;
get
{
return AnimationPath as SharpPathItem;
}
set
{
AnimationPath = value;
}
}
public event PropertyChangedEventHandler PropertyChanged;
@@ -871,13 +873,13 @@ namespace AIStudio.Wpf.DiagramDesigner
}
[XmlAttribute]
public ArrowPathStyle PathStyle
public PathStyle PathStyle
{
get; set;
}
[XmlAttribute]
public ArrowSizeStyle SizeStyle
public SizeStyle SizeStyle
{
get; set;
}