mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-26 03:07:55 +08:00
添加block快,不需要连接线,直接吸附。
This commit is contained in:
@@ -189,7 +189,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
|
||||
if (_drawingDesignerItem?.IsFinish == true)
|
||||
{
|
||||
_viewModel.AddItemCommand.Execute(_drawingDesignerItem);
|
||||
_viewModel.AddCommand.Execute(_drawingDesignerItem);
|
||||
}
|
||||
|
||||
this._service.DrawModeViewModel.ResetDrawMode();
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
itemBase.ItemWidth = Math.Abs(this.endPoint.Value.X - this.startPoint.Value.X);
|
||||
itemBase.ItemHeight = Math.Abs(this.endPoint.Value.Y - this.startPoint.Value.Y);
|
||||
|
||||
_viewModel.AddItemCommand.Execute(itemBase);
|
||||
_viewModel.AddCommand.Execute(itemBase);
|
||||
}
|
||||
}
|
||||
this._service.DrawModeViewModel.ResetDrawMode();
|
||||
|
||||
Reference in New Issue
Block a user