Render info
The RenderInfo
determines how a block's visual elements get
laid out.
A block is always built out of inputs, connections, and fields, but those
can be laid out in many different ways. For example, the same block definition
can be rendered with external inputs or inline inputs.

The render info determines which layout is chosen.
As the first step of rendering, the render info looks at the block's definition,
and the measurements of its visual pieces. Then it decides how the block should
be laid out, and organizes the information accordingly. The information gets
turned into non-overlapping elements and spacers,
which are organized into non-overlapping rows, and
row spacers.
Then the drawer uses that organized layout information to create the
SVG paths representing the block.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["`RenderInfo` dictates the visual layout of a block's elements, such as inputs, connections, and fields, determining aspects like inline or external input placement."],["It analyzes the block definition and element measurements to establish an optimal layout, organizing the information into elements, spacers, rows, and row spacers for a non-overlapping visual structure."],["This organized layout information is then utilized by the drawer to generate the final SVG paths that visually represent the block."]]],["`RenderInfo` defines a block's visual layout. It analyzes a block's inputs, connections, and fields, considering external or inline input options. It determines the layout, organizing visual components into non-overlapping elements, spacers, rows, and row spacers. This structured information is then passed to the drawer, which generates the SVG paths for the block's visual representation. The core task of the render info is to take visual elements and organize them.\n"]]