添加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

@@ -565,8 +565,8 @@ namespace AIStudio.Wpf.Mind.ViewModels
}
var connectors = Root?.Items.OfType<ConnectionViewModel>().Where(p => p.SinkConnectorInfoFully?.DataItem == this).ToList();
Root?.Remove(this);
Root?.Remove(connectors);
Root?.Delete(this);
Root?.Delete(connectors);
}
#endregion
@@ -745,12 +745,11 @@ namespace AIStudio.Wpf.Mind.ViewModels
{
if (item != this)
{
item.IsSelected = false;
item.RemoveFromSelection();
}
}
}
Root.SelectedItems.Clear();
IsSelected = selected;
}