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 > geras > Ngăn
Lớp geras.Drawer
Một đối tượng vẽ một khối dựa trên thông tin kết xuất đã cho, được tuỳ chỉnh cho trình kết xuất geras.
Chữ ký:
export declare class Drawer extends BaseDrawer
Mở rộng: BaseDrawer
Hàm khởi tạo
Thuộc tính
Phương thức
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: 2025-07-25 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: 2025-07-25 UTC."],[],["The `Drawer` class, part of the `geras` renderer, is designed to draw blocks based on provided rendering information. It extends the `BaseDrawer` and includes a constructor to create instances. Key actions include drawing the block using the `draw()` method, and drawing specific block elements such as the top, bottom, left side, jagged edge, inline, statement, and value inputs via methods like `drawTop_()`, `drawBottom_()`, `drawInlineInput_()`, `drawStatementInput_()`, etc. It also positions connections with similar `position` methods. It holds properties for `constants_` and a `highlighter_`.\n"]]