@labelbee/lb-components 1.0.0-alpha.1

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 (590) hide show
  1. package/README.md +41 -0
  2. package/dist/App.js +1 -0
  3. package/dist/assets/annotation/common/icon_adapt.svg.js +1 -0
  4. package/dist/assets/annotation/common/icon_adapt_black.svg.js +1 -0
  5. package/dist/assets/annotation/common/icon_back.svg.js +1 -0
  6. package/dist/assets/annotation/common/icon_backA.svg.js +1 -0
  7. package/dist/assets/annotation/common/icon_clear.svg.js +1 -0
  8. package/dist/assets/annotation/common/icon_clearSmall.svg.js +1 -0
  9. package/dist/assets/annotation/common/icon_clearSmall_a.svg.js +1 -0
  10. package/dist/assets/annotation/common/icon_clear_a.svg.js +1 -0
  11. package/dist/assets/annotation/common/icon_invalid.svg.js +1 -0
  12. package/dist/assets/annotation/common/icon_invalid_a.svg.js +1 -0
  13. package/dist/assets/annotation/common/icon_next.svg.js +1 -0
  14. package/dist/assets/annotation/common/icon_nextA.svg.js +1 -0
  15. package/dist/assets/annotation/common/icon_r.svg.js +1 -0
  16. package/dist/assets/annotation/common/icon_rA.svg.js +1 -0
  17. package/dist/assets/annotation/common/icon_save.svg.js +1 -0
  18. package/dist/assets/annotation/common/icon_saveA.svg.js +1 -0
  19. package/dist/assets/annotation/image/brightness.svg.js +1 -0
  20. package/dist/assets/annotation/image/contrast.svg.js +1 -0
  21. package/dist/assets/annotation/image/icon_yuantu.svg.js +1 -0
  22. package/dist/assets/annotation/image/saturation.svg.js +1 -0
  23. package/dist/assets/annotation/lineTool/icon_line.svg.js +1 -0
  24. package/dist/assets/annotation/lineTool/icon_line_a.svg.js +1 -0
  25. package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +1 -0
  26. package/dist/assets/annotation/pointCloudTool/copy.svg.js +1 -0
  27. package/dist/assets/annotation/pointCloudTool/nextBox.svg.js +1 -0
  28. package/dist/assets/annotation/pointCloudTool/nodata.svg.js +1 -0
  29. package/dist/assets/annotation/pointCloudTool/patse.svg.js +1 -0
  30. package/dist/assets/annotation/pointCloudTool/prevBox.svg.js +1 -0
  31. package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +1 -0
  32. package/dist/assets/annotation/pointCloudTool/selectAll.svg.js +1 -0
  33. package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js +1 -0
  34. package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js +1 -0
  35. package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +1 -0
  36. package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +1 -0
  37. package/dist/assets/annotation/pointTool/icon_point.svg.js +1 -0
  38. package/dist/assets/annotation/pointTool/icon_point_a.svg.js +1 -0
  39. package/dist/assets/annotation/polygonTool/icon_polygon.svg.js +1 -0
  40. package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js +1 -0
  41. package/dist/assets/annotation/rectTool/icon_rect.svg.js +1 -0
  42. package/dist/assets/annotation/rectTool/icon_rect_a.svg.js +1 -0
  43. package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +1 -0
  44. package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +1 -0
  45. package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +1 -0
  46. package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +1 -0
  47. package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +1 -0
  48. package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +1 -0
  49. package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +1 -0
  50. package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +1 -0
  51. package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +1 -0
  52. package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +1 -0
  53. package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +1 -0
  54. package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +1 -0
  55. package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +1 -0
  56. package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +1 -0
  57. package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +1 -0
  58. package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +1 -0
  59. package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +1 -0
  60. package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +1 -0
  61. package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +1 -0
  62. package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +1 -0
  63. package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +1 -0
  64. package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +1 -0
  65. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +1 -0
  66. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +1 -0
  67. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +1 -0
  68. package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +1 -0
  69. package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +1 -0
  70. package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +1 -0
  71. package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +1 -0
  72. package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +1 -0
  73. package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +1 -0
  74. package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +1 -0
  75. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +1 -0
  76. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +1 -0
  77. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +1 -0
  78. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +1 -0
  79. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +1 -0
  80. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +1 -0
  81. package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +1 -0
  82. package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +1 -0
  83. package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +1 -0
  84. package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +1 -0
  85. package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +1 -0
  86. package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +1 -0
  87. package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +1 -0
  88. package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +1 -0
  89. package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +1 -0
  90. package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js +1 -0
  91. package/dist/assets/annotation/video/icon_keyboard_h.svg.js +1 -0
  92. package/dist/assets/attributeIcon/eraser.svg.js +1 -0
  93. package/dist/assets/attributeIcon/eraser_a.svg.js +1 -0
  94. package/dist/assets/attributeIcon/pen.svg.js +1 -0
  95. package/dist/assets/attributeIcon/pen_a.svg.js +1 -0
  96. package/dist/assets/attributeIcon/zoomUp.svg.js +1 -0
  97. package/dist/assets/icons/25541b4d.svg +10 -0
  98. package/dist/assets/icons/25ef334b.svg +8 -0
  99. package/dist/assets/icons/7eadb9c4.svg +5 -0
  100. package/dist/assets/icons/9d70807.svg +5 -0
  101. package/dist/assets/icons/aa147cfc.png +0 -0
  102. package/dist/assets/icons/c5b4262e.png +0 -0
  103. package/dist/assets/icons/cc550fff.svg +23 -0
  104. package/dist/assets/icons/dc9b6bfc.svg +10 -0
  105. package/dist/assets/icons/e4f0b7fe.png +0 -0
  106. package/dist/assets/predictTracking/icon.svg.js +1 -0
  107. package/dist/assets/toolStyle/icon_border.svg.js +1 -0
  108. package/dist/assets/toolStyle/icon_borderColor.svg.js +1 -0
  109. package/dist/assets/toolStyle/icon_opacityFill.svg.js +1 -0
  110. package/dist/assets/toolStyle/icon_opacityStroke.svg.js +1 -0
  111. package/dist/components/AnnotationView/index.js +1 -0
  112. package/dist/components/AnnotationView/pointCloudAnnotationView.js +1 -0
  113. package/dist/components/annotationStepPopover/index.js +1 -0
  114. package/dist/components/attributeList/index.js +1 -0
  115. package/dist/components/checkboxList/index.js +1 -0
  116. package/dist/components/colorTag/index.js +1 -0
  117. package/dist/components/customAntd/IconWithText/index.js +1 -0
  118. package/dist/components/customResizeHook/index.js +1 -0
  119. package/dist/components/fileException/FileError.js +1 -0
  120. package/dist/components/fileException/FileInvalid.js +1 -0
  121. package/dist/components/fileException/index.js +1 -0
  122. package/dist/components/pointCloudView/PointCloud2DView.js +1 -0
  123. package/dist/components/pointCloudView/PointCloud3DView.js +1 -0
  124. package/dist/components/pointCloudView/PointCloudBackView.js +1 -0
  125. package/dist/components/pointCloudView/PointCloudContext.js +1 -0
  126. package/dist/components/pointCloudView/PointCloudInfos.js +1 -0
  127. package/dist/components/pointCloudView/PointCloudLayout.js +1 -0
  128. package/dist/components/pointCloudView/PointCloudListener.js +1 -0
  129. package/dist/components/pointCloudView/PointCloudSideView.js +1 -0
  130. package/dist/components/pointCloudView/PointCloudTopView.js +1 -0
  131. package/dist/components/pointCloudView/components/EmptyPage/index.js +1 -0
  132. package/dist/components/pointCloudView/components/UnifyParamsModal/index.js +1 -0
  133. package/dist/components/pointCloudView/hooks/useAttribute.js +1 -0
  134. package/dist/components/pointCloudView/hooks/useBoxes.js +1 -0
  135. package/dist/components/pointCloudView/hooks/useConfig.js +1 -0
  136. package/dist/components/pointCloudView/hooks/useHistory.js +1 -0
  137. package/dist/components/pointCloudView/hooks/useLine.js +1 -0
  138. package/dist/components/pointCloudView/hooks/usePointCloudViews.js +1 -0
  139. package/dist/components/pointCloudView/hooks/usePolygon.js +1 -0
  140. package/dist/components/pointCloudView/hooks/useRotate.js +1 -0
  141. package/dist/components/pointCloudView/hooks/useSingleBox.js +1 -0
  142. package/dist/components/pointCloudView/hooks/useSphere.js +1 -0
  143. package/dist/components/pointCloudView/hooks/useStatus.js +1 -0
  144. package/dist/components/pointCloudView/hooks/useZoom.js +1 -0
  145. package/dist/components/pointCloudView/index.js +1 -0
  146. package/dist/components/predictTracking/index.js +1 -0
  147. package/dist/components/predictTracking/predictTrackingIcon/index.js +1 -0
  148. package/dist/components/predictTracking/previewResult/index.js +1 -0
  149. package/dist/components/predictTracking/previewResult/util.js +1 -0
  150. package/dist/components/videoAnnotate/index.js +1 -0
  151. package/dist/components/videoPlayer/TagToolInstanceAdaptor.js +1 -0
  152. package/dist/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +1 -0
  153. package/dist/components/videoPlayer/VideoTagLayer.js +1 -0
  154. package/dist/components/videoPlayer/components/controller/index.js +1 -0
  155. package/dist/components/videoPlayer/index.js +1 -0
  156. package/dist/components/videoPlayer/utils.js +1 -0
  157. package/dist/configureStore.js +1 -0
  158. package/dist/constant/index.js +1 -0
  159. package/dist/constant/styleString.js +1 -0
  160. package/dist/data/Style.js +1 -0
  161. package/dist/data/enums/AnnotationSize.js +1 -0
  162. package/dist/data/enums/ToolType.js +1 -0
  163. package/dist/hooks/annotation.js +1 -0
  164. package/dist/hooks/useRafState.js +1 -0
  165. package/dist/hooks/useRefCache.js +1 -0
  166. package/dist/hooks/useSafeSate.js +1 -0
  167. package/dist/hooks/useSize.js +1 -0
  168. package/dist/hooks/useUnmountedRef.js +1 -0
  169. package/dist/index.css +1549 -0
  170. package/dist/index.js +1 -0
  171. package/dist/store/Actions.js +1 -0
  172. package/dist/store/annotation/actionCreators.js +1 -0
  173. package/dist/store/annotation/map.js +1 -0
  174. package/dist/store/annotation/reducer.js +1 -0
  175. package/dist/store/annotation/selectors.js +1 -0
  176. package/dist/store/ctx.js +1 -0
  177. package/dist/store/imgAttribute/actionCreators.js +1 -0
  178. package/dist/store/imgAttribute/reducer.js +1 -0
  179. package/dist/store/index.js +1 -0
  180. package/dist/store/toolStyle/actionCreators.js +1 -0
  181. package/dist/store/toolStyle/reducer.js +1 -0
  182. package/dist/types/App.d.ts +75 -0
  183. package/dist/types/components/AnnotationView/index.d.ts +27 -0
  184. package/dist/types/components/AnnotationView/pointCloudAnnotationView.d.ts +13 -0
  185. package/dist/types/components/annotationStepPopover/index.d.ts +9 -0
  186. package/dist/types/components/attributeList/index.d.ts +18 -0
  187. package/dist/types/components/checkboxList/index.d.ts +9 -0
  188. package/dist/types/components/colorTag/index.d.ts +2 -0
  189. package/dist/types/components/customAntd/IconWithText/index.d.ts +9 -0
  190. package/dist/types/components/customResizeHook/index.d.ts +31 -0
  191. package/dist/types/components/fileException/FileError.d.ts +15 -0
  192. package/dist/types/components/fileException/FileInvalid.d.ts +12 -0
  193. package/dist/types/components/fileException/index.d.ts +17 -0
  194. package/dist/types/components/pointCloudView/PointCloud2DView.d.ts +4 -0
  195. package/dist/types/components/pointCloudView/PointCloud3DView.d.ts +6 -0
  196. package/dist/types/components/pointCloudView/PointCloudBackView.d.ts +7 -0
  197. package/dist/types/components/pointCloudView/PointCloudContext.d.ts +54 -0
  198. package/dist/types/components/pointCloudView/PointCloudInfos.d.ts +23 -0
  199. package/dist/types/components/pointCloudView/PointCloudLayout.d.ts +7 -0
  200. package/dist/types/components/pointCloudView/PointCloudListener.d.ts +9 -0
  201. package/dist/types/components/pointCloudView/PointCloudSideView.d.ts +9 -0
  202. package/dist/types/components/pointCloudView/PointCloudTopView.d.ts +12 -0
  203. package/dist/types/components/pointCloudView/components/EmptyPage/index.d.ts +3 -0
  204. package/dist/types/components/pointCloudView/components/UnifyParamsModal/index.d.ts +13 -0
  205. package/dist/types/components/pointCloudView/hooks/useAttribute.d.ts +7 -0
  206. package/dist/types/components/pointCloudView/hooks/useBoxes.d.ts +12 -0
  207. package/dist/types/components/pointCloudView/hooks/useConfig.d.ts +5 -0
  208. package/dist/types/components/pointCloudView/hooks/useHistory.d.ts +22 -0
  209. package/dist/types/components/pointCloudView/hooks/useLine.d.ts +12 -0
  210. package/dist/types/components/pointCloudView/hooks/usePointCloudViews.d.ts +101 -0
  211. package/dist/types/components/pointCloudView/hooks/usePolygon.d.ts +12 -0
  212. package/dist/types/components/pointCloudView/hooks/useRotate.d.ts +8 -0
  213. package/dist/types/components/pointCloudView/hooks/useSingleBox.d.ts +18 -0
  214. package/dist/types/components/pointCloudView/hooks/useSphere.d.ts +6 -0
  215. package/dist/types/components/pointCloudView/hooks/useStatus.d.ts +11 -0
  216. package/dist/types/components/pointCloudView/hooks/useZoom.d.ts +11 -0
  217. package/dist/types/components/pointCloudView/index.d.ts +19 -0
  218. package/dist/types/components/predictTracking/index.d.ts +2 -0
  219. package/dist/types/components/predictTracking/predictTrackingIcon/index.d.ts +7 -0
  220. package/dist/types/components/predictTracking/previewResult/index.d.ts +10 -0
  221. package/dist/types/components/predictTracking/previewResult/util.d.ts +43 -0
  222. package/dist/types/components/videoAnnotate/index.d.ts +15 -0
  223. package/dist/types/components/videoPlayer/TagToolInstanceAdaptor.d.ts +90 -0
  224. package/dist/types/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.d.ts +9 -0
  225. package/dist/types/components/videoPlayer/VideoTagLayer.d.ts +12 -0
  226. package/dist/types/components/videoPlayer/components/controller/index.d.ts +3 -0
  227. package/dist/types/components/videoPlayer/index.d.ts +73 -0
  228. package/dist/types/components/videoPlayer/types.d.ts +8 -0
  229. package/dist/types/components/videoPlayer/utils.d.ts +36 -0
  230. package/dist/types/configureStore.d.ts +3 -0
  231. package/dist/types/constant/index.d.ts +22 -0
  232. package/dist/types/constant/styleString.d.ts +2 -0
  233. package/dist/types/data/Style.d.ts +37 -0
  234. package/dist/types/data/enums/AnnotationSize.d.ts +32 -0
  235. package/dist/types/data/enums/ToolType.d.ts +54 -0
  236. package/dist/types/hooks/annotation.d.ts +37 -0
  237. package/dist/types/hooks/useRafState.d.ts +3 -0
  238. package/dist/types/hooks/useRefCache.d.ts +8 -0
  239. package/dist/types/hooks/useSafeSate.d.ts +4 -0
  240. package/dist/types/hooks/useSize.d.ts +7 -0
  241. package/dist/types/hooks/useUnmountedRef.d.ts +3 -0
  242. package/dist/types/index.d.ts +15 -0
  243. package/dist/types/store/Actions.d.ts +48 -0
  244. package/dist/types/store/annotation/actionCreators.d.ts +95 -0
  245. package/dist/types/store/annotation/map.d.ts +29 -0
  246. package/dist/types/store/annotation/reducer.d.ts +53 -0
  247. package/dist/types/store/annotation/selectors.d.ts +7 -0
  248. package/dist/types/store/annotation/types.d.ts +158 -0
  249. package/dist/types/store/ctx.d.ts +4 -0
  250. package/dist/types/store/imgAttribute/actionCreators.d.ts +8 -0
  251. package/dist/types/store/imgAttribute/reducer.d.ts +8 -0
  252. package/dist/types/store/imgAttribute/types.d.ts +23 -0
  253. package/dist/types/store/index.d.ts +3 -0
  254. package/dist/types/store/toolStyle/actionCreators.d.ts +8 -0
  255. package/dist/types/store/toolStyle/reducer.d.ts +13 -0
  256. package/dist/types/store/toolStyle/types.d.ts +23 -0
  257. package/dist/types/utils/AnnotationDataUtils.d.ts +77 -0
  258. package/dist/types/utils/ConfigUtils.d.ts +9 -0
  259. package/dist/types/utils/PageOperator.d.ts +48 -0
  260. package/dist/types/utils/StepUtils.d.ts +32 -0
  261. package/dist/types/utils/TextUtils.d.ts +7 -0
  262. package/dist/types/utils/ToolStyleUtils.d.ts +18 -0
  263. package/dist/types/utils/ToolUtils.d.ts +12 -0
  264. package/dist/types/utils/data.d.ts +15 -0
  265. package/dist/types/utils/dom.d.ts +11 -0
  266. package/dist/types/utils/index.d.ts +5 -0
  267. package/dist/types/views/MainView/annotationOperation/index.d.ts +18 -0
  268. package/dist/types/views/MainView/annotationTips/index.d.ts +7 -0
  269. package/dist/types/views/MainView/index.d.ts +10 -0
  270. package/dist/types/views/MainView/sidebar/AnnotationText/index.d.ts +9 -0
  271. package/dist/types/views/MainView/sidebar/ClearIcon/index.d.ts +3 -0
  272. package/dist/types/views/MainView/sidebar/GeneralOperation/ActionsConfirm.d.ts +14 -0
  273. package/dist/types/views/MainView/sidebar/GeneralOperation/index.d.ts +19 -0
  274. package/dist/types/views/MainView/sidebar/GeneralOperation/useOperationList.d.ts +12 -0
  275. package/dist/types/views/MainView/sidebar/ImgAttributeInfo/index.d.ts +7 -0
  276. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.d.ts +20 -0
  277. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/index.d.ts +14 -0
  278. package/dist/types/views/MainView/sidebar/ScribbleSidebar/index.d.ts +6 -0
  279. package/dist/types/views/MainView/sidebar/SwitchAttributeList/index.d.ts +11 -0
  280. package/dist/types/views/MainView/sidebar/TagSidebar/index.d.ts +11 -0
  281. package/dist/types/views/MainView/sidebar/TextAreaFormat/index.d.ts +9 -0
  282. package/dist/types/views/MainView/sidebar/TextToolSidebar/index.d.ts +22 -0
  283. package/dist/types/views/MainView/sidebar/ToolIcons.d.ts +12 -0
  284. package/dist/types/views/MainView/sidebar/ToolStyle/index.d.ts +8 -0
  285. package/dist/types/views/MainView/sidebar/index.d.ts +10 -0
  286. package/dist/types/views/MainView/toolFooter/AnnotatedAttributes/index.d.ts +5 -0
  287. package/dist/types/views/MainView/toolFooter/FooterPopover.d.ts +10 -0
  288. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.d.ts +132 -0
  289. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.d.ts +6 -0
  290. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/index.d.ts +23 -0
  291. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.d.ts +71 -0
  292. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.d.ts +27 -0
  293. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.d.ts +5 -0
  294. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.d.ts +85 -0
  295. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.d.ts +38 -0
  296. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.d.ts +6 -0
  297. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.d.ts +3 -0
  298. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.d.ts +6 -0
  299. package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.d.ts +3 -0
  300. package/dist/types/views/MainView/toolFooter/FooterTips/index.d.ts +3 -0
  301. package/dist/types/views/MainView/toolFooter/HiddenTips/index.d.ts +7 -0
  302. package/dist/types/views/MainView/toolFooter/PageNumber/index.d.ts +7 -0
  303. package/dist/types/views/MainView/toolFooter/Pagination.d.ts +22 -0
  304. package/dist/types/views/MainView/toolFooter/ZoomController/ZoomLevel/index.d.ts +10 -0
  305. package/dist/types/views/MainView/toolFooter/ZoomController/index.d.ts +21 -0
  306. package/dist/types/views/MainView/toolFooter/index.d.ts +24 -0
  307. package/dist/types/views/MainView/toolHeader/ExportData/index.d.ts +15 -0
  308. package/dist/types/views/MainView/toolHeader/StepSwitch/index.d.ts +14 -0
  309. package/dist/types/views/MainView/toolHeader/headerOption/index.d.ts +8 -0
  310. package/dist/types/views/MainView/toolHeader/index.d.ts +23 -0
  311. package/dist/utils/AnnotationDataUtils.js +1 -0
  312. package/dist/utils/ConfigUtils.js +1 -0
  313. package/dist/utils/PageOperator.js +1 -0
  314. package/dist/utils/StepUtils.js +1 -0
  315. package/dist/utils/TextUtils.js +1 -0
  316. package/dist/utils/ToolStyleUtils.js +1 -0
  317. package/dist/utils/ToolUtils.js +1 -0
  318. package/dist/utils/data.js +1 -0
  319. package/dist/utils/dom.js +1 -0
  320. package/dist/utils/index.js +1 -0
  321. package/dist/views/MainView/annotationOperation/index.js +1 -0
  322. package/dist/views/MainView/annotationTips/index.js +1 -0
  323. package/dist/views/MainView/index.js +1 -0
  324. package/dist/views/MainView/sidebar/AnnotationText/index.js +1 -0
  325. package/dist/views/MainView/sidebar/ClearIcon/index.js +1 -0
  326. package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +1 -0
  327. package/dist/views/MainView/sidebar/GeneralOperation/index.js +1 -0
  328. package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js +1 -0
  329. package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js +1 -0
  330. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +1 -0
  331. package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -0
  332. package/dist/views/MainView/sidebar/ScribbleSidebar/index.js +1 -0
  333. package/dist/views/MainView/sidebar/SwitchAttributeList/index.js +1 -0
  334. package/dist/views/MainView/sidebar/TagSidebar/index.js +1 -0
  335. package/dist/views/MainView/sidebar/TextAreaFormat/index.js +1 -0
  336. package/dist/views/MainView/sidebar/TextToolSidebar/index.js +1 -0
  337. package/dist/views/MainView/sidebar/ToolIcons.js +1 -0
  338. package/dist/views/MainView/sidebar/ToolStyle/index.js +1 -0
  339. package/dist/views/MainView/sidebar/index.js +1 -0
  340. package/dist/views/MainView/toolFooter/AnnotatedAttributes/index.js +1 -0
  341. package/dist/views/MainView/toolFooter/FooterPopover.js +1 -0
  342. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -0
  343. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +1 -0
  344. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -0
  345. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +1 -0
  346. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +1 -0
  347. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -0
  348. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +1 -0
  349. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +1 -0
  350. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +1 -0
  351. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +1 -0
  352. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +1 -0
  353. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +1 -0
  354. package/dist/views/MainView/toolFooter/FooterTips/index.js +1 -0
  355. package/dist/views/MainView/toolFooter/HiddenTips/index.js +1 -0
  356. package/dist/views/MainView/toolFooter/PageNumber/index.js +1 -0
  357. package/dist/views/MainView/toolFooter/Pagination.js +1 -0
  358. package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +1 -0
  359. package/dist/views/MainView/toolFooter/ZoomController/index.js +1 -0
  360. package/dist/views/MainView/toolFooter/index.js +1 -0
  361. package/dist/views/MainView/toolHeader/ExportData/index.js +1 -0
  362. package/dist/views/MainView/toolHeader/StepSwitch/index.js +1 -0
  363. package/dist/views/MainView/toolHeader/headerOption/index.js +1 -0
  364. package/dist/views/MainView/toolHeader/index.js +1 -0
  365. package/es/App.js +1 -0
  366. package/es/assets/annotation/common/icon_adapt.svg.js +1 -0
  367. package/es/assets/annotation/common/icon_adapt_black.svg.js +1 -0
  368. package/es/assets/annotation/common/icon_back.svg.js +1 -0
  369. package/es/assets/annotation/common/icon_backA.svg.js +1 -0
  370. package/es/assets/annotation/common/icon_clear.svg.js +1 -0
  371. package/es/assets/annotation/common/icon_clearSmall.svg.js +1 -0
  372. package/es/assets/annotation/common/icon_clearSmall_a.svg.js +1 -0
  373. package/es/assets/annotation/common/icon_clear_a.svg.js +1 -0
  374. package/es/assets/annotation/common/icon_invalid.svg.js +1 -0
  375. package/es/assets/annotation/common/icon_invalid_a.svg.js +1 -0
  376. package/es/assets/annotation/common/icon_next.svg.js +1 -0
  377. package/es/assets/annotation/common/icon_nextA.svg.js +1 -0
  378. package/es/assets/annotation/common/icon_r.svg.js +1 -0
  379. package/es/assets/annotation/common/icon_rA.svg.js +1 -0
  380. package/es/assets/annotation/common/icon_save.svg.js +1 -0
  381. package/es/assets/annotation/common/icon_saveA.svg.js +1 -0
  382. package/es/assets/annotation/image/brightness.svg.js +1 -0
  383. package/es/assets/annotation/image/contrast.svg.js +1 -0
  384. package/es/assets/annotation/image/icon_yuantu.svg.js +1 -0
  385. package/es/assets/annotation/image/saturation.svg.js +1 -0
  386. package/es/assets/annotation/lineTool/icon_line.svg.js +1 -0
  387. package/es/assets/annotation/lineTool/icon_line_a.svg.js +1 -0
  388. package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +1 -0
  389. package/es/assets/annotation/pointCloudTool/copy.svg.js +1 -0
  390. package/es/assets/annotation/pointCloudTool/nextBox.svg.js +1 -0
  391. package/es/assets/annotation/pointCloudTool/nodata.svg.js +1 -0
  392. package/es/assets/annotation/pointCloudTool/patse.svg.js +1 -0
  393. package/es/assets/annotation/pointCloudTool/prevBox.svg.js +1 -0
  394. package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +1 -0
  395. package/es/assets/annotation/pointCloudTool/selectAll.svg.js +1 -0
  396. package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js +1 -0
  397. package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js +1 -0
  398. package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +1 -0
  399. package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +1 -0
  400. package/es/assets/annotation/pointTool/icon_point.svg.js +1 -0
  401. package/es/assets/annotation/pointTool/icon_point_a.svg.js +1 -0
  402. package/es/assets/annotation/polygonTool/icon_polygon.svg.js +1 -0
  403. package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js +1 -0
  404. package/es/assets/annotation/rectTool/icon_rect.svg.js +1 -0
  405. package/es/assets/annotation/rectTool/icon_rect_a.svg.js +1 -0
  406. package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +1 -0
  407. package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +1 -0
  408. package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +1 -0
  409. package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +1 -0
  410. package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +1 -0
  411. package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +1 -0
  412. package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +1 -0
  413. package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +1 -0
  414. package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +1 -0
  415. package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +1 -0
  416. package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +1 -0
  417. package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +1 -0
  418. package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +1 -0
  419. package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +1 -0
  420. package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +1 -0
  421. package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +1 -0
  422. package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +1 -0
  423. package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +1 -0
  424. package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +1 -0
  425. package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +1 -0
  426. package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +1 -0
  427. package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +1 -0
  428. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +1 -0
  429. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +1 -0
  430. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +1 -0
  431. package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +1 -0
  432. package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +1 -0
  433. package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +1 -0
  434. package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +1 -0
  435. package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +1 -0
  436. package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +1 -0
  437. package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +1 -0
  438. package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +1 -0
  439. package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +1 -0
  440. package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +1 -0
  441. package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +1 -0
  442. package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +1 -0
  443. package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +1 -0
  444. package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +1 -0
  445. package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +1 -0
  446. package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +1 -0
  447. package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +1 -0
  448. package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +1 -0
  449. package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +1 -0
  450. package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +1 -0
  451. package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +1 -0
  452. package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +1 -0
  453. package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js +1 -0
  454. package/es/assets/annotation/video/icon_keyboard_h.svg.js +1 -0
  455. package/es/assets/attributeIcon/eraser.svg.js +1 -0
  456. package/es/assets/attributeIcon/eraser_a.svg.js +1 -0
  457. package/es/assets/attributeIcon/pen.svg.js +1 -0
  458. package/es/assets/attributeIcon/pen_a.svg.js +1 -0
  459. package/es/assets/attributeIcon/zoomUp.svg.js +1 -0
  460. package/es/assets/predictTracking/icon.svg.js +1 -0
  461. package/es/assets/toolStyle/icon_border.svg.js +1 -0
  462. package/es/assets/toolStyle/icon_borderColor.svg.js +1 -0
  463. package/es/assets/toolStyle/icon_opacityFill.svg.js +1 -0
  464. package/es/assets/toolStyle/icon_opacityStroke.svg.js +1 -0
  465. package/es/components/AnnotationView/index.js +1 -0
  466. package/es/components/AnnotationView/pointCloudAnnotationView.js +1 -0
  467. package/es/components/annotationStepPopover/index.js +1 -0
  468. package/es/components/attributeList/index.js +1 -0
  469. package/es/components/checkboxList/index.js +1 -0
  470. package/es/components/colorTag/index.js +1 -0
  471. package/es/components/customAntd/IconWithText/index.js +1 -0
  472. package/es/components/customResizeHook/index.js +1 -0
  473. package/es/components/fileException/FileError.js +1 -0
  474. package/es/components/fileException/FileInvalid.js +1 -0
  475. package/es/components/fileException/index.js +1 -0
  476. package/es/components/pointCloudView/PointCloud2DView.js +1 -0
  477. package/es/components/pointCloudView/PointCloud3DView.js +1 -0
  478. package/es/components/pointCloudView/PointCloudBackView.js +1 -0
  479. package/es/components/pointCloudView/PointCloudContext.js +1 -0
  480. package/es/components/pointCloudView/PointCloudInfos.js +1 -0
  481. package/es/components/pointCloudView/PointCloudLayout.js +1 -0
  482. package/es/components/pointCloudView/PointCloudListener.js +1 -0
  483. package/es/components/pointCloudView/PointCloudSideView.js +1 -0
  484. package/es/components/pointCloudView/PointCloudTopView.js +1 -0
  485. package/es/components/pointCloudView/components/EmptyPage/index.js +1 -0
  486. package/es/components/pointCloudView/components/UnifyParamsModal/index.js +1 -0
  487. package/es/components/pointCloudView/hooks/useAttribute.js +1 -0
  488. package/es/components/pointCloudView/hooks/useBoxes.js +1 -0
  489. package/es/components/pointCloudView/hooks/useConfig.js +1 -0
  490. package/es/components/pointCloudView/hooks/useHistory.js +1 -0
  491. package/es/components/pointCloudView/hooks/useLine.js +1 -0
  492. package/es/components/pointCloudView/hooks/usePointCloudViews.js +1 -0
  493. package/es/components/pointCloudView/hooks/usePolygon.js +1 -0
  494. package/es/components/pointCloudView/hooks/useRotate.js +1 -0
  495. package/es/components/pointCloudView/hooks/useSingleBox.js +1 -0
  496. package/es/components/pointCloudView/hooks/useSphere.js +1 -0
  497. package/es/components/pointCloudView/hooks/useStatus.js +1 -0
  498. package/es/components/pointCloudView/hooks/useZoom.js +1 -0
  499. package/es/components/pointCloudView/index.js +1 -0
  500. package/es/components/predictTracking/index.js +1 -0
  501. package/es/components/predictTracking/predictTrackingIcon/index.js +1 -0
  502. package/es/components/predictTracking/previewResult/index.js +1 -0
  503. package/es/components/predictTracking/previewResult/util.js +1 -0
  504. package/es/components/videoAnnotate/index.js +1 -0
  505. package/es/components/videoPlayer/TagToolInstanceAdaptor.js +1 -0
  506. package/es/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +1 -0
  507. package/es/components/videoPlayer/VideoTagLayer.js +1 -0
  508. package/es/components/videoPlayer/components/controller/index.js +1 -0
  509. package/es/components/videoPlayer/index.js +1 -0
  510. package/es/components/videoPlayer/utils.js +1 -0
  511. package/es/configureStore.js +1 -0
  512. package/es/constant/index.js +1 -0
  513. package/es/constant/styleString.js +1 -0
  514. package/es/data/Style.js +1 -0
  515. package/es/data/enums/AnnotationSize.js +1 -0
  516. package/es/data/enums/ToolType.js +1 -0
  517. package/es/hooks/annotation.js +1 -0
  518. package/es/hooks/useRafState.js +1 -0
  519. package/es/hooks/useRefCache.js +1 -0
  520. package/es/hooks/useSafeSate.js +1 -0
  521. package/es/hooks/useSize.js +1 -0
  522. package/es/hooks/useUnmountedRef.js +1 -0
  523. package/es/index.css +1549 -0
  524. package/es/index.js +1 -0
  525. package/es/store/Actions.js +1 -0
  526. package/es/store/annotation/actionCreators.js +1 -0
  527. package/es/store/annotation/map.js +1 -0
  528. package/es/store/annotation/reducer.js +1 -0
  529. package/es/store/annotation/selectors.js +1 -0
  530. package/es/store/ctx.js +1 -0
  531. package/es/store/imgAttribute/actionCreators.js +1 -0
  532. package/es/store/imgAttribute/reducer.js +1 -0
  533. package/es/store/index.js +1 -0
  534. package/es/store/toolStyle/actionCreators.js +1 -0
  535. package/es/store/toolStyle/reducer.js +1 -0
  536. package/es/utils/AnnotationDataUtils.js +1 -0
  537. package/es/utils/ConfigUtils.js +1 -0
  538. package/es/utils/PageOperator.js +1 -0
  539. package/es/utils/StepUtils.js +1 -0
  540. package/es/utils/TextUtils.js +1 -0
  541. package/es/utils/ToolStyleUtils.js +1 -0
  542. package/es/utils/ToolUtils.js +1 -0
  543. package/es/utils/data.js +1 -0
  544. package/es/utils/dom.js +1 -0
  545. package/es/utils/index.js +1 -0
  546. package/es/views/MainView/annotationOperation/index.js +1 -0
  547. package/es/views/MainView/annotationTips/index.js +1 -0
  548. package/es/views/MainView/index.js +1 -0
  549. package/es/views/MainView/sidebar/AnnotationText/index.js +1 -0
  550. package/es/views/MainView/sidebar/ClearIcon/index.js +1 -0
  551. package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +1 -0
  552. package/es/views/MainView/sidebar/GeneralOperation/index.js +1 -0
  553. package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js +1 -0
  554. package/es/views/MainView/sidebar/ImgAttributeInfo/index.js +1 -0
  555. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +1 -0
  556. package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -0
  557. package/es/views/MainView/sidebar/ScribbleSidebar/index.js +1 -0
  558. package/es/views/MainView/sidebar/SwitchAttributeList/index.js +1 -0
  559. package/es/views/MainView/sidebar/TagSidebar/index.js +1 -0
  560. package/es/views/MainView/sidebar/TextAreaFormat/index.js +1 -0
  561. package/es/views/MainView/sidebar/TextToolSidebar/index.js +1 -0
  562. package/es/views/MainView/sidebar/ToolIcons.js +1 -0
  563. package/es/views/MainView/sidebar/ToolStyle/index.js +1 -0
  564. package/es/views/MainView/sidebar/index.js +1 -0
  565. package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js +1 -0
  566. package/es/views/MainView/toolFooter/FooterPopover.js +1 -0
  567. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -0
  568. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +1 -0
  569. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -0
  570. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +1 -0
  571. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +1 -0
  572. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -0
  573. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +1 -0
  574. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +1 -0
  575. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +1 -0
  576. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +1 -0
  577. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +1 -0
  578. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +1 -0
  579. package/es/views/MainView/toolFooter/FooterTips/index.js +1 -0
  580. package/es/views/MainView/toolFooter/HiddenTips/index.js +1 -0
  581. package/es/views/MainView/toolFooter/PageNumber/index.js +1 -0
  582. package/es/views/MainView/toolFooter/Pagination.js +1 -0
  583. package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +1 -0
  584. package/es/views/MainView/toolFooter/ZoomController/index.js +1 -0
  585. package/es/views/MainView/toolFooter/index.js +1 -0
  586. package/es/views/MainView/toolHeader/ExportData/index.js +1 -0
  587. package/es/views/MainView/toolHeader/StepSwitch/index.js +1 -0
  588. package/es/views/MainView/toolHeader/headerOption/index.js +1 -0
  589. package/es/views/MainView/toolHeader/index.js +1 -0
  590. package/package.json +102 -0
