123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555 |
- declare var AppX;
- declare var require;
- declare var Cookies
- declare var Secret_Key;
- declare var hex_sha1;
- declare var sm3;
- declare var L;
- interface AppX {
-
- root?: string,
-
- appConfig: AppConfig,
-
- runtimeConfig?: RuntimeConfig,
-
- dojoConfig?: DojoConfig,
-
- viewerInit?: any
- }
- interface AppConfig {
- debug?: boolean,
- online?: boolean,
- mainContainer?: string,
- activeSystemId?: string,
- activeSystemModel?: string,
- loadHomePage?: boolean,
- initExtent?: Extent,
- excavationRegion?: any,
- excavationDepth?: number,
- transparentLayers?: any,
- wkid?: number,
- hasHomePage?: boolean,
- apiRoot?: string,
- epcSys?: string,
- currentPrj?: number,
- lastSessionTime?: any,
- userToken?: string,
- deptName?: string,
- realName?: string,
- collisionDetection?: boolean,
- handlers?: Object,
- infowindow?: any,
- imageopacity?: any,
- downDepth?: number,
- upDepth?: number,
- userSkyBox?: any,
- userlevel?: any,
- initPosition?: {
- position?: any,
- direction?: any,
- up?: any
- },
- copyright?: {
- company?: string,
- url?: string,
- title?: string,
- version?: string,
- helpUrl?: string,
- aboutUrl?: string
- },
- subSystem?: Array<{
- id?: string,
- type?: string,
- title?: string,
- label?: string,
- icon?: string,
- initShow?: boolean
- }>,
- toolBarWidgets?: Array<{
- id?: string,
- sysId?: string,
- title?: string,
- label?: string,
- icon1?: string,
- icon2?: string
- }>,
-
-
-
- loadOnStartWidgets?: Array<{
- subsys?: string,
- super?: boolean,
- name?: string,
- discription?: string,
- url?: string,
- main?: string,
- configPath?: string,
- templatePath?: string,
- depend?: string
- }>,
-
-
-
- homePageStartWidgets?: Array<{
- subsys?: string,
- super?: boolean,
- name?: string,
- discription?: string,
- url?: string,
- main?: string,
- configPath?: string,
- templatePath?: string,
- depend?: string
- }>,
-
-
-
- menuBarWidgets: Array<{
- id: string,
- label: string,
- icon?: string,
- data: Array<{
- id: string,
- super: boolean,
- label: string,
- widget: string,
- main?: string,
- icon: string,
- inPanel: boolean,
- subsys: string,
- autorun: string
- }>
- }>,
- gisResource: {
- terrain: GISItem,
- img: GISItem,
- tdtimgano: GISItem,
- tdtimg: GISItem,
- scenes: GISItem,
- maps: GISItem,
- tiplayers: GISItem,
- poi: GISItem,
- pipe: GISItem,
- geometry: GISItem,
- pathanalysis: GISItem
- }
- }
- interface GISItem {
- name: string,
- type: string,
- config: Array<GISItemConfig>
- }
- interface GISItemConfig {
- name: string,
- key: string,
- url: string
- }
- interface RuntimeConfig {
-
- activeView?: any,
-
- sceneView?: Cesium.Viewer,
-
- mapView?: any,
- overViewMap?: any,
-
- toast?: WidgetToast,
-
- popup?: WidgetPopup,
-
- dataPopup?: WidgetDataPopup,
-
- sideMenu?: WidgetSideMenu,
- dataPanel?: WidgetDataPanel,
-
- loadMask?: WidgetLoadMask,
-
- loadWait?: WidgetLoadWait,
-
- fieldConfig?: WidgetFieldConfig,
- unit?: string,
- SwitchSystem?: WidgetSwitchSystem,
-
- header?: WidgetHeader,
-
- underGroundDistance: number,
-
- terrain: any,
-
- manageMarking: WidgetManageMarking,
-
- autoRunAdaptor: WidgetAutoRunAdaptor,
-
- runTimeTool: any,
-
- toolbar: any
- }
- interface Extent {
- xmin?: number,
- ymin?: number,
- xmax?: number,
- ymax?: number
- }
- interface DojoConfig {
- packages?: Array<{
- name?: string,
- location?: string,
- main?: string
- }>
- }
- interface WidgetFieldConfig {
-
- GetLayerFields(layername: string): Array<LayerFieldInfo>,
-
- Reload()
- }
- interface LayerFieldInfo {
- name?: string,
- alias?: string,
- show_index?: number
- }
- interface WidgetDataPanel {
- Fold(),
- fold(),
- Unfold(),
- unfold(),
- Close(),
- close(),
- Show(souceData: any),
- show(souceData: any),
- ShowPage(sourceData: any),
- showPage(sourceData: any)
- }
- interface WidgetLoadMask {
-
- show(message?: string),
-
- hide(),
-
- bindOnClose(func)
- }
- interface WidgetLoadWait {
-
- show(message?: string, dom?: any),
-
- hide()
- }
- interface WidgetToast {
-
- show(message: string, timeout?: number)
- }
- interface WidgetPopup {
-
- show(tit?: string, con?: string, onlywithtitle?: boolean, closeCallbackFunc?: Function);
-
- setSize(width?: number, height?: number);
-
- setSizeWithoutBtns(width?: number, height?: number);
-
- close();
- domObj: any;
- }
- interface WidgetHeader {
- }
- interface WidgetSideMenu {
- panels: Array<any>;
-
- reLoadSideMenu();
- loadWidgets(widgets: any[]): void;
- }
- interface WidgetDataPopup {
-
- show(tit?: string, con?: string, onlywithtitle?: boolean);
-
- setSize(width?: number, height?: number);
-
- close();
- }
- interface WidgetPhotoWall {
- Show(message?: string)
- }
- interface WidgetSwitchSystem {
- Show(),
- Hide(),
- initCurrentModule()
- }
- interface WidgetManageMarking {
- loadMarkToList(),
- loadMarkToScene()
- }
- interface WidgetAutoRunAdaptor {
-
- addOperateEvents(name, func, that),
-
- removeOperateEvents(),
-
- deleteOperateEvents(name),
-
- excavateDem(name, viewer),
-
- removeExcavateDem(name, isall, viewer),
- setTransparentGround(viewer, alpha),
-
- transparentGround(viewer),
-
- transparentDefaultGround(viewer),
-
- locationPipe(ly, ids),
-
- clearLocationPipe(),
-
- hasOperateEvents(name): boolean,
-
- funcs: Object
- }
|