Search results

TextModel

Interface for a class Text

Properties

content

string

Defines the content of a text

<div id='diagram'></div>
let nodes: NodeModel[] = [{
id: 'node1', width: 100, height: 100, offsetX: 300, offsetY: 100,
shape: { type: 'Text', content: 'Text Element' }
}];
let diagram: Diagram = new Diagram({
...
nodes: nodes
...
});
diagram.appendTo('#diagram');

margin

MarginModel

Defines the space to be let between the node and its immediate parent

type

string

Defines the type of node shape