研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
行
块定义为输入的集合,但渲染信息决定这些输入如何拆分为行和分隔符行。
例如,当某个块设置为内嵌输入时,该块包含的行数少于设置为外部输入时的行数。其输入数量相同,但行数不同!

Row
Row
是不重叠的元素和元素分隔符的水平集合。
行的边界由属于该行的元素和分隔符的边界决定,这样包含所有元素。
行分隔符
RowSpacer
是两行之间的空白垂直空间。
行分隔符的边界由渲染信息本身确定。在测量代码块的所有行后,render info 会在行之间插入所选大小的空格。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-02。
[null,null,["最后更新时间 (UTC):2023-12-02。"],[[["Blocks are visually arranged using rows and spacers, determined by render info, affecting the block's layout regardless of the number of inputs."],["Rows are horizontal groupings of elements and spacers, with their size determined by the contained elements."],["Row spacers are vertical gaps between rows, with their size dictated by the render info to manage the overall block layout."]]],["Blocks contain inputs, and their visual layout depends on the render info, which structures inputs into rows and spacer rows. Inline inputs create blocks with fewer rows than external inputs, despite having the same number of inputs. A Row consists of elements and element spacers, with its boundaries defined by these components. RowSpacers are empty spaces between rows; the render info determines their size and placement between rows.\n"]]