添加block快,不需要连接线,直接吸附。

This commit is contained in:
艾竹
2023-05-21 22:06:59 +08:00
parent 2fd8321363
commit fde899cfa9
30 changed files with 680 additions and 338 deletions

View File

@@ -189,7 +189,7 @@ namespace AIStudio.Wpf.DiagramDesigner
if (_drawingDesignerItem?.IsFinish == true)
{
_viewModel.AddItemCommand.Execute(_drawingDesignerItem);
_viewModel.AddCommand.Execute(_drawingDesignerItem);
}
this._service.DrawModeViewModel.ResetDrawMode();

View File

@@ -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();