blockly > clipboard > setLastCopiedWorkspace

clipboard.setLastCopiedWorkspace() function

Sets the workspace that was last copied from. You should call this method if you implement custom copy behavior, so that other callers are working with the correct data. This method is called automatically if you use the built-in copy method.

Signature:

export declare function setLastCopiedWorkspace(workspace: WorkspaceSvg): void;

Parameters

Parameter Type Description
workspace WorkspaceSvg workspace that was last copied from.

Returns:

void