blockly > WorkspaceCommentSvg

WorkspaceCommentSvg class

Class for a workspace comment's SVG representation.

Signature:

export declare class WorkspaceCommentSvg extends WorkspaceComment implements IBoundedElement, IBubble, ICopyable<WorkspaceCommentCopyData> 

Extends: WorkspaceComment

Implements: IBoundedElement, IBubble, ICopyable<WorkspaceCommentCopyData>

Constructors

Constructor Modifiers Description
(constructor)(workspace, content, height, width, opt_id) Constructs a new instance of the WorkspaceCommentSvg class

Properties

Property Modifiers Type Description
svgRect_ SVGRectElement
workspace WorkspaceSvg

Methods

Method Modifiers Description
setEditable(editable) Set whether this comment is editable or not.
toCopyData() Encode a comment for copying.