Skip to content

NgDiagramClipboardService

The NgDiagramClipboardService provides clipboard operations for diagram.

private clipboardService = inject(NgDiagramClipboardService);
// Copy selected elements
this.clipboardService.copy();
  • NgDiagramBaseService

copy(): void

Copies the current selection to the clipboard.

void


cut(): void

Cuts the current selection to the clipboard.

void


paste(position): void

Pastes the clipboard content at the specified position.

Point

The position where to paste the content.

void