block 可以拖拽到内部,还有少量问题待解决

This commit is contained in:
艾竹
2023-06-11 23:05:21 +08:00
parent 4674b8904b
commit 538898d238
73 changed files with 7132 additions and 242 deletions

View File

@@ -26,8 +26,8 @@ namespace AIStudio.Wpf.DiagramDesigner
x1 = Math.Min(item.Left, x1);
y1 = Math.Min(item.Top, y1);
x2 = Math.Max(item.Left + item.ItemWidth, x2);
y2 = Math.Max(item.Top + item.ItemHeight, y2);
x2 = Math.Max(item.Left + item.GetItemWidth(), x2);
y2 = Math.Max(item.Top + item.GetItemHeight(), y2);
}
return new RectangleBase(new PointBase(x1, y1), new PointBase(x2, y2));