mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-02 15:50:51 +08:00
使用物理尺寸进行设置
This commit is contained in:
@@ -122,11 +122,11 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
get
|
||||
{
|
||||
return ConnectorWidth * (Root?.ScreenScale ?? 1d);
|
||||
return ScreenHelper.WidthToMm(ConnectorWidth);
|
||||
}
|
||||
set
|
||||
{
|
||||
ConnectorWidth = value / (Root?.ScreenScale ?? 1d);
|
||||
ConnectorWidth = ScreenHelper.MmToWidth(value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,11 +134,11 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
get
|
||||
{
|
||||
return ConnectorHeight * (Root?.ScreenScale ?? 1d);
|
||||
return ScreenHelper.WidthToMm(ConnectorHeight);
|
||||
}
|
||||
set
|
||||
{
|
||||
ConnectorHeight = value / (Root?.ScreenScale ?? 1d);
|
||||
ConnectorHeight = ScreenHelper.MmToWidth(value);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user