@cloud-app-dev/vidc 4.0.14 → 4.0.17

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 (415) hide show
  1. package/.dumirc.ts +2 -18
  2. package/.fatherrc.ts +0 -1
  3. package/.prettierrc.js +1 -1
  4. package/package.json +41 -33
  5. package/release-build.sh +1 -2
  6. package/es/AppContext/Sync.d.ts +0 -8
  7. package/es/AppContext/Sync.js +0 -44
  8. package/es/AppContext/index.d.ts +0 -10
  9. package/es/AppContext/index.js +0 -144
  10. package/es/AppContext/interface.d.ts +0 -41
  11. package/es/AppContext/static.d.ts +0 -8
  12. package/es/AppContext/static.js +0 -9
  13. package/es/Auth/index.d.ts +0 -8
  14. package/es/Auth/index.js +0 -18
  15. package/es/AutoExit/index.d.ts +0 -6
  16. package/es/AutoExit/index.js +0 -23
  17. package/es/CheckGroupFixed/demo.d.ts +0 -3
  18. package/es/CheckGroupFixed/demo.js +0 -25
  19. package/es/CheckGroupFixed/index.d.ts +0 -18
  20. package/es/CheckGroupFixed/index.js +0 -150
  21. package/es/CheckGroupFixed/index.less +0 -53
  22. package/es/Config/index.d.ts +0 -4
  23. package/es/Config/index.js +0 -77
  24. package/es/Config/interface.d.ts +0 -65
  25. package/es/Config/utils.d.ts +0 -4
  26. package/es/Config/utils.js +0 -33
  27. package/es/ConfigContext/index.d.ts +0 -22
  28. package/es/ConfigContext/index.js +0 -25
  29. package/es/CustomRenderSelect/index.d.ts +0 -12
  30. package/es/CustomRenderSelect/index.js +0 -83
  31. package/es/CustomRenderSelect/index.less +0 -25
  32. package/es/DBTools/index.d.ts +0 -25
  33. package/es/DBTools/index.js +0 -337
  34. package/es/DisableMark/index.d.ts +0 -9
  35. package/es/DisableMark/index.js +0 -22
  36. package/es/DisableMark/index.less +0 -9
  37. package/es/DomMove/demo.d.ts +0 -2
  38. package/es/DomMove/demo.js +0 -20
  39. package/es/DomMove/index.d.ts +0 -16
  40. package/es/DomMove/index.js +0 -149
  41. package/es/DomMove/utils.d.ts +0 -8
  42. package/es/DomMove/utils.js +0 -33
  43. package/es/Drag/DragAndDropItem.d.ts +0 -4
  44. package/es/Drag/DragAndDropItem.js +0 -133
  45. package/es/Drag/DropItem.d.ts +0 -4
  46. package/es/Drag/DropItem.js +0 -50
  47. package/es/Drag/index.d.ts +0 -7
  48. package/es/Drag/index.js +0 -7
  49. package/es/Drag/interface.d.ts +0 -16
  50. package/es/DynamicGridList/Demo.d.ts +0 -3
  51. package/es/DynamicGridList/Demo.js +0 -86
  52. package/es/DynamicGridList/index.d.ts +0 -27
  53. package/es/DynamicGridList/index.js +0 -71
  54. package/es/DynamicList/demo.d.ts +0 -2
  55. package/es/DynamicList/demo.js +0 -50
  56. package/es/DynamicList/index.d.ts +0 -31
  57. package/es/DynamicList/index.js +0 -96
  58. package/es/DynamicList/index.less +0 -17
  59. package/es/DynamicList/interface.d.ts +0 -19
  60. package/es/DynamicList/utils.d.ts +0 -4
  61. package/es/DynamicList/utils.js +0 -6
  62. package/es/ErrorFallback/index.d.ts +0 -9
  63. package/es/ErrorFallback/index.js +0 -38
  64. package/es/ErrorFallback/inerface.d.ts +0 -48
  65. package/es/EventTools/index.d.ts +0 -3
  66. package/es/EventTools/index.js +0 -12
  67. package/es/FrontendPlayer/index.d.ts +0 -4
  68. package/es/FrontendPlayer/index.js +0 -2
  69. package/es/FullScreen/index.d.ts +0 -22
  70. package/es/FullScreen/index.js +0 -36
  71. package/es/FullScreen/index.less +0 -18
  72. package/es/GridList/Demo.d.ts +0 -3
  73. package/es/GridList/Demo.js +0 -89
  74. package/es/GridList/data.d.ts +0 -16
  75. package/es/GridList/data.js +0 -609
  76. package/es/GridList/hook.d.ts +0 -13
  77. package/es/GridList/hook.js +0 -270
  78. package/es/GridList/index.d.ts +0 -15
  79. package/es/GridList/index.js +0 -48
  80. package/es/GridList/index.less +0 -8
  81. package/es/GridList/interface.d.ts +0 -59
  82. package/es/GridList/utils.d.ts +0 -9
  83. package/es/GridList/utils.js +0 -42
  84. package/es/HightLevel/index.d.ts +0 -9
  85. package/es/HightLevel/index.js +0 -21
  86. package/es/HightLevel/index.less +0 -3
  87. package/es/IconFont/index.d.ts +0 -12
  88. package/es/IconFont/index.js +0 -63
  89. package/es/ImageView/index.d.ts +0 -17
  90. package/es/ImageView/index.js +0 -58
  91. package/es/ImageView/index.less +0 -11
  92. package/es/InstanceHistory/index.d.ts +0 -3
  93. package/es/InstanceHistory/index.js +0 -7
  94. package/es/LabelPlayer/111.png +0 -0
  95. package/es/LabelPlayer/demo.d.ts +0 -2
  96. package/es/LabelPlayer/demo.js +0 -123
  97. package/es/LabelPlayer/index.d.ts +0 -21
  98. package/es/LabelPlayer/index.js +0 -169
  99. package/es/LabelPlayer/index.less +0 -24
  100. package/es/LabelValue/index.d.ts +0 -15
  101. package/es/LabelValue/index.js +0 -32
  102. package/es/LabelValue/index.less +0 -23
  103. package/es/List/demo.d.ts +0 -3
  104. package/es/List/demo.js +0 -26
  105. package/es/List/index.d.ts +0 -28
  106. package/es/List/index.js +0 -30
  107. package/es/List/index.less +0 -13
  108. package/es/ListWithSizeAnimate/demo.d.ts +0 -2
  109. package/es/ListWithSizeAnimate/demo.js +0 -128
  110. package/es/ListWithSizeAnimate/index.d.ts +0 -14
  111. package/es/ListWithSizeAnimate/index.js +0 -97
  112. package/es/ListWithSizeAnimate/index.less +0 -23
  113. package/es/LoaderScript/index.d.ts +0 -47
  114. package/es/LoaderScript/index.js +0 -38
  115. package/es/LoaderScript/utils.d.ts +0 -13
  116. package/es/LoaderScript/utils.js +0 -179
  117. package/es/Map/AMap.d.ts +0 -7109
  118. package/es/Map/BasicMap/AMapInstance.d.ts +0 -19
  119. package/es/Map/BasicMap/AMapInstance.js +0 -98
  120. package/es/Map/BasicMap/LeafletInstance.d.ts +0 -18
  121. package/es/Map/BasicMap/LeafletInstance.js +0 -111
  122. package/es/Map/BasicMap/index.d.ts +0 -9
  123. package/es/Map/BasicMap/index.js +0 -98
  124. package/es/Map/BasicMap/index.less +0 -29
  125. package/es/Map/ClusterLayer/demo.d.ts +0 -3
  126. package/es/Map/ClusterLayer/demo.js +0 -22
  127. package/es/Map/ClusterLayer/hook.d.ts +0 -5
  128. package/es/Map/ClusterLayer/hook.js +0 -124
  129. package/es/Map/ClusterLayer/index.d.ts +0 -6
  130. package/es/Map/ClusterLayer/index.js +0 -32
  131. package/es/Map/ClusterLayer/index.less +0 -29
  132. package/es/Map/ClusterLayer/props.d.ts +0 -8
  133. package/es/Map/Config/index.d.ts +0 -9
  134. package/es/Map/Config/index.js +0 -52
  135. package/es/Map/Config/utils.d.ts +0 -2
  136. package/es/Map/Config/utils.js +0 -65
  137. package/es/Map/Context/index.d.ts +0 -11
  138. package/es/Map/Context/index.js +0 -56
  139. package/es/Map/FindPio/index.d.ts +0 -4
  140. package/es/Map/FindPio/index.js +0 -14
  141. package/es/Map/FindPio/index.less +0 -7
  142. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -4
  143. package/es/Map/InfoWindow/MakerLikeWindow.js +0 -113
  144. package/es/Map/InfoWindow/demo.d.ts +0 -3
  145. package/es/Map/InfoWindow/demo.js +0 -76
  146. package/es/Map/InfoWindow/index.d.ts +0 -11
  147. package/es/Map/InfoWindow/index.js +0 -67
  148. package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -10
  149. package/es/Map/LevelCenter/DragMarker/index.js +0 -44
  150. package/es/Map/LevelCenter/demo.d.ts +0 -3
  151. package/es/Map/LevelCenter/demo.js +0 -46
  152. package/es/Map/LevelCenter/index.d.ts +0 -15
  153. package/es/Map/LevelCenter/index.js +0 -71
  154. package/es/Map/LoaderMap/index.d.ts +0 -12
  155. package/es/Map/LoaderMap/index.js +0 -71
  156. package/es/Map/MapDrawSelect/demo.d.ts +0 -3
  157. package/es/Map/MapDrawSelect/demo.js +0 -79
  158. package/es/Map/MapDrawSelect/index.d.ts +0 -15
  159. package/es/Map/MapDrawSelect/index.js +0 -62
  160. package/es/Map/MouseTool/index.d.ts +0 -10
  161. package/es/Map/MouseTool/index.js +0 -44
  162. package/es/Map/MouseTool/useMouseTools.d.ts +0 -7
  163. package/es/Map/MouseTool/useMouseTools.js +0 -83
  164. package/es/Map/ResetTools/index.d.ts +0 -10
  165. package/es/Map/ResetTools/index.js +0 -67
  166. package/es/Map/ResetTools/index.less +0 -39
  167. package/es/Map/SinglePoint/demo.d.ts +0 -3
  168. package/es/Map/SinglePoint/demo.js +0 -16
  169. package/es/Map/SinglePoint/index.d.ts +0 -27
  170. package/es/Map/SinglePoint/index.js +0 -57
  171. package/es/Map/SinglePoint/index.less +0 -41
  172. package/es/Map/hook/useMapEvent.d.ts +0 -2
  173. package/es/Map/hook/useMapEvent.js +0 -19
  174. package/es/Map/hook/useMapType.d.ts +0 -4
  175. package/es/Map/hook/useMapType.js +0 -12
  176. package/es/Map/icon.d.ts +0 -2
  177. package/es/Map/icon.js +0 -10
  178. package/es/Map/index.d.ts +0 -24
  179. package/es/Map/index.js +0 -25
  180. package/es/Map/interface.d.ts +0 -74
  181. package/es/Map/points.d.ts +0 -74
  182. package/es/Map/points.js +0 -1
  183. package/es/Map/useMarker/index.d.ts +0 -10
  184. package/es/Map/useMarker/index.js +0 -71
  185. package/es/Map/withMap/index.d.ts +0 -3
  186. package/es/Map/withMap/index.js +0 -18
  187. package/es/Map3D/demo.d.ts +0 -3
  188. package/es/Map3D/demo.js +0 -13
  189. package/es/Map3D/index.d.ts +0 -4
  190. package/es/Map3D/index.js +0 -84
  191. package/es/Map3D/index.less +0 -4
  192. package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -8
  193. package/es/Picture/component/DefaultRects/RectInfo.js +0 -88
  194. package/es/Picture/component/DefaultRects/index.d.ts +0 -13
  195. package/es/Picture/component/DefaultRects/index.js +0 -58
  196. package/es/Picture/component/DefaultRects/index.less +0 -211
  197. package/es/Picture/component/DefaultRects/utils.d.ts +0 -2
  198. package/es/Picture/component/DefaultRects/utils.js +0 -11
  199. package/es/Picture/component/DrawRect/index.d.ts +0 -13
  200. package/es/Picture/component/DrawRect/index.js +0 -51
  201. package/es/Picture/component/DrawRect/index.less +0 -8
  202. package/es/Picture/component/RectMenu/index.d.ts +0 -12
  203. package/es/Picture/component/RectMenu/index.js +0 -79
  204. package/es/Picture/component/RectMenu/index.less +0 -36
  205. package/es/Picture/component/RectMenu/utils.d.ts +0 -12
  206. package/es/Picture/component/RectMenu/utils.js +0 -19
  207. package/es/Picture/component/Tools/index.d.ts +0 -12
  208. package/es/Picture/component/Tools/index.js +0 -93
  209. package/es/Picture/component/Tools/index.less +0 -49
  210. package/es/Picture/component/WheelScale/index.d.ts +0 -7
  211. package/es/Picture/component/WheelScale/index.js +0 -29
  212. package/es/Picture/demo.d.ts +0 -2
  213. package/es/Picture/demo.js +0 -113
  214. package/es/Picture/index.d.ts +0 -19
  215. package/es/Picture/index.js +0 -354
  216. package/es/Picture/index.less +0 -20
  217. package/es/Picture/interface.d.ts +0 -196
  218. package/es/Picture/loadCaptureRectImage.d.ts +0 -3
  219. package/es/Picture/loadCaptureRectImage.js +0 -99
  220. package/es/Picture/useDraw.d.ts +0 -1
  221. package/es/Picture/useDraw.js +0 -103
  222. package/es/Picture/utils.d.ts +0 -26
  223. package/es/Picture/utils.js +0 -143
  224. package/es/Player/api/index.d.ts +0 -68
  225. package/es/Player/api/index.js +0 -283
  226. package/es/Player/context.d.ts +0 -21
  227. package/es/Player/context.js +0 -25
  228. package/es/Player/contraller_bar/bar.d.ts +0 -8
  229. package/es/Player/contraller_bar/bar.js +0 -28
  230. package/es/Player/contraller_bar/contraller_event.d.ts +0 -6
  231. package/es/Player/contraller_bar/contraller_event.js +0 -53
  232. package/es/Player/contraller_bar/index.d.ts +0 -14
  233. package/es/Player/contraller_bar/index.js +0 -33
  234. package/es/Player/contraller_bar/left_bar.d.ts +0 -10
  235. package/es/Player/contraller_bar/left_bar.js +0 -88
  236. package/es/Player/contraller_bar/right_bar.d.ts +0 -8
  237. package/es/Player/contraller_bar/right_bar.js +0 -37
  238. package/es/Player/contraller_bar/time.d.ts +0 -3
  239. package/es/Player/contraller_bar/time.js +0 -21
  240. package/es/Player/contraller_bar/useBarStatus.d.ts +0 -2
  241. package/es/Player/contraller_bar/useBarStatus.js +0 -43
  242. package/es/Player/contraller_bar/volume.d.ts +0 -9
  243. package/es/Player/contraller_bar/volume.js +0 -65
  244. package/es/Player/demo.d.ts +0 -3
  245. package/es/Player/demo.js +0 -277
  246. package/es/Player/empty.d.ts +0 -2
  247. package/es/Player/empty.js +0 -6
  248. package/es/Player/event/errorEvent.d.ts +0 -14
  249. package/es/Player/event/errorEvent.js +0 -88
  250. package/es/Player/event/eventName.d.ts +0 -18
  251. package/es/Player/event/eventName.js +0 -30
  252. package/es/Player/event/index.d.ts +0 -24
  253. package/es/Player/event/index.js +0 -204
  254. package/es/Player/fps_play.d.ts +0 -11
  255. package/es/Player/fps_play.js +0 -84
  256. package/es/Player/frontend_player.d.ts +0 -8
  257. package/es/Player/frontend_player.js +0 -72
  258. package/es/Player/frontend_timeline.d.ts +0 -10
  259. package/es/Player/frontend_timeline.js +0 -145
  260. package/es/Player/iconfont.d.ts +0 -5
  261. package/es/Player/iconfont.js +0 -22
  262. package/es/Player/index.d.ts +0 -2
  263. package/es/Player/index.js +0 -2
  264. package/es/Player/live_heart.d.ts +0 -8
  265. package/es/Player/live_heart.js +0 -46
  266. package/es/Player/message.d.ts +0 -5
  267. package/es/Player/message.js +0 -138
  268. package/es/Player/player.d.ts +0 -231
  269. package/es/Player/segment_player.d.ts +0 -9
  270. package/es/Player/segment_player.js +0 -230
  271. package/es/Player/segment_timeline.d.ts +0 -12
  272. package/es/Player/segment_timeline.js +0 -190
  273. package/es/Player/single_player.d.ts +0 -5
  274. package/es/Player/single_player.js +0 -290
  275. package/es/Player/style/bar.less +0 -43
  276. package/es/Player/style/iconfont.js +0 -43
  277. package/es/Player/style/index.less +0 -34
  278. package/es/Player/style/message.less +0 -56
  279. package/es/Player/style/slider.less +0 -106
  280. package/es/Player/style/timeline.less +0 -116
  281. package/es/Player/style/volume.less +0 -24
  282. package/es/Player/timeline.d.ts +0 -5
  283. package/es/Player/timeline.js +0 -98
  284. package/es/Player/util.d.ts +0 -42
  285. package/es/Player/util.js +0 -172
  286. package/es/PlayerExt/demo.d.ts +0 -3
  287. package/es/PlayerExt/demo.js +0 -170
  288. package/es/PlayerExt/index.d.ts +0 -48
  289. package/es/PlayerExt/index.js +0 -207
  290. package/es/PlayerExt/index.less +0 -10
  291. package/es/Progress/index.d.ts +0 -12
  292. package/es/Progress/index.js +0 -56
  293. package/es/Progress/index.less +0 -21
  294. package/es/ROI/demo.d.ts +0 -3
  295. package/es/ROI/demo.js +0 -18
  296. package/es/ROI/index.d.ts +0 -33
  297. package/es/ROI/index.js +0 -57
  298. package/es/ROI/index.less +0 -33
  299. package/es/RefDrawer/Footer.d.ts +0 -9
  300. package/es/RefDrawer/Footer.js +0 -27
  301. package/es/RefDrawer/demo.d.ts +0 -3
  302. package/es/RefDrawer/demo.js +0 -32
  303. package/es/RefDrawer/index.d.ts +0 -26
  304. package/es/RefDrawer/index.js +0 -73
  305. package/es/RefModal/demo.d.ts +0 -3
  306. package/es/RefModal/demo.js +0 -32
  307. package/es/RefModal/index.d.ts +0 -17
  308. package/es/RefModal/index.js +0 -71
  309. package/es/ScreenPlayer/Live.d.ts +0 -10
  310. package/es/ScreenPlayer/Live.js +0 -220
  311. package/es/ScreenPlayer/LiveTools.d.ts +0 -29
  312. package/es/ScreenPlayer/LiveTools.js +0 -167
  313. package/es/ScreenPlayer/PlayerWithExt.d.ts +0 -34
  314. package/es/ScreenPlayer/PlayerWithExt.js +0 -240
  315. package/es/ScreenPlayer/RatePick.d.ts +0 -8
  316. package/es/ScreenPlayer/RatePick.js +0 -30
  317. package/es/ScreenPlayer/Record.d.ts +0 -10
  318. package/es/ScreenPlayer/Record.js +0 -447
  319. package/es/ScreenPlayer/RecordTools.d.ts +0 -38
  320. package/es/ScreenPlayer/RecordTools.js +0 -216
  321. package/es/ScreenPlayer/ScreenSelect.d.ts +0 -7
  322. package/es/ScreenPlayer/ScreenSelect.js +0 -51
  323. package/es/ScreenPlayer/SegmentTimeLine.d.ts +0 -17
  324. package/es/ScreenPlayer/SegmentTimeLine.js +0 -38
  325. package/es/ScreenPlayer/TimeMode.d.ts +0 -7
  326. package/es/ScreenPlayer/TimeMode.js +0 -30
  327. package/es/ScreenPlayer/TimeSelect.d.ts +0 -7
  328. package/es/ScreenPlayer/TimeSelect.js +0 -94
  329. package/es/ScreenPlayer/demo.d.ts +0 -2
  330. package/es/ScreenPlayer/demo.js +0 -24
  331. package/es/ScreenPlayer/demo2.d.ts +0 -2
  332. package/es/ScreenPlayer/demo2.js +0 -200
  333. package/es/ScreenPlayer/index.d.ts +0 -6
  334. package/es/ScreenPlayer/index.js +0 -9
  335. package/es/ScreenPlayer/index.less +0 -335
  336. package/es/ScreenPlayer/interface.d.ts +0 -216
  337. package/es/ScreenPlayer/useTimeSlider.d.ts +0 -25
  338. package/es/ScreenPlayer/useTimeSlider.js +0 -450
  339. package/es/ScreenPlayer/useVideoFit.d.ts +0 -5
  340. package/es/ScreenPlayer/useVideoFit.js +0 -35
  341. package/es/ScreenPlayer/utils.d.ts +0 -17
  342. package/es/ScreenPlayer/utils.js +0 -85
  343. package/es/SegmentPlayer/index.d.ts +0 -2
  344. package/es/SegmentPlayer/index.js +0 -2
  345. package/es/Service/http.d.ts +0 -6
  346. package/es/Service/http.js +0 -125
  347. package/es/Service/index.d.ts +0 -3
  348. package/es/Service/index.js +0 -10
  349. package/es/Service/interface.d.ts +0 -22
  350. package/es/Service/middleware.d.ts +0 -5
  351. package/es/Service/middleware.js +0 -15
  352. package/es/SocketEmitter/eventEmitter.d.ts +0 -27
  353. package/es/SocketEmitter/eventEmitter.js +0 -88
  354. package/es/SocketEmitter/index.d.ts +0 -24
  355. package/es/SocketEmitter/index.js +0 -125
  356. package/es/SocketEmitter/interface.d.ts +0 -4
  357. package/es/TableLayout/index.d.ts +0 -10
  358. package/es/TableLayout/index.js +0 -29
  359. package/es/TableLayout/index.less +0 -4
  360. package/es/ThemeAntd/demo.d.ts +0 -4
  361. package/es/ThemeAntd/demo.js +0 -129
  362. package/es/ThemeAntd/demo.less +0 -20
  363. package/es/ThemeAntd/index.d.ts +0 -7
  364. package/es/ThemeAntd/index.js +0 -23
  365. package/es/ThemeAntd/index.less +0 -4
  366. package/es/Timeout/index.d.ts +0 -32
  367. package/es/Timeout/index.js +0 -70
  368. package/es/VList/index.d.ts +0 -11
  369. package/es/VList/index.js +0 -42
  370. package/es/VList/index.less +0 -6
  371. package/es/VList/utils.d.ts +0 -14
  372. package/es/VList/utils.js +0 -17
  373. package/es/bigNumberTransformCN/index.d.ts +0 -5
  374. package/es/bigNumberTransformCN/index.js +0 -60
  375. package/es/cache/index.d.ts +0 -34
  376. package/es/cache/index.js +0 -94
  377. package/es/copy/index.d.ts +0 -1
  378. package/es/copy/index.js +0 -9
  379. package/es/core.d.ts +0 -0
  380. package/es/getThemeStyle/index.d.ts +0 -2
  381. package/es/getThemeStyle/index.js +0 -5
  382. package/es/index.d.ts +0 -61
  383. package/es/index.js +0 -61
  384. package/es/logger/index.d.ts +0 -7
  385. package/es/logger/index.js +0 -30
  386. package/es/nextTick/index.d.ts +0 -1
  387. package/es/nextTick/index.js +0 -7
  388. package/es/submidstr/index.d.ts +0 -5
  389. package/es/submidstr/index.js +0 -14
  390. package/es/treeHelper/index.d.ts +0 -11
  391. package/es/treeHelper/index.js +0 -189
  392. package/es/typings.d.ts +0 -2
  393. package/es/useDrawROI/index.d.ts +0 -16
  394. package/es/useDrawROI/index.js +0 -322
  395. package/es/useEventEmitterHandle/index.d.ts +0 -2
  396. package/es/useEventEmitterHandle/index.js +0 -17
  397. package/es/useFullscreen/demo.d.ts +0 -2
  398. package/es/useFullscreen/demo.js +0 -48
  399. package/es/useFullscreen/index.d.ts +0 -12
  400. package/es/useFullscreen/index.js +0 -76
  401. package/es/useHistory/index.d.ts +0 -3
  402. package/es/useHistory/index.js +0 -9
  403. package/es/useHistory/interface.d.ts +0 -3
  404. package/es/useInfiniteScroll/index.d.ts +0 -16
  405. package/es/useInfiniteScroll/index.js +0 -101
  406. package/es/useRafInterval/index.d.ts +0 -5
  407. package/es/useRafInterval/index.js +0 -70
  408. package/es/useSimpleState/index.d.ts +0 -3
  409. package/es/useSimpleState/index.js +0 -36
  410. package/es/useVirtualList/index.d.ts +0 -13
  411. package/es/useVirtualList/index.js +0 -139
  412. package/es/utils.d.ts +0 -14
  413. package/es/utils.js +0 -75
  414. package/es/uuid/index.d.ts +0 -4
  415. package/es/uuid/index.js +0 -15
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import SinglePoint from "./index";
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- var App = function App() {
5
- return /*#__PURE__*/_jsx("div", {
6
- style: {
7
- width: '100%',
8
- height: 800
9
- },
10
- children: /*#__PURE__*/_jsx(SinglePoint, {
11
- center: [112.94477421092171, 38.499347690146514],
12
- title: "\u8BBE\u7F6E1111"
13
- })
14
- });
15
- };
16
- 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) => JSX.Element;
27
- export default _default;
@@ -1,57 +0,0 @@
1
- import _useMount from "ahooks/es/useMount";
2
- import React, { useCallback, useContext } from 'react';
3
- import ClusterLayer from "../ClusterLayer";
4
- import ResetTools from "../ResetTools";
5
- import DragMarker from "../LevelCenter/DragMarker";
6
- import withMap from "../withMap";
7
- import { mapContext } from "../Context";
8
- import useMapEvent from "../hook/useMapEvent";
9
- import "./index.less";
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { Fragment as _Fragment } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
13
- function SinglePoint(_ref) {
14
- var center = _ref.center,
15
- points = _ref.points,
16
- onCenterChange = _ref.onCenterChange,
17
- enableClick = _ref.enableClick,
18
- title = _ref.title,
19
- children = _ref.children;
20
- var _useContext = useContext(mapContext),
21
- instance = _useContext.instance;
22
- var mapRest = useCallback(function () {
23
- return instance.setZoomAndCenter(instance.config.zoom, center !== null && center !== void 0 ? center : instance.config.center);
24
- }, [center, instance]);
25
- _useMount(function () {
26
- if (enableClick) {
27
- instance.setCursor('pointer');
28
- }
29
- mapRest();
30
- });
31
- useMapEvent('click', function (event) {
32
- if (enableClick) {
33
- var _center = [event.lnglat.lng, event.lnglat.lat];
34
- instance.setCenter(_center);
35
- onCenterChange === null || onCenterChange === void 0 ? void 0 : onCenterChange({
36
- center: _center
37
- });
38
- }
39
- });
40
- return /*#__PURE__*/_jsxs(_Fragment, {
41
- children: [/*#__PURE__*/_jsx(ClusterLayer, {
42
- points: points
43
- }), /*#__PURE__*/_jsx(ResetTools, {
44
- onMapReset: mapRest
45
- }), /*#__PURE__*/_jsx(DragMarker, {
46
- title: title,
47
- center: center,
48
- onChange: function onChange(_ref2) {
49
- var center = _ref2.center;
50
- return onCenterChange === null || onCenterChange === void 0 ? void 0 : onCenterChange({
51
- center: center
52
- });
53
- }
54
- }), children]
55
- });
56
- }
57
- export default withMap(SinglePoint, 'single-point-map-container');
@@ -1,41 +0,0 @@
1
- .single-point-map-container {
2
- .marker-center-layout {
3
- width: 32px;
4
- height: 42px;
5
- margin-top: -10px;
6
- text-align: center;
7
-
8
- > div {
9
- width: 100%;
10
- height: 100%;
11
- padding-top: 6px;
12
- }
13
-
14
- .onLine {
15
- background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0i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AxNiw0MSBDMTMuNDcwNjYyMiw0MSAxMi4yNTUyNzM3LDM5LjUyNDE3MTEgMTAuODI3ODYwMiwzNS45ODk2MjM0IEMxMC43MjQ2MDU2LDM1LjczMzk0NTIgMTAuMzYyNTExOSwzNC44MjExODY3IDEwLjM2MjE0MTksMzQuODIwMjU5MiBDMTAuMTc0ODM0NSwzNC4zNTA4MjY3IDEwLjAyNzc3ODQsMzMuOTkyNDIyMyA5Ljg3ODM5MTA5LDMzLjY0NTQ1ODQgQzkuMzM1MTI2MDYsMzIuMzgzNjgxNSA4LjgxNjUxNzY2LDMxLjQyMjAyMzUgOC4yLDMwLjYgQzcuODMzNjc5OCwzMC4xMTE1NzMxIDcuNDUwMzE0NTUsMjkuNjI2MjQ5IDYuODkwNzIyNjgsMjguOTM1NzI2OSBDNi43NjgwNzUwNiwyOC43ODQzODI5IDYuMzI0MTg5MTIsMjguMjM4MzQwOSA2LjM0Mzc2NTQ5LDI4LjI2MjQ0NDMgQzIuNTA0NzA4MDcsMjMuNTM1NjA0OCAxLjA0OTUzNTY2LDIwLjczODUwMTIgMS4wMDA5NDgyOSwxNi4xNzgzNjc1IEwwLjk5NTIyOTAxNywxNS42NDE1ODg4IEwxLjAwNDM0NDIzLDE1LjYzNTQwNDQgWiIgc3Ryb2tlPSIjNjc2RjdGIiBzdHJva2Utd2lkdGg9IjIiIGZpbGw9InVybCgjbGluZWFyR3JhZGllbnQtMSkiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+')
30
- no-repeat;
31
- }
32
- }
33
-
34
- .anticon {
35
- position: relative;
36
- top: 1px;
37
- font-size: 18px;
38
- color: white;
39
- }
40
- }
41
- }
@@ -1,2 +0,0 @@
1
- declare function useMapEvent(type: string, fn: (event: any) => void): void;
2
- export default useMapEvent;
@@ -1,19 +0,0 @@
1
- import _useLatest from "ahooks/es/useLatest";
2
- import { useContext, useEffect } from 'react';
3
- import { mapContext } from "../Context";
4
- function useMapEvent(type, fn) {
5
- var fnRef = _useLatest(fn);
6
- var _useContext = useContext(mapContext),
7
- instance = _useContext.instance;
8
- useEffect(function () {
9
- var eventAction = function eventAction(event) {
10
- fnRef.current(event);
11
- };
12
- instance.on(type, eventAction);
13
- return function () {
14
- return instance.off(type, eventAction);
15
- };
16
- // eslint-disable-next-line react-hooks/exhaustive-deps
17
- }, [instance, type]);
18
- }
19
- export default useMapEvent;
@@ -1,4 +0,0 @@
1
- export default function useMapType(): {
2
- leaflet: boolean;
3
- AMap: boolean;
4
- };
@@ -1,12 +0,0 @@
1
- import { useContext, useMemo } from 'react';
2
- import { mapContext } from "../Context";
3
- export default function useMapType() {
4
- var _useContext = useContext(mapContext),
5
- glaobalKey = _useContext.glaobalKey;
6
- return useMemo(function () {
7
- return {
8
- leaflet: glaobalKey === 'L',
9
- AMap: glaobalKey === 'AMap'
10
- };
11
- }, [glaobalKey]);
12
- }
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/icon.js DELETED
@@ -1,10 +0,0 @@
1
- export var 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 function createMapCenterIcon() {
3
- var L = window.L;
4
- return L.divIcon({
5
- iconSize: [28, 40],
6
- iconAnchor: [14, 40],
7
- html: "<i class=\"anticon\">".concat(LevelCenterCenterSvg, "</>"),
8
- className: 'lv-center-map-drag-marker'
9
- });
10
- }
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) => JSX.Element;
17
- LoaderMap: typeof LoaderMap;
18
- BasicMap: typeof BasicMap;
19
- ResetTools: typeof ResetTools;
20
- SinglePoint: (props: import("./SinglePoint").ISinglePlayerProps) => JSX.Element;
21
- useMarker: typeof useMarker;
22
- withMap: typeof withMap;
23
- };
24
- export default Map;
package/es/Map/index.js DELETED
@@ -1,25 +0,0 @@
1
- import BasicMap from "./BasicMap";
2
- import ClusterLayer from "./ClusterLayer";
3
- import Config from "./Config";
4
- import Context from "./Context";
5
- import FindPio from "./FindPio";
6
- import LevelCenter from "./LevelCenter";
7
- import LoaderMap from "./LoaderMap";
8
- import ResetTools from "./ResetTools";
9
- import SinglePoint from "./SinglePoint";
10
- import useMarker from "./useMarker";
11
- import withMap from "./withMap";
12
- var Map = {
13
- ClusterLayer: ClusterLayer,
14
- Config: Config,
15
- Context: Context,
16
- FindPio: FindPio,
17
- LevelCenter: LevelCenter,
18
- LoaderMap: LoaderMap,
19
- BasicMap: BasicMap,
20
- ResetTools: ResetTools,
21
- SinglePoint: SinglePoint,
22
- useMarker: useMarker,
23
- withMap: withMap
24
- };
25
- export default Map;
@@ -1,74 +0,0 @@
1
- import * as LMap from '@types/leaflet';
2
-
3
- export type LMapInstance = typeof LMap & LMapPlugin;
4
-
5
- export type Map = LMap.Map & AMap.Map;
6
-
7
- export type Marker = LMap.Marker & AMap.Marker;
8
-
9
- export type LatLng = LMap.LatLng & AMap.LngLat;
10
-
11
- export interface IMapOptions {
12
- url?: string;
13
- subdomains?: string[];
14
- crs?: string;
15
- center?: [number, number];
16
- maxZoom?: number;
17
- minZoom?: number;
18
- zoom?: number;
19
- zoomOffset?: 0;
20
- maxBounds: [[number, number], [number, number]];
21
- distance?: number;
22
- amapStyle?: 'normal' | 'dark' | 'light' | 'whitesmoke' | 'fresh' | 'grey' | 'graffiti' | 'macaron' | 'blue' | 'darkblue' | 'wine';
23
- }
24
- export class IMapInstance {
25
- constructor(ele: HTMLDivElement, options?: IMapOptions);
26
- map: AMap.Map | LMap.Map;
27
- config: IMapOptions;
28
- createMap(): void;
29
- destoryMap(): void;
30
- mapReset(): void;
31
- setZoom(zoom: number): void;
32
- setCenter(center: [number, number] | LatLng): void;
33
- getZoom(): number;
34
- setZoomAndCenter(zoom: number, center: [number, number] | LatLng): void;
35
- on(type: string, fn: (e: any) => void): void;
36
- off(type: string, fn: (e: any) => void): void;
37
- setCursor(cursor: string);
38
- }
39
-
40
- export interface MapPoint {
41
- latitude: number;
42
- longitude: number;
43
- deviceType: string;
44
- deviceStatus: string;
45
- deviceName: string;
46
- cid: string;
47
- }
48
-
49
- export type LMapPlugin = {
50
- markerClusterGroup: (config: any) => ClusterGroupInterface;
51
- };
52
-
53
- export interface LClusterInterface {
54
- addTo(map: Map): this;
55
- addLayers(markers: Marker[]);
56
- getLayers(): Marker[];
57
- clearLayers(): void;
58
- }
59
-
60
- export type DrawType = 'rect' | 'polygon' | 'circle' | 'clear' | 'close';
61
-
62
- export interface customConfigProps {
63
- url: string;
64
- subdomains: string[];
65
- crs: string;
66
- center: [number, number];
67
- maxZoom: number;
68
- minZoom: number;
69
- zoom: number;
70
- zoomOffset: number;
71
- distance: number;
72
- amapStyle: string;
73
- maxBounds: [[number, number], [number, number]];
74
- }
@@ -1,74 +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
- cid: string;
51
- deviceName: string;
52
- deviceStatus: string;
53
- deviceType: string;
54
- id: string;
55
- latitude: string;
56
- longitude: string;
57
- manufacturerDeviceId: string;
58
- manufacturerDeviceType: string;
59
- organizationIds: string[];
60
- pathId: number[];
61
- placeId: string;
62
- sn: string;
63
- boxNum: string;
64
- cameraType: null;
65
- hasFrontEnd: boolean;
66
- hasStorage: boolean;
67
- parentId: string;
68
- accessType: string;
69
- villageLocationType: string;
70
- placeTags: string[];
71
- createTime: string;
72
- lygroupId?: undefined;
73
- })[];
74
- export default data;