mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-20 00:16:36 +08:00
mind
This commit is contained in:
51
AIStudio.Wpf.Mind/Models/MindNodeModel.cs
Normal file
51
AIStudio.Wpf.Mind/Models/MindNodeModel.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using System.Windows;
|
||||
using AIStudio.Wpf.DiagramModels;
|
||||
using AIStudio.Wpf.DiagramModels.ViewModels;
|
||||
using AIStudio.Wpf.Mind;
|
||||
using AIStudio.Wpf.Mind.ViewModels;
|
||||
|
||||
namespace AIStudio.Wpf.Flowchart.Models
|
||||
{
|
||||
|
||||
public class MindNodeModel : DiagramNode
|
||||
{
|
||||
public NodeLevel NodeLevel
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public MindType MindType
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public Size Spacing
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
|
||||
public Point Offset
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public bool IsExpanded
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public override DiagramItemViewModel ToNodel()
|
||||
{
|
||||
MindNode mindNode = new MindNode(NodeLevel, MindType);
|
||||
|
||||
mindNode.Spacing = Spacing;
|
||||
mindNode.Offset = Offset;
|
||||
mindNode.IsExpanded = IsExpanded;
|
||||
|
||||
return mindNode;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user