zhihao-ui 1.3.42-alpha.7 → 1.3.43
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/Map-DbbD377l.js +2235 -0
- package/dist/es/index.js +1 -1
- package/dist/types/components/Map/Map.vue.d.ts +1 -1
- package/dist/types/components/Map/function/port.d.ts +1 -1
- package/dist/types/components/Map/function/ship/index.d.ts +5 -7
- package/dist/types/components/Map/function/ship/style.d.ts +3 -3
- package/dist/types/components/Map/function/shipTrack.d.ts +4 -4
- package/dist/types/components/Map/index.d.ts +6 -6
- package/dist/types/components/Map/interface/mapProps.d.ts +3 -3
- package/dist/types/components/Map/interface/shipInfoVo.d.ts +2 -0
- package/dist/types/components/Map/meta/index.d.ts +5 -0
- package/dist/types/components/Map/utils/shipOverlay.d.ts +3 -3
- package/dist/umd/index.umd.cjs +49 -49
- package/package.json +1 -1
- package/dist/es/Map-BtQEJVq-.js +0 -2225
package/dist/es/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { Z as B } from "./BaseInfo-BhnEjLKF.js";
|
|
|
17
17
|
import { Z as g } from "./DetailHeader-DaabNj_4.js";
|
|
18
18
|
import { Z as x } from "./DiyDataTable-D-UZVciZ.js";
|
|
19
19
|
import { D as V } from "./DiyDataTable-D-UZVciZ.js";
|
|
20
|
-
import { Z as G } from "./Map-
|
|
20
|
+
import { Z as G } from "./Map-DbbD377l.js";
|
|
21
21
|
import { Z as M } from "./Table-B_3YA1mb.js";
|
|
22
22
|
import { Z as $ } from "./BaseItem-C4NJy1i4.js";
|
|
23
23
|
const A = [
|
|
@@ -97,7 +97,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
97
97
|
mapMoveEnd: (zoom: number) => void;
|
|
98
98
|
areaDrawEnd: (area: []) => void;
|
|
99
99
|
selectShip: (id: string) => void;
|
|
100
|
-
selectPort: (id:
|
|
100
|
+
selectPort: (id: WharfEntity) => void;
|
|
101
101
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
102
102
|
export default _default;
|
|
103
103
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -6,5 +6,5 @@ export declare const usePortManager: (mapInstance: Map) => {
|
|
|
6
6
|
render: (portList: WharfEntity[], showTitle?: boolean) => void;
|
|
7
7
|
clear: () => void;
|
|
8
8
|
selected: (portData?: WharfEntity) => void;
|
|
9
|
-
handlePortHover: (portFeature: Feature) => void;
|
|
9
|
+
handlePortHover: (portFeature: Feature | null) => void;
|
|
10
10
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { ShipInfoVo } from '../../interface';
|
|
2
|
-
import { Feature } from 'ol';
|
|
2
|
+
import { Feature, Map as MapOl } from 'ol';
|
|
3
3
|
|
|
4
|
-
export declare const useShipManager: (mapInstance:
|
|
4
|
+
export declare const useShipManager: (mapInstance: MapOl) => {
|
|
5
5
|
render: (shipList: ShipInfoVo[]) => void;
|
|
6
6
|
selected: (ship: ShipInfoVo) => void;
|
|
7
7
|
filter: (shipList: ShipInfoVo[]) => void;
|
|
8
|
-
blinking: (ships: Record<string, boolean>, colors: {
|
|
8
|
+
blinking: (ships: Record<string, boolean>, colors: Record<string, {
|
|
9
9
|
blinkColors: string[];
|
|
10
10
|
shipState: string;
|
|
11
|
-
}) => void;
|
|
11
|
+
}>) => void;
|
|
12
12
|
clear: () => void;
|
|
13
|
-
handleShipMapEvent: import('lodash-es').DebouncedFunc<(shipsFeature: Feature, type: string, callback?: (id: string) => void) => void>;
|
|
13
|
+
handleShipMapEvent: import('lodash-es').DebouncedFunc<(shipsFeature: Feature | null, type: string, callback?: (id: string) => void) => void>;
|
|
14
14
|
changeShipScale: (status: string) => void;
|
|
15
15
|
changeSelectedScale: () => void;
|
|
16
|
-
hiddenShipBlink: () => void;
|
|
17
|
-
showShipBlink: () => void;
|
|
18
16
|
};
|
|
@@ -5,7 +5,7 @@ import { Style } from 'ol/style';
|
|
|
5
5
|
|
|
6
6
|
export declare const getShipDirectPath: (ship: ShipInfoVo) => "" | SHIP_DIRECT.left | SHIP_DIRECT.right | SHIP_DIRECT.front;
|
|
7
7
|
type ShipType = 'ship' | 'triangle';
|
|
8
|
-
export declare const createShipStyle: (mapInstance:
|
|
8
|
+
export declare const createShipStyle: (mapInstance: MapOl, feature: Feature) => Style;
|
|
9
9
|
export declare const getShipType: (mapInstance: MapOl) => ShipType;
|
|
10
10
|
export declare const getShipScale: (mapInstance: MapOl, shipData: ShipInfoVo, shipType: ShipType) => number;
|
|
11
11
|
export declare const selectedShipStyle: (mapInstance: MapOl, shipData: ShipInfoVo) => Overlay;
|
|
@@ -14,8 +14,8 @@ export declare const selectedShipStyle: (mapInstance: MapOl, shipData: ShipInfoV
|
|
|
14
14
|
* @param shipData
|
|
15
15
|
*/
|
|
16
16
|
export declare const selectedShipElement: (mapInstance: MapOl, shipData: ShipInfoVo) => HTMLDivElement;
|
|
17
|
-
export declare const createLabelStyle: (mapInstance:
|
|
18
|
-
export declare const createLabelElement: (shipData:
|
|
17
|
+
export declare const createLabelStyle: (mapInstance: MapOl, shipData: ShipInfoVo) => void;
|
|
18
|
+
export declare const createLabelElement: (shipData: ShipInfoVo) => HTMLDivElement;
|
|
19
19
|
export declare const getRightIcons: (ship: ShipInfoVo) => string[];
|
|
20
20
|
export declare function getRandomLineDirection(): LineDirection;
|
|
21
21
|
type LineDirection = 'left-top' | 'left-middle' | 'left-bottom' | 'right-top' | 'right-middle' | 'right-bottom';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Feature, MapBrowserEvent } from 'ol';
|
|
1
|
+
import { Feature, MapBrowserEvent, Map as MapOl } from 'ol';
|
|
2
2
|
import { ShipTrack } from '../interface/shipTrack';
|
|
3
3
|
|
|
4
|
-
export declare const useTrackManager: (mapInstance:
|
|
5
|
-
render: (id: string, list: ShipTrack[], color: string, type?: string
|
|
4
|
+
export declare const useTrackManager: (mapInstance: MapOl) => {
|
|
5
|
+
render: (id: string, list: ShipTrack[], color: string, type?: string, threshold?: number) => Promise<void>;
|
|
6
6
|
remove: () => void;
|
|
7
7
|
play: (id: number | string, speed: number) => void;
|
|
8
8
|
setCenter: (id?: number | string) => void;
|
|
@@ -11,6 +11,6 @@ export declare const useTrackManager: (mapInstance: any) => {
|
|
|
11
11
|
id: string;
|
|
12
12
|
length: string;
|
|
13
13
|
};
|
|
14
|
-
handleTrackMapEvent: (trunkFeature: Feature |
|
|
14
|
+
handleTrackMapEvent: (trunkFeature: Feature | null, type: string, event?: MapBrowserEvent<PointerEvent>) => void;
|
|
15
15
|
reRenderTrackLine: import('lodash-es').DebouncedFunc<() => void>;
|
|
16
16
|
};
|
|
@@ -40,7 +40,7 @@ export declare const ZhMap: {
|
|
|
40
40
|
default: () => void;
|
|
41
41
|
};
|
|
42
42
|
selectPort: {
|
|
43
|
-
type: import('vue').PropType<(id:
|
|
43
|
+
type: import('vue').PropType<(id: WharfEntity) => void>;
|
|
44
44
|
default: () => void;
|
|
45
45
|
};
|
|
46
46
|
}>> & Readonly<{}>, {
|
|
@@ -118,7 +118,7 @@ export declare const ZhMap: {
|
|
|
118
118
|
mapMoveEnd: (zoom: number) => void;
|
|
119
119
|
areaDrawEnd: (area: []) => void;
|
|
120
120
|
selectShip: (id: string) => void;
|
|
121
|
-
selectPort: (id:
|
|
121
|
+
selectPort: (id: WharfEntity) => void;
|
|
122
122
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
123
123
|
P: {};
|
|
124
124
|
B: {};
|
|
@@ -167,7 +167,7 @@ export declare const ZhMap: {
|
|
|
167
167
|
default: () => void;
|
|
168
168
|
};
|
|
169
169
|
selectPort: {
|
|
170
|
-
type: import('vue').PropType<(id:
|
|
170
|
+
type: import('vue').PropType<(id: WharfEntity) => void>;
|
|
171
171
|
default: () => void;
|
|
172
172
|
};
|
|
173
173
|
}>> & Readonly<{}>, {
|
|
@@ -245,7 +245,7 @@ export declare const ZhMap: {
|
|
|
245
245
|
mapMoveEnd: (zoom: number) => void;
|
|
246
246
|
areaDrawEnd: (area: []) => void;
|
|
247
247
|
selectShip: (id: string) => void;
|
|
248
|
-
selectPort: (id:
|
|
248
|
+
selectPort: (id: WharfEntity) => void;
|
|
249
249
|
}>;
|
|
250
250
|
__isFragment?: never;
|
|
251
251
|
__isTeleport?: never;
|
|
@@ -291,7 +291,7 @@ export declare const ZhMap: {
|
|
|
291
291
|
default: () => void;
|
|
292
292
|
};
|
|
293
293
|
selectPort: {
|
|
294
|
-
type: import('vue').PropType<(id:
|
|
294
|
+
type: import('vue').PropType<(id: WharfEntity) => void>;
|
|
295
295
|
default: () => void;
|
|
296
296
|
};
|
|
297
297
|
}>> & Readonly<{}>, {
|
|
@@ -369,5 +369,5 @@ export declare const ZhMap: {
|
|
|
369
369
|
mapMoveEnd: (zoom: number) => void;
|
|
370
370
|
areaDrawEnd: (area: []) => void;
|
|
371
371
|
selectShip: (id: string) => void;
|
|
372
|
-
selectPort: (id:
|
|
372
|
+
selectPort: (id: WharfEntity) => void;
|
|
373
373
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
@@ -3,13 +3,13 @@ import { Coordinate } from 'ol/coordinate';
|
|
|
3
3
|
export interface Props {
|
|
4
4
|
zoom?: number;
|
|
5
5
|
center?: Coordinate;
|
|
6
|
-
layerType?:
|
|
6
|
+
layerType?: "vector" | "satellite";
|
|
7
7
|
showGreenLayer?: boolean;
|
|
8
8
|
showScale?: boolean;
|
|
9
|
-
scaleLineUnit?:
|
|
9
|
+
scaleLineUnit?: "metric" | "imperial" | "nautical";
|
|
10
10
|
mapMoveEnd?: (zoom: number) => void;
|
|
11
11
|
lineDrawEnd?: (line: any) => void;
|
|
12
12
|
areaDrawEnd?: (area: []) => void;
|
|
13
13
|
selectShip?: (id: string) => void;
|
|
14
|
-
selectPort?: (id:
|
|
14
|
+
selectPort?: (id: WharfEntity) => void;
|
|
15
15
|
}
|
|
@@ -3,9 +3,9 @@ export interface ShipOverlayProps {
|
|
|
3
3
|
name: string;
|
|
4
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;
|