zhihao-ui 1.3.11 → 1.3.12

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.
Files changed (47) hide show
  1. package/dist/es/{BaseInfo-Bhin5Xqy.js → BaseInfo-BhnEjLKF.js} +1 -1
  2. package/dist/es/{BaseItem-BoLcxB-U.js → BaseItem-C4NJy1i4.js} +3 -3
  3. package/dist/es/{Button-DdMNoo0g.js → Button-CGndQwez.js} +2 -2
  4. package/dist/es/{DatePicker-sUXbd9V4.js → DatePicker-Dy1K1cJQ.js} +3 -3
  5. package/dist/es/{DetailHeader--0WANmGX.js → DetailHeader-DaabNj_4.js} +3 -3
  6. package/dist/es/{DetailSubTitle-BUqZQxrl.js → DetailSubTitle-CzFZPXeE.js} +2 -2
  7. package/dist/es/{Dialog-BKHohBv4.js → Dialog-BUW6ag1B.js} +3 -3
  8. package/dist/es/{DiyDataTable-GuaKFrG5.js → DiyDataTable-D-UZVciZ.js} +4 -4
  9. package/dist/es/{EditInfoPair-CajUIoGj.js → EditInfoPair-B2f6zoGY.js} +3 -3
  10. package/dist/es/{FileWrapper-CvYOVYx4.js → FileWrapper-D4IxJemr.js} +4 -4
  11. package/dist/es/{Grid-eLpow9Qb.js → Grid-DIs695lY.js} +2 -2
  12. package/dist/es/{InfoPair-BoTzSjD8.js → InfoPair-Ce7nDfxD.js} +3 -3
  13. package/dist/es/{Input-BKzWwcsD.js → Input-C5X2X_YD.js} +3 -3
  14. package/dist/es/{Loading-3Cz4Wb5p.js → Loading-BgoEv5qE.js} +2 -2
  15. package/dist/es/Map-BotrSWAZ.js +1994 -0
  16. package/dist/es/{MessageBox--A4VqZyI.js → MessageBox-DiGH5x51.js} +2 -2
  17. package/dist/es/{MoneyInput-DeYknAkX.js → MoneyInput-D0kYiOfP.js} +10 -10
  18. package/dist/es/{PageHeadPanel-8pDHbfnc.js → PageHeadPanel-C6IdOq6I.js} +2 -2
  19. package/dist/es/{Table-DcnAnAAU.js → Table-B_3YA1mb.js} +5 -5
  20. package/dist/es/{ToolTips-xwoX6Ww8.js → ToolTips-CiQHxGrw.js} +5 -5
  21. package/dist/es/index.js +22 -22
  22. package/dist/es/{utils-pSjFFegY.js → utils-D2wHR1YB.js} +1 -1
  23. package/dist/es/{vendor-CINc7P9P.js → vendor-D2mv9LHk.js} +8407 -8013
  24. package/dist/index.css +1 -1
  25. package/dist/types/components/Map/Map.vue.d.ts +47 -68
  26. package/dist/types/components/Map/components/scaleLine.vue.d.ts +2 -1
  27. package/dist/types/components/Map/components/zoomControl.vue.d.ts +13 -1
  28. package/dist/types/components/Map/function/carTrack.d.ts +7 -14
  29. package/dist/types/components/Map/function/drawLine.d.ts +4 -4
  30. package/dist/types/components/Map/function/drawPolygon.d.ts +4 -2
  31. package/dist/types/components/Map/function/event.d.ts +8 -0
  32. package/dist/types/components/Map/function/layers.d.ts +8 -5
  33. package/dist/types/components/Map/function/map.d.ts +14 -10
  34. package/dist/types/components/Map/function/port.d.ts +8 -6
  35. package/dist/types/components/Map/function/position.d.ts +1 -7
  36. package/dist/types/components/Map/function/props.d.ts +5 -2
  37. package/dist/types/components/Map/function/ship/index.d.ts +8 -28
  38. package/dist/types/components/Map/function/ship/style.d.ts +36 -4
  39. package/dist/types/components/Map/function/shipTrack.d.ts +12 -37
  40. package/dist/types/components/Map/index.d.ts +141 -216
  41. package/dist/types/components/Map/interface/mapProps.d.ts +5 -5
  42. package/dist/types/components/Map/useMap.d.ts +17 -0
  43. package/dist/types/components/Map/utils/shipOverlay.d.ts +12 -0
  44. package/dist/umd/index.css +1 -1
  45. package/dist/umd/index.umd.cjs +66 -64
  46. package/package.json +1 -1
  47. package/dist/es/Map-Dhm6AjZp.js +0 -1756
