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 | The flyout block that was cloned. | |
newBlock | The new block to position. |
Returns:
void