zhihao-ui 1.2.5 → 1.2.8
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-CboHDiqp.js → BaseInfo-Dv-eon6t.js} +1 -1
- package/dist/es/Button-DBbUF88w.js +51 -0
- package/dist/es/{DatePicker-AcRbvS-8.js → DatePicker-CWQoV03Q.js} +13 -13
- package/dist/es/{DetailHeader-CoaVXtN3.js → DetailHeader-C_mAB8-2.js} +3 -3
- package/dist/es/{DetailSubTitle-Csp4LjFx.js → DetailSubTitle-DD7Yllhf.js} +2 -2
- package/dist/es/Dialog-DyDSVm-6.js +109 -0
- package/dist/es/{DiyDataTable-DBonLs6p.js → DiyDataTable-cJVfvtax.js} +5 -4
- package/dist/es/{EditInfoPair-DBbRqppY.js → EditInfoPair-D0b5jY5Y.js} +3 -3
- package/dist/es/{FileWrapper-BwQhQopY.js → FileWrapper-CMSYWmEz.js} +4 -4
- package/dist/es/{Grid-B-FutGih.js → Grid-B5O9dZNI.js} +1 -1
- package/dist/es/{InfoPair-WmMCXoUh.js → InfoPair-Do3sSVw-.js} +3 -3
- package/dist/es/{Input-DFnH7_jo.js → Input-DVpd0Yte.js} +11 -11
- package/dist/es/{Loading-BW6Doqh_.js → Loading-DwtfOhMD.js} +2 -2
- package/dist/es/Map-CMiThYaG.js +1681 -0
- package/dist/es/MessageBox-BowhqMYW.js +48 -0
- package/dist/es/{MoneyInput-BwkFhS2B.js → MoneyInput-CaTrJLi1.js} +7 -7
- package/dist/es/{PageHeadPanel-BhR3Bq1A.js → PageHeadPanel-_mKu2rMQ.js} +2 -2
- package/dist/es/{ToolTips-BEYXkt4n.js → ToolTips-BTCP0N--.js} +3 -3
- package/dist/es/index.js +34 -30
- package/dist/es/{utils-B1dH8Kx6.js → utils-DZ8-2Fg2.js} +1 -1
- package/dist/es/{vendor-Cu-cEPs_.js → vendor-BY-fHNA3.js} +9646 -8896
- package/dist/index.css +1 -1
- package/dist/types/components/ButtonGroup/ButtonGroup.test.d.ts +1 -0
- package/dist/types/components/ButtonGroup/ButtonGroup.vue.d.ts +37 -0
- package/dist/types/components/ButtonGroup/index.d.ts +38 -0
- package/dist/types/components/Dialog/Dialog.test.d.ts +1 -0
- package/dist/types/components/Dialog/Dialog.vue.d.ts +187 -14
- package/dist/types/components/Dialog/index.d.ts +296 -25
- package/dist/types/components/Dialog/types.d.ts +15 -5
- package/dist/types/components/DiyDataTable/index.d.ts +1 -0
- package/dist/types/components/Map/Map.vue.d.ts +25 -3
- package/dist/types/components/Map/config.d.ts +2 -0
- package/dist/types/components/Map/enum/index.d.ts +1 -0
- package/dist/types/components/Map/enum/ship.d.ts +10 -0
- package/dist/types/components/Map/index.d.ts +69 -6
- package/dist/types/components/Map/interface/entity/queryLicenseResponse.d.ts +0 -111
- package/dist/types/components/Map/interface/entity/render.d.ts +32 -0
- package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +4 -0
- package/dist/types/components/Map/interface/entity/shipMapData.d.ts +5 -2
- package/dist/types/components/Map/interface/entity/shipMarker.d.ts +2 -2
- package/dist/types/components/Map/interface/entity/shipTrack.d.ts +0 -4
- package/dist/types/components/Map/interface/entity/vehicle.d.ts +171 -0
- package/dist/types/components/Map/interface/index.d.ts +5 -3
- package/dist/types/components/Map/interface/vo/vehicleVo.d.ts +20 -0
- package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +6 -3
- package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +3 -0
- package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +1 -1
- package/dist/types/components/Map/render/drawPolygon.d.ts +9 -0
- package/dist/types/components/Map/render/renderMarker.d.ts +6 -0
- package/dist/types/components/Map/render/renderShip.d.ts +6 -1
- package/dist/types/components/Map/render/renderTruck.d.ts +7 -2
- package/dist/types/components/Map/utils/format.d.ts +2 -0
- package/dist/types/components/Map/utils/store.d.ts +3 -0
- package/dist/types/components/MessageBox/MessageBox.test.d.ts +1 -0
- package/dist/types/components/MessageBox/MessageBox.vue.d.ts +11 -218
- package/dist/types/components/MessageBox/index.d.ts +4 -342
- package/dist/types/components/index.d.ts +1 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +26 -16
- package/package.json +1 -1
- package/dist/es/Button-C1Q6WvkI.js +0 -32
- package/dist/es/Dialog-CtU-qGdR.js +0 -74
- package/dist/es/Map-BLQnapy4.js +0 -1183
- package/dist/es/MessageBox-CjuBt74R.js +0 -100
|
@@ -1,106 +1,5 @@
|
|
|
1
1
|
import { SnayiVehicleInfoResponse } from '@/entity/vehicle';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* 行驶证信息响应实体类
|
|
5
|
-
*/
|
|
6
|
-
export interface QueryLicenseResponse {
|
|
7
|
-
/**
|
|
8
|
-
* 外廓尺寸长 (mm)
|
|
9
|
-
*/
|
|
10
|
-
vclLng: string;
|
|
11
|
-
/**
|
|
12
|
-
* 外廓尺寸宽 (mm)
|
|
13
|
-
*/
|
|
14
|
-
vclWdt: string;
|
|
15
|
-
/**
|
|
16
|
-
* 车轴数
|
|
17
|
-
*/
|
|
18
|
-
vehicleAxis: string;
|
|
19
|
-
/**
|
|
20
|
-
* 车辆品牌
|
|
21
|
-
*/
|
|
22
|
-
prdCdNm: string;
|
|
23
|
-
/**
|
|
24
|
-
* 行驶证发证日期 (yyyy-MM-dd)
|
|
25
|
-
*/
|
|
26
|
-
drvLicDt: string;
|
|
27
|
-
/**
|
|
28
|
-
* 车辆类型
|
|
29
|
-
*/
|
|
30
|
-
vclTpNm: string;
|
|
31
|
-
/**
|
|
32
|
-
* 省编码
|
|
33
|
-
*/
|
|
34
|
-
province: string;
|
|
35
|
-
/**
|
|
36
|
-
* 市编码
|
|
37
|
-
*/
|
|
38
|
-
city: string;
|
|
39
|
-
/**
|
|
40
|
-
* 区县信息
|
|
41
|
-
*/
|
|
42
|
-
country: string;
|
|
43
|
-
/**
|
|
44
|
-
* 县编码
|
|
45
|
-
*/
|
|
46
|
-
ctyCode: string;
|
|
47
|
-
/**
|
|
48
|
-
* 车辆品牌
|
|
49
|
-
*/
|
|
50
|
-
vbrndCdNm: string;
|
|
51
|
-
/**
|
|
52
|
-
* 车主/业户名称
|
|
53
|
-
*/
|
|
54
|
-
cmpNm: string;
|
|
55
|
-
/**
|
|
56
|
-
* 车辆识别代码/车架号
|
|
57
|
-
*/
|
|
58
|
-
vin: string;
|
|
59
|
-
/**
|
|
60
|
-
* 总质量/准牵引总质量 (kg)
|
|
61
|
-
*/
|
|
62
|
-
vclTon: string;
|
|
63
|
-
/**
|
|
64
|
-
* 核定载重量 (kg)
|
|
65
|
-
*/
|
|
66
|
-
ldTn: string;
|
|
67
|
-
/**
|
|
68
|
-
* 内廓尺寸长 (mm)
|
|
69
|
-
*/
|
|
70
|
-
boxLng: string;
|
|
71
|
-
/**
|
|
72
|
-
* 内廓尺寸宽 (mm)
|
|
73
|
-
*/
|
|
74
|
-
boxWdt: string;
|
|
75
|
-
/**
|
|
76
|
-
* 内廓尺寸高 (mm)
|
|
77
|
-
*/
|
|
78
|
-
boxHgt: string;
|
|
79
|
-
/**
|
|
80
|
-
* 外廓尺寸高 (mm)
|
|
81
|
-
*/
|
|
82
|
-
vclHgt: string;
|
|
83
|
-
/**
|
|
84
|
-
* 行驶证有效期 (yyyy-MM-dd)
|
|
85
|
-
*/
|
|
86
|
-
boxVdy: string;
|
|
87
|
-
/**
|
|
88
|
-
* 行驶证有效期 UTC (Unix时间戳)
|
|
89
|
-
*/
|
|
90
|
-
drvLicVdy: string;
|
|
91
|
-
/**
|
|
92
|
-
* 联系人姓名
|
|
93
|
-
*/
|
|
94
|
-
vclWnrNm: string;
|
|
95
|
-
/**
|
|
96
|
-
* 联系人手机号
|
|
97
|
-
*/
|
|
98
|
-
vclWnrPhn: string;
|
|
99
|
-
/**
|
|
100
|
-
* 车牌颜色
|
|
101
|
-
*/
|
|
102
|
-
vclColor: number;
|
|
103
|
-
}
|
|
104
3
|
export interface SinoiovVehicleInfo {
|
|
105
4
|
/**
|
|
106
5
|
* 车牌号
|
|
@@ -180,16 +79,6 @@ export interface SinoiovVehicleInfo {
|
|
|
180
79
|
*/
|
|
181
80
|
icons?: number[];
|
|
182
81
|
}
|
|
183
|
-
export interface VehicleInfoResponse {
|
|
184
|
-
/**
|
|
185
|
-
* 首车查询结果
|
|
186
|
-
*/
|
|
187
|
-
firstVcl: SinoiovVehicleInfo;
|
|
188
|
-
/**
|
|
189
|
-
* 其余车辆列表
|
|
190
|
-
*/
|
|
191
|
-
others: SinoiovVehicleInfo[];
|
|
192
|
-
}
|
|
193
82
|
export interface SinoiovVehicleSnayiVehicleResponse {
|
|
194
83
|
vehicleInfo: SinoiovVehicleInfo;
|
|
195
84
|
deviceInfo?: SnayiVehicleInfoResponse;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface DrawTextOptions {
|
|
2
|
+
center: number[];
|
|
3
|
+
text: string;
|
|
4
|
+
textColor: string;
|
|
5
|
+
leftIcon?: LeftIconOptions;
|
|
6
|
+
rightIcons?: string[];
|
|
7
|
+
font?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DrawPolygonOptions {
|
|
10
|
+
points: number[][];
|
|
11
|
+
strokeColor: string;
|
|
12
|
+
fillColor: string;
|
|
13
|
+
shouldClosePath: boolean;
|
|
14
|
+
translation?: number[];
|
|
15
|
+
rotation?: number;
|
|
16
|
+
rotationCenter?: number[];
|
|
17
|
+
scale?: number;
|
|
18
|
+
globalAlpha?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface DrawLabelOptions {
|
|
21
|
+
center: number[];
|
|
22
|
+
text: string;
|
|
23
|
+
color: string;
|
|
24
|
+
textColor: string;
|
|
25
|
+
bgColor: string;
|
|
26
|
+
leftIcon?: LeftIconOptions;
|
|
27
|
+
rightIcons?: string[];
|
|
28
|
+
}
|
|
29
|
+
export interface LeftIconOptions {
|
|
30
|
+
icon: string;
|
|
31
|
+
color: string;
|
|
32
|
+
}
|
|
@@ -17,6 +17,9 @@ export declare class ShipMapData {
|
|
|
17
17
|
posType: number;
|
|
18
18
|
type: string;
|
|
19
19
|
angle: number;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
leftIconColor?: string | null;
|
|
21
|
+
existDevice?: boolean;
|
|
22
|
+
existMobile?: boolean;
|
|
23
|
+
existWaterGauge?: boolean;
|
|
24
|
+
constructor(id: string, mmsi: string, fill: string, shipType: string, name: string, length: number, breadth: number, lon: number, lat: number, createdAt: number, speed: number, from: string, sailStatus: string, hdg: number, cog: number, posType: number, type: string, angle: number, leftIconColor?: string | null, existDevice?: boolean, existMobile?: boolean, existWaterGauge?: boolean);
|
|
22
25
|
}
|
|
@@ -172,3 +172,174 @@ export interface MediaChannel {
|
|
|
172
172
|
*/
|
|
173
173
|
videoChannel: number;
|
|
174
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* 行驶证信息响应实体类
|
|
177
|
+
*/
|
|
178
|
+
export interface QueryLicenseResponse {
|
|
179
|
+
/**
|
|
180
|
+
* 外廓尺寸长 (mm)
|
|
181
|
+
*/
|
|
182
|
+
vclLng: string;
|
|
183
|
+
/**
|
|
184
|
+
* 外廓尺寸宽 (mm)
|
|
185
|
+
*/
|
|
186
|
+
vclWdt: string;
|
|
187
|
+
/**
|
|
188
|
+
* 车轴数
|
|
189
|
+
*/
|
|
190
|
+
vehicleAxis: string;
|
|
191
|
+
/**
|
|
192
|
+
* 车辆品牌
|
|
193
|
+
*/
|
|
194
|
+
prdCdNm: string;
|
|
195
|
+
/**
|
|
196
|
+
* 行驶证发证日期 (yyyy-MM-dd)
|
|
197
|
+
*/
|
|
198
|
+
drvLicDt: string;
|
|
199
|
+
/**
|
|
200
|
+
* 车辆类型
|
|
201
|
+
*/
|
|
202
|
+
vclTpNm: string;
|
|
203
|
+
/**
|
|
204
|
+
* 省编码
|
|
205
|
+
*/
|
|
206
|
+
province: string;
|
|
207
|
+
/**
|
|
208
|
+
* 市编码
|
|
209
|
+
*/
|
|
210
|
+
city: string;
|
|
211
|
+
/**
|
|
212
|
+
* 区县信息
|
|
213
|
+
*/
|
|
214
|
+
country: string;
|
|
215
|
+
/**
|
|
216
|
+
* 县编码
|
|
217
|
+
*/
|
|
218
|
+
ctyCode: string;
|
|
219
|
+
/**
|
|
220
|
+
* 车辆品牌
|
|
221
|
+
*/
|
|
222
|
+
vbrndCdNm: string;
|
|
223
|
+
/**
|
|
224
|
+
* 车主/业户名称
|
|
225
|
+
*/
|
|
226
|
+
cmpNm: string;
|
|
227
|
+
/**
|
|
228
|
+
* 车辆识别代码/车架号
|
|
229
|
+
*/
|
|
230
|
+
vin: string;
|
|
231
|
+
/**
|
|
232
|
+
* 总质量/准牵引总质量 (kg)
|
|
233
|
+
*/
|
|
234
|
+
vclTon: string;
|
|
235
|
+
/**
|
|
236
|
+
* 核定载重量 (kg)
|
|
237
|
+
*/
|
|
238
|
+
ldTn: string;
|
|
239
|
+
/**
|
|
240
|
+
* 内廓尺寸长 (mm)
|
|
241
|
+
*/
|
|
242
|
+
boxLng: string;
|
|
243
|
+
/**
|
|
244
|
+
* 内廓尺寸宽 (mm)
|
|
245
|
+
*/
|
|
246
|
+
boxWdt: string;
|
|
247
|
+
/**
|
|
248
|
+
* 内廓尺寸高 (mm)
|
|
249
|
+
*/
|
|
250
|
+
boxHgt: string;
|
|
251
|
+
/**
|
|
252
|
+
* 外廓尺寸高 (mm)
|
|
253
|
+
*/
|
|
254
|
+
vclHgt: string;
|
|
255
|
+
/**
|
|
256
|
+
* 行驶证有效期 (yyyy-MM-dd)
|
|
257
|
+
*/
|
|
258
|
+
boxVdy: string;
|
|
259
|
+
/**
|
|
260
|
+
* 行驶证有效期 UTC (Unix时间戳)
|
|
261
|
+
*/
|
|
262
|
+
drvLicVdy: string;
|
|
263
|
+
/**
|
|
264
|
+
* 联系人姓名
|
|
265
|
+
*/
|
|
266
|
+
vclWnrNm: string;
|
|
267
|
+
/**
|
|
268
|
+
* 联系人手机号
|
|
269
|
+
*/
|
|
270
|
+
vclWnrPhn: string;
|
|
271
|
+
/**
|
|
272
|
+
* 车牌颜色
|
|
273
|
+
*/
|
|
274
|
+
vclColor: number;
|
|
275
|
+
}
|
|
276
|
+
export interface VehicleInfo {
|
|
277
|
+
/**
|
|
278
|
+
* 车牌号
|
|
279
|
+
*/
|
|
280
|
+
vno: string;
|
|
281
|
+
/**
|
|
282
|
+
* 状态码
|
|
283
|
+
*/
|
|
284
|
+
status: string;
|
|
285
|
+
/**
|
|
286
|
+
* 车辆最后定位经度
|
|
287
|
+
*/
|
|
288
|
+
lon: string;
|
|
289
|
+
/**
|
|
290
|
+
* 车辆最后定位纬度
|
|
291
|
+
*/
|
|
292
|
+
lat: string;
|
|
293
|
+
/**
|
|
294
|
+
* 车辆地理位置名称
|
|
295
|
+
*/
|
|
296
|
+
adr: string;
|
|
297
|
+
/**
|
|
298
|
+
* 车辆定位时间戳
|
|
299
|
+
*/
|
|
300
|
+
utc: string;
|
|
301
|
+
/**
|
|
302
|
+
* 速度
|
|
303
|
+
*/
|
|
304
|
+
spd: string;
|
|
305
|
+
/**
|
|
306
|
+
* 方向
|
|
307
|
+
*/
|
|
308
|
+
drc: string;
|
|
309
|
+
/**
|
|
310
|
+
* 省
|
|
311
|
+
*/
|
|
312
|
+
province: string;
|
|
313
|
+
/**
|
|
314
|
+
* 市
|
|
315
|
+
*/
|
|
316
|
+
city: string;
|
|
317
|
+
/**
|
|
318
|
+
* 县
|
|
319
|
+
*/
|
|
320
|
+
country: string;
|
|
321
|
+
/**
|
|
322
|
+
* 里程
|
|
323
|
+
*/
|
|
324
|
+
mil: string;
|
|
325
|
+
/**
|
|
326
|
+
* 离线状态
|
|
327
|
+
*/
|
|
328
|
+
offlineState: boolean;
|
|
329
|
+
/**
|
|
330
|
+
* 离线时长
|
|
331
|
+
*/
|
|
332
|
+
offlineTime: number;
|
|
333
|
+
/**
|
|
334
|
+
* 车辆已行驶距
|
|
335
|
+
*/
|
|
336
|
+
runDistance: string;
|
|
337
|
+
/**
|
|
338
|
+
* 剩余运距
|
|
339
|
+
*/
|
|
340
|
+
remainDistance: string;
|
|
341
|
+
/**
|
|
342
|
+
* 预计到达时间
|
|
343
|
+
*/
|
|
344
|
+
estimateArriveTime: string;
|
|
345
|
+
}
|
|
@@ -2,10 +2,12 @@ export type { BaseEntity } from './common/BaseEntity';
|
|
|
2
2
|
export type { Page, PageRequest } from './common/page';
|
|
3
3
|
export type { TruckMarker, CityGroupStatistics, HighlightTruck } from './entity/dashboard';
|
|
4
4
|
export type { MapViewForm, TrackExtend, RenderOption } from './entity/map';
|
|
5
|
-
export type {
|
|
5
|
+
export type { SinoiovVehicleInfo, SinoiovVehicleSnayiVehicleResponse } from './entity/queryLicenseResponse';
|
|
6
|
+
export type { DrawTextOptions, DrawPolygonOptions, DrawLabelOptions, LeftIconOptions } from './entity/render';
|
|
6
7
|
export type { Ship, ShipQueryParam, ShipForm, AisTrackForm, CertificateFiles, ShipInfoForm, ShipUpdateForm, ImgType, BindParams, ShipBindDevice } from './entity/ship';
|
|
7
8
|
export type { ShipInfoVo } from './entity/shipInfoVo';
|
|
8
9
|
export { ShipMapData } from './entity/shipMapData';
|
|
9
10
|
export type { ShipMarker } from './entity/shipMarker';
|
|
10
|
-
export type { ShipTrack
|
|
11
|
-
export type { Vehicle, VehicleCertificationListReq, VehicleCertificationUpdateParams, VehicleInfoUpdateByKeyForm, VehicleHistory, SnayiVehicleInfoResponse, MediaChannel } from './entity/vehicle';
|
|
11
|
+
export type { ShipTrack } from './entity/shipTrack';
|
|
12
|
+
export type { Vehicle, VehicleCertificationListReq, VehicleCertificationUpdateParams, VehicleInfoUpdateByKeyForm, VehicleHistory, SnayiVehicleInfoResponse, MediaChannel, QueryLicenseResponse, VehicleInfo } from './entity/vehicle';
|
|
13
|
+
export type { VehicleVo, VehicleInfoResponse } from './vo/vehicleVo';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { QueryLicenseResponse, VehicleInfo } from '../entity/vehicle.ts';
|
|
2
|
+
|
|
3
|
+
export interface VehicleVo {
|
|
4
|
+
/**
|
|
5
|
+
* 车牌号
|
|
6
|
+
*/
|
|
7
|
+
vno: string;
|
|
8
|
+
queryLicense: QueryLicenseResponse;
|
|
9
|
+
vehicleInfo: VehicleInfo | null;
|
|
10
|
+
}
|
|
11
|
+
export interface VehicleInfoResponse {
|
|
12
|
+
/**
|
|
13
|
+
* 首车查询结果
|
|
14
|
+
*/
|
|
15
|
+
firstVcl: VehicleInfo;
|
|
16
|
+
/**
|
|
17
|
+
* 其余车辆列表
|
|
18
|
+
*/
|
|
19
|
+
others: VehicleInfo[];
|
|
20
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { DrawLabelOptions, DrawPolygonOptions, DrawTextOptions } from '../../interface';
|
|
2
|
+
|
|
1
3
|
export declare const fillRectRadius: (ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, color: string, radius?: number) => void;
|
|
2
4
|
export declare const getPixelFromCoordinate: (points: number[][]) => number[];
|
|
5
|
+
export declare const calculatePolygonCentroid: (coordinates: number[][]) => number[];
|
|
3
6
|
export declare const rotateShapeModel: (model: number[][], angle: number) => number[][];
|
|
4
|
-
export declare const drawText: (ctx: CanvasRenderingContext2D,
|
|
5
|
-
export declare const drawPolygon: (ctx: CanvasRenderingContext2D,
|
|
6
|
-
export declare const drawLabel: (ctx: CanvasRenderingContext2D,
|
|
7
|
+
export declare const drawText: (ctx: CanvasRenderingContext2D, options: DrawTextOptions) => void;
|
|
8
|
+
export declare const drawPolygon: (ctx: CanvasRenderingContext2D, options: DrawPolygonOptions) => void;
|
|
9
|
+
export declare const drawLabel: (ctx: CanvasRenderingContext2D, options: DrawLabelOptions) => null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare function addInteraction(callback: Function): void;
|
|
2
|
+
declare function removeInteraction(): void;
|
|
3
|
+
export declare const drawPolygonTool: {
|
|
4
|
+
addInteraction: typeof addInteraction;
|
|
5
|
+
removeInteraction: typeof removeInteraction;
|
|
6
|
+
initFeature: (callback: Function) => void;
|
|
7
|
+
reset: () => void;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -4,7 +4,12 @@ import { default as VectorSource } from 'ol/source/Vector';
|
|
|
4
4
|
import { default as VectorLayer } from 'ol/layer/Vector';
|
|
5
5
|
import { ShipInfoVo } from '../interface';
|
|
6
6
|
import { default as WebGLPointsLayer } from 'ol/layer/WebGLPoints';
|
|
7
|
+
import { SWITCH_BTN } from '../enum';
|
|
7
8
|
|
|
8
9
|
export declare const renderShips: (list: ShipInfoVo[]) => VectorLayer<VectorSource<any>, any> | WebGLPointsLayer<VectorSource<Feature<Geometry>>> | undefined;
|
|
9
10
|
export declare const deleteAllShipMarkers: () => void;
|
|
10
|
-
export declare const findShip: (id: string) => any;
|
|
11
|
+
export declare const findShip: (id: string, shipData?: ShipInfoVo, select?: boolean) => any;
|
|
12
|
+
export declare const clearSelectFeature: () => void;
|
|
13
|
+
export declare const hiddenAllShips: () => void;
|
|
14
|
+
export declare const switchFilterItem: (key: SWITCH_BTN, value: boolean) => void;
|
|
15
|
+
export declare const rerenderShip: () => void;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Overlay } from 'ol';
|
|
2
|
+
import { VehicleInfo } from '../interface';
|
|
3
|
+
|
|
4
|
+
export declare const findTruck: (vehicleInfo?: VehicleInfo) => Promise<void>;
|
|
3
5
|
export declare const clearAllTruck: () => void;
|
|
6
|
+
export declare const drawTruckIcon: (id: string, centerPixel: number[], drc: string) => Overlay | undefined;
|
|
4
7
|
export declare const removeTruckIcon: () => void;
|
|
8
|
+
export declare const drawTruckPopup: (info: any, centerPixel: number[]) => Overlay | undefined;
|
|
9
|
+
export declare const zoomTruckIcon: () => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Geometry, LineString, Polygon } from 'ol/geom';
|
|
2
|
+
import { ShipInfoVo, ShipMapData } from '../interface';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* 计算多段线距离.
|
|
@@ -14,3 +15,4 @@ export declare const convertSixHundredThousandToLatLng: (valueX: number | string
|
|
|
14
15
|
* @return {string} Formatted area.
|
|
15
16
|
*/
|
|
16
17
|
export declare const formatArea: (polygon: Polygon | Geometry, unit: number) => string | undefined;
|
|
18
|
+
export declare const convertShipMapData: (shipData: ShipInfoVo[] | ShipInfoVo) => ShipMapData | ShipMapData[];
|
|
@@ -4,9 +4,12 @@ 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
8
|
|
|
8
9
|
export declare const mapInstance: Ref<MapType | undefined, MapType | undefined>;
|
|
9
10
|
export declare const shipsLayer: Ref<VectorLayer | undefined>;
|
|
11
|
+
export declare const selectShipsLayer: Ref<VectorLayer | undefined>;
|
|
12
|
+
export declare const allShips: Ref<ShipInfoVo[]>;
|
|
10
13
|
export declare const largeAmountShipsLayer: Ref<WebGLPointsLayer<VectorSource<Feature<Geometry>>> | undefined>;
|
|
11
14
|
export declare const statisticsLayer: Ref<VectorLayer | undefined>;
|
|
12
15
|
export declare const trucksLayer: Ref<VectorLayer | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|