調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >MetricsManager >getPaddedContent_
MetricsManager.getPaddedContent_() メソッド
パディングが追加されたコンテンツ領域を返します。
署名:
protected getPaddedContent_(viewMetrics: ContainerRegion, contentMetrics: ContainerRegion): {
top: number;
bottom: number;
left: number;
right: number;
};
パラメータ
パラメータ |
型 |
説明 |
viewMetrics |
ContainerRegion |
ビューの指標。 |
contentMetrics |
ContainerRegion |
コンテンツの指標。 |
戻り値:
{ top: number;ボトム: 数値;left: number;Right: number;}
パディングされたコンテンツ領域。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-11 UTC。
[null,null,["最終更新日 2024-10-11 UTC。"],[[["`MetricsManager.getPaddedContent_()` calculates and returns the content area with added padding, essential for layout and positioning within Blockly workspaces."],["This protected method uses view and content metrics (provided as `ContainerRegion` objects) to determine the padding dimensions (top, bottom, left, right)."],["The result is returned as an object defining the padded content area."]]],[]]