使用物理尺寸进行设置

This commit is contained in:
艾竹
2023-02-11 23:51:48 +08:00
parent 59bfed341d
commit f99fd93b3f
13 changed files with 333 additions and 231 deletions

View File

@@ -1,4 +1,5 @@
using AIStudio.Wpf.DiagramDesigner;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -33,13 +34,13 @@ namespace AIStudio.Wpf.DiagramDesigner
this.Reserve = reserve;
}
[XmlAttribute]
[XmlAttribute("Left")]
public double PhysicalLeft
{
get; set;
}
[XmlAttribute]
[XmlAttribute("Top")]
public double PhysicalTop
{
get; set;
@@ -69,13 +70,15 @@ namespace AIStudio.Wpf.DiagramDesigner
get; set;
}
[XmlAttribute]
[JsonProperty(PropertyName = "ItemWidth")]
[XmlAttribute("ItemWidth")]
public double PhysicalItemWidth
{
get; set;
}
[XmlAttribute]
[JsonProperty(PropertyName = "ItemHeight")]
[XmlAttribute("ItemHeight")]
public double PhysicalItemHeight
{
get; set;