zhihao-ui 1.3.7 → 1.3.9

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.
@@ -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
- loaction: {
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;
@@ -84,21 +84,11 @@ export declare const ZhMap: {
84
84
  clear: () => void;
85
85
  selected: (portData?: import('./interface').WharfEntity) => void;
86
86
  };
87
- loaction: {
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;
@@ -245,21 +235,11 @@ export declare const ZhMap: {
245
235
  clear: () => void;
246
236
  selected: (portData?: import('./interface').WharfEntity) => void;
247
237
  };
248
- loaction: {
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;
@@ -403,21 +383,11 @@ export declare const ZhMap: {
403
383
  clear: () => void;
404
384
  selected: (portData?: import('./interface').WharfEntity) => void;
405
385
  };
406
- loaction: {
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,7 @@
1
+ export interface LocationEntity {
2
+ id: number;
3
+ name?: string;
4
+ latLon: string;
5
+ defaultPath: string;
6
+ selectedPath?: string;
7
+ }
@@ -17,6 +17,4 @@ export interface WharfEntity {
17
17
  latLon: string;
18
18
  remark: string;
19
19
  fullAddress: string;
20
- defaultPath?: string;
21
- selectedPath?: string;
22
20
  }
@@ -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;