zhihao-ui 1.3.1 → 1.3.3

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 (43) hide show
  1. package/dist/es/{BaseInfo-CqPKfZM2.js → BaseInfo-BqJWKOdd.js} +1 -1
  2. package/dist/es/{BaseItem-XXH5e7db.js → BaseItem-BQbkTxt9.js} +3 -3
  3. package/dist/es/{Button-DLAiqJPu.js → Button-1UUC8v6b.js} +2 -2
  4. package/dist/es/{DatePicker-DNED5PYV.js → DatePicker-ByP3ZkhE.js} +3 -3
  5. package/dist/es/{DetailHeader-BCF-X9k8.js → DetailHeader-CnZCthjX.js} +3 -3
  6. package/dist/es/{DetailSubTitle-Booxy4wf.js → DetailSubTitle-COQCdb8X.js} +2 -2
  7. package/dist/es/{Dialog-gDiUEFNF.js → Dialog-DFQIVnQP.js} +3 -3
  8. package/dist/es/{DiyDataTable-CPFSQBiW.js → DiyDataTable-D0gTwPB4.js} +4 -4
  9. package/dist/es/{EditInfoPair-BeQ_RjRC.js → EditInfoPair-CZpQKhX6.js} +3 -3
  10. package/dist/es/{FileWrapper-CyQAOj8M.js → FileWrapper-C9Cqt-L8.js} +4 -4
  11. package/dist/es/{Grid-DAZ59W8l.js → Grid-CfwiS54k.js} +2 -2
  12. package/dist/es/{InfoPair-D2gWOKNY.js → InfoPair-ZKRxEmIC.js} +3 -3
  13. package/dist/es/{Input-DCs9DGvN.js → Input-CloA0e6h.js} +3 -3
  14. package/dist/es/{Loading-tblIiyvu.js → Loading-BXtzvylk.js} +2 -2
  15. package/dist/es/{Map-CWehCrKQ.js → Map-Ce0s7g5Z.js} +556 -466
  16. package/dist/es/{MessageBox-Bwv1ICSl.js → MessageBox-BNOuww77.js} +2 -2
  17. package/dist/es/{MoneyInput-BUho-aKW.js → MoneyInput-CuHL7bEc.js} +8 -8
  18. package/dist/es/{PageHeadPanel-BBzYKasW.js → PageHeadPanel-BroYHTD8.js} +2 -2
  19. package/dist/es/{Table-m_nv-2IU.js → Table-DFGzUqS3.js} +41 -41
  20. package/dist/es/{ToolTips-BrpfWKhV.js → ToolTips-BBi5iPOb.js} +3 -3
  21. package/dist/es/index.js +22 -22
  22. package/dist/es/{utils-sJ-t5B4u.js → utils-BbOeFn3W.js} +3 -3
  23. package/dist/es/{vendor-BUg4XLGS.js → vendor-D-B7bNnH.js} +1910 -1881
  24. package/dist/index.css +1 -1
  25. package/dist/types/components/Map/config/global.d.ts +1 -0
  26. package/dist/types/components/Map/config/index.d.ts +0 -41
  27. package/dist/types/components/Map/config/map.d.ts +0 -3
  28. package/dist/types/components/Map/function/drawPolygon.d.ts +1 -1
  29. package/dist/types/components/Map/function/port.d.ts +1 -2
  30. package/dist/types/components/Map/function/ship/index.d.ts +22 -0
  31. package/dist/types/components/Map/function/ship/style.d.ts +6 -0
  32. package/dist/types/components/Map/function/shipTrack.d.ts +7 -0
  33. package/dist/types/components/Map/meta/index.d.ts +0 -5
  34. package/dist/types/components/Map/utils/overlay.d.ts +2 -1
  35. package/dist/types/components/Map/utils/util.d.ts +42 -0
  36. package/dist/umd/index.css +1 -1
  37. package/dist/umd/index.umd.cjs +18 -16
  38. package/package.json +1 -1
  39. package/dist/types/components/Map/Map.vue.d.ts +0 -112
  40. package/dist/types/components/Map/function/label.d.ts +0 -9
  41. package/dist/types/components/Map/function/ship.d.ts +0 -34
  42. package/dist/types/components/Map/function/shipLabel.d.ts +0 -25
  43. package/dist/types/components/Map/index.d.ts +0 -364
@@ -1 +1,2 @@
1
1
  export declare const CDN_URL = "https://static.zhihaoscm.cn/";
2
+ export declare const equatorialCircumference = 20037508.34;
@@ -1,43 +1,2 @@
1
- import { LineString } from 'ol/geom';
2
- import { Style } from 'ol/style';
3
1
  export * from './map';
4
2
  export * from './global';
5
- /**
6
- * 通过圆心和半径计算区域范围 输出为矩形
7
- * @param center 圆心坐标
8
- * @param radiusInKilometers 距离 单位:公里
9
- */
10
- export declare const calculateCirclePoints: (center: [number, number], radiusInKilometers: number) => {
11
- leftTopPoint: {
12
- lng: number;
13
- lat: number;
14
- };
15
- rightTopPoint: {
16
- lng: number;
17
- lat: number;
18
- };
19
- rightBottomPoint: {
20
- lng: number;
21
- lat: number;
22
- };
23
- leftBottomPoint: {
24
- lng: number;
25
- lat: number;
26
- };
27
- };
28
- /**
29
- * 计算多段线距离.
30
- * @param {LineString} line The line.
31
- * @param unit
32
- * @return {string} The formatted length.
33
- */
34
- export declare const formatLength: (line: LineString, unit: number) => string;
35
- export declare function lonLatToMercator(center: [number, number]): number[];
36
- export declare function getIconFont(unicode?: string): any;
37
- export declare const getIconStyle: (symbol: string) => Style;
38
- export declare const adjustBounds: (bounds: number[], offsets: number[]) => number[];
39
- export declare const isOverlapping: (bounds1: number[], bounds2: number[]) => boolean;
40
- export declare const mercatorToLonLat: (center: [number, number], type?: string) => number[] | {
41
- lon: number;
42
- lat: number;
43
- };
@@ -19,7 +19,4 @@ export declare const projection: {
19
19
  data: string;
20
20
  mercator: string;
21
21
  };
