zhihao-ui 1.3.32 → 1.3.34
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-lEzbpRa-.js → BaseInfo-BhnEjLKF.js} +1 -1
- package/dist/es/{BaseItem-Ba9x8bVd.js → BaseItem-C4NJy1i4.js} +3 -3
- package/dist/es/{Button-BEYBRduL.js → Button-CGndQwez.js} +2 -2
- package/dist/es/{DatePicker-LYMSAOex.js → DatePicker-Dy1K1cJQ.js} +3 -3
- package/dist/es/{DetailHeader-BmAOi010.js → DetailHeader-DaabNj_4.js} +3 -3
- package/dist/es/{DetailSubTitle-BiVypTgw.js → DetailSubTitle-CzFZPXeE.js} +2 -2
- package/dist/es/{Dialog-CxVSOXNv.js → Dialog-BUW6ag1B.js} +3 -3
- package/dist/es/{DiyDataTable-Ccfx_x83.js → DiyDataTable-D-UZVciZ.js} +4 -4
- package/dist/es/{EditInfoPair-B13CtS67.js → EditInfoPair-B2f6zoGY.js} +3 -3
- package/dist/es/{FileWrapper-BS8tKD93.js → FileWrapper-D4IxJemr.js} +4 -4
- package/dist/es/{Grid-C2SGqgzr.js → Grid-DIs695lY.js} +2 -2
- package/dist/es/{InfoPair-Dh7Wmmxp.js → InfoPair-Ce7nDfxD.js} +3 -3
- package/dist/es/{Input-D2hOF2Qz.js → Input-C5X2X_YD.js} +3 -3
- package/dist/es/{Loading-D_TaBO77.js → Loading-BgoEv5qE.js} +2 -2
- package/dist/es/Map-_N_QIApR.js +2169 -0
- package/dist/es/{MessageBox-jeff4H3s.js → MessageBox-DiGH5x51.js} +2 -2
- package/dist/es/{MoneyInput-DsPqwnRE.js → MoneyInput-D0kYiOfP.js} +8 -8
- package/dist/es/{PageHeadPanel-DzTiZsrm.js → PageHeadPanel-C6IdOq6I.js} +2 -2
- package/dist/es/{Table-DVUXl407.js → Table-B_3YA1mb.js} +5 -5
- package/dist/es/{ToolTips-D6btU9GM.js → ToolTips-CiQHxGrw.js} +6 -6
- package/dist/es/index.js +22 -22
- package/dist/es/{utils-BOPMDuno.js → utils-D2wHR1YB.js} +1 -1
- package/dist/es/{vendor-DHIg4jsE.js → vendor-D2mv9LHk.js} +1226 -1227
- package/dist/index.css +1 -1
- 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/port.d.ts +2 -2
- package/dist/types/components/Map/function/ship/index.d.ts +1 -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/interface/loaction.d.ts +7 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +44 -46
- package/package.json +1 -1
- package/dist/es/Map-Ch5zj0xU.js +0 -2175
- package/dist/types/components/Map/utils/util.d.ts +0 -42
|
@@ -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 { LocationEntity } from '../interface';
|
|
2
|
+
|
|
3
|
+
export declare const LOCATION_LAYER_CLASS_NAME = "zh-map-location-layer";
|
|
4
|
+
export declare const render: (portList: LocationEntity[]) => void;
|
|
5
|
+
export declare const clearList: () => void;
|
|
6
|
+
export declare const clearSelected: () => void;
|
|
7
|
+
export declare const selectedLocation: (loactionData?: any) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WharfEntity } from '../interface';
|
|
2
|
-
import { Feature } from 'ol';
|
|
2
|
+
import { Feature, Map } from 'ol';
|
|
3
3
|
|
|
4
4
|
export declare const PORT_LAYER_CLASS_NAME = "zh-map-port-layer";
|
|
5
|
-
export declare const usePortManager: (mapInstance:
|
|
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;
|
|
@@ -12,4 +12,5 @@ export declare const useShipManager: (mapInstance: any) => {
|
|
|
12
12
|
clear: () => void;
|
|
13
13
|
handleShipMapEvent: import('lodash-es').DebouncedFunc<(shipsFeature: Feature, type: string, callback?: (id: string) => void) => void>;
|
|
14
14
|
changeShipScale: (status: string) => void;
|
|
15
|
+
changeSelectedScale: () => void;
|
|
15
16
|
};
|
|
@@ -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 {};
|