blockly > blockRendering > MarkerSvg > positionRect_

blockRendering.MarkerSvg.positionRect_() メソッド

指定した座標に、ワークスペース ユニット単位でマーカーを移動して表示します。塗りつぶしの長方形を表示します。

署名:

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

パラメータ

パラメータ 種類 説明
x 数値 新しい x(ワークスペース ユニット単位)。
y 数値 新しい y(ワークスペース ユニット単位)。
width 数値 新しい幅(ワークスペースの単位)。
height 数値 新しい高さ(ワークスペース単位)。

戻り値:

void