@cloud-app-dev/vidc 4.0.15 → 4.1.0

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 (329) hide show
  1. package/.dumirc.ts +2 -18
  2. package/.eslintrc.js +3 -0
  3. package/.fatherrc.ts +0 -7
  4. package/es/AppContext/Sync.d.ts +1 -2
  5. package/es/AppContext/index.d.ts +10 -3
  6. package/es/AppContext/index.js +14 -4
  7. package/es/AppContext/interface.d.ts +1 -0
  8. package/es/CheckGroupFixed/demo.d.ts +1 -2
  9. package/es/CheckGroupFixed/demo.js +7 -12
  10. package/es/CheckGroupFixed/index.d.ts +7 -3
  11. package/es/CheckGroupFixed/index.js +9 -9
  12. package/es/CheckGroupFixed/style.d.ts +6 -0
  13. package/es/CheckGroupFixed/style.js +9 -0
  14. package/es/Config/index.js +1 -1
  15. package/es/CustomRenderSelect/index.d.ts +3 -2
  16. package/es/CustomRenderSelect/index.js +13 -10
  17. package/es/DBTools/index.js +1 -2
  18. package/es/DisableMark/index.d.ts +1 -2
  19. package/es/DisableMark/index.js +5 -2
  20. package/es/DomMove/demo.d.ts +1 -2
  21. package/es/DomMove/demo.js +0 -1
  22. package/es/DomMove/index.js +7 -8
  23. package/es/DynamicGridList/demo.d.ts +2 -0
  24. package/es/DynamicGridList/index.d.ts +1 -1
  25. package/es/DynamicGridList/index.js +3 -3
  26. package/es/DynamicList/demo.d.ts +1 -2
  27. package/es/DynamicList/demo.js +14 -19
  28. package/es/DynamicList/index.d.ts +1 -2
  29. package/es/DynamicList/index.js +10 -8
  30. package/es/ErrorFallback/index.d.ts +1 -2
  31. package/es/EventTools/index.d.ts +1 -1
  32. package/es/GridList/demo.d.ts +2 -0
  33. package/es/GridList/{Demo.js → demo.js} +1 -1
  34. package/es/GridList/hook.js +2 -2
  35. package/es/GridList/index.d.ts +0 -1
  36. package/es/GridList/index.js +5 -2
  37. package/es/HightLevel/index.d.ts +1 -2
  38. package/es/HightLevel/index.js +2 -3
  39. package/es/IconFont/index.d.ts +1 -1
  40. package/es/LabelValue/index.d.ts +1 -2
  41. package/es/LabelValue/index.js +5 -2
  42. package/es/List/demo.d.ts +1 -2
  43. package/es/List/demo.js +1 -2
  44. package/es/List/index.d.ts +2 -3
  45. package/es/List/index.js +25 -17
  46. package/es/ListWithSizeAnimate/demo.d.ts +1 -2
  47. package/es/ListWithSizeAnimate/index.d.ts +0 -1
  48. package/es/ListWithSizeAnimate/index.js +19 -10
  49. package/es/LoaderScript/index.d.ts +1 -1
  50. package/es/Picture/component/DefaultRects/RectInfo.d.ts +1 -2
  51. package/es/Picture/component/DefaultRects/RectInfo.js +6 -4
  52. package/es/Picture/component/DefaultRects/index.d.ts +1 -3
  53. package/es/Picture/component/DefaultRects/index.js +5 -5
  54. package/es/Picture/component/DefaultRects/style.d.ts +10 -0
  55. package/es/Picture/component/DefaultRects/style.js +28 -0
  56. package/es/Picture/component/DrawRect/index.d.ts +1 -3
  57. package/es/Picture/component/DrawRect/index.js +6 -3
  58. package/es/Picture/component/RectMenu/index.d.ts +1 -3
  59. package/es/Picture/component/RectMenu/index.js +13 -8
  60. package/es/Picture/component/Tools/index.d.ts +1 -2
  61. package/es/Picture/component/Tools/index.js +21 -9
  62. package/es/Picture/component/Tools/style.d.ts +2 -0
  63. package/es/Picture/component/Tools/style.js +5 -0
  64. package/es/Picture/component/WheelScale/index.d.ts +1 -2
  65. package/es/Picture/demo.d.ts +1 -2
  66. package/es/Picture/demo.js +1 -1
  67. package/es/Picture/index.d.ts +1 -3
  68. package/es/Picture/index.js +21 -19
  69. package/es/Picture/useDraw.js +4 -4
  70. package/es/Player/api/index.d.ts +1 -1
  71. package/es/Player/api/index.js +44 -18
  72. package/es/Player/context.d.ts +1 -1
  73. package/es/Player/contraller_bar/bar.d.ts +1 -1
  74. package/es/Player/contraller_bar/bar.js +5 -1
  75. package/es/Player/contraller_bar/contraller_event.d.ts +1 -1
  76. package/es/Player/contraller_bar/contraller_event.js +4 -5
  77. package/es/Player/contraller_bar/index.d.ts +1 -2
  78. package/es/Player/contraller_bar/index.js +8 -2
  79. package/es/Player/contraller_bar/left_bar.d.ts +1 -1
  80. package/es/Player/contraller_bar/left_bar.js +12 -3
  81. package/es/Player/contraller_bar/right_bar.d.ts +1 -1
  82. package/es/Player/contraller_bar/right_bar.js +1 -2
  83. package/es/Player/contraller_bar/time.d.ts +1 -2
  84. package/es/Player/contraller_bar/time.js +5 -2
  85. package/es/Player/contraller_bar/volume.d.ts +1 -2
  86. package/es/Player/contraller_bar/volume.js +11 -6
  87. package/es/Player/demo.d.ts +1 -2
  88. package/es/Player/demo.js +41 -29
  89. package/es/Player/empty.d.ts +1 -2
  90. package/es/Player/empty.js +0 -1
  91. package/es/Player/event/index.d.ts +1 -1
  92. package/es/Player/event/index.js +4 -3
  93. package/es/Player/fps_play.d.ts +1 -2
  94. package/es/Player/fps_play.js +6 -2
  95. package/es/Player/frontend_player.d.ts +1 -2
  96. package/es/Player/frontend_player.js +4 -5
  97. package/es/Player/frontend_timeline.d.ts +1 -3
  98. package/es/Player/frontend_timeline.js +16 -8
  99. package/es/Player/iconfont.d.ts +1 -2
  100. package/es/Player/iconfont.js +1 -2
  101. package/es/Player/live_heart.js +8 -9
  102. package/es/Player/message.d.ts +2 -4
  103. package/es/Player/message.js +16 -7
  104. package/es/Player/player.d.ts +2 -0
  105. package/es/Player/segment_player.d.ts +1 -2
  106. package/es/Player/segment_player.js +4 -5
  107. package/es/Player/segment_timeline.d.ts +1 -3
  108. package/es/Player/segment_timeline.js +19 -9
  109. package/es/Player/single_player.d.ts +0 -1
  110. package/es/Player/single_player.js +18 -15
  111. package/es/Player/timeline.d.ts +5 -3
  112. package/es/Player/timeline.js +10 -4
  113. package/es/Player/util.d.ts +2 -2
  114. package/es/Player/util.js +2 -2
  115. package/es/PlayerExt/demo.d.ts +1 -2
  116. package/es/PlayerExt/demo.js +3 -3
  117. package/es/PlayerExt/index.d.ts +1 -2
  118. package/es/PlayerExt/index.js +10 -5
  119. package/es/Progress/index.d.ts +1 -3
  120. package/es/Progress/index.js +7 -3
  121. package/es/ROI/demo.d.ts +1 -2
  122. package/es/ROI/demo.js +1 -2
  123. package/es/ROI/index.d.ts +1 -2
  124. package/es/ROI/index.js +17 -7
  125. package/es/RefDrawer/Footer.d.ts +1 -1
  126. package/es/RefDrawer/index.d.ts +1 -1
  127. package/es/RefDrawer/index.js +2 -2
  128. package/es/RefModal/demo.d.ts +1 -2
  129. package/es/RefModal/index.d.ts +1 -1
  130. package/es/RefModal/index.js +2 -2
  131. package/es/ScreenPlayer/Live.d.ts +1 -3
  132. package/es/ScreenPlayer/Live.js +10 -11
  133. package/es/ScreenPlayer/LiveTools.d.ts +5 -1
  134. package/es/ScreenPlayer/LiveTools.js +14 -9
  135. package/es/ScreenPlayer/PlayerWithExt.d.ts +3 -3
  136. package/es/ScreenPlayer/PlayerWithExt.js +14 -13
  137. package/es/ScreenPlayer/RatePick.d.ts +1 -2
  138. package/es/ScreenPlayer/RatePick.js +9 -4
  139. package/es/ScreenPlayer/Record.d.ts +1 -3
  140. package/es/ScreenPlayer/Record.js +27 -22
  141. package/es/ScreenPlayer/RecordTools.d.ts +1 -1
  142. package/es/ScreenPlayer/RecordTools.js +11 -13
  143. package/es/ScreenPlayer/ScreenSelect.d.ts +1 -2
  144. package/es/ScreenPlayer/ScreenSelect.js +11 -3
  145. package/es/ScreenPlayer/SegmentTimeLine.d.ts +1 -2
  146. package/es/ScreenPlayer/SegmentTimeLine.js +12 -6
  147. package/es/ScreenPlayer/TimeMode.d.ts +1 -2
  148. package/es/ScreenPlayer/TimeMode.js +7 -3
  149. package/es/ScreenPlayer/TimeSelect.d.ts +1 -2
  150. package/es/ScreenPlayer/TimeSelect.js +10 -5
  151. package/es/ScreenPlayer/containerStyle.d.ts +13 -0
  152. package/es/ScreenPlayer/containerStyle.js +32 -0
  153. package/es/ScreenPlayer/demo.d.ts +1 -2
  154. package/es/ScreenPlayer/demo.js +8 -13
  155. package/es/ScreenPlayer/demo2.d.ts +1 -2
  156. package/es/ScreenPlayer/demo2.js +112 -116
  157. package/es/ScreenPlayer/index.d.ts +2 -2
  158. package/es/ScreenPlayer/useTimeSlider.d.ts +2 -2
  159. package/es/ScreenPlayer/useTimeSlider.js +16 -15
  160. package/es/ScreenPlayer/useVideoFit.js +2 -2
  161. package/es/SocketEmitter/eventEmitter.d.ts +1 -1
  162. package/es/TableLayout/index.d.ts +1 -2
  163. package/es/TableLayout/index.js +7 -4
  164. package/es/Timeout/index.d.ts +1 -2
  165. package/es/Timeout/index.js +4 -5
  166. package/es/cache/index.d.ts +1 -1
  167. package/es/cache/index.js +21 -21
  168. package/es/index.d.ts +3 -11
  169. package/es/index.js +3 -11
  170. package/es/likeGo/index.d.ts +2 -0
  171. package/es/{Map/Config/utils.js → likeGo/index.js} +15 -49
  172. package/es/likeGoSync/index.d.ts +2 -0
  173. package/es/likeGoSync/index.js +10 -0
  174. package/es/logger/index.d.ts +4 -4
  175. package/es/nextTick/index.d.ts +1 -1
  176. package/es/nextTick/index.js +2 -6
  177. package/es/recorder/demo.d.ts +2 -0
  178. package/es/recorder/demo.js +200 -0
  179. package/es/recorder/index.d.ts +294 -0
  180. package/es/recorder/index.js +991 -0
  181. package/es/useDrawROI/index.js +8 -12
  182. package/es/useEventEmitterHandle/index.js +2 -2
  183. package/es/useInfiniteScroll/index.d.ts +1 -1
  184. package/es/useInfiniteScroll/index.js +8 -7
  185. package/es/useRafInterval/index.js +2 -2
  186. package/es/useSimpleState/index.js +3 -4
  187. package/es/useVirtualList/index.d.ts +1 -1
  188. package/es/useVirtualList/index.js +5 -8
  189. package/es/utils.d.ts +4 -4
  190. package/es/utils.js +1 -30
  191. package/es/uuid/index.d.ts +2 -1
  192. package/es/uuid/index.js +3 -12
  193. package/package.json +36 -37
  194. package/release-build.sh +3 -2
  195. package/scripts/{entry.js → entry.mjs} +4 -6
  196. package/{icon-fix.js → scripts/icon-fix.mjs} +4 -3
  197. package/tsconfig.json +1 -1
  198. package/es/Auth/index.d.ts +0 -8
  199. package/es/Auth/index.js +0 -18
  200. package/es/AutoExit/index.d.ts +0 -6
  201. package/es/AutoExit/index.js +0 -23
  202. package/es/CheckGroupFixed/index.less +0 -53
  203. package/es/ConfigContext/index.d.ts +0 -22
  204. package/es/ConfigContext/index.js +0 -25
  205. package/es/CustomRenderSelect/index.less +0 -25
  206. package/es/DisableMark/index.less +0 -9
  207. package/es/DynamicGridList/Demo.d.ts +0 -3
  208. package/es/DynamicList/index.less +0 -17
  209. package/es/FullScreen/index.d.ts +0 -22
  210. package/es/FullScreen/index.js +0 -36
  211. package/es/FullScreen/index.less +0 -18
  212. package/es/GridList/Demo.d.ts +0 -3
  213. package/es/GridList/index.less +0 -8
  214. package/es/HightLevel/index.less +0 -3
  215. package/es/ImageView/index.d.ts +0 -17
  216. package/es/ImageView/index.js +0 -58
  217. package/es/ImageView/index.less +0 -11
  218. package/es/LabelPlayer/111.png +0 -0
  219. package/es/LabelPlayer/demo.d.ts +0 -2
  220. package/es/LabelPlayer/demo.js +0 -123
  221. package/es/LabelPlayer/index.d.ts +0 -21
  222. package/es/LabelPlayer/index.js +0 -169
  223. package/es/LabelPlayer/index.less +0 -24
  224. package/es/LabelValue/index.less +0 -23
  225. package/es/List/index.less +0 -13
  226. package/es/ListWithSizeAnimate/index.less +0 -23
  227. package/es/Map/AMap.d.ts +0 -7109
  228. package/es/Map/BasicMap/AMapInstance.d.ts +0 -19
  229. package/es/Map/BasicMap/AMapInstance.js +0 -98
  230. package/es/Map/BasicMap/LeafletInstance.d.ts +0 -18
  231. package/es/Map/BasicMap/LeafletInstance.js +0 -111
  232. package/es/Map/BasicMap/index.d.ts +0 -9
  233. package/es/Map/BasicMap/index.js +0 -98
  234. package/es/Map/BasicMap/index.less +0 -29
  235. package/es/Map/ClusterLayer/demo.d.ts +0 -3
  236. package/es/Map/ClusterLayer/demo.js +0 -22
  237. package/es/Map/ClusterLayer/hook.d.ts +0 -5
  238. package/es/Map/ClusterLayer/hook.js +0 -124
  239. package/es/Map/ClusterLayer/index.d.ts +0 -6
  240. package/es/Map/ClusterLayer/index.js +0 -32
  241. package/es/Map/ClusterLayer/index.less +0 -29
  242. package/es/Map/ClusterLayer/props.d.ts +0 -8
  243. package/es/Map/Config/index.d.ts +0 -9
  244. package/es/Map/Config/index.js +0 -52
  245. package/es/Map/Config/utils.d.ts +0 -2
  246. package/es/Map/Context/index.d.ts +0 -11
  247. package/es/Map/Context/index.js +0 -56
  248. package/es/Map/FindPio/index.d.ts +0 -4
  249. package/es/Map/FindPio/index.js +0 -14
  250. package/es/Map/FindPio/index.less +0 -7
  251. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -4
  252. package/es/Map/InfoWindow/MakerLikeWindow.js +0 -113
  253. package/es/Map/InfoWindow/demo.d.ts +0 -3
  254. package/es/Map/InfoWindow/demo.js +0 -76
  255. package/es/Map/InfoWindow/index.d.ts +0 -11
  256. package/es/Map/InfoWindow/index.js +0 -67
  257. package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -10
  258. package/es/Map/LevelCenter/DragMarker/index.js +0 -44
  259. package/es/Map/LevelCenter/demo.d.ts +0 -3
  260. package/es/Map/LevelCenter/demo.js +0 -46
  261. package/es/Map/LevelCenter/index.d.ts +0 -15
  262. package/es/Map/LevelCenter/index.js +0 -71
  263. package/es/Map/LoaderMap/index.d.ts +0 -12
  264. package/es/Map/LoaderMap/index.js +0 -71
  265. package/es/Map/MapDrawSelect/demo.d.ts +0 -3
  266. package/es/Map/MapDrawSelect/demo.js +0 -79
  267. package/es/Map/MapDrawSelect/index.d.ts +0 -15
  268. package/es/Map/MapDrawSelect/index.js +0 -62
  269. package/es/Map/MouseTool/index.d.ts +0 -10
  270. package/es/Map/MouseTool/index.js +0 -44
  271. package/es/Map/MouseTool/useMouseTools.d.ts +0 -7
  272. package/es/Map/MouseTool/useMouseTools.js +0 -83
  273. package/es/Map/ResetTools/index.d.ts +0 -10
  274. package/es/Map/ResetTools/index.js +0 -67
  275. package/es/Map/ResetTools/index.less +0 -39
  276. package/es/Map/SinglePoint/demo.d.ts +0 -3
  277. package/es/Map/SinglePoint/demo.js +0 -16
  278. package/es/Map/SinglePoint/index.d.ts +0 -27
  279. package/es/Map/SinglePoint/index.js +0 -57
  280. package/es/Map/SinglePoint/index.less +0 -41
  281. package/es/Map/hook/useMapEvent.d.ts +0 -2
  282. package/es/Map/hook/useMapEvent.js +0 -19
  283. package/es/Map/hook/useMapType.d.ts +0 -4
  284. package/es/Map/hook/useMapType.js +0 -12
  285. package/es/Map/icon.d.ts +0 -2
  286. package/es/Map/icon.js +0 -10
  287. package/es/Map/index.d.ts +0 -24
  288. package/es/Map/index.js +0 -25
  289. package/es/Map/interface.d.ts +0 -74
  290. package/es/Map/points.d.ts +0 -74
  291. package/es/Map/points.js +0 -1
  292. package/es/Map/useMarker/index.d.ts +0 -10
  293. package/es/Map/useMarker/index.js +0 -71
  294. package/es/Map/withMap/index.d.ts +0 -3
  295. package/es/Map/withMap/index.js +0 -18
  296. package/es/Picture/component/DefaultRects/index.less +0 -211
  297. package/es/Picture/component/DrawRect/index.less +0 -8
  298. package/es/Picture/component/RectMenu/index.less +0 -36
  299. package/es/Picture/component/Tools/index.less +0 -49
  300. package/es/Picture/index.less +0 -20
  301. package/es/Player/style/bar.less +0 -43
  302. package/es/Player/style/index.less +0 -34
  303. package/es/Player/style/message.less +0 -56
  304. package/es/Player/style/slider.less +0 -106
  305. package/es/Player/style/timeline.less +0 -116
  306. package/es/Player/style/volume.less +0 -24
  307. package/es/PlayerExt/index.less +0 -10
  308. package/es/Progress/index.less +0 -21
  309. package/es/ROI/index.less +0 -33
  310. package/es/ScreenPlayer/index.less +0 -335
  311. package/es/TableLayout/index.less +0 -4
  312. package/es/ThemeAntd/demo.d.ts +0 -4
  313. package/es/ThemeAntd/demo.js +0 -129
  314. package/es/ThemeAntd/demo.less +0 -20
  315. package/es/ThemeAntd/index.d.ts +0 -7
  316. package/es/ThemeAntd/index.js +0 -23
  317. package/es/ThemeAntd/index.less +0 -4
  318. package/es/VList/index.d.ts +0 -11
  319. package/es/VList/index.js +0 -42
  320. package/es/VList/index.less +0 -6
  321. package/es/VList/utils.d.ts +0 -14
  322. package/es/VList/utils.js +0 -17
  323. package/es/bigNumberTransformCN/index.d.ts +0 -5
  324. package/es/bigNumberTransformCN/index.js +0 -60
  325. package/es/useFullscreen/demo.d.ts +0 -2
  326. package/es/useFullscreen/demo.js +0 -48
  327. package/es/useFullscreen/index.d.ts +0 -12
  328. package/es/useFullscreen/index.js +0 -76
  329. /package/es/DynamicGridList/{Demo.js → demo.js} +0 -0
