chặn > InsertionMarkerPreviewer
Lớp InsertMarkerPreviewer
Chữ ký:
export declare class InsertionMarkerPreviewer implements IConnectionPreviewer
Triển khai: IConnectionPreviewer
Hàm khởi tạo
| Hàm dựng | Đối tượng sửa đổi | Mô tả |
|---|---|---|
| (hàm khởi tạo)(draggedBlock) | Tạo một thực thể mới của lớp InsertionMarkerPreviewer |
Phương thức
| Phương thức | Đối tượng sửa đổi | Mô tả |
|---|---|---|
| dispose() | Loại bỏ mọi tệp tham chiếu do trình xem trước kết nối này lưu giữ. | |
| hidePreview() | Ẩn mọi bản xem trước đang hiển thị. | |
| previewConnection(draggedConn, staticConn) | Hiển thị bản xem trước kết nối trong đó kéoCon kết nối với staticCon và không có khối nào bị huỷ liên kết. | |
| previewReplacement(draggedConn, staticConn, replacedBlock) | Hiển thị bản xem trước kết nối trong đó kéoCon kết nối với staticCon, thay thế preventBlock (hiện được kết nối với staticCon). |