blockly > MetricsManager > getPaddedContent_
เมธอด MetricsManager.getPaddedContent_()
แสดงผลพื้นที่เนื้อหาซึ่งมีระยะห่างจากขอบที่เพิ่มเข้ามา
ลายเซ็น:
protected getPaddedContent_(viewMetrics: ContainerRegion, contentMetrics: ContainerRegion): {
top: number;
bottom: number;
left: number;
right: number;
};
พารามิเตอร์
พารามิเตอร์ | Type | คำอธิบาย |
---|---|---|
viewMetrics | ContainerRegion | เมตริกการดู |
contentMetrics | ContainerRegion | เมตริกเนื้อหา |
ส่งกลับ:
{ ด้านบน: ตัวเลข; ด้านล่าง: ตัวเลข; ซ้าย: ตัวเลข; ขวา: ตัวเลข; }
บริเวณเนื้อหาที่มีแผ่นรอง