@dp_unity/dpu-gis-viewer
Version:
DPU GIS Viewer version Beta
62 lines (61 loc) • 1.87 kB
TypeScript
import { ScreenSpaceEventHandler, Viewer } from "cesium";
import { DialogGeneral } from "../utils/Dialog/dialog";
import '../styles/extensionToolbar.css';
import { DataPropeties } from "./newDataProperties";
export interface IOptionExtension {
headerText?: string;
htmlElement?: HTMLElement;
width?: string;
height?: string;
minimizeDialog?: boolean;
isModal?: boolean;
minHeight?: number;
minWidth?: number;
top?: string;
left?: string;
bottom?: string;
right?: string;
zIndex?: number;
enableResize?: boolean;
allowDragging?: boolean;
firstLoad?: boolean;
isShow?: boolean;
button?: IOptionUIButton;
}
export interface IOptionUIButton {
htmlButton?: HTMLElement | string;
nameGroupBtn?: string;
toolTip?: {
anotation: string;
duration: number;
};
}
export declare class ExtentionToolBar {
private _viewer;
private _containerId;
handleMouse: ScreenSpaceEventHandler | undefined;
private _callback;
modal: any;
IdGenneral: string;
private _dialog;
private onClosedCallback;
private _optionExtension;
private _dataProperties;
constructor(containerId: string, viewer: Viewer, callback: (data: any) => void, option: IOptionExtension, dataProperties?: DataPropeties);
get dialog(): DialogGeneral | undefined;
triggerChange: (data: any) => void;
setClosedCallback(callback: (status: boolean) => void): void;
notifyCallBack(status: boolean): void;
createModalDataElement: () => void;
private handleCloseModal;
private _containerDiv;
renderBodyDialog: () => HTMLDivElement;
private clearContainer;
private _btnEx;
private _createBtn;
private _isActived;
handleActiveBtn: () => void;
private _isCreateDialog;
private _handleActionDialog;
private _handleCreateCLick;
}