手势类别
用于一种手势的类。
Signature:
export declare class Gesture
构造函数
构造函数 | 修饰符 | 说明 |
---|---|---|
(构造函数)(e, creatorWorkspace) | 构造 Gesture 类的新实例 |
属性
媒体资源 | 修饰符 | 类型 | 说明 |
---|---|---|---|
currentDropdownOwner | 字段 | null | 此手势首次启动时的 fragmentDiv 的所有者。需要此属性,因为我们将在字段对其事件执行操作之前关闭下拉列表,并且某些字段关注的是下拉列表的所有者。 | |
isEnding_ | protected |
boolean | 在内部用于破坏处理循环的布尔值。 |
startWorkspace_ | protected |
WorkspaceSvg | null | 启动手势的工作区。一个页面上可以有多个工作区;这比使用 Blockly.common.getMainWorkspace() 更准确。 |
方法
方法 | 修饰符 | 说明 |
---|---|---|
getCurrentDragger() | 如果正在拖动项,则获取当前拖动器。如果未拖动任何内容,则为 null。 | |
inProgress() | static |
任何工作区中当前正在执行拖动或其他手势吗? |