Protected ReadonlydiagramProtectedcan_Protectedcan_Copies styles.
Nothing.
Pastes styles.
A promise that resolves to an array of the nodes that were updated with the pasted styles.
Checks if the clipboard contains styles that can be pasted into selected nodes.
A promise that resolves to true if styles are available for pasting, false otherwise.
Copies the selected nodes to the clipboard in JSON format.
The copied data includes all properties of the nodes, allowing for accurate reconstruction when pasted.
After copying, the canPaste flag is set to true, indicating that there is data available in the clipboard that can be pasted into the diagram.
An array of the nodes that were copied to the clipboard.
Pastes nodes from the clipboard into the diagram.
A promise that resolves to an array of the nodes that were pasted into the diagram.
Checks if the clipboard contains nodes that can be pasted into the diagram.
A promise that resolves to true if nodes are available for pasting, false otherwise.
ProtectedcloneHandles clone node.
The target node.
Optionalid: stringThe identifier value.
The computed result.
ProtectedcloneHandles clone nodes, including id remapping, reconnecting anchors, and handling groups.
The nodes to clone.
The cloned nodes, already inserted into the current layer.
Helper class for managing clipboard operations in the diagram editor. It provides methods for copying and pasting nodes and styles, as well as checking the clipboard state. It handles serialization and deserialization of nodes and styles, ensuring that pasted elements are correctly integrated into the diagram. The class also manages the clipboard snapshot to maintain a consistent state across different operations. The owning diagram is responsible for rendering and dispatching events.