zhihao-ui 1.3.6 → 1.3.7
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-dW7d39YT.js → Map-d20K-h9a.js} +13 -8
- package/dist/es/index.js +1 -1
- package/dist/index.css +1 -1
- package/dist/types/components/Map/Map.vue.d.ts +16 -0
- package/dist/types/components/Map/function/label.d.ts +9 -0
- package/dist/types/components/Map/function/location.d.ts +7 -0
- package/dist/types/components/Map/function/ship.d.ts +34 -0
- package/dist/types/components/Map/function/shipLabel.d.ts +25 -0
- package/dist/types/components/Map/index.d.ts +48 -0
- package/dist/types/components/Map/interface/wharfEntity.d.ts +2 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +1 -1
- package/package.json +1 -1
- package/dist/types/components/Map/utils/util.d.ts +0 -42
|
@@ -48,6 +48,22 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
48
48
|
clear: () => void;
|
|
49
49
|
selected: (portData?: import('./interface').WharfEntity) => void;
|
|
50
50
|
};
|
|
51
|
+
loaction: {
|
|
52
|
+
ancestorOrigins: DOMStringList;
|
|
53
|
+
hash: string;
|
|
54
|
+
host: string;
|
|
55
|
+
hostname: string;
|
|
56
|
+
href: string;
|
|
57
|
+
toString(): string;
|
|
58
|
+
origin: string;
|
|
59
|
+
pathname: string;
|
|
60
|
+
port: string;
|
|
61
|
+
protocol: string;
|
|
62
|
+
search: string;
|
|
63
|
+
assign(url: string | URL): void;
|
|
64
|
+
reload(): void;
|
|
65
|
+
replace(url: string | URL): void;
|
|
66
|
+
};
|
|
51
67
|
drawLine: {
|
|
52
68
|
open: () => void;
|
|
53
69
|
close: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ShipLabelData } from '../interface/label';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 获取图标编码
|
|
5
|
+
* @param unicode
|
|
6
|
+
*/
|
|
7
|
+
export declare function getIconFont(unicode?: string): any;
|
|
8
|
+
export declare const clearAll: () => void;
|
|
9
|
+
export declare const createLabelRenderer: (ctx: CanvasRenderingContext2D, pixelCoords: [number, number], feature: ShipLabelData) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WharfEntity } from '../interface';
|
|
2
|
+
|
|
3
|
+
export declare const LOCATION_LAYER_CLASS_NAME = "zh-map-location-layer";
|
|
4
|
+
export declare const render: (portList: WharfEntity[]) => void;
|
|
5
|
+
export declare const clearList: () => void;
|
|
6
|
+
export declare const clearSelected: () => void;
|
|
7
|
+
export declare const selectedLocation: (loactionData?: WharfEntity) => void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ShipInfoVo } from '../interface';
|
|
2
|
+
import { Feature } from 'ol';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 渲染船只图层Feature
|
|
6
|
+
* @param shipList
|
|
7
|
+
*/
|
|
8
|
+
export declare const renderShipList: import('lodash-es').DebouncedFunc<(shipList: ShipInfoVo[]) => void>;
|
|
9
|
+
/**
|
|
10
|
+
* 显示符合条件的船只
|
|
11
|
+
* @param shipList
|
|
12
|
+
*/
|
|
13
|
+
export declare const filterShipShow: (shipList: ShipInfoVo[]) => void;
|
|
14
|
+
/**
|
|
15
|
+
* 生成每艘船名Overlay
|
|
16
|
+
* @param feature
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* 船只事件处理
|
|
20
|
+
* @param pixel
|
|
21
|
+
* @param type
|
|
22
|
+
*/
|
|
23
|
+
export declare const handleShipMapEvent: import('lodash-es').DebouncedFunc<(shipsFeature: Feature, type: string, callback?: (id: string) => void) => void>;
|
|
24
|
+
/**
|
|
25
|
+
* 对外船只选中效果
|
|
26
|
+
*/
|
|
27
|
+
export declare const renderShipSelected: (ship?: ShipInfoVo) => void;
|
|
28
|
+
export declare const renderShipBlink: (ships: {
|
|
29
|
+
[key: string]: boolean;
|
|
30
|
+
}, colors: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
}) => void;
|
|
33
|
+
export declare const handleShipChange: () => void;
|
|
34
|
+
export declare const clearShipList: () => void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Feature } from 'ol';
|
|
2
|
+
|
|
3
|
+
export interface LabelStyle {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
textWidth: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const calculateTextMetrics: (ctx: CanvasRenderingContext2D, feature: Feature) => LabelStyle;
|
|
9
|
+
export interface LabelPosition {
|
|
10
|
+
position: 'top' | 'right' | 'bottom' | 'left';
|
|
11
|
+
bounds: [number, number, number, number];
|
|
12
|
+
connectionPoints: connectionPoints;
|
|
13
|
+
}
|
|
14
|
+
export declare const calculateBestPosition: (feature: Feature, pixelCoords: [number, number], TextMetrics: LabelStyle) => LabelPosition;
|
|
15
|
+
interface connectionPoints {
|
|
16
|
+
start: [number, number];
|
|
17
|
+
end: [number, number];
|
|
18
|
+
}
|
|
19
|
+
export declare const drawConnectionLine: (ctx: CanvasRenderingContext2D, start: [number, number], end: [number, number]) => void;
|
|
20
|
+
export declare const drawLabelBackground: (ctx: CanvasRenderingContext2D, feature: Feature, bounds: [number, number, number, number], labelStyle: LabelStyle) => void;
|
|
21
|
+
export declare const drawLabelContent: (ctx: CanvasRenderingContext2D, feature: Feature, bounds: [number, number, number, number]) => void;
|
|
22
|
+
export declare const handleBlinkAnimation: (ctx: CanvasRenderingContext2D, feature: Feature, labelPos: LabelPosition, labelStyle: LabelStyle) => void;
|
|
23
|
+
export declare const clearAnimation: (ctx: CanvasRenderingContext2D, feature: Feature, bounds: [number, number, number, number], labelStyle: LabelStyle) => void;
|
|
24
|
+
export declare const updateCollisionTree: (feature: Feature, labelPos: LabelPosition) => void;
|
|
25
|
+
export {};
|
|
@@ -84,6 +84,22 @@ export declare const ZhMap: {
|
|
|
84
84
|
clear: () => void;
|
|
85
85
|
selected: (portData?: import('./interface').WharfEntity) => void;
|
|
86
86
|
};
|
|
87
|
+
loaction: {
|
|
88
|
+
ancestorOrigins: DOMStringList;
|
|
89
|
+
hash: string;
|
|
90
|
+
host: string;
|
|
91
|
+
hostname: string;
|
|
92
|
+
href: string;
|
|
93
|
+
toString(): string;
|
|
94
|
+
origin: string;
|
|
95
|
+
pathname: string;
|
|
96
|
+
port: string;
|
|
97
|
+
protocol: string;
|
|
98
|
+
search: string;
|
|
99
|
+
assign(url: string | URL): void;
|
|
100
|
+
reload(): void;
|
|
101
|
+
replace(url: string | URL): void;
|
|
102
|
+
};
|
|
87
103
|
drawLine: {
|
|
88
104
|
open: () => void;
|
|
89
105
|
close: () => void;
|
|
@@ -229,6 +245,22 @@ export declare const ZhMap: {
|
|
|
229
245
|
clear: () => void;
|
|
230
246
|
selected: (portData?: import('./interface').WharfEntity) => void;
|
|
231
247
|
};
|
|
248
|
+
loaction: {
|
|
249
|
+
ancestorOrigins: DOMStringList;
|
|
250
|
+
hash: string;
|
|
251
|
+
host: string;
|
|
252
|
+
hostname: string;
|
|
253
|
+
href: string;
|
|
254
|
+
toString(): string;
|
|
255
|
+
origin: string;
|
|
256
|
+
pathname: string;
|
|
257
|
+
port: string;
|
|
258
|
+
protocol: string;
|
|
259
|
+
search: string;
|
|
260
|
+
assign(url: string | URL): void;
|
|
261
|
+
reload(): void;
|
|
262
|
+
replace(url: string | URL): void;
|
|
263
|
+
};
|
|
232
264
|
drawLine: {
|
|
233
265
|
open: () => void;
|
|
234
266
|
close: () => void;
|
|
@@ -371,6 +403,22 @@ export declare const ZhMap: {
|
|
|
371
403
|
clear: () => void;
|
|
372
404
|
selected: (portData?: import('./interface').WharfEntity) => void;
|
|
373
405
|
};
|
|
406
|
+
loaction: {
|
|
407
|
+
ancestorOrigins: DOMStringList;
|
|
408
|
+
hash: string;
|
|
409
|
+
host: string;
|
|
410
|
+
hostname: string;
|
|
411
|
+
href: string;
|
|
412
|
+
toString(): string;
|
|
413
|
+
origin: string;
|
|
414
|
+
pathname: string;
|
|
415
|
+
port: string;
|
|
416
|
+
protocol: string;
|
|
417
|
+
search: string;
|
|
418
|
+
assign(url: string | URL): void;
|
|
419
|
+
reload(): void;
|
|
420
|
+
replace(url: string | URL): void;
|
|
421
|
+
};
|
|
374
422
|
drawLine: {
|
|
375
423
|
open: () => void;
|
|
376
424
|
close: () => void;
|