blockly > WorkspaceCommentSvg > (constructor)
WorkspaceCommentSvg.(constructor)
Constructs a new instance of the WorkspaceCommentSvg
class
Signature:
constructor(workspace: WorkspaceSvg, content: string, height: number, width: number, opt_id?: string);
Parameters
Parameter | Type | Description |
---|---|---|
workspace | WorkspaceSvg | The block's workspace. |
content | string | The content of this workspace comment. |
height | number | Height of the comment. |
width | number | Width of the comment. |
opt_id | string | (Optional) Optional ID. Use this ID if provided, otherwise create a new ID. |