blockly > BlockSvg > bumpNeighbours
Método BlockSvg.bumpNeighbours()
Faz com que blocos não conectados fiquem desalinhados.
Dois blocos que não estão realmente conectados não devem coincidir coincidente na tela, porque isso cria confusão para os usuários finais.
Signature:
bumpNeighbours(): void;
Retorna:
void
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-09-12 UTC.
[null,null,["Última atualização 2024-09-12 UTC."],[[["The `bumpNeighbours()` method prevents unconnected blocks from visually aligning, avoiding user confusion."],["This is achieved by slightly shifting the positions of unconnected blocks that happen to overlap or line up."],["The function does not return any value and is used to improve the visual clarity of the block arrangement."]]],["The `bumpNeighbours` method in BlockSvg repositions unconnected blocks to prevent them from aligning coincidentally on the screen. This action is performed to avoid user confusion caused by the misleading appearance of a connection. The method has no parameters and returns nothing (`void`). Its core function is to adjust the positioning of blocks that are not linked to ensure clear visual separation.\n"]]