an object with defaults for Diagram elements
webix.ui({
view: "diagram",
item: {
width: 100,
height: 50,
type: "heptagon",
}
});
The settings defined in the object are applied to all the elements providing that the elements do not have the corresponding settings of their own. Individual settings of an element override those defined in the item object.
It is possible to create an item object separately and then refer to it by its name:
webix.type(webix.ui.diagram, {
name:"defaults",
width: 260,
height: 90
});
webix.ui({
view:"diagram",
item:"defaults"
});