NAME

Muster::Hook::MindMap - Muster hook for mind maps

VERSION

version 0.96

SYNOPSIS

# CamelCase plugin name
package Muster::Hook::MindMap;
use Mojo::Base 'Muster::Hook';

DESCRIPTION

Muster::Hook::MindMap does mind maps: transforming a tagged unordered list into a connected graph. Base mind-maps on lists, cross-linked. Depends on GraphViz plugin to display the maps as maps.

The pattern for mind maps is "* mindmap"

METHODS

register

Initialize, and register hooks.

process

Process (modify) a leaf object. In scanning phase, this will do nothing. In assembly phase, this will detect matching lists, and create a graphviz directive (to later be processed by the graphviz plugin).

my $new_leaf = $self->process(%args);

create_mindmap

Create a mindmap from the given list

parse_lines

Parse the lines of a list, including recursing down the levels.

listprefix

Process one line, doing list-prefix stuff?

derive_xrefs

Search for references to existing terms inside other nodes

extract_legend

Extract the legend information.

apply_legend

Apply the legend information.

start_map

Start the map.

build_xrefs

Build the xrefs.

build_map_levels

Build the map levels.