@gis_victory/gismap 2.0.23 → 2.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.vue.d.ts +2 -0
- package/dist/adapters/index.d.ts +13 -0
- package/dist/adapters/mapbox/MapboxAdapter.d.ts +44 -0
- package/dist/adapters/types.d.ts +216 -0
- package/dist/api/BaseController.d.ts +6 -0
- package/dist/api/CommonController.d.ts +51 -0
- package/dist/components/MapCompass/index.vue.d.ts +2 -0
- package/dist/components/MapContainer/index.d.ts +2 -0
- package/dist/components/MapContainer/index.vue.d.ts +344 -0
- package/dist/components/MapLayer/components/CustomLayerDialog.vue.d.ts +22 -0
- package/dist/components/MapLayer/components/LayerTab.vue.d.ts +2179 -0
- package/dist/components/MapLayer/index.d.ts +2 -0
- package/dist/components/MapLayer/index.vue.d.ts +2287 -0
- package/dist/components/MapLegend/index.d.ts +2 -0
- package/dist/components/MapLegend/index.vue.d.ts +14 -0
- package/dist/components/MapMeasure/index.vue.d.ts +2 -0
- package/dist/components/MapPrint/MapPrintPanel.vue.d.ts +21 -0
- package/dist/components/MapPrint/MapPrintService.d.ts +155 -0
- package/dist/components/MapPrint/index.vue.d.ts +37 -0
- package/dist/components/MapQueryResult/index.vue.d.ts +29 -0
- package/dist/components/MapQueryResult/popup.vue.d.ts +16 -0
- package/dist/components/MapSearch/index.d.ts +2 -0
- package/dist/components/MapSearch/index.vue.d.ts +56 -0
- package/dist/components/MapSwitch/index.d.ts +2 -0
- package/dist/components/MapSwitch/index.vue.d.ts +37 -0
- package/dist/components/MapTools/index.d.ts +2 -0
- package/dist/components/MapTools/index.vue.d.ts +40 -0
- package/dist/components/MobileMapLayer/BaseLayerSwitch.vue.d.ts +16 -0
- package/dist/components/MobileMapLayer/index.vue.d.ts +9 -0
- package/dist/components/Widgets/PopupBar/BarItem.vue.d.ts +75 -0
- package/dist/components/Widgets/PopupBar/index.vue.d.ts +21 -0
- package/dist/composables/index.d.ts +13 -0
- package/dist/composables/useControl.d.ts +39 -0
- package/dist/composables/useDraw.d.ts +49 -0
- package/dist/composables/useLayer.d.ts +57 -0
- package/dist/composables/useMap.d.ts +111 -0
- package/dist/composables/useMarker.d.ts +55 -0
- package/dist/composables/useMeasure.d.ts +49 -0
- package/dist/composables/useSearch.d.ts +20 -0
- package/dist/config/api.config.d.ts +40 -0
- package/dist/config/gismap.config.d.ts +156 -0
- package/dist/core/ManagerRegistry.d.ts +75 -0
- package/dist/core/PluginSystem.d.ts +71 -0
- package/dist/core/StateStore.d.ts +96 -0
- package/dist/core/TypedEventEmitter.d.ts +67 -0
- package/dist/core/di/Container.d.ts +61 -0
- package/dist/core/di/decorators.d.ts +32 -0
- package/dist/core/di/index.d.ts +7 -0
- package/dist/core/di/types.d.ts +59 -0
- package/dist/core/event/EventBus.d.ts +101 -0
- package/dist/core/event/index.d.ts +5 -0
- package/dist/core/event/types.d.ts +215 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/state/Store.d.ts +145 -0
- package/dist/core/state/index.d.ts +6 -0
- package/dist/core/state/types.d.ts +134 -0
- package/dist/domain/index.d.ts +8 -0
- package/dist/domain/layer/LayerEntity.d.ts +90 -0
- package/dist/domain/layer/LayerService.d.ts +128 -0
- package/dist/domain/marker/MarkerEntity.d.ts +77 -0
- package/dist/domain/marker/MarkerService.d.ts +105 -0
- package/dist/domain/types.d.ts +66 -0
- package/dist/examples/DrawDemo.vue.d.ts +2 -0
- package/dist/examples/DrawPanel.vue.d.ts +2 -0
- package/dist/examples/Map.vue.d.ts +74 -0
- package/dist/examples/MapDemoExample.vue.d.ts +2 -0
- package/dist/examples/MeasureDemo.vue.d.ts +2 -0
- package/dist/examples/MeasurePanel.vue.d.ts +2 -0
- package/dist/examples/SplitScreenDrawDemo.vue.d.ts +7 -0
- package/dist/examples/SplitScreenDrawPanel.vue.d.ts +12 -0
- package/dist/examples/SplitScreenPanel.vue.d.ts +12 -0
- package/dist/examples/TdtControlPanel.vue.d.ts +2 -0
- package/dist/examples/TiandituDemo.vue.d.ts +2 -0
- package/dist/gismap.css +1 -1
- package/dist/index.es.js +1 -1
- package/dist/main.d.ts +0 -0
- package/dist/manager/IconManager.d.ts +18 -0
- package/dist/manager/LayerManager.d.ts +50 -0
- package/dist/manager/MaskManager.d.ts +52 -0
- package/dist/manager/PlaceholderManager.d.ts +28 -0
- package/dist/manager/PopupManager.d.ts +13 -0
- package/dist/manager/QuickSearchManager.d.ts +24 -0
- package/dist/manager/RadarManager.d.ts +46 -0
- package/dist/manager/SplitScreenDrawManager.d.ts +75 -0
- package/dist/manager/SplitScreenManager.d.ts +81 -0
- package/dist/manager/TDTManager.d.ts +33 -0
- package/dist/manager/TemplateManager.d.ts +52 -0
- package/dist/manager/TerrainManager.d.ts +39 -0
- package/dist/manager/layer/MarkerLayer.d.ts +89 -0
- package/dist/manager/layer/VectorLayer.d.ts +30 -0
- package/dist/manager/mapbox/DrawManager.d.ts +153 -0
- package/dist/manager/mapbox/MeasureManager.d.ts +158 -0
- package/dist/router/index.d.ts +2 -0
- package/dist/services/MapContext.d.ts +171 -0
- package/dist/services/index.d.ts +5 -0
- package/dist/types/IEvents.d.ts +178 -0
- package/dist/types/IGISMap.d.ts +234 -0
- package/dist/types/IManager.d.ts +113 -0
- package/dist/types/IMapSearch.d.ts +28 -0
- package/dist/types/IState.d.ts +259 -0
- package/dist/types/ITemplate.d.ts +35 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/utils/hooks/layout.d.ts +4 -0
- package/dist/utils/http/axios.d.ts +3 -0
- package/dist/utils/http/config.d.ts +3 -0
- package/dist/utils/http/request.d.ts +46 -0
- package/dist/utils/index.d.ts +49 -0
- package/package.json +1 -1
- package/dist/index.umd.js +0 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { RequestMethods, RequestOption, ResponseDataType } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* 核心函数,可通过它处理一切请求数据,并做横向扩展
|
|
5
|
+
* @param url 请求地址
|
|
6
|
+
* @param params 请求参数
|
|
7
|
+
* @param method 请求方法,只接受"get" | "delete" | "head" | "post" | "put" | "patch"
|
|
8
|
+
* @param requestOption 请求配置(针对当前本次请求)
|
|
9
|
+
* @param axiosOption axios配置(针对当前本次请求)
|
|
10
|
+
*/
|
|
11
|
+
export declare function commonRequest<D>(url: string, params: any, method: RequestMethods, requestOption?: RequestOption, axiosOption?: AxiosRequestConfig): Promise<ResponseDataType<D>>;
|
|
12
|
+
/***
|
|
13
|
+
* @param url 请求地址
|
|
14
|
+
* @param params 请求参数
|
|
15
|
+
* @param options 请求设置(showMask-是否显示Loading层,默认为true;showError-是否显示错误信息,默认为true;throttleFlag-是否开户节流,默认为false;throttleTimeout-节流时效,默认为50毫秒)
|
|
16
|
+
* @param axiosOption
|
|
17
|
+
*/
|
|
18
|
+
export declare const get: <D>(url: string, params?: any, options?: RequestOption, axiosOption?: AxiosRequestConfig) => Promise<ResponseDataType<D>>;
|
|
19
|
+
/***
|
|
20
|
+
* @param url 请求地址
|
|
21
|
+
* @param params 请求参数
|
|
22
|
+
* @param options 请求设置(showMask-是否显示Loading层,默认为true;showError-是否显示错误信息,默认为true;throttleFlag-是否开户节流,默认为false;throttleTimeout-节流时效,默认为50毫秒)
|
|
23
|
+
* @param axiosOption
|
|
24
|
+
*/
|
|
25
|
+
export declare const post: <D>(url: string, params: any, options?: RequestOption, axiosOption?: AxiosRequestConfig) => Promise<ResponseDataType<D>>;
|
|
26
|
+
/***
|
|
27
|
+
* @param url 请求地址
|
|
28
|
+
* @param params 请求参数
|
|
29
|
+
* @param options 请求设置(showMask-是否显示Loading层,默认为true;showError-是否显示错误信息,默认为true;throttleFlag-是否开户节流,默认为false;throttleTimeout-节流时效,默认为50毫秒)
|
|
30
|
+
* @param axiosOption
|
|
31
|
+
*/
|
|
32
|
+
export declare const put: <D>(url: string, params: any, options?: RequestOption, axiosOption?: AxiosRequestConfig) => Promise<ResponseDataType<D>>;
|
|
33
|
+
/***
|
|
34
|
+
* @param url 请求地址
|
|
35
|
+
* @param params 请求参数
|
|
36
|
+
* @param options 请求设置(showMask-是否显示Loading层,默认为true;showError-是否显示错误信息,默认为true;throttleFlag-是否开户节流,默认为false;throttleTimeout-节流时效,默认为50毫秒)
|
|
37
|
+
* @param axiosOption
|
|
38
|
+
*/
|
|
39
|
+
export declare const patch: <D>(url: string, params: any, options?: RequestOption, axiosOption?: AxiosRequestConfig) => Promise<ResponseDataType<D>>;
|
|
40
|
+
/***
|
|
41
|
+
* @param url 请求地址
|
|
42
|
+
* @param params 请求参数
|
|
43
|
+
* @param options 请求设置(showMask-是否显示Loading层,默认为true;showError-是否显示错误信息,默认为true;throttleFlag-是否开户节流,默认为false;throttleTimeout-节流时效,默认为50毫秒)
|
|
44
|
+
* @param axiosOption
|
|
45
|
+
*/
|
|
46
|
+
export declare const del: <D>(url: string, params: any, options?: RequestOption, axiosOption?: AxiosRequestConfig) => Promise<ResponseDataType<D>>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { TemplateField } from '../types/ITemplate';
|
|
2
|
+
export declare function encrypt(value: string): string | null;
|
|
3
|
+
/**
|
|
4
|
+
* 动态模板渲染引擎
|
|
5
|
+
* @param {string} template - HTML模板字符串
|
|
6
|
+
* @param {object} data - 包含替换数据的对象
|
|
7
|
+
* @returns {string} 渲染后的HTML字符串
|
|
8
|
+
*/
|
|
9
|
+
export declare function renderTemplate(template: string, data: any): string;
|
|
10
|
+
/**
|
|
11
|
+
* 通过id返回从根节点到指定节点的路径
|
|
12
|
+
* @param {Array} treeRoot 树根节点数组
|
|
13
|
+
* @param {*} id 要查询的节点的id
|
|
14
|
+
* @param {*} idKey 主键字段名
|
|
15
|
+
* @param {*} childKey 子节点字段名
|
|
16
|
+
*/
|
|
17
|
+
export declare function findTreeNodeObjectPath(treeRoot: any, id: string | number | undefined, idKey?: string, childKey?: string): any[];
|
|
18
|
+
/**
|
|
19
|
+
* 通过id返回从根节点到指定节点的路径
|
|
20
|
+
* @param treeRoot `
|
|
21
|
+
* @param id
|
|
22
|
+
* @param idKey
|
|
23
|
+
* @param childKey
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
export declare function findTreeNodePath<D>(treeRoot: Array<D>, id: string | number | undefined, idKey?: string, childKey?: string): Array<string | number>;
|
|
27
|
+
/**
|
|
28
|
+
* 通过id从树中查找节点
|
|
29
|
+
* @param {Array} treeRoot 根节点数组
|
|
30
|
+
* @param {*} id 要查找的节点的id
|
|
31
|
+
* @param {*} idKey 主键字段名
|
|
32
|
+
* @param {*} childKey 子节点字段名
|
|
33
|
+
*/
|
|
34
|
+
export declare function findTreeNode(treeRoot: any, id: string, idKey?: string, childKey?: string): any;
|
|
35
|
+
export declare function traverseTree(root: any, callback: (node: any) => void, childKey?: string): void;
|
|
36
|
+
export declare function getToken(): string | null;
|
|
37
|
+
export declare function setToken(token: string | null | undefined): void;
|
|
38
|
+
export declare function generateUUID(len?: number): string;
|
|
39
|
+
/**
|
|
40
|
+
* 字段类型
|
|
41
|
+
*/
|
|
42
|
+
export type FieldType = 'text' | 'number' | 'date' | 'image' | 'boolean' | 'link';
|
|
43
|
+
/**
|
|
44
|
+
* 格式化字段值
|
|
45
|
+
* @param value 字段值
|
|
46
|
+
* @param options 格式化选项
|
|
47
|
+
* @returns 格式化后的值
|
|
48
|
+
*/
|
|
49
|
+
export declare function formatFieldValue(value: any, options: TemplateField): any;
|