blockly > blockRendering > MarkerSvg > positionRect_

blockRendering.MarkerSvg.positionRect_() 方法

在指定坐标处移动和显示标记(以工作区单位为单位)。显示实心矩形。

Signature:

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

参数

参数 类型 说明
x number 新 x,以工作区单位为单位。
y number 新的 y,以工作区单位为单位。
width number 新宽度(以工作区单位为单位)。
高度 number 新高度(以工作区单位为单位)。

返回

void