blockly > RenderedConnection > respawnShadow_
RenderedConnection.respawnShadow_() method
Respawn the shadow block if there was one connected to the this connection. Render/rerender blocks as needed.
Signature:
protected respawnShadow_(): void;
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.
[null,null,["Last updated 2024-09-18 UTC."],[[["This method handles the reappearance of a shadow block previously linked to the connection."],["It manages the rendering or re-rendering of blocks as necessary to ensure the shadow block is displayed correctly."],["The `respawnShadow_` method focuses specifically on shadow blocks and their connection state, playing a role in maintaining the visual representation of connections and their associated blocks within Blockly."]]],["The `respawnShadow_()` method, part of the `RenderedConnection` class, is responsible for recreating a shadow block if it was previously connected to the connection. This method also handles the necessary rendering or re-rendering of blocks to reflect the change. It is a protected method and returns no value (void).\n"]]