Skip to main content

lineConfig

Description

Optional. An object with default configuration for the connector lines

The settings will be applied, if the line object doesn't contain the identical ones

Usage

lineConfig?: {
lineType?: "dash" | "line",
};

Parameters

The lineConfig object contains the following parameter:

  • lineType - (optional) the default type of a connector line. The value is applied, if the line object doesn't contain the "type" property

Default config

lineConfig: {
lineType: "line",
}

Example

const diagram = new dhx.Diagram("diagram_container", {
type: "default",
lineConfig: {
lineType: "dash",
},
// other config parameters
});

Change log: Added in v4.2

Related articles: Setting connections between shapes