elementView.highlight([el])
Highlight the element. This method sets the highlighted
CSS class on either the root DOM node of the element or any subelement referenced to by the el
selector or DOM descendant node. The actual styling of the highlighted element is in the joint.css
stylesheet. Feel free to style highlighted elements as you like. Example:
.element.highlighted rect {
fill: red;
}