canPasteSelection method

bool canPasteSelection([
  1. Point? pos
])

This predicate controls whether or not the user can invoke the #pasteSelection 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 {Point=} pos Point at which to center the newly pasted parts; if not present the parts would not be moved. @return {boolean} This returns true: if the diagram is not Diagram#isReadOnly, if Diagram#allowInsert is true, if Diagram#allowClipboard is true, and if the clipboard has parts in it. @see #pasteSelection

Implementation

_i2.bool canPasteSelection([_i3.Point? pos]) => _i4.callMethod(
      this,
      'canPasteSelection',
      [pos ?? _i5.undefined],
    );