pasteSelection method
This command copies the contents of the clipboard into this diagram and makes those new parts the new selection.
This is normally invoked by the Ctrl-V
keyboard shortcut.
This calls #pasteFromClipboard to add copies of Parts into this diagram, and then selects all of the newly created parts. This also raises the "ClipboardPasted" diagram event. This method raises the "ChangingSelection" and "ChangedSelection" diagram events. Changes are performed in a transaction, but the selection events are raised outside the transaction.
This method may be overridden, but you should consider calling this base method in order to get all of its functionality. 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 are not moved. @see #canPasteSelection
Implementation
void pasteSelection([_i3.Point? pos]) {
_i4.callMethod(
this,
'pasteSelection',
[pos ?? _i5.undefined],
);
}