blockly > blockRendering > MarkerSvg > positionBlock_

blockRendering.MarkerSvg.positionBlock_() method

Position the marker for a block. Displays an outline of the top half of a rectangle around a block.

Signature:

protected positionBlock_(width: number, markerOffset: number, markerHeight: number): void;

Parameters

Parameter Type Description
width number The width of the block.
markerOffset number The extra padding for around the block.
markerHeight number The height of the marker.

Returns:

void