Search results

UmlClassifierShape API in React Diagram API component

Defines the behavior of the UMLActivity shape

Properties

classShape

UmlClassModel

Defines the text of the bpmn annotation collection

Defaults to ‘None’

classifier

ClassifierShape

Defines the type of classifier

Defaults to ‘Class’

enumerationShape

UmlEnumerationModel

Defines the text of the bpmn annotation collection

Defaults to ‘None’

interfaceShape

UmlInterfaceModel

Defines the text of the bpmn annotation collection

Defaults to ‘None’

type

Shapes

Defines the type of node shape

<div id='diagram'></div>
let shape: UmlActivityShapeModel = { type: 'UMLActivity', shape: 'Action' };
let nodes: NodeModel[] = [{
id: 'node', width: 100, height: 100, offsetX: 100, offsetY: 100, shape: shape
}];
let diagram: Diagram = new Diagram({
...
nodes : nodes,
...
});
diagram.appendTo('#diagram');

Defaults to ‘Basic’