blockly > blockRendering > MarkerSvg > positionRect_

blockRendering.MarkerSvg.positionRect_() method

Move and show the marker at the specified coordinate in workspace units. Displays a filled in rectangle.

Signature:

protected positionRect_(x: number, y: number, width: number, height: number): void;

Parameters

Parameter Type Description
x number The new x, in workspace units.
y number The new y, in workspace units.
width number The new width, in workspace units.
height number The new height, in workspace units.

Returns:

void