blockly > 事件 > CommentDrag > (构造函数)
Events.CommentDrag.(constructor)
构造 CommentDrag
类的新实例
Signature:
constructor(opt_comment?: WorkspaceComment, opt_isStart?: boolean);
参数
参数 | 类型 | 说明 |
---|---|---|
opt_comment | WorkspaceComment | (可选)要拖动的评论。对于空白事件,此值为未定义。 |
opt_isStart | 布尔值 | (可选)是否为评论拖动操作的开始。对于空白事件,此值为未定义。 |