getItem

returns the object of the selected shape

object getItem();

Returns

objectthe object of a selected shape

Example

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

Details

Check all available properties of shape objects in Diagram and in Org Chart.

See also
Back to top