getItem

returns the object of a selected item

object getItem();

Returns

objectthe object of a selected item

Example

var shape = diagram.selection.getItem();
// -> {id: "3", text: "Technical Director", title: "Jerry Wagner", …}

Back to top