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 > Ngăn > drawOutline_
Phương thức blockRendering.Drawer.drawOutline_()
Tạo đường viền của khối. Đây là một đường dẫn liên tục.
Chữ ký:
protected drawOutline_(): void;
Trường hợp trả lại hàng:
void
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.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003edrawOutline_()\u003c/code\u003e method is responsible for creating the visual outline of a block in Blockly.\u003c/p\u003e\n"],["\u003cp\u003eIt generates a single, continuous path that defines the outer boundary of the block during rendering.\u003c/p\u003e\n"],["\u003cp\u003eThis method is a protected member of the \u003ccode\u003eblockRendering.Drawer\u003c/code\u003e class and returns void.\u003c/p\u003e\n"]]],["The `drawOutline_()` method, part of the `blockRendering.Drawer` class, is responsible for creating a block's outline. It generates a single, continuous path that defines the block's shape. The method has no parameters and returns `void`, indicating it performs an action rather than returning a value. This method is protected.\n"],null,["[blockly](./blockly.md) \\\u003e [blockRendering](./blockly.blockrendering_namespace.md) \\\u003e [Drawer](./blockly.blockrendering_namespace.drawer_class.md) \\\u003e [drawOutline_](./blockly.blockrendering_namespace.drawer_class.drawoutline__1_method.md)\n\nblockRendering.Drawer.drawOutline_() method\n-------------------------------------------\n\nCreate the outline of the block. This is a single continuous path.\n\n**Signature:** \n\n protected drawOutline_(): void;\n\n**Returns:**\n\nvoid"]]