UNPKG

@dp_unity/dpu-gis-viewer

Version:

DPU GIS Viewer version Beta

85 lines (84 loc) 2.69 kB
import "../styles/treeTileModel.css"; import { Viewer } from "cesium"; import { SceneManager } from "./sceneManager"; import { ContextMenu } from "./contextMenu"; export declare class LayerModel { viewer: Viewer; containerId: string; IdGenneral: string; modal: any; treeLayerModels: any[]; contextMenu: ContextMenu | undefined; listKeyMapObject: Record<string, Partial<any>> | undefined; private _buttonsMap; private _buttonsMapHide; private isOpenModal; private _sceneManager; private _token; private dialog; private _primitiveNames; private selectedItems; private onClosedCallback; constructor(containerId: string, viewer: any, token: string, sceneManager: SceneManager, contextMenu: ContextMenu); setClosedCallback(callback: (status: boolean) => void): void; notifyCallBack(status: boolean): void; _onScroll(): void; /** * Hàm khởi tạo popup modal */ createModalTreeLayerModel: () => void; showHideModalTreeLayerModel: (show: boolean) => void; private handleCloseModal; private containerUl; private _idTreeView; containerDialog: HTMLElement | undefined; renderTreeLayerModel: () => HTMLElement; private clearContainer; private createTreeItem; private _getAllChildrenFlat; /** * Xử lý sự kiện chọn mục */ private handleItemSelection; private _reverseTree; handleItemDBSelection(event: MouseEvent, li: HTMLElement, currentItem: any): void; /** * Chọn một mục duy nhất */ private selectSingleItem; private initKeyboardEvents; /** * Xử lý Ctrl+A để chọn tất cả */ private handleSelectAll; /** * Tạo span chứa caret và màu */ private createCaretSpan; /** * Tạo container cho mục con */ private createNestedContainer; private _actionArrow; private _handleCallApiTree; /** * Tạo container cho các nút chức năng (ví dụ: tìm kiếm, xóa, chỉnh sửa) */ private createButtonContainer; private _handleZoomTo; private _handleDisparityCoord; private _handleToggleVisible; private _handleShowOff; private _handleShowOffForParent; handleShowAllElement: () => void; private _handleIsolate; private _handleIsolateForParent; private _computeGlobalMinMaxPoints; private computeBoundingBoxFromFeatureObjects; handleHideElement: (objectOffs: any[]) => Promise<void>; private _calConditionForTree; private _normalizeSVGString; private _actionCheckCoditionContextMenu; private _actionShowAllBtn; private _getGuidList; }