blockly > IBoundedElement > moveBy
IBoundedElement.moveBy() 方法
以相對偏移值移動元素。
Signature:
moveBy(dx: number, dy: number, reason?: string[]): void;
參數
參數 | 類型 | 說明 |
---|---|---|
dx | 號碼 | Workspace 單位中的水平偏移。 |
dy | 號碼 | 工作區單位中的垂直偏移。 |
原因 | string[] | (選用) 為何進行這項遷移作業?「user」、「bump」、「snap」... |
傳回:
void