Stay organized with collections
Save and categorize content based on your preferences.
blockly > geras > RenderInfo > (constructor)
geras.RenderInfo.(constructor)
Constructs a new instance of the RenderInfo
class
Signature:
constructor(renderer: Renderer, block: BlockSvg);
Parameters
Parameter |
Type |
Description |
renderer |
Renderer |
The renderer in use. |
block |
BlockSvg |
The block to measure. |
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\u003eThis documentation details the constructor for the \u003ccode\u003eRenderInfo\u003c/code\u003e class within Blockly's Geras rendering system.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor initializes a new \u003ccode\u003eRenderInfo\u003c/code\u003e object, taking the renderer and the block to be measured as arguments.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRenderInfo\u003c/code\u003e objects are used to store and manage information necessary for rendering blocks in the Geras style.\u003c/p\u003e\n"]]],["The `RenderInfo` class constructor initializes a new instance. It requires two parameters: `renderer`, which is the current renderer being used, and `block`, which is the `BlockSvg` instance that needs to be measured. This class is part of the `geras` namespace within the `blockly` library. The constructor's purpose is to set up the necessary information for rendering a block.\n"],null,["[blockly](./blockly.md) \\\u003e [geras](./blockly.geras_namespace.md) \\\u003e [RenderInfo](./blockly.geras_namespace.renderinfo_class.md) \\\u003e [(constructor)](./blockly.geras_namespace.renderinfo_class._constructor__1_constructor.md)\n\ngeras.RenderInfo.(constructor)\n------------------------------\n\nConstructs a new instance of the `RenderInfo` class\n\n**Signature:** \n\n constructor(renderer: Renderer, block: BlockSvg);\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|---------------------------------------------------------|-----------------------|\n| renderer | [Renderer](./blockly.geras_namespace.renderer_class.md) | The renderer in use. |\n| block | [BlockSvg](./blockly.blocksvg_class.md) | The block to measure. |"]]