blockly > comments > CommentEditor > (构造函数)

comments.CommentEditor.(constructor)

构造 CommentEditor 类的新实例

Signature:

constructor(workspace: WorkspaceSvg, commentId?: string, onFinishEditing?: (() => void) | undefined);

参数

参数 类型 说明
工作区 WorkspaceSvg
commentId 字符串 (可选)
onFinishEditing (() => void) | undefined (可选)