@@ -0,0 +1,54 @@
1
+ export declare enum EScribblePattern {
2
+ Scribble = 1,
3
+ Erase = 2
4
+ }
5
+ export declare enum EToolName {
6
+ /** 拉框工具 */
7
+ Rect = "rectTool",
8
+ /** 标签工具 */
9
+ Tag = "tagTool",
10
+ /** 标点工具 */
11
+ Point = "pointTool",
12
+ /** 列表标点工具 */
13
+ PointMarker = "pointMarkerTool",
14
+ /** 前景分割工具 */
15
+ Segmentation = "segmentationTool",
16
+ /** 筛选工具 */
17
+ Filter = "filterTool",
18
+ /** 文本工具 */
19
+ Text = "textTool",
20
+ /** 多边形工具 */
21
+ Polygon = "polygonTool",
22
+ /** 线条 */
23
+ Line = "lineTool",
24
+ /** 列表线条工具 */
25
+ LineMarker = "lineMarkerTool",
26
+ /** 空工具,表示当前没有选择的工具,没有实际的业务逻辑 */
27
+ Empty = "emptyTool",
28
+ /** 文件夹标签工具 */
29
+ FolderTag = "folderTagTool",
30
+ /** 拉框跟踪工具 */
31
+ RectTrack = "rectTrackTool",
32
+ /** 涂抹工具 */
33
+ ScribbleTool = "scribbleTool",
34
+ /** 人脸106工具 */
35
+ Face = "faceTool",
36
+ /** 客户端属性工具 */
37
+ ClientAttribute = "clientAttributeTool",
38
+ /** OCR关联关系工具 */
39
+ OCRRelation = "OCRRelationTool",
40
+ /** 算法分割辅助工具 */
41
+ SegmentByRect = "segmentByRectTool",
42
+ Cuboid = "cuboidTool",
43
+ /** 点云多边形工具 */
44
+ PointCloudPolygon = "pointCloudPolygon"
45
+ }
46
+ export declare enum ETextType {
47
+ AnyString = 0,
48
+ Order = 1,
49
+ EnglishOnly = 2,
50
+ NumberOnly = 3,
51
+ CustomFormat = 4
52
+ }
53
+ /** 文本标注字数上限 */
54
+ export declare const TEXT_ATTRIBUTE_MAX_LENGTH = 1000;
@@ -0,0 +1,37 @@
1
+ /// <reference types="react" />
2
+ export interface ICustomToolInstance {
3
+ valid: boolean;
4
+ exportData: () => [any[], {}];
5
+ exportCustomData: () => {};
6
+ singleOn: () => void;
7
+ clearResult: () => void;
8
+ on: () => void;
9
+ unbind: () => void;
10
+ setResult: () => void;
11
+ setValid: (valid: boolean) => void;
12
+ history: {
13
+ initRecord: (action: any) => void;
14
+ pushHistory: (action: any) => void;
15
+ };
16
+ setDefaultAttribute: (attribute: string) => void;
17
+ setForbidOperation: (forbidOperation: boolean) => void;
18
+ setShowDefaultCursor: (forbidOperation: boolean) => void;
19
+ setSubAttribute: (key: string, value: string) => void;
20
+ updateRotate: () => void;
21
+ undo: () => void;
22
+ redo: () => void;
23
+ [str: string]: any;
24
+ }
25
+ export interface ICustomToolInstanceProps {
26
+ basicInfo?: {
27
+ [v: string]: any;
28
+ };
29
+ }
30
+ /**
31
+ * @returns
32
+ * Custom an empty toolInstance to adapt old use.
33
+ */
34
+ declare const useCustomToolInstance: ({ basicInfo }?: ICustomToolInstanceProps) => {
35
+ toolInstanceRef: import("react").MutableRefObject<ICustomToolInstance>;
36
+ };
37
+ export { useCustomToolInstance };
@@ -0,0 +1,3 @@
1
+ import type { Dispatch, SetStateAction } from 'react';
2
+ declare const useRafState: <S>(initialState: S | (() => S)) => [S, Dispatch<SetStateAction<S>>];
3
+ export default useRafState;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @file Cache the operation
3
+ * @createDate 2022-09-27
4
+ * @author Ron <ron.f.luo@gmail.com>
5
+ */
6
+ /// <reference types="react" />
7
+ declare const useRefCache: <T>(data: T) => import("react").MutableRefObject<T>;
8
+ export default useRefCache;
@@ -0,0 +1,4 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ declare function useSafeState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>];
3
+ declare function useSafeState<S = undefined>(): [S | undefined, Dispatch<SetStateAction<S | undefined>>];
4
+ export default useSafeState;
@@ -0,0 +1,7 @@
1
+ import type { BasicTarget } from '../utils/dom';
2
+ interface Size {
3
+ width: number;
4
+ height: number;
5
+ }
6
+ declare function useSize(target: BasicTarget): Size;
7
+ export default useSize;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const useUnmountedRef: () => import("react").MutableRefObject<boolean>;
3
+ export default useUnmountedRef;
@@ -0,0 +1,15 @@
1
+ import { AppProps } from '@/App';
2
+ import AnnotationView from '@/components/AnnotationView';
3
+ import PointCloudAnnotationView from '@/components/AnnotationView/pointCloudAnnotationView';
4
+ import { i18n } from '@labelbee/lb-utils';
5
+ import React from 'react';
6
+ import { VideoTagTool } from '@/components/videoPlayer/TagToolInstanceAdaptorI18nProvider';
7
+ import './index.scss';
8
+ import PredictTracking from '@/components/predictTracking';
9
+ export declare const store: import("redux").Store<{}, import("redux").Action<any>> & {
10
+ dispatch: unknown;
11
+ };
12
+ declare const _default: React.ForwardRefExoticComponent<AppProps & React.RefAttributes<unknown>>;
13
+ export default _default;
14
+ export { AnnotationView, PointCloudAnnotationView, i18n, VideoTagTool, PredictTracking };
15
+ export * from './constant';
@@ -0,0 +1,48 @@
1
+ export declare const ANNOTATION_ACTIONS: {
2
+ INIT_ALL_STATE: string;
3
+ UPDATE_TOOL_INSTANCE: string;
4
+ UPDATE_IMG_LIST: string;
5
+ UPDATE_ANNOTATION_CONFIG: string;
6
+ LOAD_FILE_DATA: string;
7
+ SUBMIT_FILE_DATA: string;
8
+ SET_TASK_CONFIG: string;
9
+ INIT_TOOL: string;
10
+ SET_TOOL: string;
11
+ UPDATE_ON_SUBMIT: string;
12
+ UPDATE_ON_SAVE: string;
13
+ UPDATE_ON_PAGE_CHANGE: string;
14
+ UPDATE_ON_STEP_CHANGE: string;
15
+ UPDATE_ROTATE: string;
16
+ UPDATE_GET_FILE_DATA: string;
17
+ UPDATE_PAGE_SIZE: string;
18
+ UPDATE_LOAD_FILE_LIST: string;
19
+ GET_FILE_DATA: string;
20
+ SET_FILE_DATA: string;
21
+ COPY_BACKWARD_RESULT: string;
22
+ SET_STEP: string;
23
+ SUBMIT_RESULT: string;
24
+ SAVE_RESULT: string;
25
+ SET_BASIC_INDEX: string;
26
+ CALC_STEP_PROGRESS: string;
27
+ SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED: string;
28
+ SKIP_BEFORE_PAGE_TURNING: string;
29
+ UPDATE_BEFORE_ROTATE: string;
30
+ SET_LOADING: string;
31
+ SET_POINT_CLOUD_LOADING: string;
32
+ SET_CHECK_MODE: string;
33
+ SET_TASK_STEP_LIST: string;
34
+ UPDATE_ANNOTATION_VALID: string;
35
+ BATCH_UPDATE_TRACK_ID: string;
36
+ BATCH_UPDATE_RESULT_BY_TRACK_ID: string;
37
+ BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT: string;
38
+ SET_PREDICT_RESULT_VISIBLE: string;
39
+ SET_PREDICT_RESULT: string;
40
+ };
41
+ export declare const IMAGE_ATTRIBUTE_ACTIONS: {
42
+ UPDATE_IMG_ATTRIBUTE: string;
43
+ INIT_IMG_ATTRIBUTE: string;
44
+ };
45
+ export declare const TOOL_STYLE_ACTIONS: {
46
+ INIT_TOOL_STYLE_CONFIG: string;
47
+ UPDATE_TOOL_STYLE_CONFIG: string;
48
+ };
@@ -0,0 +1,95 @@
1
+ import { IStepInfo } from '@/types/step';
2
+ import { GetFileData, LoadFileList, IFileItem, OnPageChange, OnSave, OnStepChange, OnSubmit } from '@/types/data';
3
+ import { AnnotationActionTypes, ToolInstance } from './types';
4
+ import { ESubmitType } from '@/constant';
5
+ import { EPageTurningOperation } from '@/data/enums/AnnotationSize';
6
+ import { IPointCloudBox } from '@labelbee/lb-utils';
7
+ export declare function UpdateToolInstance(toolInstance: ToolInstance): AnnotationActionTypes;
8
+ export declare function UpdateImgList(imgList: IFileItem[]): AnnotationActionTypes;
9
+ export declare function UpdateAnnotationConfig(config: string): AnnotationActionTypes;
10
+ export declare function SetTaskStepList({ stepList }: {
11
+ stepList: IStepInfo[];
12
+ }): AnnotationActionTypes;
13
+ export declare function SetTaskConfig({ stepList, step, }: {
14
+ stepList: IStepInfo[];
15
+ step: number;
16
+ }): AnnotationActionTypes;
17
+ export declare function UpdateOnSubmit(onSubmit: OnSubmit): AnnotationActionTypes;
18
+ export declare function UpdateOnSave(onSave: OnSave): AnnotationActionTypes;
19
+ export declare function UpdateOnPageChange(onPageChange: OnPageChange): AnnotationActionTypes;
20
+ export declare function UpdateOnStepChange(onStepChange: OnStepChange): AnnotationActionTypes;
21
+ export declare function UpdateGetFileData(getFileData: GetFileData): AnnotationActionTypes;
22
+ export declare function UpdatePageSize(pageSize: number): AnnotationActionTypes;
23
+ export declare function UpdateGetFileList(loadFileList: LoadFileList): AnnotationActionTypes;
24
+ export declare function UpdateRotate(): AnnotationActionTypes;
25
+ export declare function UpdateValid(): AnnotationActionTypes;
26
+ export declare function UpdateSkipBeforePageTurning(skipBeforePageTurning: (pageTurning: Function) => {}): AnnotationActionTypes;
27
+ export declare function UpdateBeforeRotate(beforeRotate: () => {}): AnnotationActionTypes;
28
+ export declare function CopyBackWordResult(): AnnotationActionTypes;
29
+ export declare function BatchUpdateTrackID({ id, newID, rangeIndex, imgList, }: {
30
+ id: number;
31
+ newID: number;
32
+ rangeIndex: [number, number];
33
+ imgList: IFileItem[];
34
+ }): AnnotationActionTypes;
35
+ export declare function BatchUpdateResultByTrackID(id: number, // originData
36
+ newData: Partial<IPointCloudBox>, rangeIndex: [number, number]): AnnotationActionTypes;
37
+ export declare function BatchUpdateImgListResultByPredictResult(): AnnotationActionTypes;
38
+ export declare const UpdateCheckMode: (checkMode: boolean) => AnnotationActionTypes;
39
+ /**
40
+ * 初始化任务数据
41
+ * @param param0
42
+ */
43
+ export declare function InitTaskData({ onSubmit, onSave, onPageChange, onStepChange, getFileData, pageSize, loadFileList, step, stepList, skipBeforePageTurning, beforeRotate, checkMode, }: any): any;
44
+ /**
45
+ * 初始化任务数据
46
+ * @param param0
47
+ */
48
+ export declare function UpdateInjectFunc({ onSubmit, onSave, onPageChange, onStepChange, getFileData, pageSize, loadFileList, stepList, beforeRotate, }: any): any;
49
+ /** 切换到下一步 */
50
+ export declare const ToNextStep: (pageNumber?: number) => (dispatch: any, getState: any) => any[];
51
+ /**
52
+ * 更新当前操作的步骤
53
+ * @param {number} toStep
54
+ */
55
+ export declare const UpdateProcessingStep: (toStep: number, index?: number) => (dispatch: any, getState: any) => any[];
56
+ /**
57
+ * 提交当前的文件数据
58
+ * @param submitType
59
+ */
60
+ export declare const ToSubmitFileData: (submitType: ESubmitType) => (dispatch: any) => any[];
61
+ /** 向前翻页 */
62
+ export declare const PageBackward: (triggerEventAfterIndexChanged?: boolean) => (dispatch: any, getState: any) => Promise<any>;
63
+ /** 向后翻页 */
64
+ export declare const PageForward: (triggerEventAfterIndexChanged?: boolean) => (dispatch: any, getState: any) => Promise<any>;
65
+ /**
66
+ * 跳到指定文件索引
67
+ * @param toIndex
68
+ */
69
+ export declare const PageJump: (toIndex: number, triggerEventAfterIndexChanged?: boolean) => (dispatch: any, getState: any) => Promise<any> | undefined;
70
+ /**
71
+ * 加载文件列表
72
+ * @param dispatch
73
+ * @param getState
74
+ * @param nextIndex 需要加载的图片index
75
+ * @param isInitial // 是否为初始化加载
76
+ */
77
+ export declare const loadImgList: (dispatch: any, getState: any, nextIndex: number, isInitial?: boolean) => Promise<true | undefined>;
78
+ /**
79
+ * 判断翻页还是切换依赖数据
80
+ * @param dispatch
81
+ * @param getState
82
+ * @param pageTurningOperation
83
+ * @param toIndex
84
+ */
85
+ export declare const DispatcherTurning: (dispatch: any, getState: any, pageTurningOperation: EPageTurningOperation, triggerEventAfterIndexChanged?: boolean, toIndex?: number) => Promise<any>;
86
+ /**
87
+ * 保存当前页数据
88
+ * */
89
+ export declare const ChangeSave: (dispatch: Function) => void;
90
+ export declare const SetAnnotationLoading: (dispatch: Function, loading: boolean) => void;
91
+ export declare const SetPointCloudLoading: (dispatch: Function, loading: boolean) => void;
92
+ export declare const InitAnnotationState: (dispatch: Function) => void;
93
+ export declare const SetPredictResult: (dispatch: Function, result: any) => void;
94
+ export declare const SetPredictResultVisible: (dispatch: Function, visible: boolean) => void;
95
+ export declare const GetBoxesByID: (selectedBoxTrackID: number) => (dispatch: any, getState: any) => IPointCloudBox[];
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @file MapStateToProps set
3
+ * @createdate 2022-07-19
4
+ * @author Ron <ron.f.luo@gmail.com>
5
+ */
6
+ import { AppState } from '../index';
7
+ import { IFileItem } from '@/types/data';
8
+ import { IStepInfo } from '@/types/step';
9
+ export declare const aMapStateToProps: (state: AppState) => {
10
+ currentData: any;
11
+ };
12
+ export interface IAnnotationStateProps {
13
+ currentData: IFileItem;
14
+ }
15
+ export interface IA2MapStateProps extends IAnnotationStateProps {
16
+ imgList: IFileItem[];
17
+ stepInfo: IStepInfo;
18
+ config: any;
19
+ imgIndex: number;
20
+ configString: string;
21
+ }
22
+ export declare const a2MapStateToProps: (state: AppState) => {
23
+ currentData: any;
24
+ imgIndex: any;
25
+ imgList: any;
26
+ stepInfo: IStepInfo;
27
+ config: any;
28
+ configString: string;
29
+ };
@@ -0,0 +1,53 @@
1
+ import { IFileItem } from '@/types/data';
2
+ import { IStepInfo } from '@/types/step';
3
+ import { AnnotationEngine } from '@labelbee/lb-annotation';
4
+ import { AnnotationActionTypes, AnnotationState } from './types';
5
+ export declare const getStepConfig: (stepList: any[], step: number) => any;
6
+ /**
7
+ * 获取当前文件列表的总页数
8
+ * @param state
9
+ */
10
+ export declare const getTotalPage: (state: AnnotationState) => number;
11
+ /**
12
+ * 初始化imgNode并加载数据
13
+ * @param nextIndex
14
+ * @param nextBasicIndex
15
+ */
16
+ export declare const LoadFileAndFileData: (nextIndex: number, nextBasicIndex?: number) => any;
17
+ export declare const composeResultByToolInstance: ({ toolInstance, imgList, imgIndex, stepList, step, }: {
18
+ toolInstance: any;
19
+ imgList: IFileItem[];
20
+ imgIndex: number;
21
+ stepList: IStepInfo[];
22
+ step?: number | undefined;
23
+ }) => any[];
24
+ export declare const annotationReducer: (state: {
25
+ toolInstance: import("./types").ToolInstance | null;
26
+ annotationEngine: AnnotationEngine | null;
27
+ imgList: IFileItem[];
28
+ config: string;
29
+ imgIndex: number;
30
+ imgPageSize: number;
31
+ step: number;
32
+ stepList: IStepInfo[];
33
+ imgNode: HTMLImageElement;
34
+ onSubmit?: import("@/types/data").OnSubmit | undefined;
35
+ onSave?: import("@/types/data").OnSave | undefined;
36
+ onPageChange?: import("@/types/data").OnPageChange | undefined;
37
+ onStepChange?: import("@/types/data").OnStepChange | undefined;
38
+ getFileData?: import("@/types/data").GetFileData | undefined;
39
+ loadFileList?: import("@/types/data").LoadFileList | undefined;
40
+ pageSize?: number | undefined;
41
+ basicIndex: number;
42
+ basicResultList: any[];
43
+ resultList: any[];
44
+ stepProgress: number;
45
+ loading: boolean;
46
+ triggerEventAfterIndexChanged: boolean;
47
+ skipBeforePageTurning?: ((pageTurning: Function) => void) | undefined;
48
+ beforeRotate?: (() => boolean) | undefined;
49
+ pointCloudLoading: boolean;
50
+ checkMode: boolean;
51
+ predictionResult: import("./types").IPointCloudBoxWithIndex[];
52
+ predictionResultVisible: boolean;
53
+ } | undefined, action: AnnotationActionTypes) => AnnotationState;
@@ -0,0 +1,7 @@
1
+ import { AnnotationState } from './types';
2
+ /**
3
+ * select current step config
4
+ */
5
+ export declare const stepConfigSelector: ({ annotation }: {
6
+ annotation: AnnotationState;
7
+ }) => any;
@@ -0,0 +1,158 @@
1
+ import { AnnotationEngine, RectOperation, TagOperation, TextToolOperation, PointOperation, PolygonOperation, LineToolOperation } from '@labelbee/lb-annotation';
2
+ import { ANNOTATION_ACTIONS } from '@/store/Actions';
3
+ import { IStepInfo } from '@/types/step';
4
+ import { OnSubmit, IFileItem, GetFileData, OnSave, OnPageChange, OnStepChange, LoadFileList } from '@/types/data';
5
+ import { ESubmitType } from '@/constant';
6
+ import { IPointCloudBox } from '@labelbee/lb-utils';
7
+ export type GraphToolInstance = RectOperation | PointOperation | PolygonOperation | LineToolOperation;
8
+ export type ToolInstance = GraphToolInstance | TagOperation | TextToolOperation;
9
+ interface CommonActions {
10
+ type: string;
11
+ payload?: any;
12
+ }
13
+ export type IPointCloudBoxWithIndex = IPointCloudBox & {
14
+ index: number;
15
+ };
16
+ export interface AnnotationState {
17
+ toolInstance: ToolInstance | null;
18
+ annotationEngine: AnnotationEngine | null;
19
+ imgList: IFileItem[];
20
+ config: string;
21
+ imgIndex: number;
22
+ imgPageSize: number;
23
+ step: number;
24
+ stepList: IStepInfo[];
25
+ imgNode: HTMLImageElement;
26
+ onSubmit?: OnSubmit;
27
+ onSave?: OnSave;
28
+ onPageChange?: OnPageChange;
29
+ onStepChange?: OnStepChange;
30
+ getFileData?: GetFileData;
31
+ loadFileList?: LoadFileList;
32
+ pageSize?: number;
33
+ basicIndex: number;
34
+ basicResultList: any[];
35
+ resultList: any[];
36
+ stepProgress: number;
37
+ loading: boolean;
38
+ /** 阻止文件切换后的事件 */
39
+ triggerEventAfterIndexChanged: boolean;
40
+ skipBeforePageTurning?: (pageTurning: Function) => void;
41
+ beforeRotate?: () => boolean;
42
+ pointCloudLoading: boolean;
43
+ checkMode: boolean;
44
+ predictionResult: IPointCloudBoxWithIndex[];
45
+ predictionResultVisible: boolean;
46
+ }
47
+ interface UpdateToolInstance {
48
+ type: typeof ANNOTATION_ACTIONS.UPDATE_TOOL_INSTANCE;
49
+ payload: {
50
+ toolInstance: ToolInstance;
51
+ annotationEngine: AnnotationEngine;
52
+ };
53
+ }
54
+ interface UpdateImgList {
55
+ type: typeof ANNOTATION_ACTIONS.UPDATE_IMG_LIST;
56
+ payload: {
57
+ imgList: IFileItem[];
58
+ };
59
+ }
60
+ interface UpdateAnnotationConfig {
61
+ type: typeof ANNOTATION_ACTIONS.UPDATE_ANNOTATION_CONFIG;
62
+ payload: {
63
+ config: string;
64
+ };
65
+ }
66
+ interface SubmitFileData extends CommonActions {
67
+ type: typeof ANNOTATION_ACTIONS.SUBMIT_FILE_DATA;
68
+ payload: {
69
+ submitType: ESubmitType;
70
+ };
71
+ }
72
+ interface LoadFileData extends CommonActions {
73
+ type: typeof ANNOTATION_ACTIONS.LOAD_FILE_DATA;
74
+ payload: {
75
+ nextIndex: number;
76
+ };
77
+ }
78
+ interface SetTaskConfig {
79
+ type: typeof ANNOTATION_ACTIONS.SET_TASK_CONFIG;
80
+ payload: {
81
+ stepList: IStepInfo[];
82
+ step: number;
83
+ };
84
+ }
85
+ interface InitTool {
86
+ type: typeof ANNOTATION_ACTIONS.INIT_TOOL;
87
+ payload: {
88
+ stepList: IStepInfo[];
89
+ step: number;
90
+ };
91
+ }
92
+ interface UpdateOnSubmit {
93
+ type: typeof ANNOTATION_ACTIONS.UPDATE_ON_SUBMIT;
94
+ payload: {
95
+ onSubmit: OnSubmit;
96
+ };
97
+ }
98
+ interface UpdateOnSave {
99
+ type: typeof ANNOTATION_ACTIONS.UPDATE_ON_SAVE;
100
+ payload: {
101
+ onSave: OnSave;
102
+ };
103
+ }
104
+ interface UpdateOnPageChange {
105
+ type: typeof ANNOTATION_ACTIONS.UPDATE_ON_PAGE_CHANGE;
106
+ payload: {
107
+ getFileData: OnPageChange;
108
+ };
109
+ }
110
+ interface UpdateOnStepChange {
111
+ type: typeof ANNOTATION_ACTIONS.UPDATE_ON_STEP_CHANGE;
112
+ payload: {
113
+ getFileData: OnStepChange;
114
+ };
115
+ }
116
+ interface UpdateGetFileData {
117
+ type: typeof ANNOTATION_ACTIONS.UPDATE_GET_FILE_DATA;
118
+ payload: {
119
+ getFileData: GetFileData;
120
+ };
121
+ }
122
+ interface UpdatePageSize {
123
+ type: typeof ANNOTATION_ACTIONS.UPDATE_PAGE_SIZE;
124
+ payload: {
125
+ pageSize: number;
126
+ };
127
+ }
128
+ interface UpdateGetFileList {
129
+ type: typeof ANNOTATION_ACTIONS.UPDATE_LOAD_FILE_LIST;
130
+ payload: {
131
+ getFileData: LoadFileList;
132
+ };
133
+ }
134
+ interface CopyBackWordResult extends CommonActions {
135
+ type: typeof ANNOTATION_ACTIONS.COPY_BACKWARD_RESULT;
136
+ }
137
+ interface InitAnnotationState extends CommonActions {
138
+ type: typeof ANNOTATION_ACTIONS.INIT_ALL_STATE;
139
+ }
140
+ interface BatchUpdateTrackID {
141
+ type: typeof ANNOTATION_ACTIONS.BATCH_UPDATE_TRACK_ID;
142
+ payload: {
143
+ id: number;
144
+ newID: number;
145
+ range: [number, number];
146
+ imgList: IFileItem[];
147
+ };
148
+ }
149
+ interface BatchUpdateResultByTrackID {
150
+ type: typeof ANNOTATION_ACTIONS.BATCH_UPDATE_RESULT_BY_TRACK_ID;
151
+ payload: {
152
+ id: number;
153
+ newData: Partial<IPointCloudBox>;
154
+ range: [number, number];
155
+ };
156
+ }
157
+ export type AnnotationActionTypes = UpdateToolInstance | UpdateImgList | UpdateAnnotationConfig | SubmitFileData | LoadFileData | SetTaskConfig | InitTool | UpdateOnSubmit | UpdateOnPageChange | UpdateOnStepChange | UpdateGetFileData | UpdatePageSize | UpdateGetFileList | CopyBackWordResult | UpdateOnSave | BatchUpdateTrackID | BatchUpdateResultByTrackID | InitAnnotationState;
158
+ export {};
@@ -0,0 +1,4 @@
1
+ import { AnyAction, Dispatch } from 'redux';
2
+ export declare const LabelBeeContext: any;
3
+ export declare const useDispatch: () => Dispatch<AnyAction | any>;
4
+ export declare const useSelector: <Selected extends unknown>(selector: (state: any) => Selected, equalityFn?: ((previous: Selected, next: Selected) => boolean) | undefined) => Selected;
@@ -0,0 +1,8 @@
1
+ import { ImgAttributeActionTypes, ImgAttributeState } from './types';
2
+ export declare function UpdateImgAttribute(imgAttribute: ImgAttributeState): ImgAttributeActionTypes;
3
+ export declare function InitImgAttribute(): ImgAttributeActionTypes;
4
+ declare const _default: {
5
+ UpdateImgAttribute: typeof UpdateImgAttribute;
6
+ InitImgAttribute: typeof InitImgAttribute;
7
+ };
8
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { ImgAttributeState, ImgAttributeActionTypes } from './types';
2
+ export declare function imgAttributeReducer(state: {
3
+ contrast: number;
4
+ saturation: number;
5
+ brightness: number;
6
+ zoomRatio: number;
7
+ isOriginalSize: boolean;
8
+ } | undefined, action: ImgAttributeActionTypes): ImgAttributeState;
@@ -0,0 +1,23 @@
1
+ import { IMAGE_ATTRIBUTE_ACTIONS } from '@/store/Actions';
2
+ export interface ImgAttributeState {
3
+ contrast: number;
4
+ saturation: number;
5
+ brightness: number;
6
+ zoomRatio: number;
7
+ isOriginalSize: boolean;
8
+ }
9
+ interface UpdateImgAttribute {
10
+ type: typeof IMAGE_ATTRIBUTE_ACTIONS.UPDATE_IMG_ATTRIBUTE;
11
+ payload: {
12
+ contrast?: number;
13
+ saturation?: number;
14
+ brightness?: number;
15
+ zoomRatio?: number;
16
+ };
17
+ }
18
+ interface InitImgAttribute {
19
+ type: typeof IMAGE_ATTRIBUTE_ACTIONS.INIT_IMG_ATTRIBUTE;
20
+ payload: {};
21
+ }
22
+ export type ImgAttributeActionTypes = UpdateImgAttribute | InitImgAttribute;
23
+ export {};
@@ -0,0 +1,3 @@
1
+ import { CombinedState } from 'redux';
2
+ export declare const rootReducer: CombinedState<any>;
3
+ export type AppState = ReturnType<typeof rootReducer>;
@@ -0,0 +1,8 @@
1
+ import { ToolStyleActionTypes, ToolStyleState } from './types';
2
+ export declare function InitToolStyleConfig(): ToolStyleActionTypes;
3
+ export declare function UpdateToolStyleConfig(toolStyle: Partial<ToolStyleState>): ToolStyleActionTypes;
4
+ declare const _default: {
5
+ InitToolStyleConfig: typeof InitToolStyleConfig;
6
+ UpdateToolStyleConfig: typeof UpdateToolStyleConfig;
7
+ };
8
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { ToolStyleActionTypes, ToolStyleState } from './types';
2
+ export declare function toolStyleReducer(state: {
3
+ color: number;
4
+ width: number;
5
+ borderOpacity: number;
6
+ fillOpacity: number;
7
+ toolColor: {
8
+ [color: number]: any;
9
+ };
10
+ attributeColor: any[];
11
+ lineColor: string;
12
+ attributeLineColor: string[];
13
+ } | undefined, action: ToolStyleActionTypes): ToolStyleState;
@@ -0,0 +1,23 @@
1
+ import { TOOL_STYLE_ACTIONS } from '@/store/Actions';
2
+ export interface ToolStyleState {
3
+ color: number;
4
+ width: number;
5
+ borderOpacity: number;
6
+ fillOpacity: number;
7
+ toolColor: {
8
+ [color: number]: any;
9
+ };
10
+ attributeColor: any[];
11
+ lineColor: string;
12
+ attributeLineColor: string[];
13
+ }
14
+ interface UpdateToolStyleConfig {
15
+ type: typeof TOOL_STYLE_ACTIONS.UPDATE_TOOL_STYLE_CONFIG;
16
+ payload: Partial<ToolStyleState>;
17
+ }
18
+ interface InitToolStyleConfig {
19
+ type: typeof TOOL_STYLE_ACTIONS.INIT_TOOL_STYLE_CONFIG;
20
+ payload: undefined;
21
+ }
22
+ export type ToolStyleActionTypes = InitToolStyleConfig | UpdateToolStyleConfig;
23
+ export {};