blockly > geras > RenderInfo > getInRowSpacing_
geras.RenderInfo.getInRowSpacing_() method
Signature:
getInRowSpacing_(prev: Measurable | null, next: Measurable | null): number;
Parameters
Returns:
number
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."],[[["The `geras.RenderInfo.getInRowSpacing_()` method calculates the spacing between two Measurable elements within a row of a block, given the previous and next elements."],["This method takes two optional parameters: `prev` and `next`, representing the preceding and succeeding Measurable objects, respectively, and returns a numerical value for the spacing."],["The returned number by `getInRowSpacing_()` determines the amount of space to insert between the `prev` and `next` elements when rendering a block in the Geras renderer."]]],[]]