แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > blockRendering > การเชื่อมต่อ > (เครื่องมือสร้าง)
blockRendering.Connection.(constructor)
สร้างอินสแตนซ์ใหม่ของคลาส Connection
ลายเซ็น:
constructor(constants: ConstantProvider, connectionModel: RenderedConnection);
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
ค่าคงที่ |
ConstantProvider |
ผู้ให้บริการค่าคงที่ในการแสดงผล |
connectionModel |
RenderedConnection |
ออบเจ็กต์การเชื่อมต่อบนบล็อกที่แสดง |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-12 UTC
[null,null,["อัปเดตล่าสุด 2024-09-12 UTC"],[[["The `blockRendering.Connection` constructor creates a new Connection instance, which visually represents a connection point on a block in the Blockly workspace."],["It takes a `ConstantProvider` for rendering settings and a `RenderedConnection` representing the block's connection data as input."]]],["The `Connection` class constructor takes two parameters: `constants` and `connectionModel`. `constants` is an instance of `ConstantProvider` and provides rendering constants. `connectionModel` represents the connection object on the block, and is of type `RenderedConnection`. This constructor creates a new instance of the `Connection` class. The `Connection` class is part of the `blockRendering` namespace.\n"]]