NgDiagramClipboardService
The NgDiagramClipboardService
provides clipboard operations for diagram.
Example usage
Section titled “Example usage”private clipboardService = inject(NgDiagramClipboardService);
// Copy selected elementsthis.clipboardService.copy();
Extends
Section titled “Extends”NgDiagramBaseService
Methods
Section titled “Methods”copy()
Section titled “copy()”copy():
void
Copies the current selection to the clipboard.
Returns
Section titled “Returns”void
cut():
void
Cuts the current selection to the clipboard.
Returns
Section titled “Returns”void
paste()
Section titled “paste()”paste(
position
):void
Pastes the clipboard content at the specified position.
Parameters
Section titled “Parameters”position
Section titled “position”The position where to paste the content.
Returns
Section titled “Returns”void