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
chặn > HorizontalFlyout > getClientRect
Phương thức HorizontalFlyout.getClientCut()
Trả về hình chữ nhật giới hạn của vùng mục tiêu kéo, tính bằng đơn vị pixel tương ứng với khung nhìn.
Chữ ký:
getClientRect(): Rect | null;
Trường hợp trả lại hàng:
ct | rỗng
Hộp giới hạn của thành phần. Rỗng nếu vùng đích kéo nên bỏ qua.
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-22 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-08-22 UTC."],[[["The `HorizontalFlyout.getClientRect()` method provides the coordinates and dimensions of the drag target area within the flyout."],["It returns a `Rect` object containing this information, allowing for precise positioning and interaction within the viewport, or null if the area should not be interacted with."]]],["The `getClientRect()` method, part of the `HorizontalFlyout` class, retrieves the bounding rectangle of a drag target area. This rectangle is expressed in pixel units relative to the viewport. The method's signature is `getClientRect(): Rect | null;`. It returns a `Rect` object, representing the component's bounding box, or `null` if the drag target area should be disregarded.\n"]]