mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-19 16:06:35 +08:00
一点小优化和一点小bug修复
This commit is contained in:
@@ -814,7 +814,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
BuildMenuOptions();
|
||||
}
|
||||
|
||||
public DiagramViewModel(DiagramItem diagramItem, string ext) : this()
|
||||
public DiagramViewModel(DiagramItem diagramItem, string ext =".json") : this()
|
||||
{
|
||||
Init(diagramItem);
|
||||
|
||||
@@ -849,6 +849,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
public void Init(DiagramItem diagramItem)
|
||||
{
|
||||
DiagramType = diagramItem.DiagramType;
|
||||
Name = diagramItem.Name;
|
||||
DiagramOption.LayoutOption.ShowGrid = diagramItem.ShowGrid;
|
||||
DiagramOption.LayoutOption.PhysicalGridCellSize = diagramItem.PhysicalGridCellSize;
|
||||
DiagramOption.LayoutOption.CellHorizontalAlignment = diagramItem.CellHorizontalAlignment;
|
||||
|
||||
@@ -14,6 +14,11 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
}
|
||||
|
||||
public BlockDiagramViewModel(DiagramItem diagramItem, string ext) : base(diagramItem, ext)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#region
|
||||
private ICommand _addNextCommand;
|
||||
public ICommand AddNextCommand
|
||||
|
||||
Reference in New Issue
Block a user