@cloud-app-dev/vidc 4.0.21 → 4.0.22

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 (190) hide show
  1. package/es/CustomRenderSelect/index.js +0 -1
  2. package/es/Drag/DragAndDropItem.js +0 -1
  3. package/es/Drag/index.d.ts +9 -7
  4. package/es/Map/InfoWindow/MakerLikeWindow.js +2 -6
  5. package/es/Map/InfoWindow/index.js +1 -5
  6. package/es/Player/contraller_bar/contraller_event.js +0 -2
  7. package/es/Player/message.js +0 -4
  8. package/es/Progress/index.d.ts +9 -7
  9. package/es/ScreenPlayer/LiveTools.js +5 -5
  10. package/es/ScreenPlayer/RecordTools.js +10 -38
  11. package/es/ScreenPlayer/useTimeSlider.js +9 -4
  12. package/es/useRafInterval/index.js +0 -1
  13. package/es/uuid/index.js +18 -5
  14. package/package.json +2 -3
  15. package/tsconfig.json +1 -1
  16. package/es/AppContext/Sync.d.ts +0 -8
  17. package/es/AppContext/index.d.ts +0 -10
  18. package/es/AppContext/static.d.ts +0 -8
  19. package/es/Auth/index.d.ts +0 -8
  20. package/es/AutoExit/index.d.ts +0 -6
  21. package/es/CheckGroupFixed/demo.d.ts +0 -3
  22. package/es/CheckGroupFixed/index.d.ts +0 -24
  23. package/es/Config/index.d.ts +0 -4
  24. package/es/Config/utils.d.ts +0 -4
  25. package/es/ConfigContext/index.d.ts +0 -17
  26. package/es/CustomRenderSelect/index.d.ts +0 -12
  27. package/es/DBTools/index.d.ts +0 -25
  28. package/es/DisableMark/index.d.ts +0 -9
  29. package/es/DomMove/demo.d.ts +0 -2
  30. package/es/DomMove/index.d.ts +0 -16
  31. package/es/DomMove/utils.d.ts +0 -8
  32. package/es/Drag/DragAndDropItem.d.ts +0 -4
  33. package/es/Drag/DropItem.d.ts +0 -4
  34. package/es/DynamicGridList/Demo.d.ts +0 -3
  35. package/es/DynamicGridList/index.d.ts +0 -24
  36. package/es/DynamicList/demo.d.ts +0 -2
  37. package/es/DynamicList/index.d.ts +0 -22
  38. package/es/DynamicList/utils.d.ts +0 -4
  39. package/es/ErrorFallback/index.d.ts +0 -9
  40. package/es/EventTools/index.d.ts +0 -3
  41. package/es/FrontendPlayer/index.d.ts +0 -4
  42. package/es/FullScreen/index.d.ts +0 -22
  43. package/es/GridList/Demo.d.ts +0 -3
  44. package/es/GridList/data.d.ts +0 -16
  45. package/es/GridList/hook.d.ts +0 -13
  46. package/es/GridList/index.d.ts +0 -15
  47. package/es/GridList/utils.d.ts +0 -9
  48. package/es/HightLevel/index.d.ts +0 -9
  49. package/es/IconFont/index.d.ts +0 -12
  50. package/es/ImageView/index.d.ts +0 -20
  51. package/es/InstanceHistory/index.d.ts +0 -3
  52. package/es/LabelPlayer/demo.d.ts +0 -2
  53. package/es/LabelPlayer/index.d.ts +0 -21
  54. package/es/LabelValue/index.d.ts +0 -15
  55. package/es/List/demo.d.ts +0 -3
  56. package/es/List/index.d.ts +0 -28
  57. package/es/ListWithSizeAnimate/demo.d.ts +0 -2
  58. package/es/ListWithSizeAnimate/index.d.ts +0 -14
  59. package/es/LoaderScript/index.d.ts +0 -47
  60. package/es/LoaderScript/utils.d.ts +0 -13
  61. package/es/Map/BasicMap/AMapInstance.d.ts +0 -19
  62. package/es/Map/BasicMap/LeafletInstance.d.ts +0 -18
  63. package/es/Map/BasicMap/index.d.ts +0 -9
  64. package/es/Map/ClusterLayer/demo.d.ts +0 -3
  65. package/es/Map/ClusterLayer/hook.d.ts +0 -5
  66. package/es/Map/ClusterLayer/index.d.ts +0 -6
  67. package/es/Map/Config/index.d.ts +0 -9
  68. package/es/Map/Config/utils.d.ts +0 -2
  69. package/es/Map/Context/index.d.ts +0 -11
  70. package/es/Map/FindPio/index.d.ts +0 -4
  71. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -4
  72. package/es/Map/InfoWindow/demo.d.ts +0 -3
  73. package/es/Map/InfoWindow/index.d.ts +0 -11
  74. package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -10
  75. package/es/Map/LevelCenter/demo.d.ts +0 -3
  76. package/es/Map/LevelCenter/index.d.ts +0 -15
  77. package/es/Map/LoaderMap/index.d.ts +0 -7
  78. package/es/Map/MapDrawSelect/demo.d.ts +0 -3
  79. package/es/Map/MapDrawSelect/index.d.ts +0 -15
  80. package/es/Map/MouseTool/index.d.ts +0 -10
  81. package/es/Map/MouseTool/useMouseTools.d.ts +0 -7
  82. package/es/Map/ResetTools/index.d.ts +0 -10
  83. package/es/Map/SinglePoint/demo.d.ts +0 -3
  84. package/es/Map/SinglePoint/index.d.ts +0 -27
  85. package/es/Map/hook/useMapEvent.d.ts +0 -2
  86. package/es/Map/hook/useMapType.d.ts +0 -4
  87. package/es/Map/icon.d.ts +0 -2
  88. package/es/Map/index.d.ts +0 -24
  89. package/es/Map/points.d.ts +0 -50
  90. package/es/Map/useMarker/index.d.ts +0 -10
  91. package/es/Map/withMap/index.d.ts +0 -3
  92. package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -8
  93. package/es/Picture/component/DefaultRects/index.d.ts +0 -13
  94. package/es/Picture/component/DefaultRects/utils.d.ts +0 -2
  95. package/es/Picture/component/DrawRect/index.d.ts +0 -13
  96. package/es/Picture/component/RectMenu/index.d.ts +0 -12
  97. package/es/Picture/component/RectMenu/utils.d.ts +0 -12
  98. package/es/Picture/component/Tools/index.d.ts +0 -12
  99. package/es/Picture/component/WheelScale/index.d.ts +0 -7
  100. package/es/Picture/demo.d.ts +0 -2
  101. package/es/Picture/index.d.ts +0 -5
  102. package/es/Picture/loadCaptureRectImage.d.ts +0 -3
  103. package/es/Picture/useDraw.d.ts +0 -1
  104. package/es/Picture/utils.d.ts +0 -26
  105. package/es/Player/api/index.d.ts +0 -68
  106. package/es/Player/context.d.ts +0 -17
  107. package/es/Player/contraller_bar/bar.d.ts +0 -8
  108. package/es/Player/contraller_bar/contraller_event.d.ts +0 -6
  109. package/es/Player/contraller_bar/index.d.ts +0 -14
  110. package/es/Player/contraller_bar/left_bar.d.ts +0 -10
  111. package/es/Player/contraller_bar/right_bar.d.ts +0 -8
  112. package/es/Player/contraller_bar/time.d.ts +0 -3
  113. package/es/Player/contraller_bar/useBarStatus.d.ts +0 -2
  114. package/es/Player/contraller_bar/volume.d.ts +0 -9
  115. package/es/Player/demo.d.ts +0 -3
  116. package/es/Player/empty.d.ts +0 -2
  117. package/es/Player/event/errorEvent.d.ts +0 -14
  118. package/es/Player/event/eventName.d.ts +0 -18
  119. package/es/Player/event/index.d.ts +0 -24
  120. package/es/Player/fps_play.d.ts +0 -11
  121. package/es/Player/frontend_player.d.ts +0 -8
  122. package/es/Player/frontend_timeline.d.ts +0 -10
  123. package/es/Player/iconfont.d.ts +0 -5
  124. package/es/Player/index.d.ts +0 -2
  125. package/es/Player/live_heart.d.ts +0 -8
  126. package/es/Player/message.d.ts +0 -5
  127. package/es/Player/segment_player.d.ts +0 -9
  128. package/es/Player/segment_timeline.d.ts +0 -12
  129. package/es/Player/single_player.d.ts +0 -5
  130. package/es/Player/timeline.d.ts +0 -5
  131. package/es/Player/util.d.ts +0 -43
  132. package/es/PlayerExt/demo.d.ts +0 -3
  133. package/es/PlayerExt/index.d.ts +0 -48
  134. package/es/ROI/demo.d.ts +0 -3
  135. package/es/ROI/index.d.ts +0 -33
  136. package/es/RefDrawer/Footer.d.ts +0 -9
  137. package/es/RefDrawer/demo.d.ts +0 -3
  138. package/es/RefDrawer/index.d.ts +0 -26
  139. package/es/RefModal/demo.d.ts +0 -3
  140. package/es/RefModal/index.d.ts +0 -17
  141. package/es/ScreenPlayer/Live.d.ts +0 -5
  142. package/es/ScreenPlayer/LiveTools.d.ts +0 -29
  143. package/es/ScreenPlayer/PlayerWithExt.d.ts +0 -34
  144. package/es/ScreenPlayer/RatePick.d.ts +0 -8
  145. package/es/ScreenPlayer/Record.d.ts +0 -10
  146. package/es/ScreenPlayer/RecordTools.d.ts +0 -38
  147. package/es/ScreenPlayer/ScreenSelect.d.ts +0 -7
  148. package/es/ScreenPlayer/SegmentTimeLine.d.ts +0 -17
  149. package/es/ScreenPlayer/TimeMode.d.ts +0 -7
  150. package/es/ScreenPlayer/TimeSelect.d.ts +0 -7
  151. package/es/ScreenPlayer/demo.d.ts +0 -2
  152. package/es/ScreenPlayer/demo2.d.ts +0 -2
  153. package/es/ScreenPlayer/index.d.ts +0 -6
  154. package/es/ScreenPlayer/useTimeSlider.d.ts +0 -25
  155. package/es/ScreenPlayer/useVideoFit.d.ts +0 -5
  156. package/es/ScreenPlayer/utils.d.ts +0 -17
  157. package/es/SegmentPlayer/index.d.ts +0 -2
  158. package/es/Service/http.d.ts +0 -6
  159. package/es/Service/index.d.ts +0 -3
  160. package/es/Service/middleware.d.ts +0 -8
  161. package/es/SocketEmitter/eventEmitter.d.ts +0 -27
  162. package/es/SocketEmitter/index.d.ts +0 -24
  163. package/es/TableLayout/index.d.ts +0 -10
  164. package/es/ThemeAntd/demo.d.ts +0 -4
  165. package/es/ThemeAntd/index.d.ts +0 -7
  166. package/es/Timeout/index.d.ts +0 -26
  167. package/es/bigNumberTransformCN/index.d.ts +0 -5
  168. package/es/cache/index.d.ts +0 -34
  169. package/es/copy/index.d.ts +0 -1
  170. package/es/getThemeStyle/index.d.ts +0 -2
  171. package/es/index.d.ts +0 -62
  172. package/es/likeGo/index.d.ts +0 -2
  173. package/es/likeGoSync/index.d.ts +0 -2
  174. package/es/logger/index.d.ts +0 -7
  175. package/es/nextTick/index.d.ts +0 -1
  176. package/es/recorder/demo.d.ts +0 -3
  177. package/es/recorder/index.d.ts +0 -294
  178. package/es/submidstr/index.d.ts +0 -5
  179. package/es/treeHelper/index.d.ts +0 -11
  180. package/es/useDrawROI/index.d.ts +0 -16
  181. package/es/useEventEmitterHandle/index.d.ts +0 -2
  182. package/es/useFullscreen/demo.d.ts +0 -2
  183. package/es/useFullscreen/index.d.ts +0 -12
  184. package/es/useHistory/index.d.ts +0 -3
  185. package/es/useInfiniteScroll/index.d.ts +0 -16
  186. package/es/useRafInterval/index.d.ts +0 -5
  187. package/es/useSimpleState/index.d.ts +0 -3
  188. package/es/useVirtualList/index.d.ts +0 -13
  189. package/es/utils.d.ts +0 -14
  190. package/es/uuid/index.d.ts +0 -5
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface IFullScrenProps {
4
- /**
5
- * @description 类名
6
- */
7
- className?: string;
8
- /**
9
- * @description 全屏dom对象
10
- */
11
- getContainer: () => HTMLElement | Element;
12
- /**
13
- * @description 状态监听
14
- */
15
- fullScreenChange?: (flag: boolean) => void;
16
- /**
17
- * @description 显示默认文本
18
- */
19
- hasText?: boolean;
20
- }
21
- declare function FullScreen({ className, getContainer, fullScreenChange, hasText }: IFullScrenProps): React.JSX.Element;
22
- export default FullScreen;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const App: () => React.JSX.Element;
3
- export default App;
@@ -1,16 +0,0 @@
1
- declare const _default: {
2
- code: number;
3
- codeRemark: string;
4
- data: {
5
- list: {
6
- id: string;
7
- cid: number;
8
- deviceName: string;
9
- captureTime: number;
10
- url: string;
11
- }[];
12
- totalCount: number;
13
- totalPage: number;
14
- };
15
- };
16
- export default _default;
@@ -1,13 +0,0 @@
1
- import { RefObject } from 'react';
2
- import { GridListProps } from '.';
3
- import { ConstRef, ElementScroll, ElementSize, GridListConfigData, GridListContainerData, GridListLayoutData, GridListRenderData } from './interface';
4
- export declare function useConstRef<T>(value: T): ConstRef<T>;
5
- export declare function useWindowSize(): ElementSize;
6
- export declare function useElementSize(ref: RefObject<Element>): ElementSize | null;
7
- export declare function useWindowScroll(): ElementScroll;
8
- export declare function useElementWindowOffset(ref: RefObject<HTMLElement>): number;
9
- export declare function useIntersecting(ref: RefObject<HTMLElement>, rootMargin: string): boolean;
10
- export declare function useGridListContainerData(ref: RefObject<HTMLElement>): GridListContainerData;
11
- export declare function useGridListConfigData<P>(containerData: GridListContainerData, props: GridListProps<P>): GridListConfigData<P> | null;
12
- export declare function useGridListLayoutData<P>(configData: GridListConfigData<P> | null): GridListLayoutData<P> | null;
13
- export declare function useGridListRenderData<P>(containerData: GridListContainerData, configData: GridListConfigData<P> | null, layoutData: GridListLayoutData<P> | null): GridListRenderData<P> | null;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { GridListCell, GridListItemData } from './interface';
3
- import './index.less';
4
- export interface GridListProps<P> {
5
- items: P[];
6
- getGridGap?: (elementWidth: number, windowHeight: number) => number;
7
- getWindowMargin?: (windowHeight: number) => number;
8
- getColumnCount: (elementWidth: number, gridGap: number) => number;
9
- getItemData: (item: P, columnWidth: number) => GridListItemData;
10
- renderItem: (item: P, cell: GridListCell<P>) => React.ReactNode;
11
- fixedColumnWidth?: number;
12
- className?: string;
13
- }
14
- declare const GridList: React.ForwardRefExoticComponent<GridListProps<unknown> & React.RefAttributes<HTMLDivElement>>;
15
- export default GridList;
@@ -1,9 +0,0 @@
1
- import { ElementScroll, ElementSize, GridListCell, GridListRenderData } from './interface';
2
- export declare function isSameElementSize(a: ElementSize, b: ElementSize): boolean;
3
- export declare function getWindowSize(): ElementSize;
4
- export declare function getElementSize(element: Element): ElementSize;
5
- export declare function isSameElementScroll(a: ElementScroll, b: ElementScroll): boolean;
6
- export declare function getWindowScroll(): ElementScroll;
7
- export declare function getElementOffset(element: Element): number;
8
- export declare function getColumnWidth(columnCount: number | null, gridGap: number | null, elementWidth: number | null): number;
9
- export declare function getGridRowStart<P>(cell: GridListCell<P>, renderData: GridListRenderData<P> | null): string;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface HightLevelProps {
4
- keyword: string;
5
- name: string;
6
- }
7
- declare function HighLevel({ keyword, name }: HightLevelProps): React.JSX.Element;
8
- declare const _default: React.MemoExoticComponent<typeof HighLevel>;
9
- export default _default;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export interface IIconFontProps extends React.HTMLAttributes<HTMLSpanElement> {
3
- type?: string;
4
- className?: string;
5
- title?: string;
6
- style?: React.CSSProperties;
7
- }
8
- declare function IconFont({ type, className, title, style, ...props }: IIconFontProps): React.JSX.Element;
9
- declare namespace IconFont {
10
- var registerIconFont: (scriptUrl: string) => void;
11
- }
12
- export default IconFont;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ImageViewProps {
4
- /**
5
- * 默认占位图
6
- */
7
- defaultSrc?: string;
8
- /**
9
- * 图片真实地址
10
- */
11
- src?: string;
12
- /**
13
- * title
14
- */
15
- alt?: string;
16
- onError?: (e: any) => void;
17
- className?: string;
18
- }
19
- declare function ImageView({ src, defaultSrc, alt, onError, className, ...props }: ImageViewProps): React.JSX.Element;
20
- export default ImageView;
@@ -1,3 +0,0 @@
1
- import { VHistory } from '../useHistory/interface';
2
- declare const InstanceHistory: VHistory;
3
- export default InstanceHistory;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function App(): React.JSX.Element;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export type PositionType = {
4
- x: number;
5
- y: number;
6
- };
7
- export interface LabelType {
8
- x: number;
9
- y: number;
10
- id?: string;
11
- [key: string]: any;
12
- }
13
- interface ILabelPlayerProps {
14
- url?: string;
15
- labels?: LabelType[];
16
- renderLabel?: (item: LabelType) => JSX.Element;
17
- onLabelMoveChange?: (item: LabelType) => void;
18
- openDrop?: boolean;
19
- }
20
- declare function LabelPlayer({ url, labels, renderLabel, onLabelMoveChange, openDrop }: ILabelPlayerProps): React.JSX.Element;
21
- export default LabelPlayer;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ILabelValueProps {
4
- label?: any;
5
- value?: any;
6
- emptyValue?: string;
7
- className?: string;
8
- noWrap?: boolean;
9
- noColon?: boolean;
10
- style?: React.CSSProperties;
11
- labelStyle?: React.CSSProperties;
12
- valueStyle?: React.CSSProperties;
13
- }
14
- declare function LabelValue({ label, value, emptyValue, className, style, labelStyle, valueStyle, noWrap, noColon }: ILabelValueProps): React.JSX.Element;
15
- export default LabelValue;
package/es/List/demo.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const _default: () => React.JSX.Element;
3
- export default _default;
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface ListProps<T> {
4
- /**
5
- * @description 列表数据
6
- * @default []
7
- */
8
- list: Array<T>;
9
- /**
10
- * @description 列表类名
11
- * @default ''
12
- */
13
- className?: string;
14
- /**
15
- * @description 列表样式
16
- * @default -
17
- */
18
- style?: React.CSSProperties;
19
- /**
20
- * @description 列表自定义渲染
21
- * @default -
22
- */
23
- renderItem: (item: T, index: number) => JSX.Element;
24
- rowHeight?: number;
25
- renderHeaderExt?: () => JSX.Element;
26
- }
27
- declare function List<T>({ className, style, renderItem, list, rowHeight, renderHeaderExt }: ListProps<T>): React.JSX.Element;
28
- export default List;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function App(): React.JSX.Element;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { IDynamicGridListProps } from '../DynamicGridList';
3
- import './index.less';
4
- interface IListWithSizeAnimateProps<T> extends IDynamicGridListProps<T> {
5
- children?: React.ReactNode;
6
- header?: React.ReactNode;
7
- }
8
- export interface IListWithSizeAnimateRef {
9
- open: () => void;
10
- close: () => void;
11
- backTop: () => void;
12
- }
13
- declare const ListWithSizeAnimate: React.ForwardRefExoticComponent<IListWithSizeAnimateProps<unknown> & React.RefAttributes<IListWithSizeAnimateRef>>;
14
- export default ListWithSizeAnimate;
@@ -1,47 +0,0 @@
1
- import React from 'react';
2
- export interface IOptionsLoader {
3
- scripts?: string[];
4
- styles?: string[];
5
- }
6
- export interface ILoaderProps {
7
- /**
8
- * @description 脚本加载数据源
9
- * @default []
10
- * @type {scripts?:string[],styles?:string[]}
11
- */
12
- options: IOptionsLoader[];
13
- /**
14
- * @description 加载后初始化组件
15
- * @default null
16
- */
17
- children?: React.ReactNode;
18
- /**
19
- * @description 加载后初始化组件
20
- * @default null
21
- */
22
- Spin?: React.ReactNode | null;
23
- }
24
- export interface ILoaderProps {
25
- /**
26
- * @description 脚本加载数据源
27
- * @default []
28
- */
29
- options: IOptionsLoader[];
30
- /**
31
- * @description 加载后初始化组件
32
- * @default null
33
- */
34
- children?: React.ReactNode;
35
- /**
36
- * @description 加载后初始化组件
37
- * @default null
38
- */
39
- Spin?: React.ReactNode | null;
40
- /**
41
- * @description 加载完成触发事件
42
- * @default -
43
- */
44
- onLoadEnd?: () => Promise<null>;
45
- }
46
- declare function LoaderScripts({ options, children, Spin, onLoadEnd }: ILoaderProps): React.JSX.Element;
47
- export default LoaderScripts;
@@ -1,13 +0,0 @@
1
- import { IOptionsLoader } from '.';
2
- export declare const loadScript: (url: string) => Promise<unknown>;
3
- export declare const loaderCss: (href: string) => Promise<unknown>;
4
- export declare function createAsyncIterable(options: IOptionsLoader[]): {
5
- [Symbol.asyncIterator](): {
6
- i: number;
7
- next(): Promise<{
8
- value: any;
9
- done: boolean;
10
- }>;
11
- };
12
- };
13
- export declare function runAsyncIterable(Iterables: any, runtime?: (conf: any) => void, callback?: () => void): void;
@@ -1,19 +0,0 @@
1
- /// <reference path="../AMap.d.ts" />
2
- import { IMapInstance, IMapOptions } from '../interface';
3
- declare class AMapInstance implements IMapInstance {
4
- map: AMap.Map;
5
- config: IMapOptions;
6
- mapContainer: HTMLDivElement;
7
- constructor(ele: HTMLDivElement, config: IMapOptions);
8
- createMap(): void;
9
- destoryMap(): void;
10
- mapReset(): void;
11
- setZoom(zoom: number): void;
12
- getZoom(): number;
13
- setCenter(center: [number, number]): void;
14
- setZoomAndCenter(zoom: number, center: [number, number]): void;
15
- on(type: string, fn: (e: any) => void): void;
16
- off(type: string, fn: (e: any) => void): void;
17
- setCursor(cursor: string): void;
18
- }
19
- export default AMapInstance;
@@ -1,18 +0,0 @@
1
- import { IMapInstance, IMapOptions, Map, LatLng } from '../interface';
2
- declare class LeafletInstance implements IMapInstance {
3
- map: Map;
4
- config: IMapOptions;
5
- mapContainer: HTMLDivElement;
6
- constructor(ele: HTMLDivElement, config: IMapOptions);
7
- createMap(): void;
8
- destoryMap(): void;
9
- setZoomAndCenter(zoom: number, center: [number, number] | LatLng): void;
10
- mapReset(): void;
11
- setZoom(zoom: number): void;
12
- setCenter(center: [number, number] | LatLng): void;
13
- getZoom(): number;
14
- on(type: string, fn: (event: any) => void): void;
15
- off(type: string, fn: (event: any) => void): void;
16
- setCursor(cursor: string): void;
17
- }
18
- export default LeafletInstance;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface IWithLoaderMapProps {
4
- MAP_GLABAL_KEY?: 'L' | 'AMap';
5
- children: React.ReactNode;
6
- className?: string;
7
- }
8
- declare function WithLoaderMap({ MAP_GLABAL_KEY, children, className }: IWithLoaderMapProps): React.JSX.Element;
9
- export default WithLoaderMap;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const App: () => React.JSX.Element;
3
- export default App;
@@ -1,5 +0,0 @@
1
- /// <reference path="../AMap.d.ts" />
2
- import { MapPoint, Marker, LClusterInterface } from '../interface';
3
- import './index.less';
4
- export declare function useMarkerCluster(onPointClick?: (point: MapPoint) => void): LClusterInterface & AMap.MarkerCluster;
5
- export declare function useMarkers(points?: MapPoint[]): Marker[];
@@ -1,6 +0,0 @@
1
- /// <reference path="../AMap.d.ts" />
2
- import React from 'react';
3
- import { IClusterLayerProps } from './props';
4
- import './index.less';
5
- declare function ClusterLayer({ points, onPointClick, children }: IClusterLayerProps): React.JSX.Element;
6
- export default ClusterLayer;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { customConfigProps } from '../interface';
3
- interface IConfigProps {
4
- children: React.ReactElement;
5
- MAP_GLABAL_KEY?: 'L' | 'AMap';
6
- customConfig?: customConfigProps;
7
- }
8
- declare function Config({ children, MAP_GLABAL_KEY, customConfig, ...props }: IConfigProps): React.JSX.Element;
9
- export default Config;
@@ -1,2 +0,0 @@
1
- import { customConfigProps, IMapOptions } from '../interface';
2
- export declare function queryMapConfig(type: string, customConfig?: customConfigProps): Promise<IMapOptions>;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { IMapInstance } from '../interface';
3
- export interface IContenxtProps {
4
- instance: IMapInstance;
5
- glaobalKey: 'L' | 'AMap';
6
- }
7
- export declare const mapContext: React.Context<IContenxtProps>;
8
- export declare const Provider: React.Provider<IContenxtProps>;
9
- export declare const Consumer: React.Consumer<IContenxtProps>;
10
- declare function map(Component: new () => React.Component<any>): React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
11
- export default map;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare function FindPio(): React.JSX.Element;
4
- export default FindPio;
@@ -1,4 +0,0 @@
1
- /// <reference path="../AMap.d.ts" />
2
- import React from 'react';
3
- import { InfoWindowProps } from '.';
4
- export default function MakerLikeWindow({ children, visible, center, width, height }: InfoWindowProps): React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const App: () => React.JSX.Element;
3
- export default App;
@@ -1,11 +0,0 @@
1
- /// <reference path="../AMap.d.ts" />
2
- import React from 'react';
3
- export interface InfoWindowProps {
4
- children: JSX.Element;
5
- visible?: boolean;
6
- center?: [number, number];
7
- width: number;
8
- height: number;
9
- }
10
- declare function InfoWindow({ children, visible, center, width, height }: InfoWindowProps): React.JSX.Element;
11
- export default InfoWindow;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface IDragMarkerProps {
3
- center?: [number, number];
4
- onChange?: (options: {
5
- center: [number, number];
6
- }) => void;
7
- title?: string;
8
- }
9
- declare function DragMarker({ center, title, onChange }: IDragMarkerProps): React.JSX.Element;
10
- export default DragMarker;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const App: () => React.JSX.Element;
3
- export default App;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { LatLng, MapPoint } from '../interface';
3
- export interface ILevelCenter {
4
- center?: [number, number];
5
- zoom?: number;
6
- points?: MapPoint[];
7
- enableClick?: boolean;
8
- onLevelCenterChange?: (options: {
9
- center: [number, number] | LatLng;
10
- zoom: number;
11
- }) => void;
12
- children?: React.ReactNode;
13
- }
14
- declare const _default: (props: ILevelCenter) => React.JSX.Element;
15
- export default _default;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface ILoaderMapProps {
3
- children: React.ReactElement;
4
- MAP_GLABAL_KEY?: 'L' | 'AMap';
5
- }
6
- declare function LoaderMap({ children, MAP_GLABAL_KEY, ...props }: ILoaderMapProps): React.JSX.Element;
7
- export default LoaderMap;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const App: () => React.JSX.Element;
3
- export default App;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { DrawType, MapPoint } from '../interface';
3
- export interface IMapDrawSelectProps {
4
- center?: [number, number];
5
- zoom?: number;
6
- points: MapPoint[];
7
- children?: React.ReactNode;
8
- drawUi?: React.ReactNode;
9
- drawType?: DrawType | 'clear' | 'close';
10
- selectCenter?: [number, number];
11
- drawEnd?: (points: MapPoint[]) => void;
12
- onPointClick?: (point: MapPoint) => void;
13
- }
14
- declare const _default: (props: IMapDrawSelectProps) => React.JSX.Element;
15
- export default _default;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { DrawType, MapPoint } from '../interface';
3
- interface IMouseTool {
4
- ui: React.ReactNode;
5
- drawType?: DrawType | 'clear' | 'close';
6
- drawEnd?: (points: MapPoint[]) => void;
7
- points?: MapPoint[];
8
- }
9
- declare function MouseTool({ ui, drawType, points, drawEnd }: IMouseTool): React.JSX.Element;
10
- export default MouseTool;
@@ -1,7 +0,0 @@
1
- import { DrawType } from '../interface';
2
- declare function useMouseTools(onDrawEnd?: (obj: any) => void): {
3
- clear: (objs: any[]) => void;
4
- draw: (type: DrawType) => void;
5
- close: (ifClear?: boolean) => void;
6
- };
7
- export default useMouseTools;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import '../../Player/style/iconfont';
3
- import './index.less';
4
- export interface IResetTools {
5
- onMapReset?: () => void;
6
- onMapZoom?: (num: number) => void;
7
- className?: string;
8
- }
9
- declare function ResetTools({ onMapReset, onMapZoom, className }: IResetTools): React.JSX.Element;
10
- export default ResetTools;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const App: () => React.JSX.Element;
3
- export default App;
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import { MapPoint } from '../interface';
3
- import './index.less';
4
- export interface ISinglePlayerProps {
5
- /**
6
- * 点位经纬度
7
- */
8
- center?: [number, number];
9
- /**
10
- * 展示标题
11
- */
12
- title?: string;
13
- points?: MapPoint[];
14
- /**
15
- * 开启点击设置
16
- */
17
- enableClick?: boolean;
18
- /**
19
- * 中心点变化
20
- */
21
- onCenterChange?: (options: {
22
- center: [number, number];
23
- }) => void;
24
- children?: React.ReactNode;
25
- }
26
- declare const _default: (props: ISinglePlayerProps) => React.JSX.Element;
27
- export default _default;
@@ -1,2 +0,0 @@
1
- declare function useMapEvent(type: string, fn: (event: any) => void): void;
2
- export default useMapEvent;
@@ -1,4 +0,0 @@
1
- export default function useMapType(): {
2
- leaflet: boolean;
3
- AMap: boolean;
4
- };
package/es/Map/icon.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const LevelCenterCenterSvg = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"28px\" height=\"40px\" viewBox=\"0 0 28 40\" version=\"1.1\"><defs><linearGradient x1=\"6.38826004%\" y1=\"96.2639042%\" x2=\"66.7998206%\" y2=\"14.972142%\" id=\"linearGradient-1\"><stop stop-color=\"#000000\" stop-opacity=\"0.2\" offset=\"0%\"/><stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"100%\"/></linearGradient></defs><g id=\"Img/Add\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><path d=\"M22,28 L28,28 L15.2872963,39.7348034 C15.102574,39.9053163 14.8604062,40 14.6090162,40 L14,40 C13.7238576,40 13.5,39.7761424 13.5,39.5 C13.5,39.3918149 13.5350889,39.2865481 13.6,39.2 L22,28 Z\" id=\"Rectangle\" fill=\"url(#linearGradient-1)\"/><path d=\"M11,23 L17,23 L15.103901,39.1168412 C15.0446525,39.6204542 14.6178366,40 14.1107504,40 L13.8892496,40 C13.3821634,40 12.9553475,39.6204542 12.896099,39.1168412 L11,23 Z\" id=\"Rectangle\" fill=\"#FF8800\"/><circle id=\"Oval\" stroke=\"#FF8800\" fill=\"#FFAA00\" cx=\"14\" cy=\"12\" r=\"11.5\"/><circle id=\"Oval\" fill=\"#FF8800\" cx=\"15\" cy=\"13\" r=\"4\"/><circle id=\"Oval\" fill=\"#FFFFFF\" cx=\"14\" cy=\"12\" r=\"4\"/></g></svg>";
2
- export declare function createMapCenterIcon(): import("leaflet").DivIcon;
package/es/Map/index.d.ts DELETED
@@ -1,24 +0,0 @@
1
- /// <reference types="react" />
2
- import BasicMap from './BasicMap';
3
- import ClusterLayer from './ClusterLayer';
4
- import Config from './Config';
5
- import Context from './Context';
6
- import FindPio from './FindPio';
7
- import LoaderMap from './LoaderMap';
8
- import ResetTools from './ResetTools';
9
- import useMarker from './useMarker';
10
- import withMap from './withMap';
11
- declare const Map: {
12
- ClusterLayer: typeof ClusterLayer;
13
- Config: typeof Config;
14
- Context: typeof Context;
15
- FindPio: typeof FindPio;
16
- LevelCenter: (props: import("./LevelCenter").ILevelCenter) => import("react").JSX.Element;
17
- LoaderMap: typeof LoaderMap;
18
- BasicMap: typeof BasicMap;
19
- ResetTools: typeof ResetTools;
20
- SinglePoint: (props: import("./SinglePoint").ISinglePlayerProps) => import("react").JSX.Element;
21
- useMarker: typeof useMarker;
22
- withMap: typeof withMap;
23
- };
24
- export default Map;
@@ -1,50 +0,0 @@
1
- declare const data: ({
2
- cid: string;
3
- deviceName: string;
4
- deviceStatus: string;
5
- deviceType: string;
6
- id: string;
7
- latitude: string;
8
- longitude: string;
9
- manufacturerDeviceId: string;
10
- manufacturerDeviceType: string;
11
- organizationIds: string[];
12
- pathId: number[];
13
- placeId: string;
14
- sn: string;
15
- boxNum: string;
16
- cameraType: number;
17
- hasFrontEnd: boolean;
18
- hasStorage: boolean;
19
- parentId: string;
20
- accessType: string;
21
- villageLocationType: string;
22
- placeTags: string[];
23
- createTime: string;
24
- lygroupId?: undefined;
25
- } | {
26
- cid: string;
27
- deviceName: string;
28
- deviceStatus: string;
29
- deviceType: string;
30
- id: string;
31
- latitude: string;
32
- longitude: string;
33
- lygroupId: string;
34
- manufacturerDeviceId: string;
35
- manufacturerDeviceType: string;
36
- organizationIds: string[];
37
- pathId: number[];
38
- placeId: string;
39
- sn: string;
40
- boxNum: string;
41
- cameraType: number;
42
- hasFrontEnd: boolean;
43
- hasStorage: boolean;
44
- parentId: string;
45
- accessType: string;
46
- villageLocationType: string;
47
- placeTags: string[];
48
- createTime: string;
49
- })[];
50
- export default data;