Stay organized with collections
Save and categorize content based on your preferences.
blockly > blockRendering > PathObject > updateShadow_
blockRendering.PathObject.updateShadow_() method
Updates the look of the block to reflect a shadow state.
Signature:
protected updateShadow_(shadow: boolean): void;
Parameters
Parameter |
Type |
Description |
shadow |
boolean |
True if the block is a shadow block. |
Returns:
void
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\u003eupdateShadow_\u003c/code\u003e method modifies the visual appearance of a block to indicate whether it's a shadow block or not.\u003c/p\u003e\n"],["\u003cp\u003eThis method is designated as \u003ccode\u003eprotected\u003c/code\u003e, suggesting its intended use within the \u003ccode\u003eblockRendering.PathObject\u003c/code\u003e class or its subclasses.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a single boolean parameter, \u003ccode\u003eshadow\u003c/code\u003e, which determines the shadow state of the block.\u003c/p\u003e\n"],["\u003cp\u003eApplying \u003ccode\u003eupdateShadow_\u003c/code\u003e does not return any specific value (void).\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [blockRendering](./blockly.blockrendering_namespace.md) \\\u003e [PathObject](./blockly.blockrendering_namespace.pathobject_class.md) \\\u003e [updateShadow_](./blockly.blockrendering_namespace.pathobject_class.updateshadow__1_method.md)\n\nblockRendering.PathObject.updateShadow_() method\n------------------------------------------------\n\nUpdates the look of the block to reflect a shadow state.\n\n**Signature:** \n\n protected updateShadow_(shadow: boolean): void;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|---------|--------------------------------------|\n| shadow | boolean | True if the block is a shadow block. |\n\n**Returns:**\n\nvoid"]]