Stay organized with collections
Save and categorize content based on your preferences.
blockly > blockRendering > Renderer > orphanCanConnectAtEnd
blockRendering.Renderer.orphanCanConnectAtEnd() method
Checks if an orphaned block can connect to the "end" of the topBlock's block-clump. If the clump is a row the end is the last input. If the clump is a stack, the end is the last next connection. If the clump is neither, then this returns false.
Signature:
protected orphanCanConnectAtEnd(topBlock: BlockSvg, orphanBlock: BlockSvg, localType: number): boolean;
Parameters
Parameter |
Type |
Description |
topBlock |
BlockSvg |
The top block of the block clump we want to try and connect to. |
orphanBlock |
BlockSvg |
The orphan block that wants to find a home. |
localType |
number |
The type of the connection being dragged. |
Returns:
boolean
Whether there is a home for the orphan or not.
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."],[],[]]