blockly > BlockSvg > previousConnection
BlockSvg.previousConnection property
Signature:
previousConnection: RenderedConnection;
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."],[[["`previousConnection` is a property of the `BlockSvg` class that represents the connection point on the top of the block where another block can be attached."],["This property is of type `RenderedConnection` which handles the visual and logical aspects of the connection."],["Through `previousConnection`, you can access and manipulate the block's connection to the preceding block in the workspace."]]],["The `previousConnection` property, found within the `BlockSvg` class, is a key element in Blockly's structure. It is of the type `RenderedConnection`. This property represents a block's connection point located at the top, which is used to link it to a preceding block in a sequence. It is instrumental in visually rendering the connection between two blocks.\n"]]