blockly > comments > CommentView
comments.CommentView class
Signature:
export declare class CommentView implements IRenderedElement
Implements: IRenderedElement
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| string | ||
| The default size of newly created comments. | ||
| boolean | Whether this comment view has been disposed or not. | |
| boolean | Whether this comment view is currently being disposed or not. | |
|
Methods
Method | Modifiers | Description |
|---|---|---|
Registers a callback that listens for disposal of this view. | ||
Registers a callback that listens for collapsed-ness changes. | ||
Registers a callback that listens for size changes. | ||
Registers a callback that listens for text changes on the comment editor. | ||
Brings the workspace comment to the front of its layer. | ||
Disposes of this comment view. | ||
Returns the current location of the comment in workspace coordinates. | ||
Returns the current size of the comment in workspace units. Respects collapsing. | ||
Returns the root SVG group element of the comment view. | ||
Returns the current text of the comment. | ||
Returns true if the comment is currently collapsed. | ||
Returns true if this comment view is currently being disposed or has already been disposed. | ||
Returns whether this comment view has been disposed or not. | ||
Returns true if the comment is currently editable. | ||
Moves the comment view to the given location. | ||
Removes the given listener from the list of disposal listeners. | ||
Removes the given listener from the list of on collapse listeners. | ||
Removes the given listener from the list of size change listeners. | ||
Removes the given listener from the comment editor. | ||
Sets whether the comment is currently collapsed or not. | ||
Sets the editability of the comment. | ||
Sets the placeholder text displayed for an empty comment. | ||
Sets the size of the comment in workspace units, updates the view elements to reflect the new size, and triggers size change listeners. | ||
Sets the size of the comment in workspace units, and updates the view elements to reflect the new size. | ||
Sets the current text of the comment. |