zhihao-ui 1.2.14 → 1.2.16
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-7jZU0u6I.js → BaseInfo-Dr298ctb.js} +1 -1
- package/dist/es/{Button-B9P_SsZw.js → Button-OpzeoolK.js} +2 -2
- package/dist/es/{DatePicker-Cc2HzfbO.js → DatePicker-vGQGWrmB.js} +2 -2
- package/dist/es/{DetailHeader-DWSW65H4.js → DetailHeader-Dy_GLl1j.js} +3 -3
- package/dist/es/{DetailSubTitle-BcmMobfK.js → DetailSubTitle-Cgs5HrKC.js} +2 -2
- package/dist/es/{Dialog-CPGMb7bN.js → Dialog-DsjDYguS.js} +3 -3
- package/dist/es/{DiyDataTable-D9plKikG.js → DiyDataTable-C0um1VNh.js} +111 -108
- package/dist/es/{EditInfoPair-DK6juMvt.js → EditInfoPair-D5IdY32c.js} +3 -3
- package/dist/es/{FileWrapper-DJK4gH30.js → FileWrapper-BWTQDfI0.js} +4 -4
- package/dist/es/{Grid-ChfF9Fgz.js → Grid-CIMCXeIw.js} +1 -1
- package/dist/es/{InfoPair-Ba3m95Ys.js → InfoPair-BCfbK9Vi.js} +3 -3
- package/dist/es/{Input-nPdfvjre.js → Input-Stgzni-P.js} +3 -3
- package/dist/es/{Loading-5GrMZQAf.js → Loading-CV65SoyW.js} +2 -2
- package/dist/es/{Map-Q8kvdbDZ.js → Map-f7AQFEm9.js} +395 -388
- package/dist/es/{MessageBox-SFDDgn41.js → MessageBox-7G0T_aYK.js} +2 -2
- package/dist/es/{MoneyInput-DfIiKsPe.js → MoneyInput-CILa4-8Q.js} +5 -5
- package/dist/es/{PageHeadPanel-BnA69dS-.js → PageHeadPanel-CAVlNQj7.js} +2 -2
- package/dist/es/Table-B786GVKD.js +1132 -0
- package/dist/es/{ToolTips-BHQpNHPT.js → ToolTips-B1YUKWTm.js} +3 -3
- package/dist/es/index.js +21 -21
- package/dist/es/{utils-BbabHGt0.js → utils-CbI5IWJJ.js} +1 -1
- package/dist/es/{vendor-CUDSGmu_.js → vendor-AIl6iHcE.js} +13182 -11821
- package/dist/index.css +1 -1
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +10 -0
- package/dist/types/components/DiyDataTable/index.d.ts +18 -0
- package/dist/types/components/DiyDataTable/type.d.ts +2 -0
- package/dist/types/components/Map/Map.vue.d.ts +22 -4
- package/dist/types/components/Map/components/measure.vue.d.ts +8 -0
- package/dist/types/components/Map/index.d.ts +44 -7
- package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +1 -0
- package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +1 -0
- package/dist/types/components/Map/render/drawPolygon.d.ts +2 -5
- package/dist/types/components/Map/render/renderShip.d.ts +1 -0
- package/dist/types/components/Map/utils/common.d.ts +13 -6
- package/dist/types/components/Map/utils/store.d.ts +3 -2
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +20 -20
- package/package.json +2 -1
- package/dist/es/Table-B9yUodsT.js +0 -1121
|
@@ -24,6 +24,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
24
24
|
type: import('vue').PropType<number>;
|
|
25
25
|
default: number;
|
|
26
26
|
};
|
|
27
|
+
defaultMinWidth: {
|
|
28
|
+
type: import('vue').PropType<number>;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
27
31
|
}>, {
|
|
28
32
|
/** 初始化数据 */
|
|
29
33
|
initData: (rawdata: DiyDataType[], rawColumns: DiyDataTableColumnItem[]) => void;
|
|
@@ -36,6 +40,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
36
40
|
key?: (number | string) | undefined;
|
|
37
41
|
isAdd?: boolean | undefined;
|
|
38
42
|
width?: number | undefined;
|
|
43
|
+
minWidth?: number | undefined;
|
|
39
44
|
maxlength?: number | undefined;
|
|
40
45
|
headerMaxlength?: number | undefined;
|
|
41
46
|
placeholder?: string | undefined;
|
|
@@ -70,10 +75,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
70
75
|
type: import('vue').PropType<number>;
|
|
71
76
|
default: number;
|
|
72
77
|
};
|
|
78
|
+
defaultMinWidth: {
|
|
79
|
+
type: import('vue').PropType<number>;
|
|
80
|
+
default: number;
|
|
81
|
+
};
|
|
73
82
|
}>> & Readonly<{}>, {
|
|
74
83
|
isEdit: boolean;
|
|
75
84
|
maxRowLength: number;
|
|
76
85
|
maxColLength: number;
|
|
86
|
+
defaultMinWidth: number;
|
|
77
87
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
78
88
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
79
89
|
export default _default;
|
|
@@ -16,6 +16,10 @@ export declare const ZhDiyDataTable: {
|
|
|
16
16
|
type: import('vue').PropType<number>;
|
|
17
17
|
default: number;
|
|
18
18
|
};
|
|
19
|
+
defaultMinWidth: {
|
|
20
|
+
type: import('vue').PropType<number>;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
19
23
|
}>> & Readonly<{}>, {
|
|
20
24
|
initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
|
|
21
25
|
getData: () => Promise<{
|
|
@@ -26,6 +30,7 @@ export declare const ZhDiyDataTable: {
|
|
|
26
30
|
key?: (number | string) | undefined;
|
|
27
31
|
isAdd?: boolean | undefined;
|
|
28
32
|
width?: number | undefined;
|
|
33
|
+
minWidth?: number | undefined;
|
|
29
34
|
maxlength?: number | undefined;
|
|
30
35
|
headerMaxlength?: number | undefined;
|
|
31
36
|
placeholder?: string | undefined;
|
|
@@ -46,6 +51,7 @@ export declare const ZhDiyDataTable: {
|
|
|
46
51
|
isEdit: boolean;
|
|
47
52
|
maxRowLength: number;
|
|
48
53
|
maxColLength: number;
|
|
54
|
+
defaultMinWidth: number;
|
|
49
55
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
50
56
|
P: {};
|
|
51
57
|
B: {};
|
|
@@ -70,6 +76,10 @@ export declare const ZhDiyDataTable: {
|
|
|
70
76
|
type: import('vue').PropType<number>;
|
|
71
77
|
default: number;
|
|
72
78
|
};
|
|
79
|
+
defaultMinWidth: {
|
|
80
|
+
type: import('vue').PropType<number>;
|
|
81
|
+
default: number;
|
|
82
|
+
};
|
|
73
83
|
}>> & Readonly<{}>, {
|
|
74
84
|
initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
|
|
75
85
|
getData: () => Promise<{
|
|
@@ -80,6 +90,7 @@ export declare const ZhDiyDataTable: {
|
|
|
80
90
|
key?: (number | string) | undefined;
|
|
81
91
|
isAdd?: boolean | undefined;
|
|
82
92
|
width?: number | undefined;
|
|
93
|
+
minWidth?: number | undefined;
|
|
83
94
|
maxlength?: number | undefined;
|
|
84
95
|
headerMaxlength?: number | undefined;
|
|
85
96
|
placeholder?: string | undefined;
|
|
@@ -100,6 +111,7 @@ export declare const ZhDiyDataTable: {
|
|
|
100
111
|
isEdit: boolean;
|
|
101
112
|
maxRowLength: number;
|
|
102
113
|
maxColLength: number;
|
|
114
|
+
defaultMinWidth: number;
|
|
103
115
|
}>;
|
|
104
116
|
__isFragment?: never;
|
|
105
117
|
__isTeleport?: never;
|
|
@@ -121,6 +133,10 @@ export declare const ZhDiyDataTable: {
|
|
|
121
133
|
type: import('vue').PropType<number>;
|
|
122
134
|
default: number;
|
|
123
135
|
};
|
|
136
|
+
defaultMinWidth: {
|
|
137
|
+
type: import('vue').PropType<number>;
|
|
138
|
+
default: number;
|
|
139
|
+
};
|
|
124
140
|
}>> & Readonly<{}>, {
|
|
125
141
|
initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
|
|
126
142
|
getData: () => Promise<{
|
|
@@ -131,6 +147,7 @@ export declare const ZhDiyDataTable: {
|
|
|
131
147
|
key?: (number | string) | undefined;
|
|
132
148
|
isAdd?: boolean | undefined;
|
|
133
149
|
width?: number | undefined;
|
|
150
|
+
minWidth?: number | undefined;
|
|
134
151
|
maxlength?: number | undefined;
|
|
135
152
|
headerMaxlength?: number | undefined;
|
|
136
153
|
placeholder?: string | undefined;
|
|
@@ -151,6 +168,7 @@ export declare const ZhDiyDataTable: {
|
|
|
151
168
|
isEdit: boolean;
|
|
152
169
|
maxRowLength: number;
|
|
153
170
|
maxColLength: number;
|
|
171
|
+
defaultMinWidth: number;
|
|
154
172
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
155
173
|
$slots: Partial<Record<string, (_: {
|
|
156
174
|
row: any;
|
|
@@ -2,11 +2,16 @@ import { Ref } from 'vue';
|
|
|
2
2
|
import { Map } from 'ol';
|
|
3
3
|
import { ShipInfoVo } from './interface';
|
|
4
4
|
|
|
5
|
-
declare
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
toolPanel?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
9
|
zoom: number | null;
|
|
7
10
|
center: [number, number] | null;
|
|
8
11
|
vehicleMode: "truck" | "ship";
|
|
9
|
-
viewMode: "PC" | "WxMiniprogram" | "APP";
|
|
12
|
+
viewMode: "PC" | "WxMiniprogram" | "APP" | "findShip";
|
|
13
|
+
mmsi?: string;
|
|
14
|
+
shipData?: ShipInfoVo;
|
|
10
15
|
}>>, {
|
|
11
16
|
mapInstance: Ref<Map | undefined, Map | undefined>;
|
|
12
17
|
initMap: () => void;
|
|
@@ -22,7 +27,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
22
27
|
playTrack: (index: number | string, speed: number) => void;
|
|
23
28
|
clearSelectFeature: () => void;
|
|
24
29
|
findShip: (id: string, shipData?: ShipInfoVo, select?: boolean) => any;
|
|
25
|
-
focusShip: (id: string, shipData?: ShipInfoVo) => void;
|
|
30
|
+
focusShip: (id: string, shipData?: ShipInfoVo, hiddenOrther?: boolean) => void;
|
|
26
31
|
showTracks: Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
27
32
|
removeAllTrackLayer: () => void;
|
|
28
33
|
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
@@ -30,8 +35,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
30
35
|
switchGreenDot: () => void;
|
|
31
36
|
zoomTruckIcon: () => void;
|
|
32
37
|
renderTruckTrack: (vclN: string, list: any[], color: string) => void;
|
|
38
|
+
removerLayer: (index: number) => void;
|
|
33
39
|
renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
|
|
34
40
|
setMarkerPosition: (val: string) => void;
|
|
41
|
+
getZoomAndCenter: () => {
|
|
42
|
+
zoom: number;
|
|
43
|
+
center: number[];
|
|
44
|
+
} | null;
|
|
35
45
|
drawPolygonTool: {
|
|
36
46
|
addInteraction: (callback?: Function) => void;
|
|
37
47
|
removeInteraction: () => void;
|
|
@@ -45,11 +55,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
45
55
|
zoom: number | null;
|
|
46
56
|
center: [number, number] | null;
|
|
47
57
|
vehicleMode: "truck" | "ship";
|
|
48
|
-
viewMode: "PC" | "WxMiniprogram" | "APP";
|
|
58
|
+
viewMode: "PC" | "WxMiniprogram" | "APP" | "findShip";
|
|
59
|
+
mmsi?: string;
|
|
60
|
+
shipData?: ShipInfoVo;
|
|
49
61
|
}>>> & Readonly<{
|
|
50
62
|
onZoomChanged?: ((...args: any[]) => any) | undefined;
|
|
51
63
|
onExtentChanged?: ((...args: any[]) => any) | undefined;
|
|
52
64
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
65
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
53
66
|
export default _default;
|
|
54
67
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
55
68
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -60,3 +73,8 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
60
73
|
required: true;
|
|
61
74
|
};
|
|
62
75
|
};
|
|
76
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
@@ -2,6 +2,10 @@ declare function removeInteraction(): void;
|
|
|
2
2
|
declare function addInteraction(): void;
|
|
3
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
visible: import('vue').PropType<boolean>;
|
|
5
|
+
viewMode: {
|
|
6
|
+
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP">;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
5
9
|
}>, {
|
|
6
10
|
addInteraction: typeof addInteraction;
|
|
7
11
|
removeInteraction: typeof removeInteraction;
|
|
@@ -9,6 +13,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
9
13
|
close: (...args: any[]) => void;
|
|
10
14
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
15
|
visible: import('vue').PropType<boolean>;
|
|
16
|
+
viewMode: {
|
|
17
|
+
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP">;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
12
20
|
}>> & Readonly<{
|
|
13
21
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
14
22
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -13,9 +13,15 @@ export declare const ZhMap: {
|
|
|
13
13
|
required: true;
|
|
14
14
|
};
|
|
15
15
|
viewMode: {
|
|
16
|
-
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP">;
|
|
16
|
+
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP" | "findShip">;
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
|
+
mmsi: {
|
|
20
|
+
type: import('vue').PropType<string>;
|
|
21
|
+
};
|
|
22
|
+
shipData: {
|
|
23
|
+
type: import('vue').PropType<import('./interface').ShipInfoVo>;
|
|
24
|
+
};
|
|
19
25
|
}>> & Readonly<{
|
|
20
26
|
onZoomChanged?: ((...args: any[]) => any) | undefined;
|
|
21
27
|
onExtentChanged?: ((...args: any[]) => any) | undefined;
|
|
@@ -34,7 +40,7 @@ export declare const ZhMap: {
|
|
|
34
40
|
playTrack: (index: number | string, speed: number) => void;
|
|
35
41
|
clearSelectFeature: () => void;
|
|
36
42
|
findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
|
|
37
|
-
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo) => void;
|
|
43
|
+
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo, hiddenOrther?: boolean) => void;
|
|
38
44
|
showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
39
45
|
removeAllTrackLayer: () => void;
|
|
40
46
|
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
@@ -42,8 +48,13 @@ export declare const ZhMap: {
|
|
|
42
48
|
switchGreenDot: () => void;
|
|
43
49
|
zoomTruckIcon: () => void;
|
|
44
50
|
renderTruckTrack: (vclN: string, list: any[], color: string) => void;
|
|
51
|
+
removerLayer: (index: number) => void;
|
|
45
52
|
renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
|
|
46
53
|
setMarkerPosition: (val: string) => void;
|
|
54
|
+
getZoomAndCenter: () => {
|
|
55
|
+
zoom: number;
|
|
56
|
+
center: number[];
|
|
57
|
+
} | null;
|
|
47
58
|
drawPolygonTool: {
|
|
48
59
|
addInteraction: (callback?: Function) => void;
|
|
49
60
|
removeInteraction: () => void;
|
|
@@ -74,9 +85,15 @@ export declare const ZhMap: {
|
|
|
74
85
|
required: true;
|
|
75
86
|
};
|
|
76
87
|
viewMode: {
|
|
77
|
-
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP">;
|
|
88
|
+
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP" | "findShip">;
|
|
78
89
|
required: true;
|
|
79
90
|
};
|
|
91
|
+
mmsi: {
|
|
92
|
+
type: import('vue').PropType<string>;
|
|
93
|
+
};
|
|
94
|
+
shipData: {
|
|
95
|
+
type: import('vue').PropType<import('./interface').ShipInfoVo>;
|
|
96
|
+
};
|
|
80
97
|
}>> & Readonly<{
|
|
81
98
|
onZoomChanged?: ((...args: any[]) => any) | undefined;
|
|
82
99
|
onExtentChanged?: ((...args: any[]) => any) | undefined;
|
|
@@ -95,7 +112,7 @@ export declare const ZhMap: {
|
|
|
95
112
|
playTrack: (index: number | string, speed: number) => void;
|
|
96
113
|
clearSelectFeature: () => void;
|
|
97
114
|
findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
|
|
98
|
-
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo) => void;
|
|
115
|
+
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo, hiddenOrther?: boolean) => void;
|
|
99
116
|
showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
100
117
|
removeAllTrackLayer: () => void;
|
|
101
118
|
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
@@ -103,8 +120,13 @@ export declare const ZhMap: {
|
|
|
103
120
|
switchGreenDot: () => void;
|
|
104
121
|
zoomTruckIcon: () => void;
|
|
105
122
|
renderTruckTrack: (vclN: string, list: any[], color: string) => void;
|
|
123
|
+
removerLayer: (index: number) => void;
|
|
106
124
|
renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
|
|
107
125
|
setMarkerPosition: (val: string) => void;
|
|
126
|
+
getZoomAndCenter: () => {
|
|
127
|
+
zoom: number;
|
|
128
|
+
center: number[];
|
|
129
|
+
} | null;
|
|
108
130
|
drawPolygonTool: {
|
|
109
131
|
addInteraction: (callback?: Function) => void;
|
|
110
132
|
removeInteraction: () => void;
|
|
@@ -129,9 +151,15 @@ export declare const ZhMap: {
|
|
|
129
151
|
required: true;
|
|
130
152
|
};
|
|
131
153
|
viewMode: {
|
|
132
|
-
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP">;
|
|
154
|
+
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP" | "findShip">;
|
|
133
155
|
required: true;
|
|
134
156
|
};
|
|
157
|
+
mmsi: {
|
|
158
|
+
type: import('vue').PropType<string>;
|
|
159
|
+
};
|
|
160
|
+
shipData: {
|
|
161
|
+
type: import('vue').PropType<import('./interface').ShipInfoVo>;
|
|
162
|
+
};
|
|
135
163
|
}>> & Readonly<{
|
|
136
164
|
onZoomChanged?: ((...args: any[]) => any) | undefined;
|
|
137
165
|
onExtentChanged?: ((...args: any[]) => any) | undefined;
|
|
@@ -150,7 +178,7 @@ export declare const ZhMap: {
|
|
|
150
178
|
playTrack: (index: number | string, speed: number) => void;
|
|
151
179
|
clearSelectFeature: () => void;
|
|
152
180
|
findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
|
|
153
|
-
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo) => void;
|
|
181
|
+
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo, hiddenOrther?: boolean) => void;
|
|
154
182
|
showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
155
183
|
removeAllTrackLayer: () => void;
|
|
156
184
|
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
@@ -158,8 +186,13 @@ export declare const ZhMap: {
|
|
|
158
186
|
switchGreenDot: () => void;
|
|
159
187
|
zoomTruckIcon: () => void;
|
|
160
188
|
renderTruckTrack: (vclN: string, list: any[], color: string) => void;
|
|
189
|
+
removerLayer: (index: number) => void;
|
|
161
190
|
renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
|
|
162
191
|
setMarkerPosition: (val: string) => void;
|
|
192
|
+
getZoomAndCenter: () => {
|
|
193
|
+
zoom: number;
|
|
194
|
+
center: number[];
|
|
195
|
+
} | null;
|
|
163
196
|
drawPolygonTool: {
|
|
164
197
|
addInteraction: (callback?: Function) => void;
|
|
165
198
|
removeInteraction: () => void;
|
|
@@ -169,4 +202,8 @@ export declare const ZhMap: {
|
|
|
169
202
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
170
203
|
zoomChanged: (...args: any[]) => void;
|
|
171
204
|
extentChanged: (...args: any[]) => void;
|
|
172
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps &
|
|
205
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
206
|
+
$slots: {
|
|
207
|
+
toolPanel?(_: {}): any;
|
|
208
|
+
};
|
|
209
|
+
}) & import('vue').Plugin;
|
|
@@ -3,4 +3,5 @@ import { ShipTrack } from '../../interface';
|
|
|
3
3
|
|
|
4
4
|
export declare const renderTrackLine: (data: any, id: string, trackColor: string) => void;
|
|
5
5
|
export declare const handlePlay: (index: number) => void;
|
|
6
|
+
export declare const removeShipTrackLineFeatureByIndex: (index: number) => void;
|
|
6
7
|
export declare const setTrackLabelStyle: (featureData: ShipTrack, trackColor: string) => Style;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
declare function addInteraction(callback?: Function): void;
|
|
2
|
-
declare function removeInteraction(): void;
|
|
3
1
|
export declare const drawPolygonTool: {
|
|
4
|
-
addInteraction:
|
|
5
|
-
removeInteraction:
|
|
2
|
+
addInteraction: (callback?: Function) => void;
|
|
3
|
+
removeInteraction: () => void;
|
|
6
4
|
initFeature: (callback?: Function) => void;
|
|
7
5
|
reset: () => void;
|
|
8
6
|
};
|
|
9
|
-
export {};
|
|
@@ -8,6 +8,7 @@ import { SWITCH_BTN } from '../enum';
|
|
|
8
8
|
|
|
9
9
|
export declare const renderShips: (list: ShipInfoVo[]) => VectorLayer<VectorSource<any>, any> | WebGLPointsLayer<VectorSource<Feature<Geometry>>> | undefined;
|
|
10
10
|
export declare const deleteAllShipMarkers: () => void;
|
|
11
|
+
export declare const setVisibleFeatureById: (id: string, visible: boolean) => void;
|
|
11
12
|
export declare const findShip: (id: string, shipData?: ShipInfoVo, select?: boolean) => any;
|
|
12
13
|
export declare const clearSelectFeature: () => void;
|
|
13
14
|
export declare const hiddenAllShips: () => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Polygon } from 'ol/geom';
|
|
1
|
+
import { Geometry, Polygon } from 'ol/geom';
|
|
2
2
|
import { Coordinate } from 'ol/coordinate';
|
|
3
|
+
import { Feature } from 'ol';
|
|
3
4
|
import { default as VectorLayer } from 'ol/layer/Vector';
|
|
4
5
|
import { Style } from 'ol/style';
|
|
5
6
|
|
|
@@ -13,12 +14,18 @@ export declare const findFeatureById: (layer: VectorLayer, id: string) => any;
|
|
|
13
14
|
export declare const adjustBounds: (bounds: number[], offsets: number[]) => number[];
|
|
14
15
|
export declare const isOverlapping: (bounds1: number[], bounds2: number[]) => boolean;
|
|
15
16
|
export declare const getIconStyle: (symbol: string) => Style;
|
|
16
|
-
export declare function convertToRadians(
|
|
17
|
-
export declare function createFeature(geometry:
|
|
17
|
+
export declare function convertToRadians(feature: Feature): any;
|
|
18
|
+
export declare function createFeature(geometry: Geometry, properties: any, options?: {}): {
|
|
18
19
|
type: string;
|
|
19
20
|
};
|
|
20
|
-
export declare function createPoint(coordinates:
|
|
21
|
+
export declare function createPoint(coordinates: number[][], properties: any, options: any): {
|
|
21
22
|
type: string;
|
|
22
23
|
};
|
|
23
|
-
export declare function calculateAngle(pointA:
|
|
24
|
-
|
|
24
|
+
export declare function calculateAngle(pointA: Feature, pointB: Feature, options: any): any;
|
|
25
|
+
/**
|
|
26
|
+
* 计算两点之间连线的相对旋转方向
|
|
27
|
+
* @param {number[]} a - 第一个点的坐标 [longitude, latitude]
|
|
28
|
+
* @param {number[]} b - 第二个点的坐标 [longitude, latitude]
|
|
29
|
+
* @returns {number} - 旋转角度 (0 ~ 360°)
|
|
30
|
+
*/
|
|
31
|
+
export declare const getRotation: (a: number[][], b: number[][]) => number;
|
|
@@ -4,13 +4,14 @@ import { default as VectorLayer } from 'ol/layer/Vector';
|
|
|
4
4
|
import { default as WebGLPointsLayer } from 'ol/layer/WebGLPoints';
|
|
5
5
|
import { default as VectorSource } from 'ol/source/Vector';
|
|
6
6
|
import { Geometry } from 'ol/geom';
|
|
7
|
-
import { ShipInfoVo } from '../interface';
|
|
7
|
+
import { ShipInfoVo, ShipMapData } from '../interface';
|
|
8
8
|
|
|
9
9
|
export declare const mapInstance: Ref<MapType | undefined, MapType | undefined>;
|
|
10
10
|
export declare const shipsLayer: Ref<VectorLayer | undefined>;
|
|
11
|
+
export declare const largeAmountShipsLayer: Ref<WebGLPointsLayer<VectorSource<Feature<Geometry>>> | undefined>;
|
|
11
12
|
export declare const selectShipsLayer: Ref<VectorLayer | undefined>;
|
|
12
13
|
export declare const allShips: Ref<ShipInfoVo[]>;
|
|
13
|
-
export declare const
|
|
14
|
+
export declare const selectSingleShipData: Ref<ShipMapData>;
|
|
14
15
|
export declare const statisticsLayer: Ref<VectorLayer | undefined>;
|
|
15
16
|
export declare const trucksLayer: Ref<VectorLayer | undefined>;
|
|
16
17
|
export declare const shipTrackLineFeatures: Ref<Feature[]>;
|