Xale's model Memories

Mindmaps Nodes and depth

A Mindmap is read back as an ordered tree of nodes and saved as OPML 2.0. A map holds at most 300 nodes, counting the central topic.

View as Markdown

Reading a Mindmap

xale_read_mindmap returns the nodes in tree order, the central topic first:

FieldWhat it is
idThe node's id
parentIdIts parent; null for the central topic
titleIts text. A read cuts it at 1,000 characters; a node's text is limited to 300 when it's saved (see Limits)
depth0 for the central topic, 1 for a main branch, and so on
taskIdThe Task it's linked to, if any
linkA web link, if any

maxNodes sets how many come back: 200 by default, 300 at most. Titles share 16,000 characters in all. A node's stored border colour is style.customColor when present. To draw a saved map directly, call xale_render_mindmap with mapId. truncated: true says nodes or titles were cut. Find maps with xale_find_mindmaps (name, Areas).

Saving a Mindmap

xale_save_mindmap takes opml, OPML 2.0:

xml
<opml version="2.0" xmlns:xale="https://xale.app/ns/opml/1">
  <head><title>Which city for the offsite</title></head>
  <body>
    <outline text="Which city for the offsite">
      <outline text="Lisbon"><outline text="Direct flights"/></outline>
      <outline text="Porto" xale:done="true"/>
    </outline>
  </body>
</opml>

One top-level outline is the central topic and names the map; several become branches under the <title>. The format, with its optional xale: attributes, is on Mindmap format · OPML.

Growing and editing

ToUse
Add a node, with optional sub-nodes, under any nodexale_add_mindmap_nodes (mapId, parentNodeId, title, subNodes)
Rename a nodexale_rename_mindmap_node
Tick or untick a nodexale_tick_mindmap_node; a node linked to a Task completes or reopens it
Delete a branchxale_prepare_removal with delete_mindmap_branch, then the person's yes. It can't be undone.

Limits

LimitValue
Nodes in one map300, counting the central topic
One node's text300 characters
Depth20 levels
Mindmaps on one account (Pro)1,000

For a bigger map, save the main branches first, then add the rest with xale_add_mindmap_nodes.

  • Checked against main c1725f34

Was this helpful?

mindmaps-nodes-and-depth.md · main@c1725f34