Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003egeras.RenderInfo.getInRowSpacing_()\u003c/code\u003e method calculates the spacing between two Measurable elements within a row of a block, given the previous and next elements.\u003c/p\u003e\n"],["\u003cp\u003eThis method takes two optional parameters: \u003ccode\u003eprev\u003c/code\u003e and \u003ccode\u003enext\u003c/code\u003e, representing the preceding and succeeding Measurable objects, respectively, and returns a numerical value for the spacing.\u003c/p\u003e\n"],["\u003cp\u003eThe returned number by \u003ccode\u003egetInRowSpacing_()\u003c/code\u003e determines the amount of space to insert between the \u003ccode\u003eprev\u003c/code\u003e and \u003ccode\u003enext\u003c/code\u003e elements when rendering a block in the Geras renderer.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [geras](./blockly.geras_namespace.md) \\\u003e [RenderInfo](./blockly.geras_namespace.renderinfo_class.md) \\\u003e [getInRowSpacing_](./blockly.geras_namespace.renderinfo_class.getinrowspacing__1_method.md)\n\ngeras.RenderInfo.getInRowSpacing_() method\n------------------------------------------\n\n**Signature:** \n\n getInRowSpacing_(prev: Measurable | null, next: Measurable | null): number;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|------------------------------------------------------------------------------|-------------|\n| prev | [Measurable](./blockly.blockrendering_namespace.measurable_class.md) \\| null | |\n| next | [Measurable](./blockly.blockrendering_namespace.measurable_class.md) \\| null | |\n\n**Returns:**\n\nnumber"]]