Stay organized with collections
Save and categorize content based on your preferences.
blockly > blockRendering > Renderer > makeConstants_
blockRendering.Renderer.makeConstants_() method
Create a new instance of the renderer's constant provider.
Signature:
protected makeConstants_(): ConstantProvider;
Returns:
ConstantProvider
The constant provider.
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."],[[["The `makeConstants_` method creates a new ConstantProvider object for the renderer."],["This method is protected and returns a ConstantProvider instance which holds rendering constants."],["The ConstantProvider is used to ensure consistent visual styling for blocks within the Blockly workspace."]]],[]]