zhihao-ui 1.2.5 → 1.2.7

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.
Files changed (28) hide show
  1. package/dist/es/{DiyDataTable-DBonLs6p.js → DiyDataTable-CP7yYQaU.js} +1 -0
  2. package/dist/es/{Map-BLQnapy4.js → Map-IjNHD4K5.js} +446 -274
  3. package/dist/es/index.js +18 -16
  4. package/dist/index.css +1 -1
  5. package/dist/types/components/DiyDataTable/index.d.ts +1 -0
  6. package/dist/types/components/Map/Map.vue.d.ts +14 -2
  7. package/dist/types/components/Map/config.d.ts +2 -0
  8. package/dist/types/components/Map/enum/index.d.ts +1 -0
  9. package/dist/types/components/Map/enum/ship.d.ts +10 -0
  10. package/dist/types/components/Map/index.d.ts +42 -6
  11. package/dist/types/components/Map/interface/entity/queryLicenseResponse.d.ts +0 -111
  12. package/dist/types/components/Map/interface/entity/shipMapData.d.ts +5 -2
  13. package/dist/types/components/Map/interface/entity/shipMarker.d.ts +2 -2
  14. package/dist/types/components/Map/interface/entity/shipTrack.d.ts +0 -4
  15. package/dist/types/components/Map/interface/entity/vehicle.d.ts +171 -0
  16. package/dist/types/components/Map/interface/index.d.ts +4 -3
  17. package/dist/types/components/Map/interface/vo/vehicleVo.d.ts +20 -0
  18. package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +1 -0
  19. package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +3 -0
  20. package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +1 -1
  21. package/dist/types/components/Map/render/renderMarker.d.ts +6 -0
  22. package/dist/types/components/Map/render/renderShip.d.ts +6 -1
  23. package/dist/types/components/Map/render/renderTruck.d.ts +7 -2
  24. package/dist/types/components/Map/utils/format.d.ts +2 -0
  25. package/dist/types/components/Map/utils/store.d.ts +3 -0
  26. package/dist/umd/index.css +1 -1
  27. package/dist/umd/index.umd.cjs +17 -15
  28. package/package.json +1 -1
