blockly > BlockDragger > disconnectBlock_

BlockDragger.disconnectBlock_() 方法

取消方块的关联,并将其移动到新位置。

Signature:

protected disconnectBlock_(healStack: boolean, currentDragDeltaXY: Coordinate): void;

参数

参数 类型 说明
healStack boolean 断开连接后是否修复堆栈。
currentDragDeltaXY 坐标 指针从鼠标按下时的位置移动了多远(以像素为单位)。

返回

void