blockly > IBoundedElement > moveBy

IBoundedElement.moveBy() 方法

以相对偏移量移动元素。

Signature:

moveBy(dx: number, dy: number, reason?: string[]): void;

参数

参数 类型 说明
dx number 工作区单元的水平偏移量。
Dy number 垂直偏移(以工作区单位为单位)。
原因 字符串[] (可选)为什么要进行此次转移?“用户”“触碰”“拍摄”...

返回

void