绘图形状补充一部分

This commit is contained in:
艾竹
2023-05-14 15:06:30 +08:00
parent 9ade5a0fda
commit 58359c36d4
22 changed files with 1013 additions and 42 deletions

View File

@@ -4,6 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
using System.Xml.Serialization;
using Newtonsoft.Json;
@@ -19,6 +20,10 @@ namespace AIStudio.Wpf.DiagramDesigner
{
this.Erasable = item.Erasable;
this.Geometry = item.Geometry.ToString();
//if (item.Geometry.Transform != null)
//{
// this.Matrix = item.Geometry.Transform.Value;
//}
this.Points = item.Points;
this.DrawMode = item.DrawMode;
}
@@ -35,6 +40,25 @@ namespace AIStudio.Wpf.DiagramDesigner
get; set;
}
//[XmlIgnore]
//public Matrix Matrix
//{
// get; set;
//}
//[JsonIgnore]
//[XmlElement("Matrix")]
//public string XmlMatrix
//{
// get
// {
// return SerializeHelper.SerializeMatrix(Matrix);
// }
// set
// {
// Matrix = SerializeHelper.DeserializeMatrix(value);
// }
//}
[XmlIgnore]
public List<Point> Points
{