रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > blockRendering > RenderInfo > getSpacerRowWidth_
ब्लॉक रेंडरिंग.RenderInfo.getSpacerRow लगते_() तरीका
स्पेसर पंक्ति की चौड़ाई की गणना करें.
हस्ताक्षर:
protected getSpacerRowWidth_(_prev: Row, _next: Row): number;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
_prev |
पंक्ति |
स्पेसर से पहले की पंक्ति. |
_next |
पंक्ति |
स्पेसर के बाद की पंक्ति. |
लौटाए जाने वाले प्रॉडक्ट:
संख्या
इन दो पंक्तियों के बीच स्पेसर पंक्ति की मनचाही चौड़ाई.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया."],[[["The `getSpacerRowWidth_` method calculates the width needed for a spacer row between two other rows in a Blockly block."],["This method is used internally by the Blockly rendering engine and takes the preceding and succeeding rows as input to determine the appropriate spacer width."],["The calculated width ensures proper spacing and alignment of elements within the rendered block."]]],["The `getSpacerRowWidth_` method, part of the `RenderInfo` class, calculates the width required for a spacer row. It accepts two `Row` objects, `_prev` and `_next`, representing the rows immediately before and after the spacer. The method determines and returns a numerical value representing the optimal width for the spacer row positioned between these two input rows. The output of this function is the calculated width.\n"]]