調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >ゴミ箱 >位置
Trashcan.position() メソッド
ゴミ箱を配置します。カテゴリ/ツールボックスの開始位置の反対側にあります。
署名:
position(metrics: UiMetrics, savedPositions: Rect[]): void;
パラメータ
パラメータ |
型 |
説明 |
指標 |
UiMetrics |
ワークスペースの指標。 |
savedPositions |
長方形[] |
すでにワークスペース上にある長方形のリスト。 |
戻り値:
void
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-10 UTC。
[null,null,["最終更新日 2024-09-10 UTC。"],[[["The `Trashcan.position()` method places the trashcan in the workspace, opposite the toolbox or category area."],["This positioning is determined using workspace metrics and considers existing elements to avoid overlap, ensuring the trashcan is visible and accessible."],["The method takes `UiMetrics` for workspace dimensions and an array of `Rect` objects representing other workspace elements as input."],["It does not return any value, directly modifying the trashcan's position on the workspace."]]],[]]