zhihao-ui 1.2.19 → 1.2.21
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.
- package/dist/es/{BaseInfo-Dr298ctb.js → BaseInfo-DCB7xgRw.js} +1 -1
- package/dist/es/{Button-CDKNl8Xy.js → Button-Va8xfPJd.js} +11 -8
- package/dist/es/{DatePicker-vGQGWrmB.js → DatePicker-BrD1XS6-.js} +2 -2
- package/dist/es/DetailHeader-B9ttfBlv.js +59 -0
- package/dist/es/{DetailSubTitle-Cgs5HrKC.js → DetailSubTitle-BgbefcLD.js} +2 -2
- package/dist/es/{Dialog-cXRhcAJo.js → Dialog-CnqJMaPI.js} +31 -34
- package/dist/es/{DiyDataTable-DnUtQ2uX.js → DiyDataTable-uIkGrO_i.js} +80 -78
- package/dist/es/{EditInfoPair-B5_ufxbs.js → EditInfoPair-XiseN2F2.js} +3 -3
- package/dist/es/{FileWrapper-D7yKH6Y4.js → FileWrapper-CAwHicjK.js} +4 -4
- package/dist/es/{Grid-CIMCXeIw.js → Grid-CshEwvAH.js} +1 -1
- package/dist/es/{InfoPair-65CeKiUv.js → InfoPair-DhVT8u-f.js} +3 -3
- package/dist/es/{Input-Bg2G2kBm.js → Input-CeiPnMtt.js} +3 -3
- package/dist/es/{Loading-CBGHPT0Z.js → Loading-bv2DpqBO.js} +2 -2
- package/dist/es/Map-DhceUygQ.js +2020 -0
- package/dist/es/{MessageBox-d6upGeyX.js → MessageBox-2Vpy3Mva.js} +2 -2
- package/dist/es/{MoneyInput-CQBBD25d.js → MoneyInput-Deg1aj66.js} +7 -7
- package/dist/es/{PageHeadPanel-C1mqeOzI.js → PageHeadPanel-BWjWkx8n.js} +2 -2
- package/dist/es/{Table-BxjxzoXm.js → Table-KSl_JT2q.js} +182 -182
- package/dist/es/{ToolTips-C5Cm96bx.js → ToolTips-Bw2lHQxC.js} +3 -3
- package/dist/es/index.js +21 -21
- package/dist/es/{utils-CbI5IWJJ.js → utils-D-zYpBSZ.js} +3 -3
- package/dist/es/{vendor-AIl6iHcE.js → vendor-gTOtiVzA.js} +6895 -6495
- package/dist/index.css +1 -1
- package/dist/types/components/Button/Button.vue.d.ts +15 -2
- package/dist/types/components/Button/index.d.ts +15 -3
- package/dist/types/components/DetailHeader/index.d.ts +9 -0
- package/dist/types/components/DetailHeader/types.d.ts +1 -0
- package/dist/types/components/Dialog/Dialog.vue.d.ts +2 -4
- package/dist/types/components/Dialog/index.d.ts +5 -10
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +2 -1
- package/dist/types/components/DiyDataTable/index.d.ts +3 -0
- package/dist/types/components/DiyDataTable/type.d.ts +3 -1
- package/dist/types/components/Map/Map.vue.d.ts +60 -5
- package/dist/types/components/Map/components/scaleLine.vue.d.ts +3 -1
- package/dist/types/components/Map/components/toolPanel.vue.d.ts +4 -0
- package/dist/types/components/Map/config.d.ts +2 -0
- package/dist/types/components/Map/index.d.ts +174 -9
- package/dist/types/components/Map/interface/entity/render.d.ts +12 -0
- package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +21 -3
- package/dist/types/components/Map/interface/entity/shipMapData.d.ts +2 -1
- package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +2 -1
- package/dist/types/components/Map/render/canvasRender/geometry.d.ts +3 -0
- package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +3 -1
- package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +3 -1
- package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +5 -1
- package/dist/types/components/Map/render/drawPolygon.d.ts +4 -0
- package/dist/types/components/Map/render/renderDashboard.d.ts +3 -0
- package/dist/types/components/Map/render/renderMarker.d.ts +4 -3
- package/dist/types/components/Map/render/renderShip.d.ts +5 -2
- package/dist/types/components/Map/render/renderTrack.d.ts +3 -4
- package/dist/types/components/Map/render/renderTruck.d.ts +3 -1
- package/dist/types/components/Map/utils/common.d.ts +4 -8
- package/dist/types/components/Map/utils/format.d.ts +6 -14
- package/dist/types/components/Map/utils/store.d.ts +7 -1
- package/dist/types/components/Map/utils/transform.d.ts +13 -5
- package/dist/types/components/Table/types.d.ts +1 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +23 -23
- package/package.json +1 -1
- package/dist/es/DetailHeader-AxeEUXrE.js +0 -58
- package/dist/es/Map-BRt4EWtt.js +0 -1803
|
@@ -34,10 +34,12 @@ export interface ShipInfoVo {
|
|
|
34
34
|
* 船长
|
|
35
35
|
*/
|
|
36
36
|
len: number;
|
|
37
|
+
length?: number;
|
|
37
38
|
/**
|
|
38
39
|
* 船宽
|
|
39
40
|
*/
|
|
40
41
|
wid: number;
|
|
42
|
+
breadth?: number;
|
|
41
43
|
/**
|
|
42
44
|
* 吃水
|
|
43
45
|
*/
|
|
@@ -183,8 +185,24 @@ export interface ShipInfoVo {
|
|
|
183
185
|
* 创建时间
|
|
184
186
|
*/
|
|
185
187
|
createTime: string;
|
|
188
|
+
/**
|
|
189
|
+
* 左侧图标色块
|
|
190
|
+
*/
|
|
186
191
|
leftIconColor: string;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
192
|
+
/**
|
|
193
|
+
* 是否存在摄像头
|
|
194
|
+
*/
|
|
195
|
+
existDevice: number;
|
|
196
|
+
/**
|
|
197
|
+
* 是否维护水尺 1:是 0:否
|
|
198
|
+
*/
|
|
199
|
+
existWaterGauge: number;
|
|
200
|
+
/**
|
|
201
|
+
* 是否存在手机号
|
|
202
|
+
*/
|
|
203
|
+
existMobile: number;
|
|
204
|
+
/**
|
|
205
|
+
* 关注的船自定义后缀
|
|
206
|
+
*/
|
|
207
|
+
existName: number;
|
|
190
208
|
}
|
|
@@ -21,5 +21,6 @@ export declare class ShipMapData {
|
|
|
21
21
|
existDevice?: boolean;
|
|
22
22
|
existMobile?: boolean;
|
|
23
23
|
existWaterGauge?: boolean;
|
|
24
|
-
|
|
24
|
+
selected?: boolean;
|
|
25
|
+
constructor(id: string, mmsi: string, fill: string, shipType: string, name: string, length: number, breadth: number, lon: number, lat: number, createdAt: number, speed: number, from: string, sailStatus: string, hdg: number, cog: number, posType: number, type: string, angle: number, leftIconColor?: string | null, existDevice?: boolean, existMobile?: boolean, existWaterGauge?: boolean, selected?: boolean);
|
|
25
26
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DrawLabelOptions, DrawPolygonOptions, DrawTextOptions } from '../../interface';
|
|
2
|
+
import { DrawLabelFeature } from '../../interface/entity/render.ts';
|
|
2
3
|
|
|
3
4
|
export declare const fillRectRadius: (ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, color: string, radius?: number) => void;
|
|
4
5
|
export declare const getPixelFromCoordinate: (points: number[][]) => number[];
|
|
@@ -6,4 +7,4 @@ export declare const calculatePolygonCentroid: (coordinates: number[][]) => numb
|
|
|
6
7
|
export declare const rotateShapeModel: (model: number[][], angle: number) => number[][];
|
|
7
8
|
export declare const drawText: (ctx: CanvasRenderingContext2D, options: DrawTextOptions) => void;
|
|
8
9
|
export declare const drawPolygon: (ctx: CanvasRenderingContext2D, options: DrawPolygonOptions) => void;
|
|
9
|
-
export declare const drawLabel: (ctx: CanvasRenderingContext2D, options: DrawLabelOptions) => null;
|
|
10
|
+
export declare const drawLabel: (ctx: CanvasRenderingContext2D, options: DrawLabelOptions, labels: DrawLabelFeature[]) => null;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Style } from 'ol/style';
|
|
2
|
+
|
|
1
3
|
export declare const triangleModel: number[][];
|
|
2
4
|
export declare const shipShapeModel: number[][];
|
|
3
5
|
export declare const shipDirectPath: {
|
|
@@ -17,3 +19,4 @@ export declare const shipDirectPath: {
|
|
|
17
19
|
2: number[][];
|
|
18
20
|
};
|
|
19
21
|
};
|
|
22
|
+
export declare const setBlankStyle: () => Style;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { Overlay } from 'ol';
|
|
1
|
+
import { Map as MapType, Overlay } from 'ol';
|
|
2
|
+
import { Ref } from 'vue';
|
|
2
3
|
|
|
4
|
+
export declare const renderCustomOverlaySetInstance: (instance: Ref<MapType>) => Ref<MapType, MapType>;
|
|
3
5
|
export declare const drawCustomContent: (id: string, centerPixel: number[], html: string, positioning?: string, draggable?: boolean) => Overlay | undefined;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Style } from 'ol/style';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { Map as MapType } from 'ol';
|
|
2
4
|
|
|
3
|
-
export declare const
|
|
5
|
+
export declare const renderShipStyleSetInstance: (instance: Ref<MapType>) => Ref<MapType, MapType>;
|
|
4
6
|
export declare const setShipStyle: (selected: boolean) => Style;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Style } from 'ol/style';
|
|
2
|
+
import { Map as MapType } from 'ol';
|
|
2
3
|
import { ShipTrack } from '../../interface';
|
|
4
|
+
import { Ref } from 'vue';
|
|
3
5
|
|
|
6
|
+
export declare const renderTrackStyleSetInstance: (instance: Ref<MapType>) => Ref<MapType, MapType>;
|
|
4
7
|
export declare const renderTrackLine: (data: any, id: string, trackColor: string) => void;
|
|
5
|
-
export declare const handlePlay: (
|
|
8
|
+
export declare const handlePlay: (id: string, speed: number) => void;
|
|
6
9
|
export declare const removeShipTrackLineFeatureByIndex: (index: number) => void;
|
|
10
|
+
export declare const stopAnimation: () => void;
|
|
7
11
|
export declare const setTrackLabelStyle: (featureData: ShipTrack, trackColor: string) => Style;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { Map as MapType } from 'ol';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
|
|
4
|
+
export declare const drawPolygonSetInstance: (instance: Ref<MapType>) => Ref<MapType, MapType>;
|
|
1
5
|
export declare const drawPolygonTool: {
|
|
2
6
|
addInteraction: (callback?: Function) => void;
|
|
3
7
|
removeInteraction: () => void;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { Map as MapType } from 'ol';
|
|
1
2
|
import { default as VectorSource } from 'ol/source/Vector';
|
|
2
3
|
import { default as VectorLayer } from 'ol/layer/Vector';
|
|
4
|
+
import { Ref } from 'vue';
|
|
3
5
|
import { SinoiovVehicleInfo } from '../interface';
|
|
4
6
|
|
|
7
|
+
export declare const renderDashboardSetInstance: (instance: Ref<MapType>) => Ref<MapType, MapType>;
|
|
5
8
|
export declare const renderStatisticsMarker: (list: SinoiovVehicleInfo[]) => VectorLayer<VectorSource<any>, any> | undefined;
|
|
6
9
|
export declare const deleteAllStatisticsMarkers: () => void;
|
|
7
10
|
export declare const renderTrucksMarker: (list: SinoiovVehicleInfo[]) => VectorLayer<VectorSource<any>, any> | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Map as MapType } from 'ol';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
|
|
4
|
+
export declare const renderMarkerSetInstance: (instance: Ref<MapType>) => Ref<MapType, MapType>;
|
|
4
5
|
export declare const markerPosition: Ref<string>;
|
|
5
6
|
export declare const renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
|
|
6
7
|
export declare const setMarkerPosition: (val: string) => void;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { Feature } from 'ol';
|
|
1
|
+
import { Feature, Map as MapType } from 'ol';
|
|
2
2
|
import { Geometry } from 'ol/geom';
|
|
3
3
|
import { default as VectorSource } from 'ol/source/Vector';
|
|
4
4
|
import { default as VectorLayer } from 'ol/layer/Vector';
|
|
5
5
|
import { ShipInfoVo } from '../interface';
|
|
6
6
|
import { default as WebGLPointsLayer } from 'ol/layer/WebGLPoints';
|
|
7
|
+
import { Ref } from 'vue';
|
|
7
8
|
import { SWITCH_BTN } from '../enum';
|
|
9
|
+
import { Source } from 'ol/source';
|
|
8
10
|
|
|
11
|
+
export declare const renderShipSetInstance: (instance: Ref<MapType>) => Ref<MapType, MapType>;
|
|
9
12
|
export declare const renderShips: (list: ShipInfoVo[]) => VectorLayer<VectorSource<any>, any> | WebGLPointsLayer<VectorSource<Feature<Geometry>>> | undefined;
|
|
10
13
|
export declare const deleteAllShipMarkers: () => void;
|
|
11
|
-
export declare const setVisibleFeatureById: (id: string, visible: boolean) => void;
|
|
14
|
+
export declare const setVisibleFeatureById: (source: Source, id: string, visible: boolean) => void;
|
|
12
15
|
export declare const findShip: (id: string, shipData?: ShipInfoVo, select?: boolean) => any;
|
|
13
16
|
export declare const clearSelectFeature: () => void;
|
|
14
17
|
export declare const hiddenAllShips: () => void;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { TrackExtend } from '../interface';
|
|
3
|
+
import { Map as MapType } from 'ol';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
* 轨迹绘制
|
|
6
|
-
*/
|
|
5
|
+
export declare const renderTrackSetInstance: (instance: Ref<MapType>) => Ref<MapType, MapType>;
|
|
7
6
|
export declare const showTracks: Ref<TrackExtend[]>;
|
|
8
7
|
export declare const renderTrack: (id: string, list: any[], color: string, unit: number, vehicleType?: "ship" | "truck") => void;
|
|
9
8
|
export declare const removeAllTrackLayer: () => void;
|
|
10
|
-
export declare const playTrack: (
|
|
9
|
+
export declare const playTrack: (id: number | string, speed: number) => void;
|
|
11
10
|
export declare const removerLayer: (index: number) => void;
|
|
12
11
|
export declare const resetTrackView: (id?: number | string) => void;
|
|
13
12
|
export declare const trackLayerVisible: (flag: boolean) => void;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Map as MapType, Overlay } from 'ol';
|
|
2
3
|
import { VehicleInfo } from '../interface';
|
|
3
4
|
|
|
5
|
+
export declare const renderTruckSetInstance: (instance: Ref<MapType>) => Ref<MapType, MapType>;
|
|
4
6
|
export declare const findTruck: (vehicleInfo?: VehicleInfo) => Promise<void>;
|
|
5
7
|
export declare const clearAllTruck: () => void;
|
|
6
8
|
export declare const drawTruckIcon: (id: string, centerPixel: number[], drc: string) => Overlay | undefined;
|
|
@@ -21,11 +21,7 @@ export declare function createFeature(geometry: Geometry, properties: any, optio
|
|
|
21
21
|
export declare function createPoint(coordinates: number[][], properties: any, options: any): {
|
|
22
22
|
type: string;
|
|
23
23
|
};
|
|
24
|
-
export declare function calculateAngle(pointA: Feature, pointB: Feature
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
* @param {number[]} b - 第二个点的坐标 [longitude, latitude]
|
|
29
|
-
* @returns {number} - 旋转角度 (0 ~ 360°)
|
|
30
|
-
*/
|
|
31
|
-
export declare const getRotation: (a: number[][], b: number[][]) => number;
|
|
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,18 +1,10 @@
|
|
|
1
1
|
import { Geometry, LineString, Polygon } from 'ol/geom';
|
|
2
2
|
import { ShipInfoVo, ShipMapData } from '../interface';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* 计算多段线距离.
|
|
6
|
-
* @param {LineString} line The line.
|
|
7
|
-
* @param unit
|
|
8
|
-
* @return {string} The formatted length.
|
|
9
|
-
*/
|
|
10
|
-
export declare const formatLength: (line: LineString, unit: number) => string;
|
|
11
|
-
export declare const convertSixHundredThousandToLatLng: (valueX: number | string, valueY: number | string) => [lng: number, lat: number];
|
|
12
|
-
/**
|
|
13
|
-
* 计算多边形面积.
|
|
14
|
-
* @param {Polygon} polygon The polygon.
|
|
15
|
-
* @return {string} Formatted area.
|
|
16
|
-
*/
|
|
17
|
-
export declare const formatArea: (polygon: Polygon | Geometry, unit: number) => string | undefined;
|
|
18
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;
|
|
@@ -19,4 +19,10 @@ export declare const trackLineVectorSource: Ref<VectorSource<Feature<Geometry>>>
|
|
|
19
19
|
export declare const shipTrackVectorLayer: Ref<VectorLayer | undefined>;
|
|
20
20
|
export declare const trackLabelVectorSource: Ref<VectorSource<Feature<Geometry>>>;
|
|
21
21
|
export declare const trackLabelLayer: Ref<VectorLayer | undefined>;
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const shipLabels: Ref<any>;
|
|
23
|
+
export declare const trackLabels: Ref<any>;
|
|
24
|
+
export declare const showTrackLayer: Ref<boolean>;
|
|
25
|
+
export declare const allTracks: Ref<number[][][]>;
|
|
26
|
+
export declare const currentTrackId: Ref<string>;
|
|
27
|
+
export declare const showTrackAnimatMarker: Ref<boolean>;
|
|
28
|
+
export declare const hiddenOrther: Ref<boolean>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
declare function gcj02ToWgs84(lnglat: string): string;
|
|
2
2
|
/**
|
|
3
3
|
* 通过圆心和半径计算区域范围 输出为矩形
|
|
4
4
|
* @param center 圆心坐标
|
|
5
5
|
* @param radiusInKilometers 距离 单位:公里
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
declare function calculateCirclePoints(center: [number, number], radiusInKilometers: number): {
|
|
8
8
|
leftTopPoint: {
|
|
9
9
|
lng: number;
|
|
10
10
|
lat: number;
|
|
@@ -22,12 +22,20 @@ export declare function calculateCirclePoints(center: [number, number], radiusIn
|
|
|
22
22
|
lat: number;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
declare function lonLatToMercator(center: [number, number]): number[];
|
|
26
|
+
declare function mercatorToLonLat(center: [number, number], type?: string): number[] | {
|
|
27
27
|
lon: number;
|
|
28
28
|
lat: number;
|
|
29
29
|
};
|
|
30
30
|
/** 计算多组点的最大矩形范围
|
|
31
31
|
* @param coordinates
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
declare function calculateBoundingBox(coordinates: [number, number][]): number[];
|
|
34
|
+
declare const _default: {
|
|
35
|
+
gcj02ToWgs84: typeof gcj02ToWgs84;
|
|
36
|
+
calculateCirclePoints: typeof calculateCirclePoints;
|
|
37
|
+
lonLatToMercator: typeof lonLatToMercator;
|
|
38
|
+
mercatorToLonLat: typeof mercatorToLonLat;
|
|
39
|
+
calculateBoundingBox: typeof calculateBoundingBox;
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
@@ -64,6 +64,7 @@ export interface ColumnProps<T = any> extends Partial<Omit<TableColumnCtx<T>, "t
|
|
|
64
64
|
click?: (row: any, index: number) => void;
|
|
65
65
|
isCustomDisable?: boolean;
|
|
66
66
|
wrap?: boolean;
|
|
67
|
+
expandOperationButtons?: boolean;
|
|
67
68
|
}
|
|
68
69
|
export interface SortChangeEvent {
|
|
69
70
|
column: TableColumnCtx<any>;
|