blockly > Połączenie > isSuperior
Metoda Connection.isSuperior()
Czy połączenie należy do nadrzędnego bloku (wyższego w stosie źródłowym)?
Podpis:
isSuperior(): boolean;
Zwroty:
wartość logiczna
Prawda, jeśli połączenie jest skierowane w dół lub w prawo.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-29 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-29 UTC."],[[["This method checks if a Blockly connection belongs to a block higher up in the stack."],["It returns `true` if the connection faces down or right, indicating it's on a superior block, otherwise `false`."],["The `isSuperior()` method helps determine the hierarchical relationship between blocks in the workspace."]]],["The `Connection.isSuperior()` method determines if a connection belongs to a superior block within a stack. It returns a boolean value: `true` if the connection faces down or right, indicating it's part of a block higher in the source stack, and `false` otherwise. This method effectively checks the directionality of the connection to establish the hierarchical relationship between connected blocks.\n"]]