findObjectWithContextMenu method
Find a GraphObject at the current mouse point with a GraphObject#contextMenu, or return the Diagram if there is a Diagram#contextMenu.
This method may be overridden.
Please read the Introduction page on Extensions for how to override methods and how to call this base method.
@expose
@param {GraphObject|Diagram=} obj Optional GraphObject with which to start searching for a context menu.
If null, the Diagram will be used. If no argument is specified, this method will look for an object at the current mouse point.
@return {GraphObject|Diagram|null} something with a contextMenu
,
or null if nothing can be found with a context menu at the current mouse point.
Implementation
_i2.dynamic findObjectWithContextMenu([_i2.Object? obj]) => _i4.callMethod(
this,
'findObjectWithContextMenu',
[obj ?? _i5.undefined],
);