blockly > WorkspaceComment > (생성자)

WorkspaceComment.(constructor)

WorkspaceComment 클래스의 새 인스턴스를 구성합니다.

Signature:

constructor(workspace: Workspace, content: string, height: number, width: number, opt_id?: string);

매개변수

매개변수 유형 설명
작업공간 Workspace 블록의 작업공간
콘텐츠 string 이 작업공간 댓글의 콘텐츠입니다.
높이 숫자 댓글의 높이입니다.
너비 숫자 댓글의 너비입니다.
opt_id string (선택사항) ID입니다(선택사항). 제공된 경우 이 ID를 사용하고, 제공되지 않으면 새 ID를 만드세요.