zhihao-ui 1.3.3 → 1.3.4-alpha.1

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 (99) hide show
  1. package/dist/es/{BaseInfo-BqJWKOdd.js → BaseInfo-DjMoCl6q.js} +1 -1
  2. package/dist/es/{BaseItem-BQbkTxt9.js → BaseItem-4-tfe2b_.js} +3 -3
  3. package/dist/es/{Button-1UUC8v6b.js → Button-CvmMyXpk.js} +2 -2
  4. package/dist/es/{DatePicker-ByP3ZkhE.js → DatePicker-BJ-uEY5y.js} +3 -3
  5. package/dist/es/{DetailHeader-CnZCthjX.js → DetailHeader-RmOylZsk.js} +3 -3
  6. package/dist/es/{DetailSubTitle-COQCdb8X.js → DetailSubTitle-CZ94UNJm.js} +2 -2
  7. package/dist/es/{Dialog-DFQIVnQP.js → Dialog-BR5jfGEM.js} +3 -3
  8. package/dist/es/{DiyDataTable-D0gTwPB4.js → DiyDataTable-DEjYnC6P.js} +4 -4
  9. package/dist/es/{EditInfoPair-CZpQKhX6.js → EditInfoPair-BrrQYpFp.js} +3 -3
  10. package/dist/es/{FileWrapper-C9Cqt-L8.js → FileWrapper-B7CH1kBr.js} +4 -4
  11. package/dist/es/{Grid-CfwiS54k.js → Grid-D8kjRsYq.js} +2 -2
  12. package/dist/es/{InfoPair-ZKRxEmIC.js → InfoPair-D3rzhvxY.js} +3 -3
  13. package/dist/es/{Input-CloA0e6h.js → Input-Z4JEw_7x.js} +3 -3
  14. package/dist/es/{Loading-BXtzvylk.js → Loading-pR0mL-Hq.js} +2 -2
  15. package/dist/es/Map-DKkSq-bX.js +2267 -0
  16. package/dist/es/{MessageBox-BNOuww77.js → MessageBox-DjwiajIV.js} +2 -2
  17. package/dist/es/{MoneyInput-CuHL7bEc.js → MoneyInput-K4LEAm4x.js} +8 -8
  18. package/dist/es/{PageHeadPanel-BroYHTD8.js → PageHeadPanel-DHbOvTJN.js} +2 -2
  19. package/dist/es/{Table-DFGzUqS3.js → Table-DXSMi34f.js} +5 -5
  20. package/dist/es/{ToolTips-BBi5iPOb.js → ToolTips-B_bFypmj.js} +6 -6
  21. package/dist/es/index.js +22 -22
  22. package/dist/es/{utils-BbOeFn3W.js → utils-Dm3IAG7S.js} +3 -3
  23. package/dist/es/{vendor-D-B7bNnH.js → vendor-Cu-tp_n1.js} +8448 -8041
  24. package/dist/index.css +1 -1
  25. package/dist/types/components/CascaderLoadMore/CascaderLoadMore.vue.d.ts +197 -0
  26. package/dist/types/components/CascaderLoadMore/index.d.ts +369 -0
  27. package/dist/types/components/CascaderLoadMore/types.d.ts +7 -0
  28. package/dist/types/components/Map/Map.vue.d.ts +119 -0
  29. package/dist/types/components/Map/components/copyright.vue.d.ts +36 -0
  30. package/dist/types/components/Map/components/measure.vue.d.ts +23 -0
  31. package/dist/types/components/Map/components/scaleLine.vue.d.ts +2 -1
  32. package/dist/types/components/Map/components/toolPanel.vue.d.ts +40 -0
  33. package/dist/types/components/Map/components/zoomControl.vue.d.ts +13 -1
  34. package/dist/types/components/Map/config.d.ts +32 -0
  35. package/dist/types/components/Map/enum/car.d.ts +5 -0
  36. package/dist/types/components/Map/enum/device.d.ts +8 -0
  37. package/dist/types/components/Map/enum/index.d.ts +5 -0
  38. package/dist/types/components/Map/enum/openLayers.d.ts +10 -0
  39. package/dist/types/components/Map/enum/ship.d.ts +50 -0
  40. package/dist/types/components/Map/function/carTrack.d.ts +7 -14
  41. package/dist/types/components/Map/function/drawLine.d.ts +4 -4
  42. package/dist/types/components/Map/function/drawPolygon.d.ts +5 -2
  43. package/dist/types/components/Map/function/event.d.ts +9 -0
  44. package/dist/types/components/Map/function/layers.d.ts +8 -5
  45. package/dist/types/components/Map/function/map.d.ts +14 -10
  46. package/dist/types/components/Map/function/port.d.ts +7 -6
  47. package/dist/types/components/Map/function/position.d.ts +8 -0
  48. package/dist/types/components/Map/function/props.d.ts +5 -2
  49. package/dist/types/components/Map/function/ship/index.d.ts +14 -29
  50. package/dist/types/components/Map/function/ship/style.d.ts +14 -6
  51. package/dist/types/components/Map/function/shipTrack.d.ts +14 -20
  52. package/dist/types/components/Map/index.d.ts +373 -0
  53. package/dist/types/components/Map/interface/common/BaseEntity.d.ts +29 -0
  54. package/dist/types/components/Map/interface/common/page.d.ts +34 -0
  55. package/dist/types/components/Map/interface/entity/dashboard.d.ts +16 -0
  56. package/dist/types/components/Map/interface/entity/map.d.ts +36 -0
  57. package/dist/types/components/Map/interface/entity/point.d.ts +10 -0
  58. package/dist/types/components/Map/interface/entity/queryLicenseResponse.d.ts +86 -0
  59. package/dist/types/components/Map/interface/entity/render.d.ts +57 -0
  60. package/dist/types/components/Map/interface/entity/ship.d.ts +361 -0
  61. package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +210 -0
  62. package/dist/types/components/Map/interface/entity/shipMapData.d.ts +27 -0
  63. package/dist/types/components/Map/interface/entity/shipMarker.d.ts +8 -0
  64. package/dist/types/components/Map/interface/entity/shipTrack.d.ts +56 -0
  65. package/dist/types/components/Map/interface/entity/vehicle.d.ts +345 -0
  66. package/dist/types/components/Map/interface/index.d.ts +1 -0
  67. package/dist/types/components/Map/interface/mapProps.d.ts +7 -7
  68. package/dist/types/components/Map/interface/position.d.ts +7 -0
  69. package/dist/types/components/Map/interface/shipInfoVo.d.ts +2 -0
  70. package/dist/types/components/Map/interface/vo/vehicleVo.d.ts +20 -0
  71. package/dist/types/components/Map/meta/index.d.ts +5 -0
  72. package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +15 -0
  73. package/dist/types/components/Map/render/canvasRender/geometry.d.ts +22 -0
  74. package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +5 -0
  75. package/dist/types/components/Map/render/canvasRender/renderPointStyle.d.ts +10 -0
  76. package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +5 -0
  77. package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +12 -0
  78. package/dist/types/components/Map/render/canvasRender/renderTruckStyle.d.ts +3 -0
  79. package/dist/types/components/Map/render/drawPolygon.d.ts +10 -0
  80. package/dist/types/components/Map/render/renderDashboard.d.ts +12 -0
  81. package/dist/types/components/Map/render/renderMarker.d.ts +7 -0
  82. package/dist/types/components/Map/render/renderPoint.d.ts +80 -0
  83. package/dist/types/components/Map/render/renderShip.d.ts +20 -0
  84. package/dist/types/components/Map/render/renderTrack.d.ts +12 -0
  85. package/dist/types/components/Map/render/renderTruck.d.ts +10 -0
  86. package/dist/types/components/Map/useMap.d.ts +17 -0
  87. package/dist/types/components/Map/utils/common.d.ts +27 -0
  88. package/dist/types/components/Map/utils/cursor.d.ts +3 -2
  89. package/dist/types/components/Map/utils/events.d.ts +4 -2
  90. package/dist/types/components/Map/utils/format.d.ts +10 -0
  91. package/dist/types/components/Map/{function → utils}/shipOverlay.d.ts +4 -4
  92. package/dist/types/components/Map/utils/store.d.ts +32 -0
  93. package/dist/types/components/Map/utils/track.d.ts +44 -0
  94. package/dist/types/components/Map/utils/transform.d.ts +44 -0
  95. package/dist/umd/index.css +1 -1
  96. package/dist/umd/index.umd.cjs +91 -103
  97. package/package.json +1 -1
  98. package/dist/es/Map-Ce0s7g5Z.js +0 -1700
  99. package/dist/types/components/Map/utils/util.d.ts +0 -42
@@ -0,0 +1,345 @@
1
+ import { BaseEntity } from '@/common/baseEntity';
2
+ import { PageRequest } from '@/common/page';
3
+
4
+ export interface Vehicle extends BaseEntity {
5
+ plateNumber: string;
6
+ color: number;
7
+ vehicleType: string;
8
+ owner: string;
9
+ natureUse: string;
10
+ drivingLicenseRegistrationDate: string;
11
+ drivingLicenseIssueDate: string;
12
+ drivingLicenseExpirationDate: string;
13
+ dimensions: string;
14
+ loadCapacity: number;
15
+ drivingLicenseImg1: number;
16
+ drivingLicenseImg2: number;
17
+ roadTransportOwner: string;
18
+ roadTransportCert: string;
19
+ businessScope: string;
20
+ roadTransportCertIssueDate: string;
21
+ roadTransportCertExpirationDate: string;
22
+ transportCertImg: number;
23
+ driver: string;
24
+ driverId: number;
25
+ bindingId: number;
26
+ motorCarrierId: number;
27
+ motorCarrier: string;
28
+ applyState: number;
29
+ rejectReason: string;
30
+ vehicleOwnership: number;
31
+ transportState: number;
32
+ vehicleState: number;
33
+ }
34
+ export interface VehicleCertificationListReq extends PageRequest {
35
+ plateNumber?: string;
36
+ driver?: string;
37
+ applyState?: number;
38
+ }
39
+ export interface VehicleCertificationUpdateParams {
40
+ id: number;
41
+ plateNumber: string;
42
+ color: number;
43
+ vehicleType: number;
44
+ owner: string;
45
+ usage: string;
46
+ drivingLicenseRegistrationDate: string;
47
+ drivingLicenseIssueDate: string;
48
+ drivingLicenseExpirationDate: string;
49
+ dimensions: string;
50
+ loadCapacity: number;
51
+ drivingLicenseImg1: number;
52
+ drivingLicenseImg2: number;
53
+ roadTransportOwner: string;
54
+ roadTransportCert: string;
55
+ businessScope: string;
56
+ roadTransportCertIssueDate?: string;
57
+ roadTransportCertExpirationDate?: string;
58
+ transportCertImg: number;
59
+ driver: string;
60
+ driverId: number;
61
+ bindingId: number;
62
+ motorCarrierId?: number;
63
+ motorCarrier?: string;
64
+ applyState: number;
65
+ rejectReason?: string;
66
+ transportState: number;
67
+ vehicleState: number;
68
+ }
69
+ export interface VehicleInfoUpdateByKeyForm {
70
+ id: number;
71
+ driver?: string;
72
+ driverId?: number;
73
+ bindingId?: number;
74
+ motorCarrierId?: number;
75
+ motorCarrier?: string;
76
+ applyState?: number;
77
+ rejectReason?: string;
78
+ transportState?: number;
79
+ vehicleState?: number;
80
+ }
81
+ export interface VehicleHistory {
82
+ /**
83
+ * 车牌号
84
+ */
85
+ vclN: string;
86
+ /**
87
+ * 车辆颜色
88
+ */
89
+ vclColor: number;
90
+ /**
91
+ * 核定载重量 (kg)
92
+ */
93
+ ldTn: string;
94
+ /**
95
+ * 车辆类型
96
+ */
97
+ vclTpNm: string;
98
+ }
99
+ export interface SnayiVehicleInfoResponse {
100
+ /**
101
+ * 设备名称
102
+ */
103
+ deviceName: string;
104
+ /**
105
+ * 车牌
106
+ */
107
+ carPlate: string;
108
+ /**
109
+ * 定位地址
110
+ */
111
+ addr: string;
112
+ /**
113
+ * 经度
114
+ */
115
+ lng: number;
116
+ /**
117
+ * 纬度
118
+ */
119
+ lat: number;
120
+ /**
121
+ * 定位信号
122
+ */
123
+ satl: string;
124
+ /**
125
+ * 通讯信号
126
+ */
127
+ sgn: string;
128
+ /**
129
+ * 行驶速度
130
+ */
131
+ speed: number;
132
+ /**
133
+ * 行驶方向中文
134
+ */
135
+ drctCn: string;
136
+ /**
137
+ * 行驶方向值
138
+ */
139
+ drct: number;
140
+ /**
141
+ * 载重
142
+ */
143
+ load: number;
144
+ /**
145
+ * 设备上报时间
146
+ */
147
+ time: string;
148
+ /**
149
+ * 车牌颜色
150
+ */
151
+ color: number;
152
+ /**
153
+ * 媒体对接信息
154
+ */
155
+ mediaChannel: MediaChannel;
156
+ }
157
+ /**
158
+ * 车辆媒体接口调用参数
159
+ */
160
+ export interface MediaChannel {
161
+ ip: string;
162
+ mediaPort: number;
163
+ intercomPort: number;
164
+ username: string;
165
+ password: string;
166
+ /**
167
+ * 对话通道
168
+ */
169
+ talkChannel: number;
170
+ /**
171
+ * 视频通道
172
+ */
173
+ videoChannel: number;
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
+ }
@@ -3,3 +3,4 @@ export * from './label';
3
3
  export * from './carTrack';
4
4
  export * from './mapProps';
5
5
  export * from './wharfEntity';
6
+ export * from './position';
@@ -3,13 +3,13 @@ import { Coordinate } from 'ol/coordinate';
3
3
  export interface Props {
4
4
  zoom?: number;
5
5
  center?: Coordinate;
6
- layerType?: 'vector' | 'satellite';
6
+ layerType?: "vector" | "satellite";
7
7
  showGreenLayer?: boolean;
8
8
  showScale?: boolean;
9
- scaleLineUnit?: 'metric' | 'imperial' | 'nautical';
10
- mapMoveEnd: (zoom: number) => void;
11
- lineDrawEnd: (line: any) => void;
12
- areaDrawEnd: (area: []) => void;
13
- selectShip: (id: string) => void;
14
- selectPort: (id: string) => void;
9
+ scaleLineUnit?: "metric" | "imperial" | "nautical";
10
+ mapMoveEnd?: (zoom: number) => void;
11
+ lineDrawEnd?: (line: any) => void;
12
+ areaDrawEnd?: (area: []) => void;
13
+ selectShip?: (id: string) => void;
14
+ selectPort?: (id: WharfEntity) => void;
15
15
  }
@@ -0,0 +1,7 @@
1
+ export interface LocationEntity {
2
+ id: number;
3
+ name?: string;
4
+ latLon: string;
5
+ defaultPath: string;
6
+ selectedPath?: string;
7
+ }
@@ -208,5 +208,7 @@ export interface ShipInfoVo {
208
208
  */
209
209
  existName: number;
210
210
  blinkColors?: string[];
211
+ blinkingColors?: string[];
212
+ blinking?: boolean;
211
213
  isSelected?: boolean;
212
214
  }
@@ -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
+ }
@@ -10,3 +10,8 @@ export declare enum LENGTH_UNIT {
10
10
  KM = 2,// km
11
11
  NM = 3
12
12
  }
13
+ export declare enum LayerType {
14
+ PORT = "port",
15
+ SHIP = "ship",
16
+ TRACK = "track"
17
+ }
@@ -0,0 +1,15 @@
1
+ import { DrawLabelOptions, DrawPolygonOptions, DrawTextOptions } from '../../interface';
2
+ import { DrawLabelFeature } from '../../interface/entity/render.ts';
3
+ import { Map as MapType } from 'ol';
4
+
5
+ export declare const fillRectRadius: (ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, color: string, radius?: number) => void;
6
+ export declare const getPixelFromCoordinate: (points: number[][]) => number[];
7
+ export declare const calculatePolygonCentroid: (coordinates: number[][]) => number[];
8
+ export declare const rotateShapeModel: (model: number[][], angle: number) => number[][];
9
+ export declare const drawText: (ctx: CanvasRenderingContext2D, options: DrawTextOptions) => void;
10
+ export declare const drawPolygon: (ctx: CanvasRenderingContext2D, options: DrawPolygonOptions) => void;
11
+ export declare const drawLabel: (ctx: CanvasRenderingContext2D, options: DrawLabelOptions, labels: DrawLabelFeature[], mapInstanceValue: MapType) => null;
12
+ export declare const checkBlinkLabelExist: (mapInstanceValue: MapType, labels: DrawLabelFeature[], id: string) => void;
13
+ export declare const clearAllInterval: () => void;
14
+ export declare const deleteLabelFromArray: (mapInstanceValue: MapType, labels: DrawLabelFeature[], id: string) => void;
15
+ export declare const deleteLabelFromArrayById: () => void;
@@ -0,0 +1,22 @@
1
+ import { Style } from 'ol/style';
2
+
3
+ export declare const triangleModel: number[][];
4
+ export declare const shipShapeModel: number[][];
5
+ export declare const shipDirectPath: {
6
+ left: {
7
+ 0: number[][];
8
+ 1: number[][];
9
+ 2: number[][];
10
+ };
11
+ right: {
12
+ 0: number[][];
13
+ 1: number[][];
14
+ 2: number[][];
15
+ };
16
+ front: {
17
+ 0: number[][];
18
+ 1: number[][];
19
+ 2: number[][];
20
+ };
21
+ };
22
+ export declare const setBlankStyle: () => Style;
@@ -0,0 +1,5 @@
1
+ import { Map as MapType, Overlay } from 'ol';
2
+ import { Positioning } from 'ol/Overlay';
3
+
4
+ export declare const renderCustomOverlaySetInstance: (instance: MapType) => MapType;
5
+ export declare const drawCustomContent: (id: string, centerPixel: number[], html: string, positioning?: Positioning, draggable?: boolean, clear?: boolean) => Overlay | undefined;
@@ -0,0 +1,10 @@
1
+ import { Style } from 'ol/style';
2
+
3
+ export declare const setPointStyle: (selected: boolean, name: string, options: {
4
+ color: string;
5
+ activeUrl?: string;
6
+ url?: string;
7
+ activeColor?: string;
8
+ imgWidth?: number;
9
+ imgHeight?: number;
10
+ }) => Style;
@@ -0,0 +1,5 @@
1
+ import { Style } from 'ol/style';
2
+ import { Map as MapType } from 'ol';
3
+
4
+ export declare const renderShipStyleSetInstance: (instance: MapType) => void;
5
+ export declare const setShipStyle: (selected: boolean, hover?: boolean) => Style;
@@ -0,0 +1,12 @@
1
+ import { Style } from 'ol/style';
2
+ import { Map as MapType } from 'ol';
3
+ import { ShipTrack } from '../../interface';
4
+
5
+ export declare const renderTrackStyleSetInstance: (instance: MapType) => MapType;
6
+ export declare const renderTrackLine: (data: {
7
+ [key: string]: ShipTrack[];
8
+ }, id: string, trackColor: string, threshold: number) => void;
9
+ export declare const handlePlay: (id: string, speed: number) => void;
10
+ export declare const removeShipTrackLineFeatureByIndex: (index: number, id: string) => void;
11
+ export declare const stopAnimation: () => void;
12
+ export declare const setTrackLabelStyle: (featureData: ShipTrack, trackColor: string) => Style;
@@ -0,0 +1,3 @@
1
+ import { Style } from 'ol/style';
2
+
3
+ export declare const setTruckStyle: (selected: boolean, vno: string, color: number, icons: number[]) => Style;
@@ -0,0 +1,10 @@
1
+ import { Map as MapType } from 'ol';
2
+
3
+ export declare const drawPolygonSetInstance: (instance: MapType) => MapType;
4
+ export declare const drawPolygonTool: {
5
+ addInteraction: (callback?: Function) => void;
6
+ removeInteraction: () => void;
7
+ initFeature: (callback?: Function) => void;
8
+ reset: () => void;
9
+ destroy: () => void;
10
+ };
@@ -0,0 +1,12 @@
1
+ import { Map as MapType } from 'ol';
2
+ import { default as VectorSource } from 'ol/source/Vector';
3
+ import { default as VectorLayer } from 'ol/layer/Vector';
4
+ import { SinoiovVehicleInfo } from '../interface';
5
+
6
+ export declare const renderDashboardSetInstance: (instance: MapType) => MapType;
7
+ export declare const renderStatisticsMarker: (list: SinoiovVehicleInfo[]) => VectorLayer<VectorSource<any>, any> | undefined;
8
+ export declare const deleteAllStatisticsMarkers: () => void;
9
+ export declare const renderTrucksMarker: (list: SinoiovVehicleInfo[]) => VectorLayer<VectorSource<any>, any> | undefined;
10
+ export declare const deleteAllTruckMarkers: () => void;
11
+ export declare const highlightTruckMarker: (vno: string, color: number, icons: number[]) => void;
12
+ export declare const cancelHighlightTruckMarker: (vno: string, color: number, icons: number[]) => void;
@@ -0,0 +1,7 @@
1
+ import { Map as MapType } from 'ol';
2
+ import { Ref } from 'vue';
3
+
4
+ export declare const renderMarkerSetInstance: (instance: MapType) => MapType;
5
+ export declare const markerPosition: Ref<string>;
6
+ export declare const renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
7
+ export declare const setMarkerPosition: (val: string) => void;
@@ -0,0 +1,80 @@
1
+ import { Feature, Map as MapType } from 'ol';
2
+ import { Geometry, Point } from 'ol/geom';
3
+ import { default as VectorSource } from 'ol/source/Vector';
4
+ import { default as VectorLayer } from 'ol/layer/Vector';
5
+ import { PointMarker } from '../interface/entity/point.ts';
6
+
7
+ export declare class PointMarkerClass {
8
+ mapInstance: MapType | undefined;
9
+ pointMarkerList: PointMarker[];
10
+ pointsVectorSource: VectorSource<Feature<Geometry>> | undefined;
11
+ highlightPoint: Omit<PointMarker, "feature"> | undefined;
12
+ pointLayer: VectorLayer | undefined;
13
+ options: {
14
+ color: string;
15
+ activeUrl?: string;
16
+ url?: string;
17
+ activeColor?: string;
18
+ };
19
+ /**
20
+ * 地图实例
21
+ * @param mapInstance
22
+ * 配置渲染点的样式
23
+ * @param options
24
+ */
25
+ constructor(mapInstance: MapType, options: {
26
+ color: string;
27
+ activeUrl?: string;
28
+ url?: string;
29
+ activeColor?: string;
30
+ });
31
+ /**
32
+ * 渲染
33
+ * @param list
34
+ * 格式:
35
+ * 获取数据的id
36
+ * id
37
+ * 地图显示
38
+ * name
39
+ * fullName,
40
+ * 经纬度
41
+ * lon,
42
+ * lat,
43
+ * 渲染点的数据类型,好通过这个判断点击地图获取到的类型, 任意字符串
44
+ * pointType
45
+ */
46
+ renderPointMarker(list: any[]): void;
47
+ deleteAllPointMarkers(id?: string | number): void;
48
+ cancelHighlightTruckMarker(): void;
49
+ /**
50
+ * 设置选中
51
+ * 渲染
52
+ * @param item
53
+ * 格式:
54
+ * 获取数据的id
55
+ * id
56
+ * 地图显示
57
+ * name
58
+ * fullName,
59
+ * 经纬度
60
+ * lon,
61
+ * lat,
62
+ * 渲染点的数据类型,好通过这个判断点击地图获取到的类型, 任意字符串
63
+ * pointType
64
+ */
65
+ highlightPointMarker(item: any): void;
66
+ getFeature(item: any, lonlat: [number, number]): Feature<Point>;
67
+ /**
68
+ *
69
+ * @param lonlat 经纬度
70
+ * @param options {
71
+ * customZoom 自定义层级
72
+ * type 0: 不改变地图大小 1: 等于customZoom 2: 地图当前zoom > 传入的customZoom(缩小地图) 3: 地图当前zoom < 传入的customZoom(放大地图)
73
+ * }
74
+ */
75
+ setPointCenter(lonlat: [number, number], options?: {
76
+ customZoom: number;
77
+ type: number;
78
+ }): void;
79
+ resetPointsView: (points: [number, number][], bufferedRatio?: number) => void;
80
+ }
@@ -0,0 +1,20 @@
1
+ import { Feature, Map as MapType } from 'ol';
2
+ import { Geometry } from 'ol/geom';
3
+ import { default as VectorSource } from 'ol/source/Vector';
4
+ import { default as VectorLayer } from 'ol/layer/Vector';
5
+ import { ShipInfoVo, ShipMarker } from '../interface';
6
+ import { default as WebGLPointsLayer } from 'ol/layer/WebGLPoints';
7
+ import { SWITCH_BTN } from '../enum';
8
+
9
+ export declare const renderShipSetInstance: (instance: MapType) => MapType;
10
+ export declare let shipsMarkerList: ShipMarker[];
11
+ export declare const renderShips: (list: ShipInfoVo[]) => VectorLayer<VectorSource<any>, any> | WebGLPointsLayer<VectorSource<Feature<Geometry>>> | undefined;
12
+ export declare const onShipsMarkerHover: () => void;
13
+ export declare const deleteAllShipMarkers: () => void;
14
+ export declare const setVisibleFeatureById: (source: VectorSource, id: string, visible: boolean) => void;
15
+ export declare const findShip: (id: string, shipData?: ShipInfoVo, select?: boolean) => any;
16
+ export declare const clearSelectFeature: () => void;
17
+ export declare const hiddenAllShips: () => void;
18
+ export declare const switchFilterItem: (key: SWITCH_BTN, value: boolean) => void;
19
+ export declare const rerenderShip: () => void;
20
+ export declare const clearShipData: (clearSelect?: boolean) => void;
@@ -0,0 +1,12 @@
1
+ import { Ref } from 'vue';
2
+ import { TrackExtend } from '../interface';
3
+ import { Map as MapType } from 'ol';
4
+
5
+ export declare const renderTrackSetInstance: (instance: MapType) => MapType;
6
+ export declare const showTracks: Ref<TrackExtend[]>;
7
+ export declare const renderTrack: (id: string, list: any[], color: string, unit: number, vehicleType: ("ship" | "truck") | undefined, threshold: number) => void;
8
+ export declare const removeAllTrackLayer: () => void;
9
+ export declare const playTrack: (id: number | string, speed: number) => void;
10
+ export declare const removerLayer: (index: number) => void;
11
+ export declare const resetTrackView: (id?: number | string) => void;
12
+ export declare const trackLayerVisible: (flag: boolean) => void;
@@ -0,0 +1,10 @@
1
+ import { Map as MapType, Overlay } from 'ol';
2
+ import { VehicleInfo } from '../interface';
3
+
4
+ export declare const renderTruckSetInstance: (instance: MapType) => MapType;
5
+ export declare const findTruck: (vehicleInfo?: VehicleInfo, extendHtml?: string) => Promise<void>;
6
+ export declare const clearAllTruck: () => void;
7
+ export declare const drawTruckIcon: (id: string, centerPixel: number[], drc: string, extendHtml?: string) => Overlay | undefined;
8
+ export declare const removeTruckIcon: () => void;
9
+ export declare const drawTruckPopup: (info: any, centerPixel: number[]) => Overlay | undefined;
10
+ export declare const zoomTruckIcon: () => void;
@@ -0,0 +1,17 @@
1
+ import { Props } from './interface';
2
+
3
+ export interface MapInstance {
4
+ id: symbol;
5
+ destroy: () => void;
6
+ methods: object;
7
+ }
8
+ export declare const useMapController: () => {
9
+ createInstance: (element: HTMLDivElement, props: Props) => MapInstance;
10
+ destroyInstance: (id: symbol) => void;
11
+ destroyAll: () => void;
12
+ getAllInstances: () => {
13
+ id: symbol;
14
+ destroy: () => void;
15
+ methods: object;
16
+ }[];
17
+ };