jsMind

layout.cousin_space Option

Option Name Data Type Default Value Description
layout.cousin_space number 0 Extra vertical space between adjacent nodes’ children (Since 0.5.5)

Option Description

The cousin_space option is used to set the extra vertical spacing between the child nodes of adjacent nodes. This option is supported in version 0.5.5 and above, with a default value of zero, meaning no extra spacing is added.

Usage Example

Below is an example of setting the cousin_space option:

var options = {
    container: 'jsmind_container',
    editable: true,
    theme: 'primary',
    layout: {
        cousin_space: 10 // Set extra vertical spacing between the child nodes of adjacent nodes to 10 pixels
    }
};

In the above example, the cousin_space option is set to 10, which means there will be an extra 10 pixels of vertical spacing between the child nodes of adjacent nodes.

cousin_space = 0 (default) cousin_space = 10 cousin_space = 50
image image image

copyright notice

Reproduction and deduction are prohibited.

The jsMind project is still being updated and the corresponding documentation is updated at the same time as the version is updated. In order to avoid confusion to the user, it is forbidden to reprint this document without written permission and to make changes of any kind to this document.