Skip to main content

blockly > BlockSvg > toCopyData

BlockSvg.toCopyData() method

Encode a block for copying.

Signature:

toCopyData(addNextBlocks?: boolean): BlockCopyData | null;

Parameters

Parameter

Type

Description

addNextBlocks

boolean

(Optional) If true, copy subsequent blocks attached to this one as well.

Returns:

BlockCopyData | null

Copy metadata, or null if the block is an insertion marker.