Interface for a class IconShape
string
Sets the border color of an icon.
number
Defines the border width of the icon.
string
Defines the custom content of the icon
number
Defines the corner radius of the icon border
string
Sets the fill color of an icon.
<div id='diagram'></div>
let nodes: NodeModel[] = [{
id: 'node1', width: 100, height: 100, offsetX: 100, offsetY: 100,
annotations: [{ content: 'Default Shape' }],
expandIcon: { height: 20, width: 20, shape: "ArrowDown", fill: 'red' },
collapseIcon: { height: 20, width: 20, shape: "ArrowUp" },
}];
let diagram: Diagram = new Diagram({
...
nodes: nodes,
...
});
diagram.appendTo('#diagram');
number
Defines the height of the icon.
string
Defines how the Icon has to be horizontally aligned.
Defines the space that the icon has to be moved from its actual position
Defines the offset of the icon.
Defines the space that the icon has to be moved from the icon border
string
Defines the geometry of a path
string
Defines the shape of the icon. None Minus - sets the icon shape as minus Plus - sets the icon shape as Plus ArrowUp - sets the icon shape as ArrowUp ArrowDown - sets the icon shape as ArrowDown Template - sets the icon shape based on the given custom template Path - sets the icon shape based on the given custom Path
string
Defines how the Icon has to be Vertically aligned.
number
Defines the width of the icon.