Skip to main content

lineGap

info

The property is available only in the default mode of the diagram (type:"default"). The property does not work if you use groups or swimlanes.

Description

Optional. Adds an offset for two connected shapes, and fills the gap with an additional line

Usage

lineGap?: number;

Default config

lineGap: 10

Example

const diagram = new dhx.Diagram("diagram_container", { 
lineGap: 50
});

The result of applying the lineGap property is shown in the image below:

Related sample: Diagram. Default mode. Activity diagram