研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly > 图标 > CommentState
评论图标的保存状态格式。
Signature:
export interface CommentState
属性
属性 |
修饰符 |
类型 |
说明 |
高度? |
|
数值 |
(可选)评论气泡的高度。 |
已固定? |
|
布尔值 |
(可选)如果评论处于打开状态,则为 true,否则为 false。 |
text? |
|
字符串 |
(可选)评论的文本。 |
width |
|
数值 |
(可选)评论气泡的宽度。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-04。
[null,null,["最后更新时间 (UTC):2024-11-04。"],[[["The `icons.CommentState` interface defines the structure for saving the state of a comment icon in Blockly."],["It includes optional properties for height, width, pinned state, and text of the comment."],["These properties help in restoring the visual and textual aspects of a comment when loaded."]]],["The `CommentState` interface defines the data structure for saving a comment icon's state. It includes optional properties for `height` and `width` (both numbers) to define the comment bubble's dimensions. `pinned` (boolean) indicates whether the comment is open, and `text` (string) stores the comment's textual content. These properties allow for the preservation of a comment's size, visibility, and content.\n"]]