Skip to main content

Mindmap

The following classes can be useful when creating mindmaps:

  • siren
  • mindmap
  • mindmapConfig

Example

siren.mindmap [
mindmap.circleId("root","mindmap", [

mindmap.node("Origins", [
mindmap.node "Long history"
mindmap.icon "fa fa-book"
mindmap.node ("Popularisation", [
mindmap.node "British popular psychology author Tony Buzan"
])
])

mindmap.node("Research",[
mindmap.node "On effectiveness<br/>and features"
mindmap.node ("On Automatic creation", [
mindmap.node ("Uses", [
mindmap.node "Creative techniques"
mindmap.node "Strategic planning"
mindmap.node "Argument mapping"
])
])
])

mindmap.node ("Tools",[
mindmap.node "Pen and paper"
mindmap.node "Mermaid"
])
])
]
|> siren.write

Markdown

siren.mindmap [
mindmap.squareId(
"id1",
formatting.markdown """**Root** with
a second line
Unicode works too: 🤓""", [
mindmap.squareId("id2", formatting.markdown """The dog in **the** hog... a *very long text* that wraps to a new line""")
])
]
|> siren.write