paper.findView(element)
Find a view (instance of joint.dia.ElementView
or joint.dia.LinkView
) associated with a DOM element in the paper. element
can either be a DOM element, jQuery object or a CSS selector.
Sometimes, it is useful to find a view object for an element in the DOM. This method finds the closest view for any subelement of a view element.