defaultShapeType
Description
Optional. The default type of a shape
The value is applied, if the shape object doesn't contain the "type" property
Usage
defaultShapeType?: string;
Default config
- In the default mode of Diagram (type: "default")
defaultShapeType: "rectangle"
- In the org chart mode of Diagram (type: "org")
defaultShapeType: "card"
- In the mindmap mode of Diagram (type: "mindmap")
defaultShapeType: "topic"
Example
const diagram = new dhx.Diagram("diagram_container", {
defaultShapeType: "img-card"
});
Related articles: Setting the type of a shape