แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
blockly > blockRendering > สามารถวัดได้
คลาส blockRendering.Measurable
คลาสพื้นฐานที่แสดงถึงส่วนของบล็อกที่ใช้พื้นที่ระหว่างการแสดงผล เครื่องมือสร้างสำหรับการวัดที่ไม่สามารถวัดได้แต่ละรายการจะบันทึกขนาดขององค์ประกอบของบล็อก (เช่น ช่อง อินพุตคำสั่ง)
ลายเซ็น:
export declare class Measurable
ผู้ผลิต
พร็อพเพอร์ตี้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-21 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-08-21 UTC"],[[["The `blockRendering.Measurable` class is the foundation for representing parts of a block that occupy space during rendering, like fields or inputs."],["Each `Measurable` instance stores the size of the corresponding block element and provides properties for dimensions and position."],["Key properties include `height`, `width`, `xPos` (x-position), `centerline`, and `notchOffset` for positioning and layout calculations."],["A `ConstantProvider` associated with the renderer gives access to rendering constants for consistent block appearance."]]],["The `Measurable` class represents a block component that occupies space during rendering. Each `Measurable` instance, except spacers, stores the dimensions of a block element, such as a field or input. It has properties to store size, including `width` and `height`, positioning such as `xPos`, and layout information such as `centerline` and `notchOffset`. It is built with a constructor and it has a renderer's constant provider stored in a property `constants_`.\n"]]