@@ -1,10 +0,0 @@
1
- /// <reference path="../AMap.d.ts" />
2
- import { Map } from '../interface';
3
- export interface IUseMarkerProps {
4
- map: Map;
5
- center: [number, number];
6
- createIcon: (options?: any) => any;
7
- options?: AMap.MarkerOptions;
8
- }
9
- declare function useMarker({ map, center, createIcon, options }: IUseMarkerProps): any;
10
- export default useMarker;
@@ -1,71 +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
- // eslint-disable-next-line @typescript-eslint/triple-slash-reference
14
- /// <reference path="../AMap.d.ts" />
15
-
16
- import { useEffect, useRef, useState } from 'react';
17
- import useMapType from "../hook/useMapType";
18
- function useMarker(_ref) {
19
- var map = _ref.map,
20
- center = _ref.center,
21
- createIcon = _ref.createIcon,
22
- options = _ref.options;
23
- var _useState = useState({
24
- marker: null
25
- }),
26
- _useState2 = _slicedToArray(_useState, 2),
27
- state = _useState2[0],
28
- setState = _useState2[1];
29
- var inMap = useRef(false);
30
- var type = useMapType();
31
- useEffect(function () {
32
- if (!(center && center.length === 2) || !map) {
33
- return;
34
- }
35
- if (type.leaflet) {
36
- var L = window.L;
37
- var latlng = L.latLng(center);
38
- if (inMap.current) {
39
- state.marker.setLatLng(latlng);
40
- } else {
41
- var marker = L.marker(latlng, {
42
- icon: createIcon(),
43
- draggable: true,
44
- zIndexOffset: 10
45
- });
46
- map.addLayer(marker);
47
- setState({
48
- marker: marker
49
- });
50
- inMap.current = true;
51
- }
52
- }
53
- if (type.AMap) {
54
- if (inMap.current) {
55
- state.marker.setPosition(center);
56
- } else {
57
- var _marker = new AMap.Marker(_objectSpread({
58
- position: center
59
- }, options));
60
- map.add(_marker);
61
- setState({
62
- marker: _marker
63
- });
64
- inMap.current = true;
65
- }
66
- }
67
- // eslint-disable-next-line react-hooks/exhaustive-deps
68
- }, [center, map, options]);
69
- return state.marker;
70
- }
71
- export default useMarker;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function withMap<P>(Component: any, className?: string): (props: P) => JSX.Element;
3
- export default withMap;
@@ -1,18 +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
- import React from 'react';
8
- import Map from "../BasicMap";
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- function withMap(Component, className) {
11
- return function withMapComponent(props) {
12
- return /*#__PURE__*/_jsx(Map, {
13
- className: className,
14
- children: /*#__PURE__*/_jsx(Component, _objectSpread({}, props))
15
- });
16
- };
17
- }
18
- export default withMap;
@@ -1,211 +0,0 @@
1
- .border-decorator-color-mixin(@color) {
2
- .border-top-decorator {
3
- &::before {
4
- border-top-color: @color;
5
- border-left-color: @color;
6
- }
7
-
8
- &::after {
9
- border-top-color: @color;
10
- border-right-color: @color;
11
- }
12
- }
13
-
14
- .border-bottom-decorator {
15
- &::before {
16
- border-bottom-color: @color;
17
- border-left-color: @color;
18
- }
19
-
20
- &::after {
21
- border-bottom-color: @color;
22
- border-right-color: @color;
23
- }
24
- }
25
- }
26
-
27
- .rect-item-style-mixin(@color, @lightColor, @shadowColor) {
28
- .rect-item {
29
- border-color: @lightColor;
30
- .border-decorator-color-mixin(@color);
31
-
32
- &:hover {
33
- border-color: @color;
34
- box-shadow: inset 0 0 24px 0 @shadowColor;
35
- }
36
- }
37
- }
38
-
39
- .rect-info-list-mixin(@color, @bgColor, @shadowColor) {
40
- .rect-info-list-wrapper {
41
- .data-type {
42
- .data-tag {
43
- background: @bgColor;
44
- border: 1px solid @color;
45
- }
46
- }
47
- // border-color: @color;
48
- // .rect-card-corner {
49
- // color: @color;
50
- // }
51
- // .rect-info-list {
52
- // display: block;
53
- // background: @bgColor;
54
- // box-shadow: inset 0 0 8px 0 @shadowColor;
55
- // }
56
- }
57
- }
58
-
59
- .rect-item-face-wrapper {
60
- .rect-item-style-mixin(#ff5f57, rgba(255, 95, 87, .6), rgba(255, 95, 87, .4));
61
- .rect-info-list-mixin(#FF5F57, rgba(255,95,87,.6), rgba(179,49,43,.6));
62
- }
63
-
64
- .rect-item-body-wrapper {
65
- .rect-item-style-mixin(#ffbb22, rgba(255, 187, 34, .6), rgba(255, 187, 34, .4));
66
- .rect-info-list-mixin(#FFBB22, rgba(255,187,34,.6), rgba(176,94,0,.6));
67
- }
68
-
69
- .rect-item-vehicle-wrapper {
70
- .rect-item-style-mixin(#44aaff, rgba(68, 170, 255, .6), rgba(68, 170, 255, .4));
71
- .rect-info-list-mixin(#44aaff, rgba(68,170,255,.6), rgba(31,114,183,.6));
72
- }
73
-
74
- .rect-item-nonVehicle-wrapper {
75
- .rect-item-style-mixin(#50e9b2, rgba(80, 233, 178, .6), rgba(80, 233, 178, .4));
76
- .rect-info-list-mixin(#50e9b2, rgba(80,233,178,.6), rgba(15,196,132,.6));
77
- }
78
-
79
- .rect-item-thing-wrapper {
80
- .rect-item-style-mixin(#b946d2, rgba(185, 70, 210, .6), rgba(185, 70, 210, .4));
81
- .rect-info-list-mixin(#b946d2, rgba(185, 70, 210, .6), rgba(155, 58, 177, .4));
82
- }
83
-
84
- .rect-item {
85
- position: absolute;
86
- border-width: 1px;
87
- border-style: solid;
88
- cursor: pointer;
89
-
90
- .border-top-decorator,
91
- .border-bottom-decorator {
92
- position: absolute;
93
- width: 100%;
94
- pointer-events: none;
95
-
96
- &::before,
97
- &::after {
98
- display: block;
99
- width: 8px;
100
- height: 8px;
101
- border: 2px solid transparent;
102
- content: '';
103
- }
104
-
105
- &::before {
106
- float: left;
107
- margin-left: -1px;
108
- }
109
-
110
- &::after {
111
- float: right;
112
- margin-right: -1px;
113
- }
114
- }
115
-
116
- .border-top-decorator {
117
- top: 0;
118
-
119
- &::before,
120
- &::after {
121
- margin-top: -1px;
122
- }
123
- }
124
-
125
- .border-bottom-decorator {
126
- bottom: 0;
127
-
128
- &::before,
129
- &::after {
130
- margin-bottom: -1px;
131
- }
132
- }
133
-
134
- &:hover + .rect-info-list-wrapper {
135
- display: block;
136
- }
137
- }
138
-
139
- // 结构化窗体
140
- .rect-info-list-wrapper {
141
- position: absolute;
142
- z-index: 11;
143
- display: none;
144
- padding-top: 5px;
145
- background: rgb(16 21 36 / 80%);
146
- border: 1px solid transparent;
147
-
148
- /* 高低质量 */
149
- .data-type {
150
- padding: 0 5px;
151
- color: #fff;
152
-
153
- .data-tag {
154
- padding: 4px;
155
- margin-right: 4px;
156
- font-size: 12px;
157
-
158
- .anticon {
159
- margin-right: 4px;
160
- color: #fff;
161
- }
162
- }
163
- }
164
-
165
- .rect-card-corner {
166
- position: absolute;
167
- top: -9px;
168
- left: -1px;
169
- }
170
-
171
- .rect-info-arrow {
172
- position: absolute;
173
- top: 6px;
174
- left: -4px;
175
- display: block;
176
- background: transparent;
177
- transform: rotate(45deg);
178
- border-style: solid;
179
- border-width: 4px;
180
- border-color: rgb(16 21 36 / 80%);
181
- }
182
-
183
- .rect-info-list {
184
- height: 100%;
185
- padding: 3px 10px;
186
- border-radius: 2px;
187
-
188
- .info-item {
189
- padding: 3px 0;
190
- overflow: hidden;
191
- font-size: var(--fs-small);
192
- line-height: 18px;
193
- color: #fff;
194
- text-overflow: ellipsis;
195
- white-space: nowrap;
196
-
197
- .anticon {
198
- position: relative;
199
- top: 1px;
200
- padding-right: 4px;
201
- font-size: 16px;
202
- color: #fff;
203
- cursor: default;
204
- }
205
-
206
- .item-label {
207
- margin: 0 4px;
208
- }
209
- }
210
- }
211
- }
@@ -1,8 +0,0 @@
1
- .select-rect-layout {
2
- position: absolute;
3
- border: 1px solid;
4
- box-shadow: 0 0 0 9999em rgb(0 0 0 / 40%);
5
- border-image-source: url('data:image/gif;base64,R0lGODlhCgAKAJECAAAAAP///////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OEI5RDc5MTFDNkE2MTFFM0JCMDZEODI2QTI4MzJBOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OEI5RDc5MTBDNkE2MTFFM0JCMDZEODI2QTI4MzJBOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuZGlkOjAyODAxMTc0MDcyMDY4MTE4MDgzQzNDMjA5MzREQ0ZDIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjAyODAxMTc0MDcyMDY4MTE4MDgzQzNDMjA5MzREQ0ZDIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEBQoAAgAsAAAAAAoACgAAAhWEERkn7W3ei7KlagMWF/dKgYeyGAUAIfkEBQoAAgAsAAAAAAoACgAAAg+UYwLJ7RnQm7QmsCyVKhUAIfkEBQoAAgAsAAAAAAoACgAAAhCUYgLJHdiinNSAVfOEKoUCACH5BAUKAAIALAAAAAAKAAoAAAIRVISAdusPo3RAzYtjaMIaUQAAIfkEBQoAAgAsAAAAAAoACgAAAg+MDiem7Q8bSLFaG5il6xQAIfkEBQoAAgAsAAAAAAoACgAAAg+UYRLJ7QnQm7SmsCyVKhUAIfkEBQoAAgAsAAAAAAoACgAAAhCUYBLJDdiinNSEVfOEKoECACH5BAUKAAIALAAAAAAKAAoAAAIRFISBdusPo3RBzYsjaMIaUQAAOw==');
6
- border-image-repeat: repeat;
7
- border-image-slice: 1;
8
- }
@@ -1,36 +0,0 @@
1
- .select-rect-menu-layout {
2
- position: absolute;
3
- width: 105px;
4
- overflow: hidden;
5
- font-size: var(--fs-small);
6
-
7
- .menu-action-item {
8
- padding: 4px 10px;
9
- margin-bottom: 4px;
10
- color: rgb(0 0 0 / 65%);
11
- white-space: nowrap;
12
- background: #fff;
13
- border-radius: 15px;
14
- box-shadow: 0 0 2px rgb(0 0 0 / 20%);
15
-
16
- .anticon {
17
- padding-right: 2px;
18
- font-size: 16px;
19
- color: #89b;
20
- }
21
-
22
- &:hover {
23
- color: #fff;
24
- cursor: pointer;
25
- background: #fa0;
26
-
27
- .anticon {
28
- color: #fff;
29
- }
30
- }
31
-
32
- &:last-child {
33
- margin-bottom: 0;
34
- }
35
- }
36
- }
@@ -1,49 +0,0 @@
1
- .picture-tools {
2
- position: absolute;
3
- right: 10px;
4
- bottom: 10px;
5
- background: #fff;
6
- box-shadow: 0 2px 5px 0 rgb(0 0 0 / 30%);
7
-
8
- &.actions-change-rotate {
9
- bottom: 150px;
10
- }
11
-
12
- & > div {
13
- width: 30px;
14
- height: 25px;
15
- line-height: 25px;
16
- text-align: center;
17
- cursor: pointer;
18
-
19
- &.disabled {
20
- color: #999;
21
- cursor: not-allowed;
22
-
23
- .anticon {
24
- color: #999;
25
- }
26
- }
27
- }
28
- }
29
-
30
- .picture-actions {
31
- position: absolute;
32
- top: 8px;
33
- right: 8px;
34
-
35
- & > div {
36
- float: left;
37
- width: 28px;
38
- height: 28px;
39
- margin-left: 4px;
40
- line-height: 28px;
41
- text-align: center;
42
- cursor: pointer;
43
- background: #fff;
44
- }
45
-
46
- .tools-screen-layer .anticon {
47
- padding-right: 0;
48
- }
49
- }
@@ -1,20 +0,0 @@
1
- .picture-view-layout {
2
- position: relative;
3
- min-height: 300px;
4
- overflow: hidden;
5
- user-select: none;
6
-
7
- .picture-move-layout {
8
- & > div {
9
- width: max-content;
10
- height: max-content;
11
- transition: all .3s;
12
- overflow: hidden;
13
-
14
- img {
15
- max-width: 100%;
16
- max-height: 100%;
17
- }
18
- }
19
- }
20
- }
@@ -1,43 +0,0 @@
1
- .contraller-bar-layout {
2
- position: absolute;
3
- bottom: 0;
4
- left: 0;
5
- z-index: 10;
6
- display: flex;
7
- width: 100%;
8
- height: 28px;
9
- background: rgb(29 33 53 / 80%);
10
- opacity: 1;
11
- align-items: center;
12
- justify-content: space-between;
13
- transition: opacity .3s;
14
-
15
- &.hide-contraller-bar {
16
- opacity: 0;
17
- }
18
-
19
- .contraller-bar-item {
20
- display: flex;
21
- float: left;
22
- width: 28px;
23
- height: 28px;
24
- justify-content: center;
25
- align-items: center;
26
-
27
- .lm-player-iconfont {
28
- cursor: pointer;
29
-
30
- &:hover {
31
- color: var(--primary);
32
- }
33
- }
34
- }
35
-
36
- .video-time-progress {
37
- float: left;
38
- padding: 0 6px;
39
- font-size: 10px;
40
- line-height: 28px;
41
- color: #fff;
42
- }
43
- }
@@ -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
- }