컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
blockly > 아이콘 > CommentState
댓글 아이콘의 저장 상태 형식입니다.
서명:
export interface CommentState
속성
속성 |
수정자 |
유형 |
설명 |
height? |
|
숫자 |
(선택사항) 댓글 풍선의 높이입니다. |
고정되어 있나요? |
|
부울 |
(선택사항) 댓글이 열려 있으면 true이고 닫혀 있으면 false입니다. |
텍스트? |
|
문자열 |
(선택사항) 댓글 텍스트입니다. |
width? |
|
숫자 |
(선택사항) 댓글 풍선의 너비입니다. |
x? |
|
숫자 |
(선택사항) 댓글 풍선의 X 좌표입니다. |
y? |
|
숫자 |
(선택사항) 댓글 풍선의 Y 좌표입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[],["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,[]]