blockly > WorkspaceCommentSvg > (构造函数)

WorkspaceCommentSvg.(constructor)

构造 WorkspaceCommentSvg 类的新实例

Signature:

constructor(workspace: WorkspaceSvg, content: string, height: number, width: number, opt_id?: string);

参数

参数 类型 说明
工作区 WorkspaceSvg 块的工作区。
content string 此工作区评论的内容。
高度 number 评论的高度。
width number 评论的宽度。
opt_id string (可选)可选 ID。使用此 ID(如果提供),否则请创建一个新 ID。