jsMind

layout.hspace Option

Option Name Data Type Default Value Description
layout.hspace number 30 Horizontal spacing between nodes

Option Description

The hspace option is used to set the horizontal spacing between nodes in the mind map. The default value for this option is 30 pixels.

Usage Example

Below is an example of setting the hspace option:

var options = {
    container: 'jsmind_container',
    editable: true,
    theme: 'primary',
    mode: 'full',
    support_html: true,
    layout: {
        hspace: 60 // Set horizontal spacing between nodes to 60 pixels
    }
};
hspace = 10 hspace = 30 (default) hspace = 60
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.