blockly > clipboard > paste

clipboard.paste() function

Paste a pasteable element into the workspace.

Signature:

export declare function paste<T extends ICopyData>(copyData: T, workspace: WorkspaceSvg, coordinate?: Coordinate): ICopyable<T> | null;

Parameters

Parameter Type Description
copyData T The data to paste into the workspace.
workspace WorkspaceSvg The workspace to paste the data into.
coordinate Coordinate (Optional) The location to paste the thing at.

Returns:

ICopyable<T> | null

The pasted thing if the paste was successful, null otherwise.