封鎖 >BlockSvg >bumpNeighbours
BlockSvg.bumpNeighbours() 方法
凸起未連接的區塊。
兩個未實際連接的區塊不應與畫面中同步顯示,以免造成使用者混淆。
Signature:
bumpNeighbours(): void;
傳回:
void
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-12 (世界標準時間)。
[null,null,["上次更新時間:2024-09-12 (世界標準時間)。"],[[["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"]]