@cloud-app-dev/vidc 4.0.15 → 4.0.19

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 (424) hide show
  1. package/.dumirc.ts +54 -70
  2. package/.editorconfig +13 -13
  3. package/.eslintignore +6 -6
  4. package/.eslintrc.js +3 -3
  5. package/.fatherrc.ts +14 -15
  6. package/.hintrc +8 -8
  7. package/.husky/commit-msg +5 -5
  8. package/.husky/pre-commit +4 -4
  9. package/.prettierignore +8 -8
  10. package/.prettierrc.js +16 -16
  11. package/.stylelintrc.js +113 -113
  12. package/README.md +19 -19
  13. package/{icon-fix.js → icon-fix.mjs} +31 -31
  14. package/package.json +97 -96
  15. package/release-build.sh +48 -47
  16. package/scripts/entry.js +20 -20
  17. package/theme-config.ts +125 -125
  18. package/tsconfig.json +16 -16
  19. package/typings/global.d.ts +4 -4
  20. package/es/AppContext/Sync.d.ts +0 -8
  21. package/es/AppContext/Sync.js +0 -44
  22. package/es/AppContext/index.d.ts +0 -10
  23. package/es/AppContext/index.js +0 -144
  24. package/es/AppContext/interface.d.ts +0 -41
  25. package/es/AppContext/static.d.ts +0 -8
  26. package/es/AppContext/static.js +0 -9
  27. package/es/Auth/index.d.ts +0 -8
  28. package/es/Auth/index.js +0 -18
  29. package/es/AutoExit/index.d.ts +0 -6
  30. package/es/AutoExit/index.js +0 -23
  31. package/es/CheckGroupFixed/demo.d.ts +0 -3
  32. package/es/CheckGroupFixed/demo.js +0 -25
  33. package/es/CheckGroupFixed/index.d.ts +0 -18
  34. package/es/CheckGroupFixed/index.js +0 -150
  35. package/es/CheckGroupFixed/index.less +0 -53
  36. package/es/Config/index.d.ts +0 -4
  37. package/es/Config/index.js +0 -77
  38. package/es/Config/interface.d.ts +0 -65
  39. package/es/Config/utils.d.ts +0 -4
  40. package/es/Config/utils.js +0 -33
  41. package/es/ConfigContext/index.d.ts +0 -22
  42. package/es/ConfigContext/index.js +0 -25
  43. package/es/CustomRenderSelect/index.d.ts +0 -12
  44. package/es/CustomRenderSelect/index.js +0 -83
  45. package/es/CustomRenderSelect/index.less +0 -25
  46. package/es/DBTools/index.d.ts +0 -25
  47. package/es/DBTools/index.js +0 -337
  48. package/es/DisableMark/index.d.ts +0 -9
  49. package/es/DisableMark/index.js +0 -22
  50. package/es/DisableMark/index.less +0 -9
  51. package/es/DomMove/demo.d.ts +0 -2
  52. package/es/DomMove/demo.js +0 -20
  53. package/es/DomMove/index.d.ts +0 -16
  54. package/es/DomMove/index.js +0 -149
  55. package/es/DomMove/utils.d.ts +0 -8
  56. package/es/DomMove/utils.js +0 -33
  57. package/es/Drag/DragAndDropItem.d.ts +0 -4
  58. package/es/Drag/DragAndDropItem.js +0 -133
  59. package/es/Drag/DropItem.d.ts +0 -4
  60. package/es/Drag/DropItem.js +0 -50
  61. package/es/Drag/index.d.ts +0 -7
  62. package/es/Drag/index.js +0 -7
  63. package/es/Drag/interface.d.ts +0 -16
  64. package/es/DynamicGridList/Demo.d.ts +0 -3
  65. package/es/DynamicGridList/Demo.js +0 -86
  66. package/es/DynamicGridList/index.d.ts +0 -27
  67. package/es/DynamicGridList/index.js +0 -71
  68. package/es/DynamicList/demo.d.ts +0 -2
  69. package/es/DynamicList/demo.js +0 -50
  70. package/es/DynamicList/index.d.ts +0 -31
  71. package/es/DynamicList/index.js +0 -96
  72. package/es/DynamicList/index.less +0 -17
  73. package/es/DynamicList/interface.d.ts +0 -19
  74. package/es/DynamicList/utils.d.ts +0 -4
  75. package/es/DynamicList/utils.js +0 -6
  76. package/es/ErrorFallback/index.d.ts +0 -9
  77. package/es/ErrorFallback/index.js +0 -38
  78. package/es/ErrorFallback/inerface.d.ts +0 -48
  79. package/es/EventTools/index.d.ts +0 -3
  80. package/es/EventTools/index.js +0 -12
  81. package/es/FrontendPlayer/index.d.ts +0 -4
  82. package/es/FrontendPlayer/index.js +0 -2
  83. package/es/FullScreen/index.d.ts +0 -22
  84. package/es/FullScreen/index.js +0 -36
  85. package/es/FullScreen/index.less +0 -18
  86. package/es/GridList/Demo.d.ts +0 -3
  87. package/es/GridList/Demo.js +0 -89
  88. package/es/GridList/data.d.ts +0 -16
  89. package/es/GridList/data.js +0 -609
  90. package/es/GridList/hook.d.ts +0 -13
  91. package/es/GridList/hook.js +0 -270
  92. package/es/GridList/index.d.ts +0 -15
  93. package/es/GridList/index.js +0 -48
  94. package/es/GridList/index.less +0 -8
  95. package/es/GridList/interface.d.ts +0 -59
  96. package/es/GridList/utils.d.ts +0 -9
  97. package/es/GridList/utils.js +0 -42
  98. package/es/HightLevel/index.d.ts +0 -9
  99. package/es/HightLevel/index.js +0 -21
  100. package/es/HightLevel/index.less +0 -3
  101. package/es/IconFont/index.d.ts +0 -12
  102. package/es/IconFont/index.js +0 -63
  103. package/es/ImageView/index.d.ts +0 -17
  104. package/es/ImageView/index.js +0 -58
  105. package/es/ImageView/index.less +0 -11
  106. package/es/InstanceHistory/index.d.ts +0 -3
  107. package/es/InstanceHistory/index.js +0 -7
  108. package/es/LabelPlayer/111.png +0 -0
  109. package/es/LabelPlayer/demo.d.ts +0 -2
  110. package/es/LabelPlayer/demo.js +0 -123
  111. package/es/LabelPlayer/index.d.ts +0 -21
  112. package/es/LabelPlayer/index.js +0 -169
  113. package/es/LabelPlayer/index.less +0 -24
  114. package/es/LabelValue/index.d.ts +0 -15
  115. package/es/LabelValue/index.js +0 -32
  116. package/es/LabelValue/index.less +0 -23
  117. package/es/List/demo.d.ts +0 -3
  118. package/es/List/demo.js +0 -26
  119. package/es/List/index.d.ts +0 -28
  120. package/es/List/index.js +0 -30
  121. package/es/List/index.less +0 -13
  122. package/es/ListWithSizeAnimate/demo.d.ts +0 -2
  123. package/es/ListWithSizeAnimate/demo.js +0 -128
  124. package/es/ListWithSizeAnimate/index.d.ts +0 -14
  125. package/es/ListWithSizeAnimate/index.js +0 -97
  126. package/es/ListWithSizeAnimate/index.less +0 -23
  127. package/es/LoaderScript/index.d.ts +0 -47
  128. package/es/LoaderScript/index.js +0 -38
  129. package/es/LoaderScript/utils.d.ts +0 -13
  130. package/es/LoaderScript/utils.js +0 -179
  131. package/es/Map/AMap.d.ts +0 -7109
  132. package/es/Map/BasicMap/AMapInstance.d.ts +0 -19
  133. package/es/Map/BasicMap/AMapInstance.js +0 -98
  134. package/es/Map/BasicMap/LeafletInstance.d.ts +0 -18
  135. package/es/Map/BasicMap/LeafletInstance.js +0 -111
  136. package/es/Map/BasicMap/index.d.ts +0 -9
  137. package/es/Map/BasicMap/index.js +0 -98
  138. package/es/Map/BasicMap/index.less +0 -29
  139. package/es/Map/ClusterLayer/demo.d.ts +0 -3
  140. package/es/Map/ClusterLayer/demo.js +0 -22
  141. package/es/Map/ClusterLayer/hook.d.ts +0 -5
  142. package/es/Map/ClusterLayer/hook.js +0 -124
  143. package/es/Map/ClusterLayer/index.d.ts +0 -6
  144. package/es/Map/ClusterLayer/index.js +0 -32
  145. package/es/Map/ClusterLayer/index.less +0 -29
  146. package/es/Map/ClusterLayer/props.d.ts +0 -8
  147. package/es/Map/Config/index.d.ts +0 -9
  148. package/es/Map/Config/index.js +0 -52
  149. package/es/Map/Config/utils.d.ts +0 -2
  150. package/es/Map/Config/utils.js +0 -65
  151. package/es/Map/Context/index.d.ts +0 -11
  152. package/es/Map/Context/index.js +0 -56
  153. package/es/Map/FindPio/index.d.ts +0 -4
  154. package/es/Map/FindPio/index.js +0 -14
  155. package/es/Map/FindPio/index.less +0 -7
  156. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -4
  157. package/es/Map/InfoWindow/MakerLikeWindow.js +0 -113
  158. package/es/Map/InfoWindow/demo.d.ts +0 -3
  159. package/es/Map/InfoWindow/demo.js +0 -76
  160. package/es/Map/InfoWindow/index.d.ts +0 -11
  161. package/es/Map/InfoWindow/index.js +0 -67
  162. package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -10
  163. package/es/Map/LevelCenter/DragMarker/index.js +0 -44
  164. package/es/Map/LevelCenter/demo.d.ts +0 -3
  165. package/es/Map/LevelCenter/demo.js +0 -46
  166. package/es/Map/LevelCenter/index.d.ts +0 -15
  167. package/es/Map/LevelCenter/index.js +0 -71
  168. package/es/Map/LoaderMap/index.d.ts +0 -12
  169. package/es/Map/LoaderMap/index.js +0 -71
  170. package/es/Map/MapDrawSelect/demo.d.ts +0 -3
  171. package/es/Map/MapDrawSelect/demo.js +0 -79
  172. package/es/Map/MapDrawSelect/index.d.ts +0 -15
  173. package/es/Map/MapDrawSelect/index.js +0 -62
  174. package/es/Map/MouseTool/index.d.ts +0 -10
  175. package/es/Map/MouseTool/index.js +0 -44
  176. package/es/Map/MouseTool/useMouseTools.d.ts +0 -7
  177. package/es/Map/MouseTool/useMouseTools.js +0 -83
  178. package/es/Map/ResetTools/index.d.ts +0 -10
  179. package/es/Map/ResetTools/index.js +0 -67
  180. package/es/Map/ResetTools/index.less +0 -39
  181. package/es/Map/SinglePoint/demo.d.ts +0 -3
  182. package/es/Map/SinglePoint/demo.js +0 -16
  183. package/es/Map/SinglePoint/index.d.ts +0 -27
  184. package/es/Map/SinglePoint/index.js +0 -57
  185. package/es/Map/SinglePoint/index.less +0 -41
  186. package/es/Map/hook/useMapEvent.d.ts +0 -2
  187. package/es/Map/hook/useMapEvent.js +0 -19
  188. package/es/Map/hook/useMapType.d.ts +0 -4
  189. package/es/Map/hook/useMapType.js +0 -12
  190. package/es/Map/icon.d.ts +0 -2
  191. package/es/Map/icon.js +0 -10
  192. package/es/Map/index.d.ts +0 -24
  193. package/es/Map/index.js +0 -25
  194. package/es/Map/interface.d.ts +0 -74
  195. package/es/Map/points.d.ts +0 -74
  196. package/es/Map/points.js +0 -1
  197. package/es/Map/useMarker/index.d.ts +0 -10
  198. package/es/Map/useMarker/index.js +0 -71
  199. package/es/Map/withMap/index.d.ts +0 -3
  200. package/es/Map/withMap/index.js +0 -18
  201. package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -8
  202. package/es/Picture/component/DefaultRects/RectInfo.js +0 -88
  203. package/es/Picture/component/DefaultRects/index.d.ts +0 -13
  204. package/es/Picture/component/DefaultRects/index.js +0 -58
  205. package/es/Picture/component/DefaultRects/index.less +0 -211
  206. package/es/Picture/component/DefaultRects/utils.d.ts +0 -2
  207. package/es/Picture/component/DefaultRects/utils.js +0 -11
  208. package/es/Picture/component/DrawRect/index.d.ts +0 -13
  209. package/es/Picture/component/DrawRect/index.js +0 -51
  210. package/es/Picture/component/DrawRect/index.less +0 -8
  211. package/es/Picture/component/RectMenu/index.d.ts +0 -12
  212. package/es/Picture/component/RectMenu/index.js +0 -79
  213. package/es/Picture/component/RectMenu/index.less +0 -36
  214. package/es/Picture/component/RectMenu/utils.d.ts +0 -12
  215. package/es/Picture/component/RectMenu/utils.js +0 -19
  216. package/es/Picture/component/Tools/index.d.ts +0 -12
  217. package/es/Picture/component/Tools/index.js +0 -93
  218. package/es/Picture/component/Tools/index.less +0 -49
  219. package/es/Picture/component/WheelScale/index.d.ts +0 -7
  220. package/es/Picture/component/WheelScale/index.js +0 -29
  221. package/es/Picture/demo.d.ts +0 -2
  222. package/es/Picture/demo.js +0 -114
  223. package/es/Picture/index.d.ts +0 -19
  224. package/es/Picture/index.js +0 -354
  225. package/es/Picture/index.less +0 -20
  226. package/es/Picture/interface.d.ts +0 -196
  227. package/es/Picture/loadCaptureRectImage.d.ts +0 -3
  228. package/es/Picture/loadCaptureRectImage.js +0 -99
  229. package/es/Picture/useDraw.d.ts +0 -1
  230. package/es/Picture/useDraw.js +0 -103
  231. package/es/Picture/utils.d.ts +0 -26
  232. package/es/Picture/utils.js +0 -143
  233. package/es/Player/api/index.d.ts +0 -68
  234. package/es/Player/api/index.js +0 -283
  235. package/es/Player/context.d.ts +0 -21
  236. package/es/Player/context.js +0 -25
  237. package/es/Player/contraller_bar/bar.d.ts +0 -8
  238. package/es/Player/contraller_bar/bar.js +0 -28
  239. package/es/Player/contraller_bar/contraller_event.d.ts +0 -6
  240. package/es/Player/contraller_bar/contraller_event.js +0 -53
  241. package/es/Player/contraller_bar/index.d.ts +0 -14
  242. package/es/Player/contraller_bar/index.js +0 -33
  243. package/es/Player/contraller_bar/left_bar.d.ts +0 -10
  244. package/es/Player/contraller_bar/left_bar.js +0 -88
  245. package/es/Player/contraller_bar/right_bar.d.ts +0 -8
  246. package/es/Player/contraller_bar/right_bar.js +0 -37
  247. package/es/Player/contraller_bar/time.d.ts +0 -3
  248. package/es/Player/contraller_bar/time.js +0 -21
  249. package/es/Player/contraller_bar/useBarStatus.d.ts +0 -2
  250. package/es/Player/contraller_bar/useBarStatus.js +0 -43
  251. package/es/Player/contraller_bar/volume.d.ts +0 -9
  252. package/es/Player/contraller_bar/volume.js +0 -65
  253. package/es/Player/demo.d.ts +0 -3
  254. package/es/Player/demo.js +0 -277
  255. package/es/Player/empty.d.ts +0 -2
  256. package/es/Player/empty.js +0 -6
  257. package/es/Player/event/errorEvent.d.ts +0 -14
  258. package/es/Player/event/errorEvent.js +0 -88
  259. package/es/Player/event/eventName.d.ts +0 -18
  260. package/es/Player/event/eventName.js +0 -30
  261. package/es/Player/event/index.d.ts +0 -24
  262. package/es/Player/event/index.js +0 -204
  263. package/es/Player/fps_play.d.ts +0 -11
  264. package/es/Player/fps_play.js +0 -84
  265. package/es/Player/frontend_player.d.ts +0 -8
  266. package/es/Player/frontend_player.js +0 -72
  267. package/es/Player/frontend_timeline.d.ts +0 -10
  268. package/es/Player/frontend_timeline.js +0 -145
  269. package/es/Player/iconfont.d.ts +0 -5
  270. package/es/Player/iconfont.js +0 -22
  271. package/es/Player/index.d.ts +0 -2
  272. package/es/Player/index.js +0 -2
  273. package/es/Player/live_heart.d.ts +0 -8
  274. package/es/Player/live_heart.js +0 -46
  275. package/es/Player/message.d.ts +0 -5
  276. package/es/Player/message.js +0 -138
  277. package/es/Player/player.d.ts +0 -231
  278. package/es/Player/segment_player.d.ts +0 -9
  279. package/es/Player/segment_player.js +0 -230
  280. package/es/Player/segment_timeline.d.ts +0 -12
  281. package/es/Player/segment_timeline.js +0 -190
  282. package/es/Player/single_player.d.ts +0 -5
  283. package/es/Player/single_player.js +0 -275
  284. package/es/Player/style/bar.less +0 -43
  285. package/es/Player/style/iconfont.js +0 -43
  286. package/es/Player/style/index.less +0 -34
  287. package/es/Player/style/message.less +0 -56
  288. package/es/Player/style/slider.less +0 -106
  289. package/es/Player/style/timeline.less +0 -116
  290. package/es/Player/style/volume.less +0 -24
  291. package/es/Player/timeline.d.ts +0 -5
  292. package/es/Player/timeline.js +0 -98
  293. package/es/Player/util.d.ts +0 -43
  294. package/es/Player/util.js +0 -189
  295. package/es/PlayerExt/demo.d.ts +0 -3
  296. package/es/PlayerExt/demo.js +0 -170
  297. package/es/PlayerExt/index.d.ts +0 -48
  298. package/es/PlayerExt/index.js +0 -207
  299. package/es/PlayerExt/index.less +0 -10
  300. package/es/Progress/index.d.ts +0 -12
  301. package/es/Progress/index.js +0 -56
  302. package/es/Progress/index.less +0 -21
  303. package/es/ROI/demo.d.ts +0 -3
  304. package/es/ROI/demo.js +0 -18
  305. package/es/ROI/index.d.ts +0 -33
  306. package/es/ROI/index.js +0 -57
  307. package/es/ROI/index.less +0 -33
  308. package/es/RefDrawer/Footer.d.ts +0 -9
  309. package/es/RefDrawer/Footer.js +0 -27
  310. package/es/RefDrawer/demo.d.ts +0 -3
  311. package/es/RefDrawer/demo.js +0 -32
  312. package/es/RefDrawer/index.d.ts +0 -26
  313. package/es/RefDrawer/index.js +0 -73
  314. package/es/RefModal/demo.d.ts +0 -3
  315. package/es/RefModal/demo.js +0 -32
  316. package/es/RefModal/index.d.ts +0 -17
  317. package/es/RefModal/index.js +0 -71
  318. package/es/ScreenPlayer/Live.d.ts +0 -10
  319. package/es/ScreenPlayer/Live.js +0 -220
  320. package/es/ScreenPlayer/LiveTools.d.ts +0 -29
  321. package/es/ScreenPlayer/LiveTools.js +0 -167
  322. package/es/ScreenPlayer/PlayerWithExt.d.ts +0 -34
  323. package/es/ScreenPlayer/PlayerWithExt.js +0 -240
  324. package/es/ScreenPlayer/RatePick.d.ts +0 -8
  325. package/es/ScreenPlayer/RatePick.js +0 -30
  326. package/es/ScreenPlayer/Record.d.ts +0 -10
  327. package/es/ScreenPlayer/Record.js +0 -447
  328. package/es/ScreenPlayer/RecordTools.d.ts +0 -38
  329. package/es/ScreenPlayer/RecordTools.js +0 -216
  330. package/es/ScreenPlayer/ScreenSelect.d.ts +0 -7
  331. package/es/ScreenPlayer/ScreenSelect.js +0 -51
  332. package/es/ScreenPlayer/SegmentTimeLine.d.ts +0 -17
  333. package/es/ScreenPlayer/SegmentTimeLine.js +0 -38
  334. package/es/ScreenPlayer/TimeMode.d.ts +0 -7
  335. package/es/ScreenPlayer/TimeMode.js +0 -30
  336. package/es/ScreenPlayer/TimeSelect.d.ts +0 -7
  337. package/es/ScreenPlayer/TimeSelect.js +0 -94
  338. package/es/ScreenPlayer/demo.d.ts +0 -2
  339. package/es/ScreenPlayer/demo.js +0 -24
  340. package/es/ScreenPlayer/demo2.d.ts +0 -2
  341. package/es/ScreenPlayer/demo2.js +0 -200
  342. package/es/ScreenPlayer/index.d.ts +0 -6
  343. package/es/ScreenPlayer/index.js +0 -9
  344. package/es/ScreenPlayer/index.less +0 -335
  345. package/es/ScreenPlayer/interface.d.ts +0 -216
  346. package/es/ScreenPlayer/useTimeSlider.d.ts +0 -25
  347. package/es/ScreenPlayer/useTimeSlider.js +0 -450
  348. package/es/ScreenPlayer/useVideoFit.d.ts +0 -5
  349. package/es/ScreenPlayer/useVideoFit.js +0 -35
  350. package/es/ScreenPlayer/utils.d.ts +0 -17
  351. package/es/ScreenPlayer/utils.js +0 -85
  352. package/es/SegmentPlayer/index.d.ts +0 -2
  353. package/es/SegmentPlayer/index.js +0 -2
  354. package/es/Service/http.d.ts +0 -6
  355. package/es/Service/http.js +0 -125
  356. package/es/Service/index.d.ts +0 -3
  357. package/es/Service/index.js +0 -10
  358. package/es/Service/interface.d.ts +0 -22
  359. package/es/Service/middleware.d.ts +0 -5
  360. package/es/Service/middleware.js +0 -15
  361. package/es/SocketEmitter/eventEmitter.d.ts +0 -27
  362. package/es/SocketEmitter/eventEmitter.js +0 -88
  363. package/es/SocketEmitter/index.d.ts +0 -24
  364. package/es/SocketEmitter/index.js +0 -125
  365. package/es/SocketEmitter/interface.d.ts +0 -4
  366. package/es/TableLayout/index.d.ts +0 -10
  367. package/es/TableLayout/index.js +0 -29
  368. package/es/TableLayout/index.less +0 -4
  369. package/es/ThemeAntd/demo.d.ts +0 -4
  370. package/es/ThemeAntd/demo.js +0 -129
  371. package/es/ThemeAntd/demo.less +0 -20
  372. package/es/ThemeAntd/index.d.ts +0 -7
  373. package/es/ThemeAntd/index.js +0 -23
  374. package/es/ThemeAntd/index.less +0 -4
  375. package/es/Timeout/index.d.ts +0 -32
  376. package/es/Timeout/index.js +0 -70
  377. package/es/VList/index.d.ts +0 -11
  378. package/es/VList/index.js +0 -42
  379. package/es/VList/index.less +0 -6
  380. package/es/VList/utils.d.ts +0 -14
  381. package/es/VList/utils.js +0 -17
  382. package/es/bigNumberTransformCN/index.d.ts +0 -5
  383. package/es/bigNumberTransformCN/index.js +0 -60
  384. package/es/cache/index.d.ts +0 -34
  385. package/es/cache/index.js +0 -94
  386. package/es/copy/index.d.ts +0 -1
  387. package/es/copy/index.js +0 -9
  388. package/es/core.d.ts +0 -0
  389. package/es/getThemeStyle/index.d.ts +0 -2
  390. package/es/getThemeStyle/index.js +0 -5
  391. package/es/index.d.ts +0 -60
  392. package/es/index.js +0 -60
  393. package/es/logger/index.d.ts +0 -7
  394. package/es/logger/index.js +0 -30
  395. package/es/nextTick/index.d.ts +0 -1
  396. package/es/nextTick/index.js +0 -7
  397. package/es/submidstr/index.d.ts +0 -5
  398. package/es/submidstr/index.js +0 -14
  399. package/es/treeHelper/index.d.ts +0 -11
  400. package/es/treeHelper/index.js +0 -189
  401. package/es/typings.d.ts +0 -2
  402. package/es/useDrawROI/index.d.ts +0 -16
  403. package/es/useDrawROI/index.js +0 -322
  404. package/es/useEventEmitterHandle/index.d.ts +0 -2
  405. package/es/useEventEmitterHandle/index.js +0 -17
  406. package/es/useFullscreen/demo.d.ts +0 -2
  407. package/es/useFullscreen/demo.js +0 -48
  408. package/es/useFullscreen/index.d.ts +0 -12
  409. package/es/useFullscreen/index.js +0 -76
  410. package/es/useHistory/index.d.ts +0 -3
  411. package/es/useHistory/index.js +0 -9
  412. package/es/useHistory/interface.d.ts +0 -3
  413. package/es/useInfiniteScroll/index.d.ts +0 -16
  414. package/es/useInfiniteScroll/index.js +0 -101
  415. package/es/useRafInterval/index.d.ts +0 -5
  416. package/es/useRafInterval/index.js +0 -70
  417. package/es/useSimpleState/index.d.ts +0 -3
  418. package/es/useSimpleState/index.js +0 -36
  419. package/es/useVirtualList/index.d.ts +0 -13
  420. package/es/useVirtualList/index.js +0 -139
  421. package/es/utils.d.ts +0 -14
  422. package/es/utils.js +0 -75
  423. package/es/uuid/index.d.ts +0 -4
  424. package/es/uuid/index.js +0 -15
