แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > blockRendering > RenderInfo > getSpacerRowHeight_
เมธอด blockRendering.RenderInfo.getSpacerRowHeight_()
คำนวณความสูงของแถวที่เว้นระยะ
ลายเซ็น:
protected getSpacerRowHeight_(_prev: Row, _next: Row): number;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
_prev |
แถว |
แถวก่อน Spacer |
_next |
แถว |
แถวหลังที่กั้นระยะ |
การคืนสินค้า:
ตัวเลข
ความสูงที่ต้องการของแถวที่เว้นระยะระหว่าง 2 แถวนี้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-21 UTC
[null,null,["อัปเดตล่าสุด 2024-08-21 UTC"],[[["The `getSpacerRowHeight_` method calculates the height of a spacer row between two given rows in Blockly's block rendering process."],["It takes the preceding and succeeding rows as input and returns the calculated height of the spacer row as a number."],["This method is used internally by the rendering engine to determine appropriate spacing between elements within a block."]]],[]]