zhihao-ui 1.3.2 → 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 (105) hide show
  1. package/dist/es/{BaseInfo-DZ0pUsfS.js → BaseInfo-DjMoCl6q.js} +1 -1
  2. package/dist/es/{BaseItem-C_JbnRPH.js → BaseItem-4-tfe2b_.js} +3 -3
  3. package/dist/es/{Button-CydCp4hf.js → Button-CvmMyXpk.js} +2 -2
  4. package/dist/es/{DatePicker-C__sA0-h.js → DatePicker-BJ-uEY5y.js} +3 -3
  5. package/dist/es/{DetailHeader-bEliAoL-.js → DetailHeader-RmOylZsk.js} +3 -3
  6. package/dist/es/{DetailSubTitle-COsgdEV-.js → DetailSubTitle-CZ94UNJm.js} +2 -2
  7. package/dist/es/{Dialog-D-vnJqtW.js → Dialog-BR5jfGEM.js} +3 -3
  8. package/dist/es/{DiyDataTable-DTMKwxu9.js → DiyDataTable-DEjYnC6P.js} +4 -4
  9. package/dist/es/{EditInfoPair-C4vN_b9E.js → EditInfoPair-BrrQYpFp.js} +3 -3
  10. package/dist/es/{FileWrapper-D7KcyVg2.js → FileWrapper-B7CH1kBr.js} +4 -4
  11. package/dist/es/{Grid-BE-CLeGr.js → Grid-D8kjRsYq.js} +2 -2
  12. package/dist/es/{InfoPair-T3_TncEu.js → InfoPair-D3rzhvxY.js} +3 -3
  13. package/dist/es/{Input-C0UdD80I.js → Input-Z4JEw_7x.js} +3 -3
  14. package/dist/es/{Loading-QlWiWU_L.js → Loading-pR0mL-Hq.js} +2 -2
  15. package/dist/es/Map-DKkSq-bX.js +2267 -0
  16. package/dist/es/{MessageBox-B42XuRHh.js → MessageBox-DjwiajIV.js} +2 -2
  17. package/dist/es/{MoneyInput-BsulLCsJ.js → MoneyInput-K4LEAm4x.js} +5 -5
  18. package/dist/es/{PageHeadPanel-BlFg_TvH.js → PageHeadPanel-DHbOvTJN.js} +2 -2
  19. package/dist/es/{Table-Oo-hQWGa.js → Table-DXSMi34f.js} +5 -5
  20. package/dist/es/{ToolTips-YgMKfoQ0.js → ToolTips-B_bFypmj.js} +6 -6
  21. package/dist/es/index.js +22 -22
  22. package/dist/es/{utils-CU-8DWnA.js → utils-Dm3IAG7S.js} +1 -1
  23. package/dist/es/{vendor-1zIwhmRg.js → vendor-Cu-tp_n1.js} +8448 -8040
  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 +51 -62
  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/global.d.ts +1 -0
  35. package/dist/types/components/Map/config/index.d.ts +0 -41
  36. package/dist/types/components/Map/config/map.d.ts +0 -3
  37. package/dist/types/components/Map/config.d.ts +32 -0
  38. package/dist/types/components/Map/enum/car.d.ts +5 -0
  39. package/dist/types/components/Map/enum/device.d.ts +8 -0
  40. package/dist/types/components/Map/enum/index.d.ts +5 -0
  41. package/dist/types/components/Map/enum/openLayers.d.ts +10 -0
  42. package/dist/types/components/Map/enum/ship.d.ts +50 -0
  43. package/dist/types/components/Map/function/carTrack.d.ts +7 -14
  44. package/dist/types/components/Map/function/drawLine.d.ts +4 -4
  45. package/dist/types/components/Map/function/drawPolygon.d.ts +6 -3
  46. package/dist/types/components/Map/function/event.d.ts +9 -0
  47. package/dist/types/components/Map/function/layers.d.ts +8 -5
  48. package/dist/types/components/Map/function/map.d.ts +14 -10
  49. package/dist/types/components/Map/function/port.d.ts +7 -7
  50. package/dist/types/components/Map/function/position.d.ts +8 -0
  51. package/dist/types/components/Map/function/props.d.ts +5 -2
  52. package/dist/types/components/Map/function/ship/index.d.ts +14 -7
  53. package/dist/types/components/Map/function/ship/style.d.ts +18 -4
  54. package/dist/types/components/Map/function/shipTrack.d.ts +14 -13
  55. package/dist/types/components/Map/index.d.ts +156 -201
  56. package/dist/types/components/Map/interface/common/BaseEntity.d.ts +29 -0
  57. package/dist/types/components/Map/interface/common/page.d.ts +34 -0
  58. package/dist/types/components/Map/interface/entity/dashboard.d.ts +16 -0
  59. package/dist/types/components/Map/interface/entity/map.d.ts +36 -0
  60. package/dist/types/components/Map/interface/entity/point.d.ts +10 -0
  61. package/dist/types/components/Map/interface/entity/queryLicenseResponse.d.ts +86 -0
  62. package/dist/types/components/Map/interface/entity/render.d.ts +57 -0
  63. package/dist/types/components/Map/interface/entity/ship.d.ts +361 -0
  64. package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +210 -0
  65. package/dist/types/components/Map/interface/entity/shipMapData.d.ts +27 -0
  66. package/dist/types/components/Map/interface/entity/shipMarker.d.ts +8 -0
  67. package/dist/types/components/Map/interface/entity/shipTrack.d.ts +56 -0
  68. package/dist/types/components/Map/interface/entity/vehicle.d.ts +345 -0
  69. package/dist/types/components/Map/interface/index.d.ts +1 -0
  70. package/dist/types/components/Map/interface/mapProps.d.ts +7 -7
  71. package/dist/types/components/Map/interface/position.d.ts +7 -0
  72. package/dist/types/components/Map/interface/shipInfoVo.d.ts +2 -0
  73. package/dist/types/components/Map/interface/vo/vehicleVo.d.ts +20 -0
  74. package/dist/types/components/Map/meta/index.d.ts +5 -5
  75. package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +15 -0
  76. package/dist/types/components/Map/render/canvasRender/geometry.d.ts +22 -0
  77. package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +5 -0
  78. package/dist/types/components/Map/render/canvasRender/renderPointStyle.d.ts +10 -0
  79. package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +5 -0
  80. package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +12 -0
  81. package/dist/types/components/Map/render/canvasRender/renderTruckStyle.d.ts +3 -0
  82. package/dist/types/components/Map/render/drawPolygon.d.ts +10 -0
  83. package/dist/types/components/Map/render/renderDashboard.d.ts +12 -0
  84. package/dist/types/components/Map/render/renderMarker.d.ts +7 -0
  85. package/dist/types/components/Map/render/renderPoint.d.ts +80 -0
  86. package/dist/types/components/Map/render/renderShip.d.ts +20 -0
  87. package/dist/types/components/Map/render/renderTrack.d.ts +12 -0
  88. package/dist/types/components/Map/render/renderTruck.d.ts +10 -0
  89. package/dist/types/components/Map/useMap.d.ts +17 -0
  90. package/dist/types/components/Map/utils/common.d.ts +27 -0
  91. package/dist/types/components/Map/utils/cursor.d.ts +3 -2
  92. package/dist/types/components/Map/utils/events.d.ts +4 -2
  93. package/dist/types/components/Map/utils/format.d.ts +10 -0
  94. package/dist/types/components/Map/utils/overlay.d.ts +2 -1
  95. package/dist/types/components/Map/{function → utils}/shipOverlay.d.ts +4 -4
  96. package/dist/types/components/Map/utils/store.d.ts +32 -0
  97. package/dist/types/components/Map/utils/track.d.ts +44 -0
  98. package/dist/types/components/Map/utils/transform.d.ts +44 -0
  99. package/dist/umd/index.css +1 -1
  100. package/dist/umd/index.umd.cjs +91 -101
  101. package/package.json +1 -1
  102. package/dist/es/Map-DMb_YG1p.js +0 -1624
  103. package/dist/types/components/Map/function/label.d.ts +0 -9
  104. package/dist/types/components/Map/function/ship.d.ts +0 -34
  105. package/dist/types/components/Map/function/shipLabel.d.ts +0 -25
