UNPKG

@dp_unity/dpu-gis-viewer

Version:

DPU GIS Viewer version Beta

103 lines (102 loc) 3.37 kB
import "../styles/treeTileModel.css"; import { Viewer } from "cesium"; import { SceneManager } from "./sceneManager"; import { ContextMenu } from "./contextMenu"; import { InputDataPrimitive } from "./styleElement"; export declare class LayerModelNew { viewer: Viewer; containerId: string; IdGenneral: string; modal: any; treeLayerModels: any[]; contextMenu: ContextMenu | undefined; listKeyMapObject: Record<string, Partial<any>> | undefined; inputDataPrimitive: InputDataPrimitive | undefined; private _buttonsMapHide; private isOpenModal; private _sceneManager; token: string | undefined; private dialog; private _primitiveNames; private onClosedCallback; constructor(containerId: string, viewer: any, token: string, sceneManager: SceneManager, contextMenu: ContextMenu); private _list; private _config; setClosedCallback(callback: (status: boolean) => void): void; notifyCallBack(status: boolean): 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 containerFooter; renderFooter: () => HTMLElement; private clearContainer; listDisplayItem: any[]; handleDisplayItem: (startItem?: any) => void; handleRemoveDisplayItem: (parentItem: any) => void; private selectedItems; private lastSelectedItem; private selectedRow?; private createTreeItem; private _listItemMap; private createItemTag; private _getAllChildrenFlat; /** * Xử lý sự kiện chọn mục */ private handleItemSelection; /** * Chọn một mục duy nhất */ private selectSingleItem; /** * 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 _updateChildButtons; private _handleIsolate; private _handleIsolateForParent; getItemsTreeByParentId: (data: any, parentId: string) => any[]; private _computeGlobalMinMaxPoints; private computeBoundingBoxFromFeatureObjects; private _expandParent; handleHideElement: (objectOffs: any[]) => Promise<void>; private _calConditionForTree; private _normalizeSVGString; private _actionCheckCoditionContextMenu; private _actionShowAllBtn; private _getGuidList; private _findParents; handleRefreshList: () => void; storageTreeLayerModels: any[]; storageListDisplayItem: any[]; isFilterTree: boolean; primitiveNameFilters: string[]; private _filterTree; private _handleFilterTree; private _containerLoading; private _containerBodyDialog; fetchLoading: (isLoading: boolean) => void; }