paper.findViewsFromPoint(point)
Find views (instance of joint.dia.ElementView
) under a certain point in the paper. point
is an object with x
and y
properties. Returns an
array of views whose bounding box contains point
. Note that there can be more then one views as views might overlap. Note there is a difference between
this method and the joint.dia.Graph:findModelsFromPoint. A bounding box of a view can be different than the area computed by an element model position
and size
.
For example, if a <text>
SVG element in the shape is positioned relatively and shifted down below the normal shape area (e.g. using the JointJS special attributes), the bounding box
of the view will be bigger than that of the model.