blockly > BlockDragSurfaceSvg > setBlocksAndShow
BlockDragSurfaceSvg.setBlocksAndShow() method
Set the SVG blocks on the drag surface's group and show the surface. Only one block group should be on the drag surface at a time.
Signature:
setBlocksAndShow(blocks: SVGElement): void;
Parameters
Parameter | Type | Description |
---|---|---|
blocks | SVGElement | Block or group of blocks to place on the drag surface. |
Returns:
void