mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +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;
|
||||
|
||||
Reference in New Issue
Block a user