22
- export declare const drawShipModelByZoom: {
23
- [key: number]: [number, number];
24
- };
25
22
  export declare const MAP_DEFAULT_CENTER: [number, number];
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  open: () => void;
3
- reset: () => void;
4
3
  close: () => void;
4
+ reset: () => void;
5
5
  };
6
6
  export default _default;
@@ -1,10 +1,9 @@
1
1
  import { WharfEntity } from '../interface';
2
- import { Feature } from 'ol';
3
2
  import { Pixel } from 'ol/pixel';
4
3
 
5
4
  export declare const PORT_LAYER_CLASS_NAME = "zh-map-port-layer";
6
5
  export declare const renderPortList: (portList: WharfEntity[]) => void;
7
6
  export declare const clearPortList: () => void;
8
7
  export declare const clearSelectedPort: () => void;
9
- export declare const selectedPort: (portFeature: Feature) => void;
8
+ export declare const selectedPort: (portData?: WharfEntity) => void;
10
9
  export declare const handlePortHover: (pixel: Pixel) => void;
@@ -2,8 +2,30 @@ import { ShipInfoVo } from '../../interface';
2
2
  import { Feature } from 'ol';
3
3
 
4
4
  export declare const renderShipList: (shipList: ShipInfoVo[]) => void;
5
+ /**
6
+ * 清除所有船只 除选中之外
7
+ */
5
8
  export declare const clearShipList: () => void;
9
+ /**
10
+ * 船只label闪烁
11
+ */
6
12
  export declare const renderShipBlink: (ships: Record<string, boolean>, colors: Record<string, boolean>) => void;
13
+ /**
14
+ * 显示符合条件的船只
15
+ * @param shipList
16
+ */
7
17
  export declare const filterShipShow: (shipList: ShipInfoVo[]) => void;
18
+ /**
19
+ * 选中的船只
20
+ * @param ship
21
+ */
8
22
  export declare const renderShipSelected: (ship: ShipInfoVo) => void;
23
+ /**
24
+ * 只渲染选中船只和选中效果
25
+ */
26
+ export declare const renderShipSelectedChange: () => void;
9
27
  export declare const handleShipMapEvent: import('lodash-es').DebouncedFunc<(shipsFeature: Feature, type: string, callback?: (id: string) => void) => void>;
28
+ /**
29
+ * 移除选中overlay效果船只
30
+ */
31
+ export declare const removeSelectedOverlay: () => void;
@@ -6,4 +6,10 @@ import { Style } from 'ol/style';
6
6
  export declare const getShipDirectPath: (ship: ShipInfoVo) => "" | SHIP_DIRECT.left | SHIP_DIRECT.right | SHIP_DIRECT.front;
7
7
  export declare const createShipStyle: (feature: Feature) => Style;
8
8
  export declare const selectedShipStyle: (shipData: ShipInfoVo) => Overlay;
9
+ /**
10
+ * 生成船只元素
11
+ * @param shipData
12
+ */
13
+ export declare const selectedShipElement: (shipData: ShipInfoVo) => HTMLDivElement;
9
14
  export declare const createLabelStyle: (feature: Feature) => void;
15
+ export declare const createLabelElement: (feature: Feature) => HTMLDivElement;
@@ -1,6 +1,11 @@
1
1
  import { Feature, MapBrowserEvent } from 'ol';
2
2
  import { ShipTrack } from '../interface/shipTrack';
3
3
 
4
+ interface TrackExtend {
5
+ id: string;
6
+ mmsi?: string;
7
+ length: string;
8
+ }
4
9
  export declare const reRenderTrackLine: () => void;
5
10
  export declare const renderTrackLine: (id: string, list: ShipTrack[], color: string, unit?: number, type?: string, threshold?: number) => Promise<void>;
6
11
  export declare const handleTrackMapEvent: (trunkFeature: Feature, type: string, event: MapBrowserEvent<PointerEvent>) => void;
@@ -12,4 +17,6 @@ export declare const setTrackViewCenter: (id?: number | string) => void;
12
17
  export declare const playShipTrack: (id: number | string, speed: number) => void;
13
18
  export declare const removeAllTrackLayer: () => void;
14
19
  export declare const closeTrack: (clearAll?: boolean) => void;
20
+ export declare const getShowTracks: () => TrackExtend[];
15
21
  export declare const stopAnimation: () => void;
22
+ export {};
@@ -10,8 +10,3 @@ export declare enum LENGTH_UNIT {
10
10
  KM = 2,// km
11
11
  NM = 3
12
12
  }
13
- export declare const LENGTH_UNIT_LABEL: {
14
- 1: string;
15
- 2: string;
16
- 3: string;
17
- };
@@ -1,4 +1,5 @@
1
1
  import { Map } from 'ol';
2
+ import { ShipInfoVo } from '../interface/index';
2
3
 
3
- export declare function addOverlay(map: Map, coordinate: number[], content: HTMLElement, shipId?: string): void;
4
+ export declare function addOverlay(map: Map, coordinate: number[], content: HTMLElement, shipData?: ShipInfoVo): void;
4
5
  export declare function removeLabelOverlay(map: Map): void;
@@ -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;