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
defaultmode of Diagram (type:"default")
defaultShapeType: "rectangle"
- In the org chart mode of Diagram (type:
"org")
defaultShapeType: "card"
- In the
mindmapmode of Diagram (type:"mindmap")
defaultShapeType: "topic"
- In the PERT mode of Diagram (type:
"pert")
defaultShapeType: "task"
Example
const diagram = new dhx.Diagram("diagram_container", {
defaultShapeType: "img-card"
});
Related article: Setting the type of a shape