canShowContextMenu method
This predicate controls whether or not the user can invoke the #showContextMenu command.
This method may be overridden, but you should consider calling this base method in order to get all of its functionality. This method must not have any side-effects. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {GraphObject|Diagram=} obj a GraphObject or Diagram with a contextMenu defined. If none is given, this method will use the first selected object, or else the Diagram. @return {boolean} @see #showContextMenu
Implementation
_i2.bool canShowContextMenu([_i2.Object? obj]) => _i4.callMethod(
this,
'canShowContextMenu',
[obj ?? _i5.undefined],
);