調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >blockRendering >RenderInfo >getSpacerRowWidth_
blockRendering.RenderInfo.getSpacerRowWidth_() メソッド
スペーサー行の幅を計算します。
署名:
protected getSpacerRowWidth_(_prev: Row, _next: Row): number;
パラメータ
パラメータ |
型 |
説明 |
_prev |
行 |
スペーサーの前の行。 |
_next |
行 |
スペーサーの後の行。 |
戻り値:
数値
この 2 つの行をつなぐスペーサー行の適切な幅。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 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"]]