blockly > comments > RenderedWorkspaceComment
comments.RenderedWorkspaceComment 클래스
서명:
export declare class RenderedWorkspaceComment extends WorkspaceComment implements IBoundedElement, IRenderedElement, IDraggable, ISelectable, IDeletable, ICopyable<WorkspaceCommentCopyData>, IContextMenu, IFocusableNode
확장: WorkspaceComment
구현: IBoundedElement, IRenderedElement, IDraggable, ISelectable, IDeletable, ICopyable<WorkspaceCommentCopyData>, IContextMenu, IFocusableNode
생성자
생성자 | 수정자 | 설명 |
---|---|---|
(constructor)(workspace, id) | 뷰를 포함한 작업공간 댓글을 생성합니다. |
속성
속성 | 수정자 | 유형 | 설명 |
---|---|---|---|
보기 | CommentView | 작업공간 댓글을 구성하는 SVG 요소를 포함하는 클래스입니다. | |
workspace | readonly |
WorkspaceSvg |
메서드
메서드 | 수정자 | 설명 |
---|---|---|
canBeFocused() | IFocusableNode.canBeFocused를 참고하세요. | |
dispose() | 뷰를 처리합니다. | |
drag(newLoc) | 댓글을 지정된 위치로 드래그합니다. | |
endDrag() | 댓글의 드래그를 종료합니다. | |
getBoundingRectangle() | 작업공간 좌표에서 이 댓글의 경계 사각형을 반환합니다. 축소를 존중합니다. | |
getEditorFocusableNode() | ||
getFocusableElement() | IFocusableNode.getFocusableElement를 참고하세요. | |
getFocusableTree() | IFocusableNode.getFocusableTree를 참고하세요. | |
getSize() | 작업공간 단위로 댓글의 크기를 반환합니다. 접기를 따르지 않습니다. | |
getSvgRoot() | 이 주석의 루트 SVG 요소를 반환합니다. | |
isCopyable() | 이 댓글이 복사 가능한지 여부를 반환합니다. | |
isMovable() | 이 댓글이 이동 가능한지 여부를 반환합니다. | |
moveBy(dx, dy, reason) | 작업공간 좌표에서 지정된 양만큼 댓글을 이동합니다. | |
moveTo(location, reason) | 작업공간 좌표에서 지정된 위치로 댓글을 이동합니다. | |
onNodeBlur() | IFocusableNode.onNodeBlur를 참고하세요. | |
onNodeFocus() | IFocusableNode.onNodeFocus를 참고하세요. | |
revertDrag() | 댓글을 드래그 시작 시점으로 다시 이동합니다. | |
select() | 댓글을 시각적으로 강조 표시합니다. | |
setCollapsed(collapsed) | 댓글이 접혀 있는지 여부를 설정합니다. | |
setDeleteStyle(wouldDelete) | 드롭하면 이 댓글이 삭제됨을 시각적으로 나타냅니다. | |
setEditable(editable) | 댓글을 수정할 수 있는지 여부를 설정합니다. | |
setPlaceholderText(text) | 댓글이 비어 있는 경우 표시되는 자리표시자 텍스트를 설정합니다. | |
setSize(size) | 댓글의 크기를 설정합니다. | |
setText(text) | 댓글의 텍스트를 설정합니다. | |
showContextMenu(e) | 이 댓글의 컨텍스트 메뉴를 표시합니다. | |
snapToGrid() | 이 댓글을 가장 가까운 그리드 포인트에 스냅합니다. | |
startDrag() | 댓글에서 드래그를 시작합니다. | |
toCopyData() | 붙여넣기에 사용할 수 있는 이 댓글 상태의 JSON 직렬화 가능 표현을 반환합니다. | |
unselect() | 댓글의 강조 표시를 시각적으로 해제합니다. |