google / blockly

The web-based visual programming editor.
https://developers.google.com/blockly/
Apache License 2.0
12.51k stars 3.72k forks source link

feat: Allow specifying the default size of comments. #8618

Closed gonfunko closed 1 month ago

gonfunko commented 1 month ago

The basics

The details

Resolves

This PR unblocks https://github.com/gonfunko/scratch-blocks/issues/190 by adding an API for specifying the default size of comments.

Proposed Changes

Users can now set Blockly.comments.CommentView.defaultCommentSize (a static property) to the size that newly created workspace comments should default to.

Reason for Changes

Enables users to customize comment sizes for their application.