Skip to main content

Home > @jsplumbtoolkit/copy-paste

copy-paste package#

Classes#

ClassDescription
ClipboardOffers methods to copy and paste data from/to a Toolkit instance. This class is abstract and is subclassed to concrete implementations by UI specific packages, of which currently there is only @jsplumbtoolkit/browser-ui-copy-paste. In the future if alternate renderers are written for the Toolkit it is expected that an implementation of the Clipboard would be one of the inclusions.

Interfaces#

InterfaceDescription
ClonedSetThe return value from a paste. Contains a list of nodes, groups and edges that were pasted, as well as a map of previous edge/vertex ids to their new ids, the computed origin of the copied vertices, and the amount by which the set of objects was translated for the paste (so the paste location is origin + transform).
PasteOptionsOptions for a paste operation.