Blockly は 2025 年 11 月 10 日に Raspberry Pi Foundation に移行しました。ブログ投稿とよくある質問をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >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 および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],["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"]]