@@ -1,34 +0,0 @@
1
- .lm-player-container {
2
- position: relative;
3
- width: 100%;
4
- height: 100%;
5
- background: #000;
6
- box-sizing: border-box;
7
-
8
- .lm-player-iconfont {
9
- color: #fff;
10
- }
11
-
12
- .fps-play-canvas {
13
- position: absolute;
14
- top: 0;
15
- left: 0;
16
- width: 100%;
17
- height: 100%;
18
- background-color: #000;
19
- }
20
-
21
- .player-mask-layout {
22
- width: 100%;
23
- height: 100%;
24
- overflow: hidden;
25
-
26
- & > video {
27
- display: block;
28
- width: 100%;
29
- height: 100%;
30
- pointer-events: none;
31
- background: #000;
32
- }
33
- }
34
- }
@@ -1,56 +0,0 @@
1
- .lm-player-message-mask {
2
- position: absolute;
3
- top: 0;
4
- left: 0;
5
- z-index: -1;
6
- display: flex;
7
- width: 100%;
8
- height: 100%;
9
- pointer-events: none;
10
- background: transparent;
11
- opacity: 0;
12
- transition: all .5s;
13
- align-items: center;
14
- justify-content: center;
15
- flex-direction: column;
16
-
17
- &.lm-player-mask-loading-animation {
18
- z-index: 1;
19
- background: rgb(0 0 0 / 60%);
20
- opacity: 1;
21
- }
22
-
23
- .lm-player-loading-icon {
24
- position: relative;
25
- z-index: -1;
26
- font-size: 48px;
27
- visibility: hidden;
28
-
29
- &.lm-player-loading-animation {
30
- z-index: 9;
31
- visibility: visible;
32
- animation: loading-animation-frames 1s linear infinite;
33
- }
34
-
35
- &.lm-player-loadfail {
36
- z-index: 9;
37
- visibility: visible;
38
- }
39
- }
40
-
41
- .lm-player-message {
42
- padding: 10px;
43
- font-size: 16px;
44
- color: #fff;
45
- }
46
- }
47
-
48
- @keyframes loading-animation-frames {
49
- from {
50
- transform: rotate(0deg);
51
- }
52
-
53
- to {
54
- transform: rotate(360deg);
55
- }
56
- }
@@ -1,106 +0,0 @@
1
- .slider-layout {
2
- position: relative;
3
- display: flex;
4
- width: 100%;
5
- height: 100%;
6
- user-select: none;
7
- justify-content: center;
8
- align-items: center;
9
-
10
- .slider-content {
11
- position: relative;
12
- width: 100%;
13
- height: 2px;
14
- overflow: hidden;
15
- cursor: pointer;
16
- transition: height .2s;
17
- }
18
-
19
- .slider-other-content {
20
- position: absolute;
21
- top: 50%;
22
- left: 0;
23
- z-index: 9;
24
- width: 100%;
25
- height: 2px;
26
- pointer-events: none;
27
- cursor: pointer;
28
- transform: translateY(-50%);
29
- transition: height .2s;
30
- }
31
-
32
- .slider-max-line {
33
- position: absolute;
34
- top: 0;
35
- left: 0;
36
- z-index: 1;
37
- width: 100%;
38
- height: 100%;
39
- background-color: #000;
40
- border-radius: 4px;
41
- }
42
-
43
- .slider-visibel-line {
44
- position: absolute;
45
- top: 0;
46
- left: 0;
47
- z-index: 3;
48
- width: 100%;
49
- height: 100%;
50
- cursor: pointer;
51
- background: #5b7eac;
52
- border-radius: 4px;
53
- }
54
-
55
- .slider-current-line {
56
- position: absolute;
57
- top: 0;
58
- left: 0;
59
- z-index: 3;
60
- width: 100%;
61
- height: 100%;
62
- background-color: #fa0;
63
- border-radius: 4px;
64
- }
65
-
66
- .drag-change-icon {
67
- position: absolute;
68
- top: -3px;
69
- width: 6px;
70
- height: 6px;
71
- margin-left: -3px;
72
- pointer-events: all;
73
- background-color: #fa0;
74
- border: 1px solid #fff;
75
- border-radius: 50%;
76
- box-sizing: content-box;
77
- }
78
-
79
- &:hover {
80
- .slider-content,
81
- .slider-other-content {
82
- height: 4px;
83
- }
84
-
85
- .drag-change-icon {
86
- top: -4px;
87
- width: 10px;
88
- height: 10px;
89
- margin-left: -5px;
90
- }
91
- }
92
- }
93
-
94
- .lm-player-slide-tips {
95
- position: absolute;
96
- top: -26px;
97
- left: 0;
98
- z-index: 99;
99
- padding: 2px 4px;
100
- font-size: 12px;
101
- color: #fff;
102
- white-space: nowrap;
103
- background: rgb(0 0 0 / 60%);
104
- border-radius: 4px;
105
- transform: translate(-50%,-100%);
106
- }
@@ -1,116 +0,0 @@
1
- .player-timeline-layout {
2
- position: absolute;
3
- bottom: 28px;
4
- left: 0;
5
- z-index: 9;
6
- display: flex;
7
- width: 100%;
8
- height: 20px;
9
- cursor: pointer;
10
- background: rgb(0 0 0 / 100%);
11
- opacity: .8;
12
- justify-content: center;
13
- align-items: center;
14
- transition: all .1s;
15
-
16
- &.hide-time-line {
17
- bottom: 0;
18
- height: 4px;
19
- }
20
-
21
- .buffer-line {
22
- position: absolute;
23
- top: 0;
24
- left: 0;
25
- height: 100%;
26
- max-width: 100%;
27
- pointer-events: none;
28
- background-color: rgb(103 103 103);
29
- }
30
-
31
- .current-line {
32
- position: absolute;
33
- top: 0;
34
- left: 0;
35
- height: 100%;
36
- max-width: 100%;
37
- overflow: hidden;
38
- pointer-events: none;
39
- background-color: rgb(70 97 255 / 100%);
40
- }
41
-
42
- &.player-segment-timeline-layout {
43
- background: transparent;
44
-
45
- .segment-line-box {
46
- display: flex;
47
- width: 100%;
48
- height: 100%;
49
-
50
- .segment-line-item {
51
- position: relative;
52
- background: rgb(0 0 0 / 100%);
53
- box-sizing: border-box;
54
-
55
- &:hover {
56
- &::after {
57
- position: absolute;
58
- top: 0;
59
- left: 0;
60
- z-index: 6;
61
- width: 100%;
62
- height: 100%;
63
- border: 1px solid #fff;
64
- content: ' ';
65
- }
66
- }
67
-
68
- &.segment-line-item-none {
69
- z-index: 6;
70
- cursor: not-allowed;
71
- background: rgb(222 14 14 / 100%);
72
- }
73
- }
74
- }
75
-
76
- .segment-line-mark {
77
- position: absolute;
78
- width: 2px;
79
- height: 100%;
80
- pointer-events: none;
81
- background-color: #fff;
82
- }
83
- }
84
-
85
- &.frontend-player-timeline-layout {
86
- .frontend-line-mark {
87
- position: absolute;
88
- width: 2px;
89
- height: 100%;
90
- pointer-events: none;
91
- background-color: #fff;
92
- }
93
-
94
- .frontend-line-tip-box {
95
- position: absolute;
96
- top: -130px;
97
- width: max-content;
98
- padding: 10px;
99
- margin-left: -81px;
100
- font-size: 12px;
101
- line-height: 20px;
102
- color: #fff;
103
- background-color: rgb(0 0 0 / 65%);
104
- border-radius: 3px;
105
- }
106
- }
107
- }
108
-
109
- .segment-line-tip-box {
110
- font-size: 12px;
111
-
112
- div {
113
- padding: 2px 0;
114
- margin: 0;
115
- }
116
- }
@@ -1,24 +0,0 @@
1
- .lm-player-volume-popup {
2
- .cloudapp-tooltip-inner {
3
- display: flex;
4
- width: 30px;
5
- height: 130px;
6
- padding: 12px 6px;
7
- text-align: center;
8
- border-radius: 15px;
9
- justify-content: center;
10
- }
11
-
12
- .cloudapp-slider-vertical {
13
- margin: 0;
14
- }
15
-
16
- .cloudapp-slider-track {
17
- background-color: var(--primary);
18
- }
19
-
20
- .cloudapp-slider-handle {
21
- background-color: var(--primary);
22
- border-color: var(--gray1);
23
- }
24
- }
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import './style/timeline.less';
3
- export declare function useTimes(): number[];
4
- declare function TimeLine(): JSX.Element;
5
- export default TimeLine;
@@ -1,98 +0,0 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
12
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
- import React, { useContext, useMemo, useState } from 'react';
14
- import { Context } from "./context";
15
- import useBarStatus from "./contraller_bar/useBarStatus";
16
- import { useVideoEvent } from "./event";
17
- import "./style/timeline.less";
18
- import { jsx as _jsx } from "react/jsx-runtime";
19
- import { jsxs as _jsxs } from "react/jsx-runtime";
20
- export function useTimes() {
21
- var _useContext = useContext(Context),
22
- api = _useContext.api,
23
- isFpsPlay = _useContext.isFpsPlay;
24
- var _useState = useState({
25
- currentTime: 0,
26
- buffered: 0
27
- }),
28
- _useState2 = _slicedToArray(_useState, 2),
29
- state = _useState2[0],
30
- setState = _useState2[1];
31
- var getCurrentTime = function getCurrentTime() {
32
- return setState(function (old) {
33
- var _api$getCurrentTime, _api$getSecondsLoaded;
34
- return _objectSpread(_objectSpread({}, old), {}, {
35
- currentTime: (_api$getCurrentTime = api === null || api === void 0 ? void 0 : api.getCurrentTime()) !== null && _api$getCurrentTime !== void 0 ? _api$getCurrentTime : 0,
36
- buffered: (_api$getSecondsLoaded = api === null || api === void 0 ? void 0 : api.getSecondsLoaded()) !== null && _api$getSecondsLoaded !== void 0 ? _api$getSecondsLoaded : 0
37
- });
38
- });
39
- };
40
- var getBuffered = function getBuffered() {
41
- return setState(function (old) {
42
- var _api$getSecondsLoaded2;
43
- return _objectSpread(_objectSpread({}, old), {}, {
44
- buffered: (_api$getSecondsLoaded2 = api === null || api === void 0 ? void 0 : api.getSecondsLoaded()) !== null && _api$getSecondsLoaded2 !== void 0 ? _api$getSecondsLoaded2 : 0
45
- });
46
- });
47
- };
48
- var seekendPlay = function seekendPlay() {
49
- return !isFpsPlay && (api === null || api === void 0 ? void 0 : api.play());
50
- };
51
- useVideoEvent('timeupdate', getCurrentTime);
52
- useVideoEvent('progress', getBuffered);
53
- useVideoEvent('suspend', getBuffered);
54
- useVideoEvent('seeked', seekendPlay);
55
- return useMemo(function () {
56
- var _api$getDuration;
57
- return [state.currentTime, state.buffered, (_api$getDuration = api === null || api === void 0 ? void 0 : api.getDuration()) !== null && _api$getDuration !== void 0 ? _api$getDuration : 0];
58
- }, [state.currentTime, state.buffered, api]);
59
- }
60
- function TimeLine() {
61
- var _useContext2 = useContext(Context),
62
- api = _useContext2.api;
63
- var status = useBarStatus();
64
- var _useTimes = useTimes(),
65
- _useTimes2 = _slicedToArray(_useTimes, 3),
66
- currentTime = _useTimes2[0],
67
- buffered = _useTimes2[1],
68
- duration = _useTimes2[2];
69
- var playPercent = useMemo(function () {
70
- return currentTime / duration * 100;
71
- }, [currentTime, duration]);
72
- var bufferedPercent = useMemo(function () {
73
- return buffered / duration * 100;
74
- }, [buffered, duration]);
75
- var seekWithLine = function seekWithLine(e) {
76
- var _api$getDuration2;
77
- var rect = e.currentTarget.getBoundingClientRect();
78
- var current = e.pageX - rect.left;
79
- var cTime = current / rect.width * ((_api$getDuration2 = api === null || api === void 0 ? void 0 : api.getDuration()) !== null && _api$getDuration2 !== void 0 ? _api$getDuration2 : 0);
80
- api === null || api === void 0 ? void 0 : api.seekTo(cTime);
81
- };
82
- return /*#__PURE__*/_jsxs("div", {
83
- className: "player-timeline-layout ".concat(status === 0 ? 'hide-time-line' : ''),
84
- onClick: seekWithLine,
85
- children: [/*#__PURE__*/_jsx("div", {
86
- className: "buffer-line",
87
- style: {
88
- width: "".concat(bufferedPercent, "%")
89
- }
90
- }), /*#__PURE__*/_jsx("div", {
91
- className: "current-line",
92
- style: {
93
- width: "".concat(playPercent, "%")
94
- }
95
- })]
96
- });
97
- }
98
- export default TimeLine;
@@ -1,43 +0,0 @@
1
- import Flvjs from '@cloud-app-dev/mpegts.js';
2
- import Hls, { HlsConfig } from 'hls.js';
3
- import type VideoEventInstance from './event';
4
- import type { FlvPlayerConfig } from './player';
5
- /**
6
- * 创建HLS对象
7
- * @param {*} video
8
- * @param {*} URL
9
- */
10
- export declare function createHlsPlayer(video: HTMLVideoElement, url?: string, isLive?: boolean, hlsConfig?: HlsConfig): Hls | undefined;
11
- /**
12
- * 创建FLV对象
13
- * @param {*} video
14
- * @param {*} options
15
- */
16
- export declare function createFlvPlayer(video: HTMLVideoElement, url?: string, isLive?: boolean, flvConfig?: FlvPlayerConfig): Flvjs.Player | undefined;
17
- /**
18
- * video unload
19
- * @param video
20
- * @param flv
21
- * @param hls
22
- * @returns
23
- */
24
- export declare const playUnload: (video?: HTMLVideoElement, flv?: Flvjs.Player, hls?: Hls) => void;
25
- /**
26
- * reload
27
- * @param video
28
- * @param event
29
- * @param flv
30
- * @param hls
31
- * @param url
32
- */
33
- export declare const playReload: (video?: HTMLVideoElement, event?: VideoEventInstance, flv?: Flvjs.Player, hls?: Hls, url?: string) => undefined;
34
- /**
35
- * 获取播放文件类型
36
- * @param {*} url
37
- */
38
- export declare function getVideoType(url?: string): "flv" | "native" | "hls";
39
- export declare function timeStamp(second: number): string;
40
- export declare function getRandom(): string;
41
- export declare const FMT = "YYYY-MM-DD HH:mm:ss";
42
- export declare function getDomStyleValue(dom: HTMLElement, styleKey: string): string;
43
- export declare function createProxy<T>(obj: T, getObj?: any): T;