Blockly 將於 2025 年 11 月 10 日移至 Raspberry Pi 基金會!請參閱網誌和常見問題。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
blockly > icons > CommentState
註解圖示的儲存狀態格式。
Signature:
export interface CommentState
屬性
| 屬性 |
修飾符 |
類型 |
說明 |
| height? |
|
數字 |
(選用) 註解氣泡的高度。 |
| 已固定? |
|
布林值 |
(選用) 如果註解已開放,則傳回「是」;否則傳回「否」。 |
| text? |
|
字串 |
(選填) 註解文字。 |
| width? |
|
數字 |
(選用) 註解氣泡的寬度。 |
| x? |
|
數字 |
(選用) 註解氣泡的 X 座標。 |
| y? |
|
數字 |
(選用) 註解氣泡的 Y 座標。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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"]]