@@ -1,5 +1,4 @@
1
- import { Extent } from 'ol/extent';
2
- import { Props } from './interface';
1
+ import { Props, WharfEntity } from './interface';
3
2
 
4
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
5
4
  zoom: number;
@@ -13,88 +12,68 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
13
12
  selectPort: () => void;
14
13
  areaDrawEnd: () => void;
15
14
  }>>, {
16
- getInstall: () => import('ol').Map;
17
- getZoom: () => number;
18
- setZoom: (zoom: number) => void;
19
- getView: () => import('ol').View;
20
- setCenter: (lon: number, lat: number) => void;
21
- getCenter: () => import('ol/coordinate').Coordinate;
15
+ getZoom: () => any;
16
+ setZoom: (zoom: number) => any;
17
+ getInstall: () => any;
18
+ getView: () => any;
19
+ setCenter: (lon: number, lat: number) => any;
20
+ getSize: () => any;
22
21
  layer: {
22
+ setGreenTileVisible: (show: boolean) => any;
23
23
  getGreenTileVisible: () => any;
24
- setGreenTileVisible: (show: boolean) => void;
25
- getShowLayerType: () => "vector" | "satellite" | undefined;
26
- setShowLayerType: (type: Props["layerType"]) => void;
24
+ getShowLayerType: () => any;
25
+ setShowLayerType: (type: Props["layerType"]) => any;
27
26
  };
28
27
  ship: {
29
- render: (shipList: import('./interface').ShipInfoVo[]) => void;
30
- selected: (ship: import('./interface').ShipInfoVo) => void;
31
- filter: (shipList: import('./interface').ShipInfoVo[]) => void;
32
- blinking: (ships: Record<string, boolean>, colors: Record<string, boolean>) => void;
33
- clear: () => void;
28
+ render: (...rest: any[]) => any;
29
+ selected: (...rest: any[]) => any;
30
+ filter: (...rest: any[]) => any;
31
+ blinking: (...rest: any[]) => any;
32
+ clear: () => any;
34
33
  };
35
34
  track: {
36
- render: (id: string, list: import('./interface/shipTrack').ShipTrack[], color: string, type?: string) => Promise<void>;
37
- remove: () => void;
38
- play: (id: number | string, speed: number) => void;
39
- setCenter: (id?: number | string) => void;
40
- close: (id?: string) => void;
41
- getLength: (id: string, unit?: number) => {
42
- id: string;
43
- length: string;
44
- };
35
+ render: (...rest: any[]) => any;
36
+ remove: (...rest: any[]) => any;
37
+ play: (...rest: any[]) => any;
38
+ setCenter: (...rest: any[]) => any;
39
+ close: (...rest: any[]) => any;
40
+ getLength: (...rest: any[]) => any;
41
+ };
42
+ carTrack: {
43
+ location: (...rest: any[]) => any;
44
+ remove: (...rest: any[]) => any;
45
+ renderTrack: (...rest: any[]) => any;
46
+ setCenter: (...rest: any[]) => any;
47
+ closeTrack: (...rest: any[]) => any;
48
+ playTrack: (...rest: any[]) => any;
45
49
  };
46
50
  port: {
47
- render: (portList: import('./interface').WharfEntity[]) => void;
48
- clear: () => void;
49
- selected: (portData?: import('./interface').WharfEntity) => void;
51
+ render: (portList: WharfEntity[]) => any;
52
+ clear: () => any;
53
+ selected: (portData: WharfEntity) => any;
50
54
  };
51
55
  position: {
52
- render: (portList: import('./interface').LocationEntity[]) => void;
53
- selected: (loactionData?: import('./interface').LocationEntity) => void;
54
- clearSelected: () => void;
55
- clear: () => void;
56
+ render: (...rest: any[]) => any;
57
+ selected: (...rest: any[]) => any;
58
+ clearSelected: (...rest: any[]) => any;
59
+ clear: () => any;
56
60
  };
57
61
  drawLine: {
58
- open: () => void;
59
- close: () => void;
60
- deleteLine: (id: string) => void;
61
- setUnit: (unitValue: string) => void;
62
- getState: () => boolean;
62
+ open: () => any;
63
+ close: () => any;
64
+ deleteLine: (id: string) => any;
65
+ setUnit: (unitValue: string) => any;
66
+ getState: () => any;
63
67
  };
64
68
  drawPolygon: {
65
- open: () => void;
66
- close: () => void;
67
- reset: () => void;
68
- };
69
- carTrack: {
70
- location: (vehicleInfo?: import('./interface').VehicleInfo) => Promise<void>;
71
- remove: () => void;
72
- renderTrack: (vclN: string, list: any[], color: string, threshold?: number) => void;
73
- setCenter: (id: string | number) => void;
74
- closeTrack: () => void;
75
- playTrack: (id: number | string, speed: number) => void;
69
+ open: () => any;
70
+ close: () => any;
71
+ reset: () => any;
76
72
  };
77
73
  utils: {
78
- getCalculateExtent: () => Extent;
79
- convertSixHundredThousandToLatLng: (valueX: number | string, valueY: number | string) => [lng: number, lat: number];
80
- calculateCirclePoints: (center: [number, number], radiusInKilometers: number) => {
81
- leftTopPoint: {
82
- lng: number;
83
- lat: number;
84
- };
85
- rightTopPoint: {
86
- lng: number;
87
- lat: number;
88
- };
89
- rightBottomPoint: {
90
- lng: number;
91
- lat: number;
92
- };
93
- leftBottomPoint: {
94
- lng: number;
95
- lat: number;
96
- };
97
- };
74
+ getCalculateExtent: () => any;
75
+ convertSixHundredThousandToLatLng: () => any;
76
+ calculateCirclePoints: () => any;
98
77
  };
99
78
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
100
79
  zoom: number;
@@ -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,2 +1,14 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ mapInstance: {
3
+ type: ObjectConstructor;
4
+ default: () => null;
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ mapInstance: {
8
+ type: ObjectConstructor;
9
+ default: () => null;
10
+ };
11
+ }>> & Readonly<{}>, {
12
+ mapInstance: Record<string, any>;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
14
  export default _default;
@@ -1,18 +1,11 @@
1
1
  import { VehicleInfo } from '../interface';
2
+ import { ShipTrack } from '../interface/shipTrack';
2
3
 
3
- export declare const locationTruck: (vehicleInfo?: VehicleInfo) => Promise<void>;
4
- export declare const drawTruckIcon: (vehicleInfo: VehicleInfo, centerPixel: number[]) => void;
5
- export declare const renderTruckTrack: (vclN: string, list: any[], color: string, threshold?: number) => void;
6
- export declare const closeTruckTrack: () => void;
7
- export declare const removeTruckIcon: () => void;
8
- export declare const resetTrackView: (id: string | number) => void;
9
- export declare const playTrack: (id: number | string, speed: number) => void;
10
- declare const _default: {
11
- locationTruck: (vehicleInfo?: VehicleInfo) => Promise<void>;
12
- renderTruckTrack: (vclN: string, list: any[], color: string, threshold?: number) => void;
13
- removeTruckIcon: () => void;
14
- closeTruckTrack: () => void;
15
- resetTrackView: (id: string | number) => void;
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;
16
10
  playTrack: (id: number | string, speed: number) => void;
17
11
  };
18
- export default _default;
@@ -1,12 +1,12 @@
1
+ import { Map } from 'ol';
1
2
  import { LineString } from 'ol/geom';
3
+ import { PropsManager } from './props';
2
4
 
3
- export declare const setUnit: (unitValue: string) => void;
4
- export declare const computedDistance: (line: LineString, unit: string) => string;
5
- declare const _default: {
5
+ export declare const useDrawLineManager: (mapInstance: Map, propsManager: PropsManager) => {
6
6
  open: () => void;
7
7
  close: () => void;
8
8
  deleteLine: (id: string) => void;
9
9
  setUnit: (unitValue: string) => void;
10
10
  getState: () => boolean;
11
11
  };
12
- export default _default;
12
+ export declare const computedDistance: (line: LineString, unit: string) => string;
@@ -1,6 +1,8 @@
1
- declare const _default: {
1
+ import { Map } from 'ol';
2
+ import { PropsManager } from './props';
3
+
4
+ export declare const useDrawPolygonManager: (mapInstance: Map, propsManager: PropsManager) => {
2
5
  open: () => void;
3
6
  close: () => void;
4
7
  reset: () => void;
5
8
  };
6
- export default _default;
@@ -0,0 +1,8 @@
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
+
8
+ 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>) => void;
@@ -1,7 +1,10 @@
1
1
  import { Props } from '../interface';
2
+ import { Map } from 'ol';
2
3
 
3
- export declare const getLayers: () => import('ol').Collection<import('ol/layer/Base').default>;
4
- export declare const getShowLayerType: () => "vector" | "satellite" | undefined;
5
- export declare const setShowLayerType: (type: Props["layerType"]) => void;
6
- export declare const getGreenTileVisible: () => any;
7
- export declare const setGreenTileVisible: (show: boolean) => void;
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
+ };
@@ -2,13 +2,17 @@ import { Map, View } from 'ol';
2
2
  import { Coordinate } from 'ol/coordinate';
3
3
  import { Props } from '../interface';
4
4
 
5
- export declare const getInstall: () => Map;
6
- export declare const setInstall: (map: Map) => void;
7
- export declare const getView: () => View;
8
- export declare const getZoom: () => number;
9
- export declare const setZoom: (zoom: number) => void;
10
- export declare const setCenter: (lon: number, lat: number) => void;
11
- export declare const getCenter: () => Coordinate;
12
- export declare const getSize: () => number[];
13
- export declare const BASE_LAYER_MAP: Map;
14
- export declare const initMap: (props: Props) => void;
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
+ };
@@ -1,9 +1,11 @@
1
1
  import { WharfEntity } from '../interface';
2
- import { Pixel } from 'ol/pixel';
2
+ import { Feature } from 'ol';
3
+ import { useMapInitializer } from './map';
3
4
 
4
5
  export declare const PORT_LAYER_CLASS_NAME = "zh-map-port-layer";
5
- export declare const renderPortList: (portList: WharfEntity[]) => void;
6
- export declare const clearPortList: () => void;
7
- export declare const clearSelectedPort: () => void;
8
- export declare const selectedPort: (portData?: WharfEntity) => void;
9
- export declare const handlePortHover: (pixel: Pixel) => void;
6
+ export declare const usePortManager: (mapManager: ReturnType<typeof useMapInitializer>) => {
7
+ render: (portList: WharfEntity[]) => void;
8
+ clear: () => void;
9
+ selected: (portData?: WharfEntity) => void;
10
+ handlePortHover: (portFeature: Feature) => void;
11
+ };
@@ -1,14 +1,8 @@
1
1
  import { LocationEntity } from '../interface';
2
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?: LocationEntity) => void;
8
- declare const _default: {
3
+ export declare const usePositionManager: (mapInstance: any) => {
9
4
  render: (portList: LocationEntity[]) => void;
10
5
  selected: (loactionData?: LocationEntity) => void;
11
6
  clearSelected: () => void;
12
7
  clear: () => void;
13
8
  };
14
- export default _default;
@@ -1,4 +1,7 @@
1
1
  import { Props } from '../interface';
2
2
 
3
- export declare const setProps: (propsValue: Props) => void;
4
- export declare const getProps: () => Props | undefined;
3
+ export interface PropsManager {
4
+ setProps: (propsValue: Props) => void;
5
+ getProps: () => Props;
6
+ }
7
+ export declare const usePropsManager: () => PropsManager;
@@ -1,31 +1,11 @@
1
1
  import { ShipInfoVo } from '../../interface';
2
2
  import { Feature } from 'ol';
3
3
 
4
- export declare const renderShipList: (shipList: ShipInfoVo[]) => void;
5
- /**
6
- * 清除所有船只 除选中之外
7
- */
8
- export declare const clearShipList: () => void;
9
- /**
10
- * 船只label闪烁
11
- */
12
- export declare const renderShipBlink: (ships: Record<string, boolean>, colors: Record<string, boolean>) => void;
13
- /**
14
- * 显示符合条件的船只
15
- * @param shipList
16
- */
17
- export declare const filterShipShow: (shipList: ShipInfoVo[]) => void;
18
- /**
19
- * 选中的船只
20
- * @param ship
21
- */
22
- export declare const renderShipSelected: (ship: ShipInfoVo) => void;
23
- /**
24
- * 只渲染选中船只和选中效果
25
- */
26
- export declare const renderShipSelectedChange: () => void;
27
- export declare const handleShipMapEvent: import('lodash-es').DebouncedFunc<(shipsFeature: Feature, type: string, callback?: (id: string) => void) => void>;
28
- /**
29
- * 移除选中overlay效果船只
30
- */
31
- export declare const removeSelectedOverlay: () => void;
4
+ export declare const useShipManager: (mapInstance: any) => {
5
+ render: (shipList: ShipInfoVo[]) => void;
6
+ selected: (ship: ShipInfoVo) => void;
7
+ filter: (shipList: ShipInfoVo[]) => void;
8
+ blinking: (ships: Record<string, boolean>, colors: Record<string, boolean>) => void;
9
+ clear: () => void;
10
+ handleShipMapEvent: import('lodash-es').DebouncedFunc<(shipsFeature: Feature, type: string, callback?: (id: string) => void) => void>;
11
+ };
@@ -4,12 +4,44 @@ import { Feature, Overlay } from 'ol';
4
4
  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
- export declare const createShipStyle: (feature: Feature) => Style;
8
- export declare const selectedShipStyle: (shipData: ShipInfoVo) => Overlay;
7
+ type ShipType = 'ship' | 'triangle';
8
+ export declare const createShipStyle: (mapInstance: any, feature: Feature) => Style;
9
+ export declare const getShipType: (mapInstance: any) => ShipType;
10
+ export declare const getShipScale: (mapInstance: any, shipData: ShipInfoVo, shipType: ShipType) => number;
11
+ export declare const selectedShipStyle: (mapInstance: any, shipData: ShipInfoVo) => Overlay;
9
12
  /**
10
13
  * 生成船只元素
11
14
  * @param shipData
12
15
  */
13
- export declare const selectedShipElement: (shipData: ShipInfoVo) => HTMLDivElement;
14
- export declare const createLabelStyle: (feature: Feature) => void;
16
+ export declare const selectedShipElement: (mapInstance: any, shipData: ShipInfoVo) => HTMLDivElement;
17
+ export declare const createLabelStyle: (mapInstance: any, feature: Feature) => void;
15
18
  export declare const createLabelElement: (feature: Feature) => HTMLDivElement;
19
+ export declare const getRightIcons: (ship: ShipInfoVo) => string[];
20
+ export declare const createLabelFeatureStyle: (feature: Feature) => Style[];
21
+ export declare const ICON_CACHE: {
22
+ triangle: {
23
+ '#D9001C': {
24
+ left: string;
25
+ right: string;
26
+ front: string;
27
+ };
28
+ '#04C900': {
29
+ left: string;
30
+ right: string;
31
+ front: string;
32
+ };
33
+ };
34
+ ship: {
35
+ '#D9001C': {
36
+ left: string;
37
+ right: string;
38
+ front: string;
39
+ };
40
+ '#04C900': {
41
+ left: string;
42
+ right: string;
43
+ front: string;
44
+ };
45
+ };
46
+ };
47
+ export {};
@@ -1,41 +1,16 @@
1
1
  import { Feature, MapBrowserEvent } from 'ol';
2
2
  import { ShipTrack } from '../interface/shipTrack';
3
3
 
4
- export declare const reRenderTrackLine: import('lodash-es').DebouncedFunc<() => void>;
5
- export declare const renderTrackLine: (id: string, list: ShipTrack[], color: string, type?: string) => Promise<void>;
6
- /**
7
- * 悬浮框显示事件
8
- * @param trunkFeature
9
- * @param type
10
- * @param event
11
- */
12
- export declare const handleTrackMapEvent: (trunkFeature: Feature, type: string, event: MapBrowserEvent<PointerEvent>) => void;
13
- /**
14
- * 设置轨迹居中
15
- * @param id
16
- */
17
- export declare const setTrackViewCenter: (id?: number | string) => void;
18
- /**
19
- * 移除全部已渲染的轨迹
20
- */
21
- export declare const removeAllTrackLayer: () => void;
22
- /**
23
- * 关闭id轨迹线
24
- * @param id
25
- */
26
- export declare const closeTrack: (id?: string) => void;
27
- /**
28
- * 获取轨迹线长度
29
- * @param trackId
30
- * @param unit
31
- * @returns
32
- */
33
- export declare const getTrackLength: (id: string, unit?: number) => {
34
- id: string;
35
- length: string;
4
+ export declare const useTrackManager: (mapInstance: any) => {
5
+ render: (id: string, list: ShipTrack[], color: string, type?: string | undefined, 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 | undefined, type: string, event: MapBrowserEvent<PointerEvent>) => void;
15
+ reRenderTrackLine: import('lodash-es').DebouncedFunc<() => void>;
36
16
  };
37
- export declare const playShipTrack: (id: number | string, speed: number) => void;
38
- export declare const stopAnimation: () => void;
39
- /**
40
- * 动画相关
41
- */