blockly > BlockSvg > moveBy

BlockSvg.moveBy() 方法

以相对偏移量移动块。

Signature:

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

参数

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

返回

void