returns HTML element of the item
const node = diagram.getItemNode(2); node.innerHTML = "Second block";