@@ -10,8 +10,8 @@ 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
- };
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
+ };
@@ -0,0 +1,27 @@
1
+ import { Geometry, Polygon } from 'ol/geom';
2
+ import { Coordinate } from 'ol/coordinate';
3
+ import { Feature } from 'ol';
4
+ import { default as VectorLayer } from 'ol/layer/Vector';
5
+ import { Style } from 'ol/style';
6
+
7
+ export declare function isPlainObject(font: string): boolean;
8
+ export declare function generatePolygon(t: Coordinate): Polygon;
9
+ export declare function calculateBoundsByType(center: number[], type: number, width: number, height: number, lineLength: number): (number | undefined)[];
10
+ export declare function getIconFont(unicode?: string): any;
11
+ export declare const resetView: (extent: number[]) => void;
12
+ export declare const multiplyPixelRatio: (nums: number[][]) => number[][];
13
+ export declare const findFeatureById: (layer: VectorLayer, id: string) => any;
14
+ export declare const adjustBounds: (bounds: number[], offsets: number[]) => number[];
15
+ export declare const isOverlapping: (bounds1: number[], bounds2: number[]) => boolean;
16
+ export declare const getIconStyle: (symbol: string) => Style;
17
+ export declare function convertToRadians(feature: Feature): any;
18
+ export declare function createFeature(geometry: Geometry, properties: any, options?: {}): {
19
+ type: string;
20
+ };
21
+ export declare function createPoint(coordinates: number[][], properties: any, options: any): {
22
+ type: string;
23
+ };
24
+ export declare function calculateAngle(pointA: Feature, pointB: Feature): number;
25
+ export declare const getRotation: (startCoord: number[], endCoord: number[], options?: {
26
+ final?: boolean;
27
+ }) => number;
@@ -1,2 +1,3 @@
1
- export declare const setCursor: (cursor: string) => void;
2
- export declare const setDefaultStyle: () => void;
1
+ import { Map } from 'ol';
2
+
3
+ export declare const changeCursor: (mapInstance: Map, cursorType: string) => void;
@@ -1,2 +1,4 @@
1
- export declare const disableDoubleClickZoom: () => void;
2
- export declare const enableDoubleClickZoom: () => void;
1
+ import { Map } from 'ol';
2
+
3
+ export declare const disableDoubleClickZoom: (mapInstance: Map) => void;
4
+ export declare const enableDoubleClickZoom: (mapInstance: Map) => void;
@@ -0,0 +1,10 @@
1
+ import { Geometry, LineString, Polygon } from 'ol/geom';
2
+ import { ShipInfoVo, ShipMapData } from '../interface';
3
+
4
+ export declare const convertShipMapData: (shipData: ShipInfoVo[] | ShipInfoVo) => ShipMapData | ShipMapData[];
5
+ declare const _default: {
6
+ formatLength: (line: LineString, unit: number) => string;
7
+ convertSixHundredThousandToLatLng: (valueX: number | string, valueY: number | string) => [lng: number, lat: number];
8
+ formatArea: (polygon: Polygon | Geometry, unit: number) => string | undefined;
9
+ };
10
+ export default _default;
@@ -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;
@@ -1,11 +1,11 @@
1
1
  export interface ShipOverlayProps {
2
2
  selected: boolean;
3
3
  name: string;
4
- color: string;
4
+ colors: string[];
5
5
  position: [number, number];
6
- existDevice?: boolean;
7
- existMobile?: boolean;
8
- existWaterGauge?: boolean;
6
+ existDevice?: number | boolean;
7
+ existMobile?: number | boolean;
8
+ existWaterGauge?: number | boolean;
9
9
  }
