zhihao-ui 1.2.66 → 1.2.68
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-VzgiaCKn.js → BaseInfo-BhnEjLKF.js} +1 -1
- package/dist/es/{BaseItem-BtsARxvz.js → BaseItem-C4NJy1i4.js} +3 -3
- package/dist/es/{Button-Dw3i74l2.js → Button-CGndQwez.js} +2 -2
- package/dist/es/DatePicker-Dy1K1cJQ.js +57 -0
- package/dist/es/{DetailHeader-C5LjDuTv.js → DetailHeader-DaabNj_4.js} +3 -3
- package/dist/es/{DetailSubTitle-ak2l4HyV.js → DetailSubTitle-CzFZPXeE.js} +2 -2
- package/dist/es/{Dialog-Cw3E3ZU6.js → Dialog-BUW6ag1B.js} +3 -3
- package/dist/es/{DiyDataTable-Cgqys5z_.js → DiyDataTable-D-UZVciZ.js} +4 -4
- package/dist/es/{EditInfoPair-8SWkyWJC.js → EditInfoPair-B2f6zoGY.js} +3 -3
- package/dist/es/{FileWrapper-BKxBr28L.js → FileWrapper-D4IxJemr.js} +4 -4
- package/dist/es/{Grid-C8tYH4s7.js → Grid-DIs695lY.js} +2 -2
- package/dist/es/{InfoPair-C3obQrjB.js → InfoPair-Ce7nDfxD.js} +3 -3
- package/dist/es/{Input-C3HDYWCC.js → Input-C5X2X_YD.js} +3 -3
- package/dist/es/{Loading-DfL7OJvd.js → Loading-BgoEv5qE.js} +2 -2
- package/dist/es/Map-DbbD377l.js +2235 -0
- package/dist/es/{MessageBox-ByLWEDby.js → MessageBox-DiGH5x51.js} +2 -2
- package/dist/es/{MoneyInput-CxngoHAe.js → MoneyInput-D0kYiOfP.js} +8 -8
- package/dist/es/{PageHeadPanel-d3ponlDx.js → PageHeadPanel-C6IdOq6I.js} +2 -2
- package/dist/es/{Table-BufcZ4Wy.js → Table-B_3YA1mb.js} +5 -5
- package/dist/es/{ToolTips-D0FAOOvm.js → ToolTips-CiQHxGrw.js} +6 -6
- package/dist/es/index.js +60 -74
- package/dist/es/{utils-BSQSj8Ii.js → utils-D2wHR1YB.js} +1 -1
- package/dist/es/{vendor-DaYdW1_n.js → vendor-D2mv9LHk.js} +25786 -29321
- package/dist/index.css +1 -1
- package/dist/types/components/CascaderLoadMore/CascaderLoadMore.vue.d.ts +197 -0
- package/dist/types/components/CascaderLoadMore/index.d.ts +369 -0
- package/dist/types/components/CascaderLoadMore/types.d.ts +7 -0
- package/dist/types/components/Map/Map.vue.d.ts +101 -138
- package/dist/types/components/Map/components/scaleLine.vue.d.ts +2 -1
- package/dist/types/components/Map/components/zoomControl.vue.d.ts +7 -3
- package/dist/types/components/Map/config/global.d.ts +2 -0
- package/dist/types/components/Map/config/index.d.ts +2 -0
- package/dist/types/components/Map/config/map.d.ts +22 -0
- package/dist/types/components/Map/function/carTrack.d.ts +11 -0
- package/dist/types/components/Map/function/drawLine.d.ts +12 -0
- package/dist/types/components/Map/function/drawPolygon.d.ts +9 -0
- package/dist/types/components/Map/function/event.d.ts +9 -0
- package/dist/types/components/Map/function/layers.d.ts +10 -0
- package/dist/types/components/Map/function/map.d.ts +18 -0
- package/dist/types/components/Map/function/port.d.ts +10 -0
- package/dist/types/components/Map/function/position.d.ts +8 -0
- package/dist/types/components/Map/function/props.d.ts +7 -0
- package/dist/types/components/Map/function/ship/index.d.ts +16 -0
- package/dist/types/components/Map/function/ship/label.d.ts +5 -0
- package/dist/types/components/Map/function/ship/style.d.ts +23 -0
- package/dist/types/components/Map/function/shipOverlay.d.ts +12 -0
- package/dist/types/components/Map/function/shipTrack.d.ts +16 -0
- package/dist/types/components/Map/index.d.ts +324 -390
- package/dist/types/components/Map/interface/carTrack.d.ts +70 -0
- package/dist/types/components/Map/interface/index.d.ts +6 -13
- package/dist/types/components/Map/interface/label.d.ts +27 -0
- package/dist/types/components/Map/interface/mapProps.d.ts +15 -0
- package/dist/types/components/Map/interface/position.d.ts +7 -0
- package/dist/types/components/Map/interface/shipInfoVo.d.ts +214 -0
- package/dist/types/components/Map/interface/shipTrack.d.ts +57 -0
- package/dist/types/components/Map/interface/wharfEntity.d.ts +20 -0
- package/dist/types/components/Map/meta/index.d.ts +17 -0
- package/dist/types/components/Map/meta/ship.d.ts +26 -0
- package/dist/types/components/Map/types.d.ts +1 -13
- package/dist/types/components/Map/useMap.d.ts +17 -0
- package/dist/types/components/Map/utils/cursor.d.ts +3 -0
- package/dist/types/components/Map/utils/events.d.ts +4 -0
- package/dist/types/components/Map/utils/overlay.d.ts +5 -0
- package/dist/types/components/Map/utils/rbush.d.ts +13 -0
- package/dist/types/components/Map/utils/shipOverlay.d.ts +12 -0
- package/dist/types/components/Map/utils/track.d.ts +45 -0
- package/dist/types/components/Map/utils/util.d.ts +42 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +130 -598
- package/package.json +1 -1
- package/dist/es/DatePicker-BCvYHlC7.js +0 -73
- package/dist/es/Map-BpqtL7_q.js +0 -2528
|
@@ -1,144 +1,104 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Map as MapType } from 'ol';
|
|
3
|
-
import { transform } from 'ol/proj';
|
|
4
|
-
import { ShipInfoVo } from './interface';
|
|
5
|
-
import { PointMarkerClass } from './render/renderPoint.ts';
|
|
1
|
+
import { Props, WharfEntity } from './interface';
|
|
6
2
|
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
showToolPanel?: boolean | undefined;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
4
|
+
zoom: number;
|
|
5
|
+
center: [number, number];
|
|
6
|
+
showGreenLayer: boolean;
|
|
7
|
+
layerType: string;
|
|
8
|
+
showScale: boolean;
|
|
9
|
+
scaleLineUnit: string;
|
|
10
|
+
mapMoveEnd: () => void;
|
|
11
|
+
selectShip: () => void;
|
|
12
|
+
selectPort: () => void;
|
|
13
|
+
areaDrawEnd: () => void;
|
|
19
14
|
}>>, {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
center: any[];
|
|
56
|
-
} | null;
|
|
57
|
-
setCenter: (lonLat: number[]) => null | undefined;
|
|
58
|
-
deleteLabelFromArray: () => void;
|
|
59
|
-
drawPolygonTool: {
|
|
60
|
-
addInteraction: (callback?: Function) => void;
|
|
61
|
-
removeInteraction: () => void;
|
|
62
|
-
initFeature: (callback?: Function) => void;
|
|
63
|
-
reset: () => void;
|
|
64
|
-
destroy: () => void;
|
|
15
|
+
getZoom: () => any;
|
|
16
|
+
setZoom: (zoom: number) => any;
|
|
17
|
+
getInstall: () => any;
|
|
18
|
+
getView: () => any;
|
|
19
|
+
setCenter: (lon: number, lat: number) => any;
|
|
20
|
+
getSize: () => any;
|
|
21
|
+
getCenter: (lon: number, lat: number) => any;
|
|
22
|
+
layer: {
|
|
23
|
+
setGreenTileVisible: (show: boolean) => any;
|
|
24
|
+
getGreenTileVisible: () => any;
|
|
25
|
+
getShowLayerType: () => any;
|
|
26
|
+
setShowLayerType: (type: Props["layerType"]) => any;
|
|
27
|
+
};
|
|
28
|
+
ship: {
|
|
29
|
+
render: (...rest: any[]) => any;
|
|
30
|
+
selected: (...rest: any[]) => any;
|
|
31
|
+
filter: (...rest: any[]) => any;
|
|
32
|
+
blinking: (...rest: any[]) => any;
|
|
33
|
+
clear: () => any;
|
|
34
|
+
};
|
|
35
|
+
track: {
|
|
36
|
+
render: (...rest: any[]) => any;
|
|
37
|
+
remove: (...rest: any[]) => any;
|
|
38
|
+
play: (...rest: any[]) => any;
|
|
39
|
+
setCenter: (...rest: any[]) => any;
|
|
40
|
+
close: (...rest: any[]) => any;
|
|
41
|
+
getLength: (...rest: any[]) => any;
|
|
42
|
+
};
|
|
43
|
+
carTrack: {
|
|
44
|
+
location: (...rest: any[]) => any;
|
|
45
|
+
remove: (...rest: any[]) => any;
|
|
46
|
+
renderTrack: (...rest: any[]) => any;
|
|
47
|
+
setCenter: (...rest: any[]) => any;
|
|
48
|
+
closeTrack: () => any;
|
|
49
|
+
playTrack: (...rest: any[]) => any;
|
|
65
50
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
51
|
+
port: {
|
|
52
|
+
render: (portList: WharfEntity[], showTitle: boolean) => any;
|
|
53
|
+
clear: () => any;
|
|
54
|
+
selected: (portData?: WharfEntity) => any;
|
|
69
55
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
mercator: string;
|
|
88
|
-
};
|
|
56
|
+
position: {
|
|
57
|
+
render: (...rest: any[]) => any;
|
|
58
|
+
selected: (...rest: any[]) => any;
|
|
59
|
+
clearSelected: (...rest: any[]) => any;
|
|
60
|
+
clear: () => any;
|
|
61
|
+
};
|
|
62
|
+
drawLine: {
|
|
63
|
+
open: () => any;
|
|
64
|
+
close: () => any;
|
|
65
|
+
deleteLine: (id: string) => any;
|
|
66
|
+
setUnit: (unitValue: string) => any;
|
|
67
|
+
getState: () => any;
|
|
68
|
+
};
|
|
69
|
+
drawPolygon: {
|
|
70
|
+
open: () => any;
|
|
71
|
+
close: () => any;
|
|
72
|
+
reset: () => any;
|
|
89
73
|
};
|
|
90
74
|
utils: {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
leftTopPoint: {
|
|
95
|
-
lng: number;
|
|
96
|
-
lat: number;
|
|
97
|
-
};
|
|
98
|
-
rightTopPoint: {
|
|
99
|
-
lng: number;
|
|
100
|
-
lat: number;
|
|
101
|
-
};
|
|
102
|
-
rightBottomPoint: {
|
|
103
|
-
lng: number;
|
|
104
|
-
lat: number;
|
|
105
|
-
};
|
|
106
|
-
leftBottomPoint: {
|
|
107
|
-
lng: number;
|
|
108
|
-
lat: number;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
lonLatToMercator: (center: [number, number]) => number[];
|
|
112
|
-
mercatorToLonLat: (center: [number, number], type?: string) => number[] | {
|
|
113
|
-
lon: number;
|
|
114
|
-
lat: number;
|
|
115
|
-
};
|
|
116
|
-
calculateBoundingBox: (coordinates: [number, number][]) => number[];
|
|
117
|
-
transform: typeof transform;
|
|
118
|
-
};
|
|
119
|
-
format: {
|
|
120
|
-
formatLength: (line: import('ol/geom').LineString, unit: number) => string;
|
|
121
|
-
convertSixHundredThousandToLatLng: (valueX: number | string, valueY: number | string) => [lng: number, lat: number];
|
|
122
|
-
formatArea: (polygon: import('ol/geom').Polygon | import('ol/geom').Geometry, unit: number) => string | undefined;
|
|
123
|
-
};
|
|
75
|
+
getCalculateExtent: (...reset: any[]) => any;
|
|
76
|
+
convertSixHundredThousandToLatLng: (...reset: any[]) => any;
|
|
77
|
+
calculateCirclePoints: (center: [number, number], radiusInKilometers: number) => any;
|
|
124
78
|
};
|
|
125
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
79
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
80
|
+
zoom: number;
|
|
81
|
+
center: [number, number];
|
|
82
|
+
showGreenLayer: boolean;
|
|
83
|
+
layerType: string;
|
|
84
|
+
showScale: boolean;
|
|
85
|
+
scaleLineUnit: string;
|
|
86
|
+
mapMoveEnd: () => void;
|
|
87
|
+
selectShip: () => void;
|
|
88
|
+
selectPort: () => void;
|
|
89
|
+
areaDrawEnd: () => void;
|
|
90
|
+
}>>> & Readonly<{}>, {
|
|
91
|
+
center: import('ol/coordinate').Coordinate;
|
|
92
|
+
zoom: number;
|
|
93
|
+
layerType: "vector" | "satellite";
|
|
94
|
+
showGreenLayer: boolean;
|
|
95
|
+
showScale: boolean;
|
|
96
|
+
scaleLineUnit: "metric" | "imperial" | "nautical";
|
|
97
|
+
mapMoveEnd: (zoom: number) => void;
|
|
98
|
+
areaDrawEnd: (area: []) => void;
|
|
99
|
+
selectShip: (id: string) => void;
|
|
100
|
+
selectPort: (id: WharfEntity) => void;
|
|
101
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
142
102
|
export default _default;
|
|
143
103
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
144
104
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -149,8 +109,11 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
149
109
|
required: true;
|
|
150
110
|
};
|
|
151
111
|
};
|
|
152
|
-
type
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
};
|
|
112
|
+
type __VLS_WithDefaults<P, D> = {
|
|
113
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
114
|
+
default: D[K];
|
|
115
|
+
}> : P[K];
|
|
156
116
|
};
|
|
117
|
+
type __VLS_Prettify<T> = {
|
|
118
|
+
[K in keyof T]: T[K];
|
|
119
|
+
} & {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Units } from 'ol/control/ScaleLine';
|
|
2
|
+
import { Map } from 'ol';
|
|
2
3
|
|
|
3
4
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
4
|
-
setScaleLine: (units: Units) => void;
|
|
5
|
+
setScaleLine: (mapInstall: Map, units: Units) => void;
|
|
5
6
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
7
|
export default _default;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
|
|
2
|
+
mapInstance: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
|
+
default: () => null;
|
|
4
5
|
};
|
|
5
6
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
6
|
-
|
|
7
|
+
mapInstance: {
|
|
7
8
|
type: ObjectConstructor;
|
|
9
|
+
default: () => null;
|
|
8
10
|
};
|
|
9
|
-
}>> & Readonly<{}>, {
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
mapInstance: Record<string, any>;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
14
|
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const TIAN_DI_TU_KEY = "a6e8f78974f2581f2ca00485b40c948f";
|
|
2
|
+
export declare const MAP_ZOOM: {
|
|
3
|
+
default: number;
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
findShipMin: number;
|
|
7
|
+
findShip: number;
|
|
8
|
+
findTruck: number;
|
|
9
|
+
shipGreenDotMax: number;
|
|
10
|
+
truckDefault: number;
|
|
11
|
+
truckStatistics: number;
|
|
12
|
+
shipModelMin: number;
|
|
13
|
+
shipTriggleMin: number;
|
|
14
|
+
shipModelMax: number;
|
|
15
|
+
markerPosition: number;
|
|
16
|
+
scaleNum: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const projection: {
|
|
19
|
+
data: string;
|
|
20
|
+
mercator: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const MAP_DEFAULT_CENTER: [number, number];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VehicleInfo } from '../interface';
|
|
2
|
+
import { ShipTrack } from '../interface/shipTrack';
|
|
3
|
+
|
|
4
|
+
export declare const useCarTrackManager: (mapInstance: any, trackManager: any) => {
|
|
5
|
+
location: (vehicleInfo?: VehicleInfo) => Promise<void>;
|
|
6
|
+
remove: () => void;
|
|
7
|
+
renderTrack: (vclN: string, list: ShipTrack[], color: string) => void;
|
|
8
|
+
setCenter: (id: string | number) => void;
|
|
9
|
+
closeTrack: () => void;
|
|
10
|
+
playTrack: (id: number | string, speed: number) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Map } from 'ol';
|
|
2
|
+
import { LineString } from 'ol/geom';
|
|
3
|
+
import { PropsManager } from './props';
|
|
4
|
+
|
|
5
|
+
export declare const useDrawLineManager: (mapInstance: Map, propsManager: PropsManager) => {
|
|
6
|
+
open: () => void;
|
|
7
|
+
close: () => void;
|
|
8
|
+
deleteLine: (id: string) => void;
|
|
9
|
+
setUnit: (unitValue: string) => void;
|
|
10
|
+
getState: () => boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const computedDistance: (line: LineString, unit: string) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Map } from 'ol';
|
|
2
|
+
import { PropsManager } from './props';
|
|
3
|
+
|
|
4
|
+
export declare const useDrawPolygonManager: (mapInstance: Map, propsManager: PropsManager) => {
|
|
5
|
+
open: () => void;
|
|
6
|
+
close: () => void;
|
|
7
|
+
reset: () => void;
|
|
8
|
+
getState: () => "close" | "open";
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useMapInitializer } from './map';
|
|
2
|
+
import { PropsManager } from './props';
|
|
3
|
+
import { useTrackManager } from './shipTrack';
|
|
4
|
+
import { useShipManager } from './ship';
|
|
5
|
+
import { usePortManager } from './port';
|
|
6
|
+
import { useDrawLineManager } from './drawLine';
|
|
7
|
+
import { useDrawPolygonManager } from './drawPolygon';
|
|
8
|
+
|
|
9
|
+
export declare const useEventManager: (mapManager: ReturnType<typeof useMapInitializer>, propsManager: PropsManager, trackManager: ReturnType<typeof useTrackManager>, shipManager: ReturnType<typeof useShipManager>, portManager: ReturnType<typeof usePortManager>, drawLineManager: ReturnType<typeof useDrawLineManager>, drawPolygonManager: ReturnType<typeof useDrawPolygonManager>) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Props } from '../interface';
|
|
2
|
+
import { Map } from 'ol';
|
|
3
|
+
|
|
4
|
+
export declare const useLayerManager: (mapInstance: Map) => {
|
|
5
|
+
getLayers: () => import('ol').Collection<import('ol/layer/Base').default>;
|
|
6
|
+
getGreenTileVisible: () => boolean;
|
|
7
|
+
setGreenTileVisible: (show: boolean) => void;
|
|
8
|
+
getShowLayerType: () => "vector" | "satellite" | undefined;
|
|
9
|
+
setShowLayerType: (type: Props["layerType"]) => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Map, View } from 'ol';
|
|
2
|
+
import { Coordinate } from 'ol/coordinate';
|
|
3
|
+
import { Props } from '../interface';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 地图工具类
|
|
7
|
+
*/
|
|
8
|
+
export declare function useMapInitializer(): {
|
|
9
|
+
getInstall: () => Map;
|
|
10
|
+
getView: () => View;
|
|
11
|
+
getZoom: () => number;
|
|
12
|
+
setZoom: (zoom: number) => void;
|
|
13
|
+
setCenter: (lon: number, lat: number) => void;
|
|
14
|
+
getCenter: () => Coordinate;
|
|
15
|
+
getSize: () => number[];
|
|
16
|
+
initMap: (element: HTMLDivElement, props: Props) => void;
|
|
17
|
+
setBaseLayerMap: (props: Props) => void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WharfEntity } from '../interface';
|
|
2
|
+
import { Feature, Map } from 'ol';
|
|
3
|
+
|
|
4
|
+
export declare const PORT_LAYER_CLASS_NAME = "zh-map-port-layer";
|
|
5
|
+
export declare const usePortManager: (mapInstance: Map) => {
|
|
6
|
+
render: (portList: WharfEntity[], showTitle?: boolean) => void;
|
|
7
|
+
clear: () => void;
|
|
8
|
+
selected: (portData?: WharfEntity) => void;
|
|
9
|
+
handlePortHover: (portFeature: Feature | null) => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LocationEntity } from '../interface';
|
|
2
|
+
|
|
3
|
+
export declare const usePositionManager: (mapInstance: any) => {
|
|
4
|
+
render: (portList: LocationEntity[]) => void;
|
|
5
|
+
selected: (loactionData?: LocationEntity) => void;
|
|
6
|
+
clearSelected: () => void;
|
|
7
|
+
clear: () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ShipInfoVo } from '../../interface';
|
|
2
|
+
import { Feature, Map as MapOl } from 'ol';
|
|
3
|
+
|
|
4
|
+
export declare const useShipManager: (mapInstance: MapOl) => {
|
|
5
|
+
render: (shipList: ShipInfoVo[]) => void;
|
|
6
|
+
selected: (ship: ShipInfoVo) => void;
|
|
7
|
+
filter: (shipList: ShipInfoVo[]) => void;
|
|
8
|
+
blinking: (ships: Record<string, boolean>, colors: Record<string, {
|
|
9
|
+
blinkColors: string[];
|
|
10
|
+
shipState: string;
|
|
11
|
+
}>) => void;
|
|
12
|
+
clear: () => void;
|
|
13
|
+
handleShipMapEvent: import('lodash-es').DebouncedFunc<(shipsFeature: Feature | null, type: string, callback?: (id: string) => void) => void>;
|
|
14
|
+
changeShipScale: (status: string) => void;
|
|
15
|
+
changeSelectedScale: () => void;
|
|
16
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ShipInfoVo } from '../../interface';
|
|
2
|
+
import { Feature } from 'ol';
|
|
3
|
+
|
|
4
|
+
export declare const getRightIcons: (ship: ShipInfoVo) => string[];
|
|
5
|
+
export declare const createLabelRenderer: (ctx: CanvasRenderingContext2D, pixelCoords: [number, number], feature: Feature) => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ShipInfoVo } from '../../interface';
|
|
2
|
+
import { SHIP_DIRECT } from '../../meta/ship';
|
|
3
|
+
import { Feature, Map as MapOl, Overlay } from 'ol';
|
|
4
|
+
import { Style } from 'ol/style';
|
|
5
|
+
|
|
6
|
+
export declare const getShipDirectPath: (ship: ShipInfoVo) => "" | SHIP_DIRECT.left | SHIP_DIRECT.right | SHIP_DIRECT.front;
|
|
7
|
+
type ShipType = 'ship' | 'triangle';
|
|
8
|
+
export declare const createShipStyle: (mapInstance: MapOl, feature: Feature) => Style;
|
|
9
|
+
export declare const getShipType: (mapInstance: MapOl) => ShipType;
|
|
10
|
+
export declare const getShipScale: (mapInstance: MapOl, shipData: ShipInfoVo, shipType: ShipType) => number;
|
|
11
|
+
export declare const selectedShipStyle: (mapInstance: MapOl, shipData: ShipInfoVo) => Overlay;
|
|
12
|
+
/**
|
|
13
|
+
* 生成船只元素
|
|
14
|
+
* @param shipData
|
|
15
|
+
*/
|
|
16
|
+
export declare const selectedShipElement: (mapInstance: MapOl, shipData: ShipInfoVo) => HTMLDivElement;
|
|
17
|
+
export declare const createLabelStyle: (mapInstance: MapOl, shipData: ShipInfoVo) => void;
|
|
18
|
+
export declare const createLabelElement: (shipData: ShipInfoVo) => HTMLDivElement;
|
|
19
|
+
export declare const getRightIcons: (ship: ShipInfoVo) => string[];
|
|
20
|
+
export declare function getRandomLineDirection(): LineDirection;
|
|
21
|
+
type LineDirection = 'left-top' | 'left-middle' | 'left-bottom' | 'right-top' | 'right-middle' | 'right-bottom';
|
|
22
|
+
export declare const createLabelFeatureStyle: (feature: Feature, lenNum: number) => Style;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ShipOverlayProps {
|
|
2
|
+
selected: boolean;
|
|
3
|
+
name: string;
|
|
4
|
+
color: string;
|
|
5
|
+
position: [number, number];
|
|
6
|
+
existDevice?: boolean;
|
|
7
|
+
existMobile?: boolean;
|
|
8
|
+
existWaterGauge?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export default function useShipOverlay(props: ShipOverlayProps): () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Feature, MapBrowserEvent, Map as MapOl } from 'ol';
|
|
2
|
+
import { ShipTrack } from '../interface/shipTrack';
|
|
3
|
+
|
|
4
|
+
export declare const useTrackManager: (mapInstance: MapOl) => {
|
|
5
|
+
render: (id: string, list: ShipTrack[], color: string, type?: string, threshold?: number) => Promise<void>;
|
|
6
|
+
remove: () => void;
|
|
7
|
+
play: (id: number | string, speed: number) => void;
|
|
8
|
+
setCenter: (id?: number | string) => void;
|
|
9
|
+
close: (id?: string) => void;
|
|
10
|
+
getLength: (id: string, unit?: number) => {
|
|
11
|
+
id: string;
|
|
12
|
+
length: string;
|
|
13
|
+
};
|
|
14
|
+
handleTrackMapEvent: (trunkFeature: Feature | null, type: string, event?: MapBrowserEvent<PointerEvent>) => void;
|
|
15
|
+
reRenderTrackLine: import('lodash-es').DebouncedFunc<() => void>;
|
|
16
|
+
};
|