blockly > WorkspaceCommentSvg > (constructeur)

WorkspaceCommentSvg.(constructor)

Construit une instance de la classe WorkspaceCommentSvg.

Signature :

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

Paramètres

Paramètres Type Description
espace de travail WorkspaceSvg Espace de travail du bloc.
contenu chaîne Contenu de ce commentaire sur l'espace de travail.
hauteur number Hauteur du commentaire.
largeur number Largeur du commentaire.
opt_id chaîne (Facultatif) Identifiant facultatif. Utilisez cet ID s'il est fourni. Sinon, créez-en un autre.