10
10
  export default function useShipOverlay(props: ShipOverlayProps): () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
11
11
  [key: string]: any;
@@ -0,0 +1,32 @@
1
+ import { Ref } from 'vue';
2
+ import { Feature, Map as MapType } from 'ol';
3
+ import { default as VectorLayer } from 'ol/layer/Vector';
4
+ import { default as WebGLPointsLayer } from 'ol/layer/WebGLPoints';
5
+ import { default as VectorSource } from 'ol/source/Vector';
6
+ import { Geometry } from 'ol/geom';
7
+ import { ShipInfoVo, ShipTrack, ShipMapData } from '../interface';
8
+ import { DrawLabelFeature } from '../interface/entity/render.ts';
9
+
10
+ export declare const mapInstance: Ref<MapType | undefined, MapType | undefined>;
11
+ export declare const shipsLayer: Ref<VectorLayer | undefined>;
12
+ export declare const largeAmountShipsLayer: Ref<WebGLPointsLayer<VectorSource<Feature<Geometry>>> | undefined>;
13
+ export declare const selectShipsLayer: Ref<VectorLayer | undefined>;
14
+ export declare const allShips: Ref<ShipInfoVo[]>;
15
+ export declare const selectSingleShipData: Ref<ShipMapData | undefined>;
16
+ export declare const statisticsLayer: Ref<VectorLayer | undefined>;
17
+ export declare const trucksLayer: Ref<VectorLayer | undefined>;
18
+ export declare const shipTrackLineFeatures: Ref<Feature[]>;
19
+ export declare const trackLineVectorSource: Ref<VectorSource<Feature<Geometry>>>;
20
+ export declare const shipTrackVectorLayer: Ref<VectorLayer | undefined>;
21
+ export declare const trackLabelVectorSource: Ref<VectorSource<Feature<Geometry>>>;
22
+ export declare const trackLabelLayer: Ref<VectorLayer | undefined>;
23
+ export declare const shipLabels: Ref<DrawLabelFeature[]>;
24
+ export declare const trackLabels: Ref<any>;
25
+ export declare const showTrackLayer: Ref<boolean>;
26
+ export declare const allTracks: Ref<{
27
+ [key: string]: ShipTrack[];
28
+ }>;
29
+ export declare const currentTrackId: Ref<string>;
30
+ export declare const showTrackAnimatMarker: Ref<boolean>;
31
+ export declare const hiddenOrther: Ref<boolean>;
32
+ export declare const showDrawLayer: Ref<boolean>;
@@ -1 +1,45 @@
1
+ import { LineString } from 'ol/geom';
2
+ import { Style } from 'ol/style';
3
+
1
4
  export declare const convertSixHundredThousandToLatLng: (valueX: number | string, valueY: number | string) => [lng: number, lat: number];
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): string;
37
+ export declare const getIconStyle: (symbol: string) => Style;
38
+ export declare const mercatorToLonLat: (center: [number, number], type?: string) => number[] | {
39
+ lon: number;
40
+ lat: number;
41
+ };
42
+ export declare const adjustBounds: (bounds: number[], offsets: number[]) => number[];
43
+ export declare const isOverlapping: (bounds1: number[], bounds2: number[]) => boolean;
44
+ export declare const formatMinutesToDDHHMM: (minutes: number) => string;
45
+ export declare function douglasPeucker(coords: any, tolerance: any): any;
@@ -0,0 +1,44 @@
1
+ import { transform } from 'ol/proj';
2
+
3
+ declare function gcj02ToWgs84(lnglat: string): string;
4
+ /**
5
+ * 通过圆心和半径计算区域范围 输出为矩形
6
+ * @param center 圆心坐标
7
+ * @param radiusInKilometers 距离 单位:公里
8
+ */
9
+ declare function 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
+ declare function lonLatToMercator(center: [number, number]): number[];
28
+ declare function mercatorToLonLat(center: [number, number], type?: string): number[] | {
29
+ lon: number;
30
+ lat: number;
31
+ };
32
+ /** 计算多组点的最大矩形范围
33
+ * @param coordinates
34
+ */
35
+ declare function calculateBoundingBox(coordinates: [number, number][]): number[];
36
+ declare const _default: {
37
+ gcj02ToWgs84: typeof gcj02ToWgs84;
38
+ calculateCirclePoints: typeof calculateCirclePoints;
39
+ lonLatToMercator: typeof lonLatToMercator;
40
+ mercatorToLonLat: typeof mercatorToLonLat;
41
+ calculateBoundingBox: typeof calculateBoundingBox;
42
+ transform: typeof transform;
43
+ };
44
+ export default _default;