Clipboard

Wick. Clipboard

A clipboard utility class for copy/paste functionality.

Constructor

new Clipboard()

Description:
  • Create a new Clipboard object.

Source:

Members

clipboardData :Object

Description:
  • The data of copied objects, stored as JSON.

Source:

The data of copied objects, stored as JSON.

Type:
  • Object

Methods

copyObjectsToClipboard(objects)

Description:
  • Replace the current contents of the clipboard with new objects.

Source:
Parameters:
Name Type Description
objects Array.<Wick.Base>

the objects to copy to the clipboard

pasteObjectsFromClipboard(project) → {boolean}

Description:
  • Paste the content of the clipboard into the project.

Source:
Parameters:
Name Type Description
project Wick.Project

the project to paste objects into.

Returns:

True if there is something to paste in the clipboard, false if the clipboard is empty.

Type
boolean