blockly > blockRendering > RenderInfo > getSpacerRowWidth_
setRendering.RenderInfo.getSpacerRowwidth_()
حساب عرض الصف الفاصل.
Signature:
protected getSpacerRowWidth_(_prev: Row, _next: Row): number;
المعلمات
المعلمة |
النوع |
الوصف |
_prev |
الصف |
الصف الذي يسبق الفاصل. |
_next |
الصف |
الصف الذي يلي الفاصل. |
المرتجعات:
الرقم
العرض المطلوب لصف الفاصل بين هذين الصفين.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]