Bản khảo sát nghiên cứu: Cho chúng tôi biết trải nghiệm của bạn khi sử dụng Blockly
Bắt đầu khảo sát
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
chặn > blockRendering > ConstantProvider > shapeFor
phương thức blockRendering.ConstantProvider.shapeFor()
Nhận một đối tượng có thông tin về hình dạng và kích thước của kết nối dựa trên loại kết nối.
Chữ ký:
shapeFor(connection: RenderedConnection): Shape;
Tham số
Thông số |
Loại |
Mô tả |
kết nối |
RenderedConnection |
Kết nối để tìm một đối tượng hình dạng cho |
Trường hợp trả lại hàng:
Hình dạng
Đối tượng hình dạng cho kết nối.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-08-29 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-08-29 UTC."],[[["The `blockRendering.ConstantProvider.shapeFor()` method retrieves the shape and size information for a given connection on a block."],["This method accepts a `RenderedConnection` object as input, representing the connection in question."],["It returns a `Shape` object containing the relevant shape and sizing details for the specified connection."]]],["The `shapeFor()` method, part of `blockRendering.ConstantProvider`, retrieves shape and sizing data for a given connection. It accepts a `RenderedConnection` as input and returns a `Shape` object. This `Shape` object contains details about the connection's appearance, determined by its type. The method's primary action is mapping a connection to its corresponding visual representation, facilitating block rendering.\n"]]