zhihao-ui 1.2.20 → 1.2.22
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/es/{BaseInfo-Dr298ctb.js → BaseInfo-DCB7xgRw.js} +1 -1
- package/dist/es/{Button-CYr52jII.js → Button-Va8xfPJd.js} +2 -2
- package/dist/es/{DatePicker-vGQGWrmB.js → DatePicker-BrD1XS6-.js} +2 -2
- package/dist/es/DetailHeader-B9ttfBlv.js +59 -0
- package/dist/es/{DetailSubTitle-Cgs5HrKC.js → DetailSubTitle-BgbefcLD.js} +2 -2
- package/dist/es/{Dialog-stUaKQ4m.js → Dialog-CnqJMaPI.js} +31 -34
- package/dist/es/DiyDataTable-DHGMMFO9.js +315 -0
- package/dist/es/{EditInfoPair-DwwAGFc6.js → EditInfoPair-XiseN2F2.js} +3 -3
- package/dist/es/{FileWrapper-brjp8Thj.js → FileWrapper-CAwHicjK.js} +4 -4
- package/dist/es/{Grid-CIMCXeIw.js → Grid-CshEwvAH.js} +1 -1
- package/dist/es/{InfoPair-DZL6Vegw.js → InfoPair-DhVT8u-f.js} +3 -3
- package/dist/es/{Input-C4aIqSby.js → Input-CeiPnMtt.js} +3 -3
- package/dist/es/{Loading-DhEOgvVz.js → Loading-bv2DpqBO.js} +2 -2
- package/dist/es/Map-DhceUygQ.js +2020 -0
- package/dist/es/{MessageBox-d6upGeyX.js → MessageBox-2Vpy3Mva.js} +2 -2
- package/dist/es/{MoneyInput-DLMJRug1.js → MoneyInput-Deg1aj66.js} +7 -7
- package/dist/es/{PageHeadPanel-CldjeRYl.js → PageHeadPanel-BWjWkx8n.js} +2 -2
- package/dist/es/{Table-DwDzhuHY.js → Table-KSl_JT2q.js} +94 -94
- package/dist/es/{ToolTips-CLcRoFO4.js → ToolTips-Bw2lHQxC.js} +3 -3
- package/dist/es/index.js +21 -21
- package/dist/es/{utils-CbI5IWJJ.js → utils-D-zYpBSZ.js} +3 -3
- package/dist/es/{vendor-AIl6iHcE.js → vendor-gTOtiVzA.js} +6895 -6495
- package/dist/index.css +1 -1
- package/dist/types/components/DetailHeader/index.d.ts +9 -0
- package/dist/types/components/DetailHeader/types.d.ts +1 -0
- package/dist/types/components/Dialog/Dialog.vue.d.ts +2 -4
- package/dist/types/components/Dialog/index.d.ts +5 -10
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +8 -1
- package/dist/types/components/DiyDataTable/index.d.ts +12 -0
- package/dist/types/components/DiyDataTable/type.d.ts +3 -1
- package/dist/types/components/Map/Map.vue.d.ts +60 -5
- package/dist/types/components/Map/components/scaleLine.vue.d.ts +3 -1
- package/dist/types/components/Map/components/toolPanel.vue.d.ts +4 -0
- package/dist/types/components/Map/config.d.ts +2 -0
- package/dist/types/components/Map/index.d.ts +174 -9
- package/dist/types/components/Map/interface/entity/render.d.ts +12 -0
- package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +21 -3
- package/dist/types/components/Map/interface/entity/shipMapData.d.ts +2 -1
- package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +2 -1
- package/dist/types/components/Map/render/canvasRender/geometry.d.ts +3 -0
- package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +3 -1
- package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +3 -1
- package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +5 -1
- package/dist/types/components/Map/render/drawPolygon.d.ts +4 -0
- package/dist/types/components/Map/render/renderDashboard.d.ts +3 -0
- package/dist/types/components/Map/render/renderMarker.d.ts +4 -3
- package/dist/types/components/Map/render/renderShip.d.ts +5 -2
- package/dist/types/components/Map/render/renderTrack.d.ts +3 -4
- package/dist/types/components/Map/render/renderTruck.d.ts +3 -1
- package/dist/types/components/Map/utils/common.d.ts +4 -8
- package/dist/types/components/Map/utils/format.d.ts +6 -14
- package/dist/types/components/Map/utils/store.d.ts +7 -1
- package/dist/types/components/Map/utils/transform.d.ts +13 -5
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +23 -23
- package/package.json +1 -1
- package/dist/es/DetailHeader-oqCdup4q.js +0 -58
- package/dist/es/DiyDataTable-A1P5k0Eh.js +0 -304
- package/dist/es/Map-DGFoAMyH.js +0 -1803
|
@@ -13,6 +13,9 @@ export declare const ZhDetailHeader: {
|
|
|
13
13
|
stateMeta: {
|
|
14
14
|
type: import('vue').PropType<any>;
|
|
15
15
|
};
|
|
16
|
+
stateDesc: {
|
|
17
|
+
type: import('vue').PropType<string>;
|
|
18
|
+
};
|
|
16
19
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
17
20
|
P: {};
|
|
18
21
|
B: {};
|
|
@@ -34,6 +37,9 @@ export declare const ZhDetailHeader: {
|
|
|
34
37
|
stateMeta: {
|
|
35
38
|
type: import('vue').PropType<any>;
|
|
36
39
|
};
|
|
40
|
+
stateDesc: {
|
|
41
|
+
type: import('vue').PropType<string>;
|
|
42
|
+
};
|
|
37
43
|
}>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
38
44
|
__isFragment?: never;
|
|
39
45
|
__isTeleport?: never;
|
|
@@ -52,6 +58,9 @@ export declare const ZhDetailHeader: {
|
|
|
52
58
|
stateMeta: {
|
|
53
59
|
type: import('vue').PropType<any>;
|
|
54
60
|
};
|
|
61
|
+
stateDesc: {
|
|
62
|
+
type: import('vue').PropType<string>;
|
|
63
|
+
};
|
|
55
64
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
56
65
|
$slots: {
|
|
57
66
|
menu?(_: {}): any;
|
|
@@ -101,8 +101,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
101
101
|
default: boolean;
|
|
102
102
|
};
|
|
103
103
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
104
|
-
|
|
105
|
-
confirm: () => void;
|
|
104
|
+
submit: () => void;
|
|
106
105
|
close: () => void;
|
|
107
106
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
108
107
|
modelValue: import('vue').PropType<boolean>;
|
|
@@ -202,8 +201,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
202
201
|
default: boolean;
|
|
203
202
|
};
|
|
204
203
|
}>> & Readonly<{
|
|
205
|
-
|
|
206
|
-
onConfirm?: (() => any) | undefined;
|
|
204
|
+
onSubmit?: (() => any) | undefined;
|
|
207
205
|
onClose?: (() => any) | undefined;
|
|
208
206
|
}>, {
|
|
209
207
|
size: "small" | "middle" | "large" | "extraLarge";
|
|
@@ -97,12 +97,10 @@ export declare const ZhDialog: {
|
|
|
97
97
|
default: boolean;
|
|
98
98
|
};
|
|
99
99
|
}>> & Readonly<{
|
|
100
|
-
|
|
101
|
-
onConfirm?: (() => any) | undefined;
|
|
100
|
+
onSubmit?: (() => any) | undefined;
|
|
102
101
|
onClose?: (() => any) | undefined;
|
|
103
102
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
104
|
-
|
|
105
|
-
confirm: () => void;
|
|
103
|
+
submit: () => void;
|
|
106
104
|
close: () => void;
|
|
107
105
|
}, import('vue').PublicProps, {
|
|
108
106
|
size: "small" | "middle" | "large" | "extraLarge";
|
|
@@ -215,8 +213,7 @@ export declare const ZhDialog: {
|
|
|
215
213
|
default: boolean;
|
|
216
214
|
};
|
|
217
215
|
}>> & Readonly<{
|
|
218
|
-
|
|
219
|
-
onConfirm?: (() => any) | undefined;
|
|
216
|
+
onSubmit?: (() => any) | undefined;
|
|
220
217
|
onClose?: (() => any) | undefined;
|
|
221
218
|
}>, {}, {}, {}, {}, {
|
|
222
219
|
size: "small" | "middle" | "large" | "extraLarge";
|
|
@@ -326,12 +323,10 @@ export declare const ZhDialog: {
|
|
|
326
323
|
default: boolean;
|
|
327
324
|
};
|
|
328
325
|
}>> & Readonly<{
|
|
329
|
-
|
|
330
|
-
onConfirm?: (() => any) | undefined;
|
|
326
|
+
onSubmit?: (() => any) | undefined;
|
|
331
327
|
onClose?: (() => any) | undefined;
|
|
332
328
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
333
|
-
|
|
334
|
-
confirm: () => void;
|
|
329
|
+
submit: () => void;
|
|
335
330
|
close: () => void;
|
|
336
331
|
}, string, {
|
|
337
332
|
size: "small" | "middle" | "large" | "extraLarge";
|
|
@@ -28,6 +28,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
28
28
|
type: import('vue').PropType<number>;
|
|
29
29
|
default: number;
|
|
30
30
|
};
|
|
31
|
+
beforeAddRow: {
|
|
32
|
+
type: import('vue').PropType<(data: DiyDataType[]) => DiyDataType>;
|
|
33
|
+
};
|
|
31
34
|
}>, {
|
|
32
35
|
/** 初始化数据 */
|
|
33
36
|
initData: (rawdata: DiyDataType[], rawColumns: DiyDataTableColumnItem[]) => void;
|
|
@@ -50,6 +53,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
50
53
|
type?: DIY_DATA_TYPE | undefined;
|
|
51
54
|
completeList?: string[] | undefined;
|
|
52
55
|
formatter?: ((value: string | DiyDataType) => string) | undefined;
|
|
56
|
+
showFormatter?: ((value: string) => string) | undefined;
|
|
53
57
|
parser?: ((value: string) => string) | undefined;
|
|
54
58
|
varidate?: ((value: string | number | undefined) => true | string) | undefined;
|
|
55
59
|
fixed?: ("left" | "right") | undefined;
|
|
@@ -58,7 +62,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
58
62
|
} | undefined>;
|
|
59
63
|
/** 更新列配置数据 */
|
|
60
64
|
updateColumn: (index: number, column: DiyDataTableColumnItem) => void;
|
|
61
|
-
/**
|
|
65
|
+
/** 重置默认列配置数据 */
|
|
62
66
|
resetColumns: (cols: DiyDataTableColumnItem[]) => void;
|
|
63
67
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
64
68
|
rawData: {
|
|
@@ -81,6 +85,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
81
85
|
type: import('vue').PropType<number>;
|
|
82
86
|
default: number;
|
|
83
87
|
};
|
|
88
|
+
beforeAddRow: {
|
|
89
|
+
type: import('vue').PropType<(data: DiyDataType[]) => DiyDataType>;
|
|
90
|
+
};
|
|
84
91
|
}>> & Readonly<{}>, {
|
|
85
92
|
isEdit: boolean;
|
|
86
93
|
maxRowLength: number;
|
|
@@ -20,6 +20,9 @@ export declare const ZhDiyDataTable: {
|
|
|
20
20
|
type: import('vue').PropType<number>;
|
|
21
21
|
default: number;
|
|
22
22
|
};
|
|
23
|
+
beforeAddRow: {
|
|
24
|
+
type: import('vue').PropType<(data: import('./type').DiyDataType[]) => import('./type').DiyDataType>;
|
|
25
|
+
};
|
|
23
26
|
}>> & Readonly<{}>, {
|
|
24
27
|
initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
|
|
25
28
|
getData: () => Promise<{
|
|
@@ -40,6 +43,7 @@ export declare const ZhDiyDataTable: {
|
|
|
40
43
|
type?: import('./type').DIY_DATA_TYPE | undefined;
|
|
41
44
|
completeList?: string[] | undefined;
|
|
42
45
|
formatter?: ((value: string | import('./type').DiyDataType) => string) | undefined;
|
|
46
|
+
showFormatter?: ((value: string) => string) | undefined;
|
|
43
47
|
parser?: ((value: string) => string) | undefined;
|
|
44
48
|
varidate?: ((value: string | number | undefined) => true | string) | undefined;
|
|
45
49
|
fixed?: ("left" | "right") | undefined;
|
|
@@ -81,6 +85,9 @@ export declare const ZhDiyDataTable: {
|
|
|
81
85
|
type: import('vue').PropType<number>;
|
|
82
86
|
default: number;
|
|
83
87
|
};
|
|
88
|
+
beforeAddRow: {
|
|
89
|
+
type: import('vue').PropType<(data: import('./type').DiyDataType[]) => import('./type').DiyDataType>;
|
|
90
|
+
};
|
|
84
91
|
}>> & Readonly<{}>, {
|
|
85
92
|
initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
|
|
86
93
|
getData: () => Promise<{
|
|
@@ -101,6 +108,7 @@ export declare const ZhDiyDataTable: {
|
|
|
101
108
|
type?: import('./type').DIY_DATA_TYPE | undefined;
|
|
102
109
|
completeList?: string[] | undefined;
|
|
103
110
|
formatter?: ((value: string | import('./type').DiyDataType) => string) | undefined;
|
|
111
|
+
showFormatter?: ((value: string) => string) | undefined;
|
|
104
112
|
parser?: ((value: string) => string) | undefined;
|
|
105
113
|
varidate?: ((value: string | number | undefined) => true | string) | undefined;
|
|
106
114
|
fixed?: ("left" | "right") | undefined;
|
|
@@ -139,6 +147,9 @@ export declare const ZhDiyDataTable: {
|
|
|
139
147
|
type: import('vue').PropType<number>;
|
|
140
148
|
default: number;
|
|
141
149
|
};
|
|
150
|
+
beforeAddRow: {
|
|
151
|
+
type: import('vue').PropType<(data: import('./type').DiyDataType[]) => import('./type').DiyDataType>;
|
|
152
|
+
};
|
|
142
153
|
}>> & Readonly<{}>, {
|
|
143
154
|
initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
|
|
144
155
|
getData: () => Promise<{
|
|
@@ -159,6 +170,7 @@ export declare const ZhDiyDataTable: {
|
|
|
159
170
|
type?: import('./type').DIY_DATA_TYPE | undefined;
|
|
160
171
|
completeList?: string[] | undefined;
|
|
161
172
|
formatter?: ((value: string | import('./type').DiyDataType) => string) | undefined;
|
|
173
|
+
showFormatter?: ((value: string) => string) | undefined;
|
|
162
174
|
parser?: ((value: string) => string) | undefined;
|
|
163
175
|
varidate?: ((value: string | number | undefined) => true | string) | undefined;
|
|
164
176
|
fixed?: ("left" | "right") | undefined;
|
|
@@ -41,12 +41,14 @@ export type DiyDataTableColumnItem = {
|
|
|
41
41
|
completeList?: string[];
|
|
42
42
|
/** 格式化input值,type为FORMAT:格式化数据 */
|
|
43
43
|
formatter?: (value: string | DiyDataType) => string;
|
|
44
|
+
/** 处理格式化展示 */
|
|
45
|
+
showFormatter?: (value: string) => string;
|
|
44
46
|
/** input值解析 */
|
|
45
47
|
parser?: (value: string) => string;
|
|
46
48
|
/** 校验 */
|
|
47
49
|
varidate?: (value: string | number | undefined) => true | string;
|
|
48
50
|
/** 固定列位置 */
|
|
49
|
-
fixed?:
|
|
51
|
+
fixed?: "left" | "right";
|
|
50
52
|
/** 列插槽 */
|
|
51
53
|
slot?: string;
|
|
52
54
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { Map } from 'ol';
|
|
2
|
+
import { Map as MapType } from 'ol';
|
|
3
3
|
import { ShipInfoVo } from './interface';
|
|
4
4
|
|
|
5
5
|
declare function __VLS_template(): {
|
|
@@ -13,7 +13,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
13
13
|
mmsi?: string;
|
|
14
14
|
shipData?: ShipInfoVo;
|
|
15
15
|
}>>, {
|
|
16
|
-
mapInstance: Ref<
|
|
16
|
+
mapInstance: Ref<MapType | undefined, MapType | undefined>;
|
|
17
17
|
initMap: () => void;
|
|
18
18
|
renderTrucksMarker: (list: import('./interface').SinoiovVehicleInfo[]) => import('ol/layer').Vector<import('ol/source').Vector<any>, any> | undefined;
|
|
19
19
|
renderShip: (list: ShipInfoVo[]) => import('ol/layer').Vector<import('ol/source').Vector<any>, any> | import('ol/layer').WebGLPoints<import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>>> | undefined;
|
|
@@ -24,10 +24,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
24
24
|
closeTrack: () => void;
|
|
25
25
|
closeTruckTrack: () => void;
|
|
26
26
|
resetTrackView: (id?: number | string) => void;
|
|
27
|
-
playTrack: (
|
|
27
|
+
playTrack: (id: number | string, speed: number) => void;
|
|
28
28
|
clearSelectFeature: () => void;
|
|
29
29
|
findShip: (id: string, shipData?: ShipInfoVo, select?: boolean) => any;
|
|
30
|
-
focusShip: (id: string, shipData?: ShipInfoVo,
|
|
30
|
+
focusShip: (id: string, shipData?: ShipInfoVo, hidden?: boolean) => void;
|
|
31
31
|
showTracks: Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
32
32
|
removeAllTrackLayer: () => void;
|
|
33
33
|
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
@@ -40,14 +40,69 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
40
40
|
setMarkerPosition: (val: string) => void;
|
|
41
41
|
getZoomAndCenter: () => {
|
|
42
42
|
zoom: number;
|
|
43
|
-
center:
|
|
43
|
+
center: any[];
|
|
44
44
|
} | null;
|
|
45
|
+
setCenter: (lonLat: number[]) => null | undefined;
|
|
45
46
|
drawPolygonTool: {
|
|
46
47
|
addInteraction: (callback?: Function) => void;
|
|
47
48
|
removeInteraction: () => void;
|
|
48
49
|
initFeature: (callback?: Function) => void;
|
|
49
50
|
reset: () => void;
|
|
50
51
|
};
|
|
52
|
+
setMapInstance: () => void;
|
|
53
|
+
config: {
|
|
54
|
+
mapZoom: {
|
|
55
|
+
default: number;
|
|
56
|
+
min: number;
|
|
57
|
+
max: number;
|
|
58
|
+
findShipMin: number;
|
|
59
|
+
findShip: number;
|
|
60
|
+
findTruck: number;
|
|
61
|
+
shipGreenDotMax: number;
|
|
62
|
+
truckDefault: number;
|
|
63
|
+
truckStatistics: number;
|
|
64
|
+
shipModelMin: number;
|
|
65
|
+
shipModelMax: number;
|
|
66
|
+
};
|
|
67
|
+
projection: {
|
|
68
|
+
data: string;
|
|
69
|
+
mercator: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
utils: {
|
|
73
|
+
transform: {
|
|
74
|
+
gcj02ToWgs84: (lnglat: string) => string;
|
|
75
|
+
calculateCirclePoints: (center: [number, number], radiusInKilometers: number) => {
|
|
76
|
+
leftTopPoint: {
|
|
77
|
+
lng: number;
|
|
78
|
+
lat: number;
|
|
79
|
+
};
|
|
80
|
+
rightTopPoint: {
|
|
81
|
+
lng: number;
|
|
82
|
+
lat: number;
|
|
83
|
+
};
|
|
84
|
+
rightBottomPoint: {
|
|
85
|
+
lng: number;
|
|
86
|
+
lat: number;
|
|
87
|
+
};
|
|
88
|
+
leftBottomPoint: {
|
|
89
|
+
lng: number;
|
|
90
|
+
lat: number;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
lonLatToMercator: (center: [number, number]) => number[];
|
|
94
|
+
mercatorToLonLat: (center: [number, number], type?: string) => number[] | {
|
|
95
|
+
lon: number;
|
|
96
|
+
lat: number;
|
|
97
|
+
};
|
|
98
|
+
calculateBoundingBox: (coordinates: [number, number][]) => number[];
|
|
99
|
+
};
|
|
100
|
+
format: {
|
|
101
|
+
formatLength: (line: import('ol/geom').LineString, unit: number) => string;
|
|
102
|
+
convertSixHundredThousandToLatLng: (valueX: number | string, valueY: number | string) => [lng: number, lat: number];
|
|
103
|
+
formatArea: (polygon: import('ol/geom').Polygon | import('ol/geom').Geometry, unit: number) => string | undefined;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
51
106
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
52
107
|
zoomChanged: (...args: any[]) => void;
|
|
53
108
|
extentChanged: (...args: any[]) => void;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { Units } from 'ol/proj/Units';
|
|
2
|
+
|
|
1
3
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
setScaleLine: () => void;
|
|
4
|
+
setScaleLine: (units?: Units) => void;
|
|
3
5
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
4
6
|
export default _default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { BaseMapType } from '../types.ts';
|
|
2
|
+
|
|
1
3
|
declare function __VLS_template(): {
|
|
2
4
|
toolPanel?(_: {}): any;
|
|
3
5
|
};
|
|
@@ -6,6 +8,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
6
8
|
viewMode: "PC" | "WxMiniprogram" | "APP";
|
|
7
9
|
disableGreenDot: boolean;
|
|
8
10
|
showTrackLayer: boolean;
|
|
11
|
+
mapTileMode: BaseMapType;
|
|
9
12
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
13
|
switchGreenDot: (...args: any[]) => void;
|
|
11
14
|
switchMapTile: (...args: any[]) => void;
|
|
@@ -14,6 +17,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
14
17
|
viewMode: "PC" | "WxMiniprogram" | "APP";
|
|
15
18
|
disableGreenDot: boolean;
|
|
16
19
|
showTrackLayer: boolean;
|
|
20
|
+
mapTileMode: BaseMapType;
|
|
17
21
|
}>>> & Readonly<{
|
|
18
22
|
onSwitchGreenDot?: ((...args: any[]) => any) | undefined;
|
|
19
23
|
onSwitchMapTile?: ((...args: any[]) => any) | undefined;
|
|
@@ -11,6 +11,7 @@ export declare const mapZoom: {
|
|
|
11
11
|
default: number;
|
|
12
12
|
min: number;
|
|
13
13
|
max: number;
|
|
14
|
+
findShipMin: number;
|
|
14
15
|
findShip: number;
|
|
15
16
|
findTruck: number;
|
|
16
17
|
shipGreenDotMax: number;
|
|
@@ -19,6 +20,7 @@ export declare const mapZoom: {
|
|
|
19
20
|
shipModelMin: number;
|
|
20
21
|
shipModelMax: number;
|
|
21
22
|
};
|
|
23
|
+
export declare const renderShipsLimit = 200;
|
|
22
24
|
export declare const mapDefaultCenter: [number, number];
|
|
23
25
|
export declare const projection: {
|
|
24
26
|
data: string;
|
|
@@ -37,10 +37,10 @@ export declare const ZhMap: {
|
|
|
37
37
|
closeTrack: () => void;
|
|
38
38
|
closeTruckTrack: () => void;
|
|
39
39
|
resetTrackView: (id?: number | string) => void;
|
|
40
|
-
playTrack: (
|
|
40
|
+
playTrack: (id: number | string, speed: number) => void;
|
|
41
41
|
clearSelectFeature: () => void;
|
|
42
42
|
findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
|
|
43
|
-
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo,
|
|
43
|
+
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo, hidden?: boolean) => void;
|
|
44
44
|
showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
45
45
|
removeAllTrackLayer: () => void;
|
|
46
46
|
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
@@ -53,14 +53,69 @@ export declare const ZhMap: {
|
|
|
53
53
|
setMarkerPosition: (val: string) => void;
|
|
54
54
|
getZoomAndCenter: () => {
|
|
55
55
|
zoom: number;
|
|
56
|
-
center:
|
|
56
|
+
center: any[];
|
|
57
57
|
} | null;
|
|
58
|
+
setCenter: (lonLat: number[]) => null | undefined;
|
|
58
59
|
drawPolygonTool: {
|
|
59
60
|
addInteraction: (callback?: Function) => void;
|
|
60
61
|
removeInteraction: () => void;
|
|
61
62
|
initFeature: (callback?: Function) => void;
|
|
62
63
|
reset: () => void;
|
|
63
64
|
};
|
|
65
|
+
setMapInstance: () => void;
|
|
66
|
+
config: {
|
|
67
|
+
mapZoom: {
|
|
68
|
+
default: number;
|
|
69
|
+
min: number;
|
|
70
|
+
max: number;
|
|
71
|
+
findShipMin: number;
|
|
72
|
+
findShip: number;
|
|
73
|
+
findTruck: number;
|
|
74
|
+
shipGreenDotMax: number;
|
|
75
|
+
truckDefault: number;
|
|
76
|
+
truckStatistics: number;
|
|
77
|
+
shipModelMin: number;
|
|
78
|
+
shipModelMax: number;
|
|
79
|
+
};
|
|
80
|
+
projection: {
|
|
81
|
+
data: string;
|
|
82
|
+
mercator: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
utils: {
|
|
86
|
+
transform: {
|
|
87
|
+
gcj02ToWgs84: (lnglat: string) => string;
|
|
88
|
+
calculateCirclePoints: (center: [number, number], radiusInKilometers: number) => {
|
|
89
|
+
leftTopPoint: {
|
|
90
|
+
lng: number;
|
|
91
|
+
lat: number;
|
|
92
|
+
};
|
|
93
|
+
rightTopPoint: {
|
|
94
|
+
lng: number;
|
|
95
|
+
lat: number;
|
|
96
|
+
};
|
|
97
|
+
rightBottomPoint: {
|
|
98
|
+
lng: number;
|
|
99
|
+
lat: number;
|
|
100
|
+
};
|
|
101
|
+
leftBottomPoint: {
|
|
102
|
+
lng: number;
|
|
103
|
+
lat: number;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
lonLatToMercator: (center: [number, number]) => number[];
|
|
107
|
+
mercatorToLonLat: (center: [number, number], type?: string) => number[] | {
|
|
108
|
+
lon: number;
|
|
109
|
+
lat: number;
|
|
110
|
+
};
|
|
111
|
+
calculateBoundingBox: (coordinates: [number, number][]) => number[];
|
|
112
|
+
};
|
|
113
|
+
format: {
|
|
114
|
+
formatLength: (line: import('ol/geom').LineString, unit: number) => string;
|
|
115
|
+
convertSixHundredThousandToLatLng: (valueX: number | string, valueY: number | string) => [lng: number, lat: number];
|
|
116
|
+
formatArea: (polygon: import('ol/geom').Polygon | import('ol/geom').Geometry, unit: number) => string | undefined;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
64
119
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
65
120
|
zoomChanged: (...args: any[]) => void;
|
|
66
121
|
extentChanged: (...args: any[]) => void;
|
|
@@ -109,10 +164,10 @@ export declare const ZhMap: {
|
|
|
109
164
|
closeTrack: () => void;
|
|
110
165
|
closeTruckTrack: () => void;
|
|
111
166
|
resetTrackView: (id?: number | string) => void;
|
|
112
|
-
playTrack: (
|
|
167
|
+
playTrack: (id: number | string, speed: number) => void;
|
|
113
168
|
clearSelectFeature: () => void;
|
|
114
169
|
findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
|
|
115
|
-
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo,
|
|
170
|
+
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo, hidden?: boolean) => void;
|
|
116
171
|
showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
117
172
|
removeAllTrackLayer: () => void;
|
|
118
173
|
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
@@ -125,14 +180,69 @@ export declare const ZhMap: {
|
|
|
125
180
|
setMarkerPosition: (val: string) => void;
|
|
126
181
|
getZoomAndCenter: () => {
|
|
127
182
|
zoom: number;
|
|
128
|
-
center:
|
|
183
|
+
center: any[];
|
|
129
184
|
} | null;
|
|
185
|
+
setCenter: (lonLat: number[]) => null | undefined;
|
|
130
186
|
drawPolygonTool: {
|
|
131
187
|
addInteraction: (callback?: Function) => void;
|
|
132
188
|
removeInteraction: () => void;
|
|
133
189
|
initFeature: (callback?: Function) => void;
|
|
134
190
|
reset: () => void;
|
|
135
191
|
};
|
|
192
|
+
setMapInstance: () => void;
|
|
193
|
+
config: {
|
|
194
|
+
mapZoom: {
|
|
195
|
+
default: number;
|
|
196
|
+
min: number;
|
|
197
|
+
max: number;
|
|
198
|
+
findShipMin: number;
|
|
199
|
+
findShip: number;
|
|
200
|
+
findTruck: number;
|
|
201
|
+
shipGreenDotMax: number;
|
|
202
|
+
truckDefault: number;
|
|
203
|
+
truckStatistics: number;
|
|
204
|
+
shipModelMin: number;
|
|
205
|
+
shipModelMax: number;
|
|
206
|
+
};
|
|
207
|
+
projection: {
|
|
208
|
+
data: string;
|
|
209
|
+
mercator: string;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
utils: {
|
|
213
|
+
transform: {
|
|
214
|
+
gcj02ToWgs84: (lnglat: string) => string;
|
|
215
|
+
calculateCirclePoints: (center: [number, number], radiusInKilometers: number) => {
|
|
216
|
+
leftTopPoint: {
|
|
217
|
+
lng: number;
|
|
218
|
+
lat: number;
|
|
219
|
+
};
|
|
220
|
+
rightTopPoint: {
|
|
221
|
+
lng: number;
|
|
222
|
+
lat: number;
|
|
223
|
+
};
|
|
224
|
+
rightBottomPoint: {
|
|
225
|
+
lng: number;
|
|
226
|
+
lat: number;
|
|
227
|
+
};
|
|
228
|
+
leftBottomPoint: {
|
|
229
|
+
lng: number;
|
|
230
|
+
lat: number;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
lonLatToMercator: (center: [number, number]) => number[];
|
|
234
|
+
mercatorToLonLat: (center: [number, number], type?: string) => number[] | {
|
|
235
|
+
lon: number;
|
|
236
|
+
lat: number;
|
|
237
|
+
};
|
|
238
|
+
calculateBoundingBox: (coordinates: [number, number][]) => number[];
|
|
239
|
+
};
|
|
240
|
+
format: {
|
|
241
|
+
formatLength: (line: import('ol/geom').LineString, unit: number) => string;
|
|
242
|
+
convertSixHundredThousandToLatLng: (valueX: number | string, valueY: number | string) => [lng: number, lat: number];
|
|
243
|
+
formatArea: (polygon: import('ol/geom').Polygon | import('ol/geom').Geometry, unit: number) => string | undefined;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
136
246
|
}, {}, {}, {}, {}>;
|
|
137
247
|
__isFragment?: never;
|
|
138
248
|
__isTeleport?: never;
|
|
@@ -175,10 +285,10 @@ export declare const ZhMap: {
|
|
|
175
285
|
closeTrack: () => void;
|
|
176
286
|
closeTruckTrack: () => void;
|
|
177
287
|
resetTrackView: (id?: number | string) => void;
|
|
178
|
-
playTrack: (
|
|
288
|
+
playTrack: (id: number | string, speed: number) => void;
|
|
179
289
|
clearSelectFeature: () => void;
|
|
180
290
|
findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
|
|
181
|
-
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo,
|
|
291
|
+
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo, hidden?: boolean) => void;
|
|
182
292
|
showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
183
293
|
removeAllTrackLayer: () => void;
|
|
184
294
|
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
@@ -191,14 +301,69 @@ export declare const ZhMap: {
|
|
|
191
301
|
setMarkerPosition: (val: string) => void;
|
|
192
302
|
getZoomAndCenter: () => {
|
|
193
303
|
zoom: number;
|
|
194
|
-
center:
|
|
304
|
+
center: any[];
|
|
195
305
|
} | null;
|
|
306
|
+
setCenter: (lonLat: number[]) => null | undefined;
|
|
196
307
|
drawPolygonTool: {
|
|
197
308
|
addInteraction: (callback?: Function) => void;
|
|
198
309
|
removeInteraction: () => void;
|
|
199
310
|
initFeature: (callback?: Function) => void;
|
|
200
311
|
reset: () => void;
|
|
201
312
|
};
|
|
313
|
+
setMapInstance: () => void;
|
|
314
|
+
config: {
|
|
315
|
+
mapZoom: {
|
|
316
|
+
default: number;
|
|
317
|
+
min: number;
|
|
318
|
+
max: number;
|
|
319
|
+
findShipMin: number;
|
|
320
|
+
findShip: number;
|
|
321
|
+
findTruck: number;
|
|
322
|
+
shipGreenDotMax: number;
|
|
323
|
+
truckDefault: number;
|
|
324
|
+
truckStatistics: number;
|
|
325
|
+
shipModelMin: number;
|
|
326
|
+
shipModelMax: number;
|
|
327
|
+
};
|
|
328
|
+
projection: {
|
|
329
|
+
data: string;
|
|
330
|
+
mercator: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
utils: {
|
|
334
|
+
transform: {
|
|
335
|
+
gcj02ToWgs84: (lnglat: string) => string;
|
|
336
|
+
calculateCirclePoints: (center: [number, number], radiusInKilometers: number) => {
|
|
337
|
+
leftTopPoint: {
|
|
338
|
+
lng: number;
|
|
339
|
+
lat: number;
|
|
340
|
+
};
|
|
341
|
+
rightTopPoint: {
|
|
342
|
+
lng: number;
|
|
343
|
+
lat: number;
|
|
344
|
+
};
|
|
345
|
+
rightBottomPoint: {
|
|
346
|
+
lng: number;
|
|
347
|
+
lat: number;
|
|
348
|
+
};
|
|
349
|
+
leftBottomPoint: {
|
|
350
|
+
lng: number;
|
|
351
|
+
lat: number;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
lonLatToMercator: (center: [number, number]) => number[];
|
|
355
|
+
mercatorToLonLat: (center: [number, number], type?: string) => number[] | {
|
|
356
|
+
lon: number;
|
|
357
|
+
lat: number;
|
|
358
|
+
};
|
|
359
|
+
calculateBoundingBox: (coordinates: [number, number][]) => number[];
|
|
360
|
+
};
|
|
361
|
+
format: {
|
|
362
|
+
formatLength: (line: import('ol/geom').LineString, unit: number) => string;
|
|
363
|
+
convertSixHundredThousandToLatLng: (valueX: number | string, valueY: number | string) => [lng: number, lat: number];
|
|
364
|
+
formatArea: (polygon: import('ol/geom').Polygon | import('ol/geom').Geometry, unit: number) => string | undefined;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
202
367
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
203
368
|
zoomChanged: (...args: any[]) => void;
|
|
204
369
|
extentChanged: (...args: any[]) => void;
|
|
@@ -5,6 +5,7 @@ export interface DrawTextOptions {
|
|
|
5
5
|
leftIcon?: LeftIconOptions;
|
|
6
6
|
rightIcons?: string[];
|
|
7
7
|
font?: string;
|
|
8
|
+
type?: string;
|
|
8
9
|
}
|
|
9
10
|
export interface DrawPolygonOptions {
|
|
10
11
|
points: number[][];
|
|
@@ -25,8 +26,19 @@ export interface DrawLabelOptions {
|
|
|
25
26
|
bgColor: string;
|
|
26
27
|
leftIcon?: LeftIconOptions;
|
|
27
28
|
rightIcons?: string[];
|
|
29
|
+
selected?: boolean;
|
|
30
|
+
type?: string;
|
|
28
31
|
}
|
|
29
32
|
export interface LeftIconOptions {
|
|
30
33
|
icon: string;
|
|
31
34
|
color: string;
|
|
32
35
|
}
|
|
36
|
+
export interface DrawLabelFeature {
|
|
37
|
+
center: number[];
|
|
38
|
+
x: number[];
|
|
39
|
+
l: number[];
|
|
40
|
+
r: number[];
|
|
41
|
+
bounds: number[];
|
|
42
|
+
position: number;
|
|
43
|
+
name: string;
|
|
44
|
+
}
|
|
@@ -34,10 +34,12 @@ export interface ShipInfoVo {
|
|
|
34
34
|
* 船长
|
|
35
35
|
*/
|
|
36
36
|
len: number;
|
|
37
|
+
length?: number;
|
|
37
38
|
/**
|
|
38
39
|
* 船宽
|
|
39
40
|
*/
|
|
40
41
|
wid: number;
|
|
42
|
+
breadth?: number;
|
|
41
43
|
/**
|
|
42
44
|
* 吃水
|
|
43
45
|
*/
|
|
@@ -183,8 +185,24 @@ export interface ShipInfoVo {
|
|
|
183
185
|
* 创建时间
|
|
184
186
|
*/
|
|
185
187
|
createTime: string;
|
|
188
|
+
/**
|
|
189
|
+
* 左侧图标色块
|
|
190
|
+
*/
|
|
186
191
|
leftIconColor: string;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
192
|
+
/**
|
|
193
|
+
* 是否存在摄像头
|
|
194
|
+
*/
|
|
195
|
+
existDevice: number;
|
|
196
|
+
/**
|
|
197
|
+
* 是否维护水尺 1:是 0:否
|
|
198
|
+
*/
|
|
199
|
+
existWaterGauge: number;
|
|
200
|
+
/**
|
|
201
|
+
* 是否存在手机号
|
|
202
|
+
*/
|
|
203
|
+
existMobile: number;
|
|
204
|
+
/**
|
|
205
|
+
* 关注的船自定义后缀
|
|
206
|
+
*/
|
|
207
|
+
existName: number;
|
|
190
208
|
}
|