Skip to main content

Interface: CommentState

Defined in: packages/blockly/core/icons/comment_icon.ts:430

The save state format for a comment icon.

Properties index

PropertyDescription
textThe text of the comment.
pinnedTrue if the comment is open, false otherwise.
heightThe height of the comment bubble.
widthThe width of the comment bubble.
xThe X coordinate of the comment bubble.
yThe Y coordinate of the comment bubble.

Properties

text?

optional text?: string;

Defined in: packages/blockly/core/icons/comment_icon.ts:432

The text of the comment.


pinned?

optional pinned?: boolean;

Defined in: packages/blockly/core/icons/comment_icon.ts:435

True if the comment is open, false otherwise.


height?

optional height?: number;

Defined in: packages/blockly/core/icons/comment_icon.ts:438

The height of the comment bubble.


width?

optional width?: number;

Defined in: packages/blockly/core/icons/comment_icon.ts:441

The width of the comment bubble.


x?

optional x?: number;

Defined in: packages/blockly/core/icons/comment_icon.ts:444

The X coordinate of the comment bubble.


y?

optional y?: number;

Defined in: packages/blockly/core/icons/comment_icon.ts:447

The Y coordinate of the comment bubble.