blockly > comments > CommentBarButton > getSize

comments.CommentBarButton.getSize() 方法

返回此按钮在工作区坐标中的尺寸。

Signature:

getSize(includeMargin?: boolean): Rect;

参数

参数 类型 说明
includeMargin 布尔值 (可选)如果为 true,则在计算大小时包含边距。

返回

Rect

相应按钮的大小。