रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > BlockSvg > bumpNeighbours
BlockSvg.bumpNeighbours() तरीका
कनेक्ट नहीं किए गए ब्लॉक को अलाइनमेंट से बाहर कर देता है.
दो ब्लॉक जो वास्तव में कनेक्ट नहीं हैं, वे गलती से स्क्रीन पर एक जैसे नहीं होने चाहिए, क्योंकि इससे असली उपयोगकर्ताओं के लिए भ्रम की स्थिति पैदा होती है.
हस्ताक्षर:
bumpNeighbours(): void;
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-12 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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"]]