blockly > blockRendering > MarkerSvg > positionRect_
blockRendering.MarkerSvg.positionRect_() 方法
以工作區單位移動並在指定座標處顯示標記。顯示已填滿的矩形。
Signature:
protected positionRect_(x: number, y: number, width: number, height: number): void;
參數
參數 | 類型 | 說明 |
---|---|---|
x | 號碼 | 新的 x (以工作區單元為單位)。 |
y | 號碼 | 新的 y 以 Workspace 單元為單位。 |
width | 號碼 | 新的寬度 (以工作區單元為單位)。 |
height | 號碼 | 新的高度 (以工作區單元為單位)。 |
傳回:
void