mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-01 22:56:35 +08:00
52 lines
938 B
C#
52 lines
938 B
C#
|
|
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;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|