跳到主要内容

shapeType

描述​

可选。元素的类型

如果 shape 对象不包含 "type" 属性,则会应用此值

用法​

shapeType?: string;

默认配置​

在 Editor 的默认模式下 (type: "default"):

shapeType: "rectangle"

在 Editor 的组织结构图模式下 (type: "card"):

shapeType: "card"

在 Editor 的思维导图模式下 (type: "topic"):

shapeType: "topic"

示例​

const editor = new dhx.DiagramEditor("editor_container", {
shapeType: "circle"
});

相关文章: 默认形状