แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
ผู้ให้บริการคงที่
ConstantProvider
คือคอลเล็กชันตัวเลข รูปร่าง และสตริงที่คอมโพเนนต์โหมดแสดงภาพอื่นๆ ทั้งหมดใช้ รวมทั้งส่วนอื่นๆ ของ Blockly เช่น ช่องในตัว
ระบบจะถือว่าค่าคงที่ทั้งหมดเป็นคงที่ การเปลี่ยนแปลงค่าขณะรันไทม์จะทำให้เกิดข้อบกพร่องในการแสดงผล
รูปร่างการเชื่อมต่อ
ผู้ให้บริการค่าคงที่มีคำจำกัดความสำหรับรูปทรงมาตรฐานของเส้นเชื่อมต่อที่แตกต่างกัน Notch
จะกำหนดรูปร่างของเส้นเชื่อมต่อถัดไปและก่อนหน้า และ PuzzleTab
จะกำหนดรูปร่างของการเชื่อมต่ออินพุตและเอาต์พุต (ชื่อเหล่านี้อิงตามรูปร่างที่กำหนดโดย
โหมดแสดงภาพเริ่มต้น)
รูปร่างการเชื่อมต่อตามการตรวจสอบ
ผู้ให้บริการค่าคงที่ยังสามารถกำหนดรูปแบบของการเชื่อมต่อแบบไดนามิกตามการตรวจสอบการเชื่อมต่อของตน ซึ่งทำได้โดยใช้เมธอด shapeFor
เส้นทางอื่นๆ
ผู้ให้บริการค่าคงที่ยังกำหนดเส้นทางสำหรับส่วนอื่นๆ ของบล็อกด้วย เช่น ขอบหยักสำหรับบล็อกที่ยุบ
ค่าอื่นๆ
และสุดท้าย ผู้ให้บริการค่าคงที่ยังกำหนดค่าต่างๆ สำหรับสิ่งต่างๆ เช่น ระยะห่างจากขอบระหว่างองค์ประกอบต่างๆ หรือความสูงขั้นต่ำของแถว
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-02 UTC
[null,null,["อัปเดตล่าสุด 2023-12-02 UTC"],[[["The `ConstantProvider` stores essential values like shapes, strings, and numbers used by Blockly's rendering components."],["It defines standard shapes for different connection types, including notches for previous/next connections and puzzle tabs for input/output connections."],["Connection shapes can be dynamically determined based on connection checks using the `shapeFor` method."],["The `ConstantProvider` also defines paths for elements like collapsed block edges and various values for padding and minimum heights."],["Modifying `ConstantProvider` values during runtime is discouraged as it can lead to rendering issues."]]],["The `ConstantProvider` stores essential rendering data for Blockly, including connection shapes, paths, and values. It defines standard connection shapes like `Notch` for next/previous connections and `PuzzleTab` for input/output. The `shapeFor` method allows dynamic shape definition based on connection checks. Additionally, it defines paths for block components, like jagged edges, and values for padding and minimum row heights, ensuring consistent rendering. Changing these values at runtime will cause rendering issues.\n"]]