The VSON Cookbook

10/24 Page

Making a Mind Map with VSON

A mind map is a type of tree diagram that when shapes are added to it grows to the right or left instead of downward. You can build a mind map by setting the Template to "Mindmap" and the ShapeConnectorType on the first shape to "Mindmap".

{
  "Version": "1.0",
  "Template": "MindMap",
  "McpGenerated": true,
  "KeepDocument": true,
  "Shape": {
    "ID": 1,
    "Label": "Central Topic",
    "ShapeConnector": [
      {
        "ShapeConnectorType": "Mindmap",
        "Direction": "Right",
        "Shapes": [
          { "ID": 2, "Label": "Right Branch A" },
          { "ID": 3, "Label": "Right Branch B" }
        ]
      },
      {
        "ShapeConnectorType": "Mindmap",
        "Direction": "Left",
        "Shapes": [
          { "ID": 4, "Label": "Left Branch A" },
          { "ID": 5, "Label": "Left Branch B" }
        ]
      }
    ]
  }
}
VisualScript simple mind map

Mind maps can use two ShapeConnector objects, one left and one right, on the first shape. After that, just as with other trees, you should only use one ShapeConnector per shape for the child shapes.

10/24 Page