mapmodel

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MindMap

type MindMap struct {
	Root     *Node
	Selected *Node
	Filename string
}

func New

func New(source *xmlfile.Node, filename string) *MindMap

func (*MindMap) Adopt

func (m *MindMap) Adopt(node *Node, newParent *Node, beforeNode *Node)

func (*MindMap) DeleteNode

func (m *MindMap) DeleteNode()

func (*MindMap) Down

func (m *MindMap) Down()

func (*MindMap) Every

func (m *MindMap) Every(fn func(node *Node))

func (*MindMap) Export

func (m *MindMap) Export() *xmlfile.Node

func (*MindMap) NewChildNode

func (m *MindMap) NewChildNode()

func (*MindMap) NewNextNode

func (m *MindMap) NewNextNode()

func (*MindMap) NodeControl added in v0.2.6

func (m *MindMap) NodeControl(ctx context.Context, app eventlink.App, e event.Eventer, prior control.DoFunc)

func (*MindMap) Select

func (m *MindMap) Select(node *Node)

func (*MindMap) Up

func (m *MindMap) Up()

type Node

type Node struct {
	Value   *field.Field
	Control *fieldcontrol.FieldControl
	Parent  *Node
	Childs  []*Node
}

func (*Node) Level

func (node *Node) Level() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL