zhihao-ui 1.3.8 → 1.3.10

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 (38) hide show
  1. package/dist/es/{BaseInfo-DFEg4oWo.js → BaseInfo-Bhin5Xqy.js} +1 -1
  2. package/dist/es/{BaseItem-BvdMV2Gu.js → BaseItem-BoLcxB-U.js} +3 -3
  3. package/dist/es/{Button-NgQ5sHIG.js → Button-DdMNoo0g.js} +2 -2
  4. package/dist/es/{DatePicker-B2pu6NJQ.js → DatePicker-sUXbd9V4.js} +3 -3
  5. package/dist/es/{DetailHeader-DDDbFDig.js → DetailHeader--0WANmGX.js} +3 -3
  6. package/dist/es/{DetailSubTitle-IqUKEU6D.js → DetailSubTitle-BUqZQxrl.js} +2 -2
  7. package/dist/es/{Dialog-DzTqitsD.js → Dialog-BKHohBv4.js} +3 -3
  8. package/dist/es/{DiyDataTable-DlgBshaZ.js → DiyDataTable-GuaKFrG5.js} +4 -4
  9. package/dist/es/{EditInfoPair-DQQoCmp8.js → EditInfoPair-CajUIoGj.js} +3 -3
  10. package/dist/es/{FileWrapper-pzSCoy4C.js → FileWrapper-CvYOVYx4.js} +4 -4
  11. package/dist/es/{Grid-D3sfvKjP.js → Grid-eLpow9Qb.js} +2 -2
  12. package/dist/es/{InfoPair-O3-tZH-B.js → InfoPair-BoTzSjD8.js} +3 -3
  13. package/dist/es/{Input-m8a-UuQp.js → Input-BKzWwcsD.js} +3 -3
  14. package/dist/es/{Loading-5WuhZO5j.js → Loading-3Cz4Wb5p.js} +2 -2
  15. package/dist/es/{Map-C3C8lRE-.js → Map-Dw2qcOkb.js} +349 -283
  16. package/dist/es/{MessageBox-3q9YfNRL.js → MessageBox--A4VqZyI.js} +2 -2
  17. package/dist/es/{MoneyInput-DddMW7cV.js → MoneyInput-DeYknAkX.js} +5 -5
  18. package/dist/es/{PageHeadPanel-BLvPIfGZ.js → PageHeadPanel-8pDHbfnc.js} +2 -2
  19. package/dist/es/{Table-iJRuASc3.js → Table-DcnAnAAU.js} +5 -5
  20. package/dist/es/{ToolTips-Cv8eNWyC.js → ToolTips-xwoX6Ww8.js} +3 -3
  21. package/dist/es/index.js +22 -22
  22. package/dist/es/{utils-DSw1USoH.js → utils-pSjFFegY.js} +1 -1
  23. package/dist/es/{vendor-Cc_TVxUO.js → vendor-CINc7P9P.js} +8 -8
  24. package/dist/index.css +1 -1
  25. package/dist/types/components/Map/Map.vue.d.ts +6 -16
  26. package/dist/types/components/Map/function/position.d.ts +14 -0
  27. package/dist/types/components/Map/function/shipTrack.d.ts +7 -4
  28. package/dist/types/components/Map/index.d.ts +18 -48
  29. package/dist/types/components/Map/interface/index.d.ts +1 -0
  30. package/dist/types/components/Map/utils/util.d.ts +42 -0
  31. package/dist/umd/index.css +1 -1
  32. package/dist/umd/index.umd.cjs +17 -17
  33. package/package.json +1 -1
  34. package/dist/types/components/Map/function/label.d.ts +0 -9
  35. package/dist/types/components/Map/function/location.d.ts +0 -7
  36. package/dist/types/components/Map/function/ship.d.ts +0 -34
  37. package/dist/types/components/Map/function/shipLabel.d.ts +0 -25
  38. /package/dist/types/components/Map/interface/{loaction.d.ts → position.d.ts} +0 -0
@@ -33,7 +33,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
33
33
  clear: () => void;
34
34
  };
35
35
  track: {
36
- render: (id: string, list: import('./interface/shipTrack').ShipTrack[], color: string, type?: string, threshold?: number) => Promise<void>;
36
+ render: (id: string, list: import('./interface/shipTrack').ShipTrack[], color: string, type?: string) => Promise<void>;
37
37
  remove: () => void;
38
38
  play: (id: number | string, speed: number) => void;
39
39
  setCenter: (id?: number | string) => void;
@@ -48,21 +48,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
48
48
  clear: () => void;
49
49
  selected: (portData?: import('./interface').WharfEntity) => void;
50
50
  };
51
- location: {
52
- ancestorOrigins: DOMStringList;
53
- hash: string;
54
- host: string;
55
- hostname: string;
56
- href: string;
57
- toString(): string;
58
- origin: string;
59
- pathname: string;
60
- port: string;
61
- protocol: string;
62
- search: string;
63
- assign(url: string | URL): void;
64
- reload(): void;
65
- replace(url: string | URL): void;
51
+ position: {
52
+ render: (portList: import('./interface').LocationEntity[]) => void;
53
+ selected: (loactionData?: import('./interface').LocationEntity) => void;
54
+ clearSelected: () => void;
55
+ clear: () => void;
66
56
  };
67
57
  drawLine: {
68
58
  open: () => void;
@@ -0,0 +1,14 @@
1
+ import { LocationEntity } from '../interface';
2
+
3
+ export declare const LOCATION_LAYER_CLASS_NAME = "zh-map-location-layer";
4
+ export declare const render: (portList: LocationEntity[]) => void;
5
+ export declare const clearList: () => void;
6
+ export declare const clearSelected: () => void;
7
+ export declare const selectedLocation: (loactionData?: LocationEntity) => void;
8
+ declare const _default: {
9
+ render: (portList: LocationEntity[]) => void;
10
+ selected: (loactionData?: LocationEntity) => void;
11
+ clearSelected: () => void;
12
+ clear: () => void;
13
+ };
14
+ export default _default;
@@ -1,10 +1,10 @@
1
1
  import { Feature, MapBrowserEvent } from 'ol';
2
2
  import { ShipTrack } from '../interface/shipTrack';
3
3
 
4
- export declare const reRenderTrackLine: () => void;
5
- export declare const renderTrackLine: (id: string, list: ShipTrack[], color: string, type?: string, threshold?: number) => Promise<void>;
4
+ export declare const reRenderTrackLine: import('lodash-es').DebouncedFunc<() => void>;
5
+ export declare const renderTrackLine: (id: string, list: ShipTrack[], color: string, type?: string) => Promise<void>;
6
6
  /**
7
- * 悬浮框样式
7
+ * 悬浮框显示事件
8
8
  * @param trunkFeature
9
9
  * @param type
10
10
  * @param event
@@ -15,9 +15,12 @@ export declare const handleTrackMapEvent: (trunkFeature: Feature, type: string,
15
15
  * @param id
16
16
  */
17
17
  export declare const setTrackViewCenter: (id?: number | string) => void;
18
+ /**
19
+ * 移除全部已渲染的轨迹
20
+ */
18
21
  export declare const removeAllTrackLayer: () => void;
19
22
  /**
20
- * 关闭轨迹线
23
+ * 关闭id轨迹线
21
24
  * @param id
22
25
  */
23
26
  export declare const closeTrack: (id?: string) => void;
@@ -69,7 +69,7 @@ export declare const ZhMap: {
69
69
  clear: () => void;
70
70
  };
71
71
  track: {
72
- render: (id: string, list: import('./interface/shipTrack').ShipTrack[], color: string, type?: string, threshold?: number) => Promise<void>;
72
+ render: (id: string, list: import('./interface/shipTrack').ShipTrack[], color: string, type?: string) => Promise<void>;
73
73
  remove: () => void;
74
74
  play: (id: number | string, speed: number) => void;
75
75
  setCenter: (id?: number | string) => void;
@@ -84,21 +84,11 @@ export declare const ZhMap: {
84
84
  clear: () => void;
85
85
  selected: (portData?: import('./interface').WharfEntity) => void;
86
86
  };
87
- location: {
88
- ancestorOrigins: DOMStringList;
89
- hash: string;
90
- host: string;
91
- hostname: string;
92
- href: string;
93
- toString(): string;
94
- origin: string;
95
- pathname: string;
96
- port: string;
97
- protocol: string;
98
- search: string;
99
- assign(url: string | URL): void;
100
- reload(): void;
101
- replace(url: string | URL): void;
87
+ position: {
88
+ render: (portList: import('./interface').LocationEntity[]) => void;
89
+ selected: (loactionData?: import('./interface').LocationEntity) => void;
90
+ clearSelected: () => void;
91
+ clear: () => void;
102
92
  };
103
93
  drawLine: {
104
94
  open: () => void;
@@ -230,7 +220,7 @@ export declare const ZhMap: {
230
220
  clear: () => void;
231
221
  };
232
222
  track: {
233
- render: (id: string, list: import('./interface/shipTrack').ShipTrack[], color: string, type?: string, threshold?: number) => Promise<void>;
223
+ render: (id: string, list: import('./interface/shipTrack').ShipTrack[], color: string, type?: string) => Promise<void>;
234
224
  remove: () => void;
235
225
  play: (id: number | string, speed: number) => void;
236
226
  setCenter: (id?: number | string) => void;
@@ -245,21 +235,11 @@ export declare const ZhMap: {
245
235
  clear: () => void;
246
236
  selected: (portData?: import('./interface').WharfEntity) => void;
247
237
  };
248
- location: {
249
- ancestorOrigins: DOMStringList;
250
- hash: string;
251
- host: string;
252
- hostname: string;
253
- href: string;
254
- toString(): string;
255
- origin: string;
256
- pathname: string;
257
- port: string;
258
- protocol: string;
259
- search: string;
260
- assign(url: string | URL): void;
261
- reload(): void;
262
- replace(url: string | URL): void;
238
+ position: {
239
+ render: (portList: import('./interface').LocationEntity[]) => void;
240
+ selected: (loactionData?: import('./interface').LocationEntity) => void;
241
+ clearSelected: () => void;
242
+ clear: () => void;
263
243
  };
264
244
  drawLine: {
265
245
  open: () => void;
@@ -388,7 +368,7 @@ export declare const ZhMap: {
388
368
  clear: () => void;
389
369
  };
390
370
  track: {
391
- render: (id: string, list: import('./interface/shipTrack').ShipTrack[], color: string, type?: string, threshold?: number) => Promise<void>;
371
+ render: (id: string, list: import('./interface/shipTrack').ShipTrack[], color: string, type?: string) => Promise<void>;
392
372
  remove: () => void;
393
373
  play: (id: number | string, speed: number) => void;
394
374
  setCenter: (id?: number | string) => void;
@@ -403,21 +383,11 @@ export declare const ZhMap: {
403
383
  clear: () => void;
404
384
  selected: (portData?: import('./interface').WharfEntity) => void;
405
385
  };
406
- location: {
407
- ancestorOrigins: DOMStringList;
408
- hash: string;
409
- host: string;
410
- hostname: string;
411
- href: string;
412
- toString(): string;
413
- origin: string;
414
- pathname: string;
415
- port: string;
416
- protocol: string;
417
- search: string;
418
- assign(url: string | URL): void;
419
- reload(): void;
420
- replace(url: string | URL): void;
386
+ position: {
387
+ render: (portList: import('./interface').LocationEntity[]) => void;
388
+ selected: (loactionData?: import('./interface').LocationEntity) => void;
389
+ clearSelected: () => void;
390
+ clear: () => void;
421
391
  };
422
392
  drawLine: {
423
393
  open: () => void;
@@ -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';
@@ -0,0 +1,42 @@
1
+ import { LineString } from 'ol/geom';
2
+ import { Style } from 'ol/style';
3
+
4
+ /**
5
+ * 通过圆心和半径计算区域范围 输出为矩形
6
+ * @param center 圆心坐标
7
+ * @param radiusInKilometers 距离 单位:公里
8
+ */
9
+ export declare const calculateCirclePoints: (center: [number, number], radiusInKilometers: number) => {
10
+ leftTopPoint: {
11
+ lng: number;
12
+ lat: number;
13
+ };
14
+ rightTopPoint: {
15
+ lng: number;
16
+ lat: number;
17
+ };
18
+ rightBottomPoint: {
19
+ lng: number;
20
+ lat: number;
21
+ };
22
+ leftBottomPoint: {
23
+ lng: number;
24
+ lat: number;
25
+ };
26
+ };
27
+ /**
28
+ * 计算多段线距离.
29
+ * @param {LineString} line The line.
30
+ * @param unit
31
+ * @return {string} The formatted length.
32
+ */
33
+ export declare const formatLength: (line: LineString, unit: number) => string;
34
+ export declare function lonLatToMercator(center: [number, number]): number[];
35
+ export declare function getIconFont(unicode?: string): any;
36
+ export declare const getIconStyle: (symbol: string) => Style;
37
+ export declare const mercatorToLonLat: (center: [number, number], type?: string) => number[] | {
38
+ lon: number;
39
+ lat: number;
40
+ };
41
+ export declare const adjustBounds: (bounds: number[], offsets: number[]) => number[];
42
+ export declare const isOverlapping: (bounds1: number[], bounds2: number[]) => boolean;