zhihao-ui 1.2.20 → 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-CYr52jII.js → Button-Va8xfPJd.js} +2 -2
- 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-stUaKQ4m.js → Dialog-CnqJMaPI.js} +31 -34
- package/dist/es/{DiyDataTable-A1P5k0Eh.js → DiyDataTable-uIkGrO_i.js} +80 -78
- package/dist/es/{EditInfoPair-DwwAGFc6.js → EditInfoPair-XiseN2F2.js} +3 -3
- package/dist/es/{FileWrapper-brjp8Thj.js → FileWrapper-CAwHicjK.js} +4 -4
- package/dist/es/{Grid-CIMCXeIw.js → Grid-CshEwvAH.js} +1 -1
- package/dist/es/{InfoPair-DZL6Vegw.js → InfoPair-DhVT8u-f.js} +3 -3
- package/dist/es/{Input-C4aIqSby.js → Input-CeiPnMtt.js} +3 -3
- package/dist/es/{Loading-DhEOgvVz.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-DLMJRug1.js → MoneyInput-Deg1aj66.js} +7 -7
- package/dist/es/{PageHeadPanel-CldjeRYl.js → PageHeadPanel-BWjWkx8n.js} +2 -2
- package/dist/es/{Table-DwDzhuHY.js → Table-KSl_JT2q.js} +94 -94
- package/dist/es/{ToolTips-CLcRoFO4.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/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/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +23 -23
- package/package.json +1 -1
- package/dist/es/DetailHeader-oqCdup4q.js +0 -58
- package/dist/es/Map-DGFoAMyH.js +0 -1803
|
@@ -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;
|