Skip to main content

blockly > dragging > BlockDragStrategy > positionNewBlock

dragging.BlockDragStrategy.positionNewBlock() method

Positions a cloned block on its new workspace.

Signature:

protected positionNewBlock(oldBlock: BlockSvg, newBlock: BlockSvg): void;

Parameters

Parameter

Type

Description

oldBlock

BlockSvg

The flyout block that was cloned.

newBlock

BlockSvg

The new block to position.

Returns:

void