mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-08 18:26:35 +08:00
block
This commit is contained in:
@@ -94,12 +94,14 @@ namespace AIStudio.Wpf.DiagramDesigner.Controls
|
||||
item.SetCellAlignment();
|
||||
}
|
||||
|
||||
Interlocked.Decrement(ref DiagramViewModel.DoCommandManager.BeginDo);
|
||||
|
||||
var blocks = designerItems.OfType<BlockDesignerItemViewModel>().ToList();
|
||||
if (blocks.Any())
|
||||
{
|
||||
(DiagramViewModel as IBlockDiagramViewModel)?.FinishNearBlock(blocks);
|
||||
}
|
||||
|
||||
|
||||
Dictionary<DesignerItemViewModelBase, Tuple<PointBase, PointBase>> infos =
|
||||
designerItems.OfType<DesignerItemViewModelBase>().ToDictionary(p => p,
|
||||
p => new Tuple<PointBase, PointBase>(p.GetOldValue<PointBase>(nameof(p.TopLeft)), p.TopLeft));
|
||||
@@ -113,7 +115,6 @@ namespace AIStudio.Wpf.DiagramDesigner.Controls
|
||||
new Tuple<PointBase?, PointBase?>(p.SourceConnectorInfoPart?.Position,
|
||||
p.SinkConnectorInfoPart?.Position)));
|
||||
|
||||
Interlocked.Decrement(ref DiagramViewModel.DoCommandManager.BeginDo);
|
||||
DiagramViewModel.DoCommandManager.DoNewCommand(this.ToString(),
|
||||
() => {
|
||||
foreach (var info in infos)
|
||||
|
||||
@@ -76,7 +76,6 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
next.AlignNext(next.Next);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user