使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
blockly > icons > CommentState
评论图标的保存状态格式。
Signature:
export interface CommentState
属性
属性 |
修饰符 |
类型 |
说明 |
height? |
|
数值 |
(可选)评论气泡的高度。 |
已固定? |
|
布尔值 |
(可选)如果评论处于开放状态,则为 true;否则为 false。 |
text? |
|
字符串 |
(可选)评论的文本。 |
width? |
|
数值 |
(可选)评论气泡的宽度。 |
x? |
|
数值 |
(可选)评论气泡的 X 坐标。 |
y? |
|
数值 |
(可选)评论气泡的 Y 坐标。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["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"],null,[]]