blockly > BlockDragSurfaceSvg > getCurrentBlock

BlockDragSurfaceSvg.getCurrentBlock() method

Get the current blocks on the drag surface, if any (primarily for BlockSvg.getRelativeToSurfaceXY).

Signature:

getCurrentBlock(): Element | null;

Returns:

Element | null

Drag surface block DOM element, or null if no blocks exist.