mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 08:10:50 +08:00
block
This commit is contained in:
@@ -74,7 +74,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
}
|
||||
}
|
||||
#region 属性
|
||||
#region
|
||||
|
||||
public FullyCreatedConnectorInfo FirstConnector
|
||||
{
|
||||
@@ -369,6 +369,17 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
set
|
||||
{
|
||||
if (Root?.DiagramOption?.LayoutOption?.BeyondBoundary > 0)
|
||||
{
|
||||
if (value + GetItemWidth() < Root.DiagramOption.LayoutOption.BeyondBoundary)
|
||||
{
|
||||
value = Root.DiagramOption.LayoutOption.BeyondBoundary - GetItemWidth();
|
||||
}
|
||||
else if (value > Root.DiagramOption.LayoutOption.PageSize.Width - Root.DiagramOption.LayoutOption.BeyondBoundary)
|
||||
{
|
||||
value = Root.DiagramOption.LayoutOption.PageSize.Width - Root.DiagramOption.LayoutOption.BeyondBoundary;
|
||||
}
|
||||
}
|
||||
SetProperty(ref _left, value);
|
||||
}
|
||||
}
|
||||
@@ -384,6 +395,17 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
set
|
||||
{
|
||||
if (Root?.DiagramOption?.LayoutOption?.BeyondBoundary > 0)
|
||||
{
|
||||
if (value + GetItemHeight() < Root.DiagramOption.LayoutOption.BeyondBoundary)
|
||||
{
|
||||
value = Root.DiagramOption.LayoutOption.BeyondBoundary - GetItemHeight();
|
||||
}
|
||||
else if (value > Root.DiagramOption.LayoutOption.PageSize.Height - Root.DiagramOption.LayoutOption.BeyondBoundary)
|
||||
{
|
||||
value = Root.DiagramOption.LayoutOption.PageSize.Height - Root.DiagramOption.LayoutOption.BeyondBoundary;
|
||||
}
|
||||
}
|
||||
SetProperty(ref _top, value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user