blockly > clipboard > paste

clipboard.paste() function

Paste a pasteable element into the workspace.


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


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.


ICopyable<T> | null

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