Stay organized with collections
Save and categorize content based on your preferences.
blockly > geras > RenderInfo > getElemCenterline_
geras.RenderInfo.getElemCenterline_() method
Signature:
getElemCenterline_(row: Row, elem: Measurable): 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\u003egetElemCenterline_()\u003c/code\u003e method calculates and returns the vertical center line of a specific element within a given row in Blockly's Geras rendering engine.\u003c/p\u003e\n"],["\u003cp\u003eIt takes a \u003ccode\u003eRow\u003c/code\u003e object and a \u003ccode\u003eMeasurable\u003c/code\u003e object (representing the element) as input to determine the centerline.\u003c/p\u003e\n"],["\u003cp\u003eThe method is primarily used within the Geras renderer for precise positioning and alignment of block elements during rendering.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [geras](./blockly.geras_namespace.md) \\\u003e [RenderInfo](./blockly.geras_namespace.renderinfo_class.md) \\\u003e [getElemCenterline_](./blockly.geras_namespace.renderinfo_class.getelemcenterline__1_method.md)\n\ngeras.RenderInfo.getElemCenterline_() method\n--------------------------------------------\n\n**Signature:** \n\n getElemCenterline_(row: Row, elem: Measurable): number;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|----------------------------------------------------------------------|-------------|\n| row | [Row](./blockly.blockrendering_namespace.row_class.md) | |\n| elem | [Measurable](./blockly.blockrendering_namespace.measurable_class.md) | |\n\n**Returns:**\n\nnumber"]]