@@ -149,3 +149,4 @@ export declare const ZhDiyDataTable: {
149
149
  maxRowLength: number;
150
150
  maxColLength: number;
151
151
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
152
+ export * from './type';
@@ -9,10 +9,22 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
9
9
  mapInstance: Ref<Map | undefined, Map | undefined>;
10
10
  initMap: () => void;
11
11
  renderTrucksMarker: (list: import('./interface/index.ts').SinoiovVehicleInfo[]) => import('ol/layer').Vector<import('ol/source').Vector<any>, any> | undefined;
12
- renderShips: (list: import('./interface/index.ts').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;
12
+ renderShip: (list: import('./interface/index.ts').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;
13
13
  renderTrack: (id: string, list: any[], color: string, unit: string, vehicleType?: "ship" | "truck") => void;
14
+ findTruck: (vehicleInfo?: import('./interface/index.ts').VehicleInfo) => Promise<void>;
15
+ removeTruckIcon: () => void;
16
+ clearAllTruck: () => void;
14
17
  closeTrack: () => void;
15
- findShip: (id: string) => any;
18
+ closeTruckTrack: () => void;
19
+ clearSelectFeature: () => void;
20
+ findShip: (id: string, shipData?: import('./interface/index.ts').ShipInfoVo, select?: boolean) => any;
21
+ showTracks: Ref<import('./interface/index.ts').TrackExtend[], import('./interface/index.ts').TrackExtend[]>;
22
+ removeAllTrackLayer: () => void;
23
+ switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
24
+ rerenderShip: () => void;
25
+ switchGreenDot: () => void;
26
+ zoomTruckIcon: () => void;
27
+ renderTruckTrack: (vclN: string, list: any[], color: string) => void;
16
28
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
29
  zoomChanged: (...args: any[]) => void;
18
30
  extentChanged: (...args: any[]) => void;
@@ -24,3 +24,5 @@ export declare const projection: {
24
24
  data: string;
25
25
  mercator: string;
26
26
  };
27
+ export declare const LOG_DATE_FORMAT = "YYYY-MM-DD HH:mm:ss";
28
+ export declare const DEFAULT_VALUE = "--";
@@ -2,3 +2,4 @@ export { CAR_COLOR } from './car';
2
2
  export { DEVICE_TYPE } from './device';
3
3
  export { LENGTH_UNIT } from './openLayers';
4
4
  export { LENGTH_UNIT_LABEL } from './openLayers';
5
+ export { SEARCH_TYPE, SWITCH_BTN } from './ship';
@@ -0,0 +1,10 @@
1
+ export declare enum SEARCH_TYPE {
2
+ SEARCH_SHIP = 0,
3
+ SEARCH_PORT = 1,
4
+ SEARCH_CUSTOM = 2
5
+ }
6
+ export declare enum SWITCH_BTN {
7
+ Camera = "camera",
8
+ Mobile = "mobile",
9
+ WaterGauge = "waterGauge"
10
+ }
@@ -19,10 +19,22 @@ export declare const ZhMap: {
19
19
  mapInstance: import('vue').Ref<import('ol').Map | undefined, import('ol').Map | undefined>;
20
20
  initMap: () => void;
21
21
  renderTrucksMarker: (list: import('./interface').SinoiovVehicleInfo[]) => import('ol/layer').Vector<import('ol/source').Vector<any>, any> | undefined;
22
- renderShips: (list: import('./interface').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;
22
+ renderShip: (list: import('./interface').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;
23
23
  renderTrack: (id: string, list: any[], color: string, unit: string, vehicleType?: "ship" | "truck") => void;
24
+ findTruck: (vehicleInfo?: import('./interface').VehicleInfo) => Promise<void>;
25
+ removeTruckIcon: () => void;
26
+ clearAllTruck: () => void;
24
27
  closeTrack: () => void;
25
- findShip: (id: string) => any;
28
+ closeTruckTrack: () => void;
29
+ clearSelectFeature: () => void;
30
+ findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
31
+ showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
32
+ removeAllTrackLayer: () => void;
33
+ switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
34
+ rerenderShip: () => void;
35
+ switchGreenDot: () => void;
36
+ zoomTruckIcon: () => void;
37
+ renderTruckTrack: (vclN: string, list: any[], color: string) => void;
26
38
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
39
  zoomChanged: (...args: any[]) => void;
28
40
  extentChanged: (...args: any[]) => void;
@@ -53,10 +65,22 @@ export declare const ZhMap: {
53
65
  mapInstance: import('vue').Ref<import('ol').Map | undefined, import('ol').Map | undefined>;
54
66
  initMap: () => void;
55
67
  renderTrucksMarker: (list: import('./interface').SinoiovVehicleInfo[]) => import('ol/layer').Vector<import('ol/source').Vector<any>, any> | undefined;
56
- renderShips: (list: import('./interface').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;
68
+ renderShip: (list: import('./interface').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;
57
69
  renderTrack: (id: string, list: any[], color: string, unit: string, vehicleType?: "ship" | "truck") => void;
70
+ findTruck: (vehicleInfo?: import('./interface').VehicleInfo) => Promise<void>;
71
+ removeTruckIcon: () => void;
72
+ clearAllTruck: () => void;
58
73
  closeTrack: () => void;
59
- findShip: (id: string) => any;
74
+ closeTruckTrack: () => void;
75
+ clearSelectFeature: () => void;
76
+ findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
77
+ showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
78
+ removeAllTrackLayer: () => void;
79
+ switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
80
+ rerenderShip: () => void;
81
+ switchGreenDot: () => void;
82
+ zoomTruckIcon: () => void;
83
+ renderTruckTrack: (vclN: string, list: any[], color: string) => void;
60
84
  }, {}, {}, {}, {}>;
61
85
  __isFragment?: never;
62
86
  __isTeleport?: never;
@@ -81,10 +105,22 @@ export declare const ZhMap: {
81
105
  mapInstance: import('vue').Ref<import('ol').Map | undefined, import('ol').Map | undefined>;
82
106
  initMap: () => void;
83
107
  renderTrucksMarker: (list: import('./interface').SinoiovVehicleInfo[]) => import('ol/layer').Vector<import('ol/source').Vector<any>, any> | undefined;
84
- renderShips: (list: import('./interface').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;
108
+ renderShip: (list: import('./interface').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;
85
109
  renderTrack: (id: string, list: any[], color: string, unit: string, vehicleType?: "ship" | "truck") => void;
110
+ findTruck: (vehicleInfo?: import('./interface').VehicleInfo) => Promise<void>;
111
+ removeTruckIcon: () => void;
112
+ clearAllTruck: () => void;
86
113
  closeTrack: () => void;
87
- findShip: (id: string) => any;
114
+ closeTruckTrack: () => void;
115
+ clearSelectFeature: () => void;
116
+ findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
117
+ showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
118
+ removeAllTrackLayer: () => void;
119
+ switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
120
+ rerenderShip: () => void;
121
+ switchGreenDot: () => void;
122
+ zoomTruckIcon: () => void;
123
+ renderTruckTrack: (vclN: string, list: any[], color: string) => void;
88
124
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
89
125
  zoomChanged: (...args: any[]) => void;
90
126
  extentChanged: (...args: any[]) => void;
@@ -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;
@@ -17,6 +17,9 @@ export declare class ShipMapData {
17
17
  posType: number;
18
18
  type: string;
19
19
  angle: number;
20
- isShow: number;
21
- 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, isShow?: number);
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
  }
@@ -1,8 +1,8 @@
1
- import { ShipInfoVo } from './shipInfoVo.ts';
2
1
  import { Feature } from 'ol';
2
+ import { ShipMapData } from './shipMapData.ts';
3
3
 
4
4
  export interface ShipMarker {
5
- ship: ShipInfoVo;
5
+ ship: ShipMapData;
6
6
  lonlat: [number, number];
7
7
  feature: Feature;
8
8
  }
@@ -54,7 +54,3 @@ export interface ShipTrack {
54
54
  time: string;
55
55
  bounds: number[];
56
56
  }
57
- export interface TrackExtend {
58
- mmsi: string;
59
- length: string;
60
- }
@@ -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,11 @@ 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 { QueryLicenseResponse, SinoiovVehicleInfo, VehicleInfoResponse, SinoiovVehicleSnayiVehicleResponse } from './entity/queryLicenseResponse';
5
+ export type { SinoiovVehicleInfo, SinoiovVehicleSnayiVehicleResponse } from './entity/queryLicenseResponse';
6
6
  export type { Ship, ShipQueryParam, ShipForm, AisTrackForm, CertificateFiles, ShipInfoForm, ShipUpdateForm, ImgType, BindParams, ShipBindDevice } from './entity/ship';
7
7
  export type { ShipInfoVo } from './entity/shipInfoVo';
8
8
  export { ShipMapData } from './entity/shipMapData';
9
9
  export type { ShipMarker } from './entity/shipMarker';
10
- export type { ShipTrack, TrackExtend } from './entity/shipTrack';
11
- export type { Vehicle, VehicleCertificationListReq, VehicleCertificationUpdateParams, VehicleInfoUpdateByKeyForm, VehicleHistory, SnayiVehicleInfoResponse, MediaChannel } from './entity/vehicle';
10
+ export type { ShipTrack } from './entity/shipTrack';
11
+ export type { Vehicle, VehicleCertificationListReq, VehicleCertificationUpdateParams, VehicleInfoUpdateByKeyForm, VehicleHistory, SnayiVehicleInfoResponse, MediaChannel, QueryLicenseResponse, VehicleInfo } from './entity/vehicle';
12
+ 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,5 +1,6 @@
1
1
  export declare const fillRectRadius: (ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, color: string, radius?: number) => void;
2
2
  export declare const getPixelFromCoordinate: (points: number[][]) => number[];
3
+ export declare const calculatePolygonCentroid: (coordinates: number[][]) => number[];
3
4
  export declare const rotateShapeModel: (model: number[][], angle: number) => number[][];
4
5
  export declare const drawText: (ctx: CanvasRenderingContext2D, center: number[], text: string, textColor: string, leftIcon: any, rightIcon: any, font?: string) => void;
5
6
  export declare const drawPolygon: (ctx: CanvasRenderingContext2D, points: number[][], strokeColor: string, fillColor: string, shouldClosePath: boolean, translation?: null, rotation?: number, rotationCenter?: number[], scale?: number, globalAlpha?: number) => void;
@@ -0,0 +1,3 @@
1
+ import { Overlay } from 'ol';
2
+
3
+ export declare const drawCustomContent: (id: string, centerPixel: number[], html: string, positioning?: string, draggable?: boolean) => Overlay | undefined;
@@ -1,3 +1,3 @@
1
1
  import { Style } from 'ol/style';
2
2
 
3
- export declare const setShipStyle: (selected: boolean, name: string) => Style;
3
+ export declare const setShipStyle: (selected: boolean) => Style;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 标记点绘制
3
+ */
4
+ export declare const markerPosition: Ref<string>;
5
+ export declare const renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
6
+ export declare const setMarkerPosition: (val: string) => void;
@@ -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
- export declare const truckLayerInit: () => void;
2
- export declare const findTruck: (vehicleInfo?: any) => Promise<void>;
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>;