@dp_unity/dpu-gis-viewer
Version:
DPU GIS Viewer version Beta
90 lines (89 loc) • 3.77 kB
TypeScript
import { InputOptions, ToolbarOptions } from "src/interfaces/toolBar.interface";
import { Viewer } from "cesium";
import { IssuePoint } from "./issuePoint/issuePoint";
export declare class CreateToolbar {
private _containerIdView;
private _treeTileModel;
private _layerModel;
private _flyToLcation;
private _contextMenu;
private _mapWeather;
private _measure;
private _dataProperties;
private _labelPoint;
private _pointCesium;
private _flyCamera;
private _elevationProfile;
private _markupCanvas;
private _clippingPlane;
issuePoint: IssuePoint | undefined;
private _espChoose;
constructor(containerId: string, viewer: Viewer, inputOption: InputOptions, options?: ToolbarOptions);
checkOptionToolbar: (finalOptions: ToolbarOptions, buttonConfig: any[]) => void;
removeButtonsConfigById: (buttonConfig: any[], idsToRemove: string[]) => any[];
createButtonElement: (button: any) => HTMLDivElement;
handlePositionToolbar: (width: number, height: number, containerId: HTMLElement) => void;
/**
* Hàm acive button theo ID
* @param {string} idTarget ID của thẻ
* @param {boolean} active hành động
*/
private _activeBtn;
/**
* Hàm ẩn hiện element theo ID
* @param {string} idElement ID của thẻ
* @param {string} showElement true = show, hide = false
*/
private _showHideElementByID;
/**
* Hiển thị hoặc ẩn các phần tử HTML dựa trên danh sách ID.
*
* @param idElements - Mảng chứa các ID của các phần tử HTML cần hiển thị hoặc ẩn.
* @param showElements - Nếu là true, các phần tử sẽ được hiển thị; nếu là false, các phần tử sẽ bị ẩn.
*/
private _showHideElementsByID;
/**
* Hàm active button trong group
* @param {string[]} listBtn Danh sách ID các button
* @param {string} idActive ID button active
*/
private _activeBtnInGroup;
private _unActiveBtnInGroup;
private _activeBtnModel;
mapModel: (idElement: string) => void;
private _activeBtnLayerModel;
layerModel: (idElement: string) => void;
private _isShowModalMapWeather;
ToolBarActionMapWeather: (idElement: string) => void;
ToolBarActionDim: (idElement: string, containerId: string) => void;
ToolBarActionPoint: (idElement: string, containerId: string) => void;
private _isShowModalDataElement;
get isShowModalDataElement(): boolean;
set isShowModalDataElement(value: boolean);
ToolBarActionDataElement: (idElement: string) => void;
private _isShowModalLabelProperties;
get isShowModalLabelProperties(): boolean;
set isShowModalLabelProperties(value: boolean);
ToolBarActionLabelPropeties: (idElement: string) => void;
private _isShowModalElevationProfile;
ToolBarActionElevationProfile: (idElement: string, containerId: string) => void;
ToolBarActionClippingPlane: (idElement: string, containerId: string) => void;
private _firstLoadCamera;
private _showHidePath;
ToolBarActionFlyCamera: (idElement: string) => void;
private _isShowModalMarkup;
ToolBarActionNote: (idElement: string) => void;
private _isShowModalIssuePoint;
get isShowModalIssuePoint(): boolean;
set isShowModalIssuePoint(value: boolean);
ToolBarActionIssuePoint: (idElement: string) => void;
resetDialog: (idElement: string) => void;
private _tooltip;
private _currentTooltipTarget;
private _timeoutId;
private _IdGenneralTooltip;
handleMouseEnter: (event: MouseEvent, delay?: number) => void;
hideTooltip: () => void;
showTooltip: (target: HTMLElement) => void;
handleMouseLeave: (event: any) => void;
}