blockly > geras > ConstantProvider
geras.ConstantProvider class
An object that provides constants for rendering blocks in Geras mode.
Signature:
export declare class ConstantProvider extends BaseConstantProvider
Extends: BaseConstantProvider
Constructors
Constructor |
Modifiers |
Description |
(constructor)() |
|
Constructs a new instance of the ConstantProvider class |
Properties
Methods
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.ConstantProvider` class provides constants for rendering blocks in Geras mode in Blockly, extending the `BaseConstantProvider` class."],["It includes properties like `DARK_PATH_OFFSET`, `FIELD_TEXT_BASELINE_CENTER`, `MAX_BOTTOM_WIDTH`, and `STATEMENT_BOTTOM_SPACER` for defining block appearance."],["A key feature is the `MAX_BOTTOM_WIDTH` property, which sets the maximum width of a bottom row following a statement input with inline inputs."],["The class offers a constructor for creating instances and a `getCSS_` method for potentially retrieving CSS styles related to the block rendering."]]],["The `geras.ConstantProvider` class, extending `BaseConstantProvider`, supplies constants for rendering blocks in Geras mode. It has a constructor and defines properties such as `DARK_PATH_OFFSET`, `FIELD_TEXT_BASELINE_CENTER`, `MAX_BOTTOM_WIDTH` (specifying the maximum width of a bottom row with inline inputs), and `STATEMENT_BOTTOM_SPACER`. Additionally, it includes a `getCSS_` method. This class manages visual aspects of block rendering in the Geras rendering mode.\n"]]