@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
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var index$1=require("./components/AnnotationView/index.js"),pointCloudAnnotationView=require("./components/AnnotationView/pointCloudAnnotationView.js"),lbUtils=require("@labelbee/lb-utils"),React=require("react"),reactI18next=require("react-i18next"),reactRedux=require("react-redux"),App=require("./App.js"),configureStore=require("./configureStore.js"),actionCreators=require("./store/annotation/actionCreators.js"),TagToolInstanceAdaptorI18nProvider=require("./components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js"),PointCloudContext=require("./components/pointCloudView/PointCloudContext.js"),ctx=require("./store/ctx.js"),index$2=require("./components/predictTracking/predictTrackingIcon/index.js"),index$3=require("./constant/index.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t));const store=configureStore(),OutputApp=(e,t)=>{const[r,o]=React.useState();return React.useImperativeHandle(t,()=>({toolInstance:r,annotationEngine:store.getState().annotation.annotationEngine,pageBackwardActions:()=>store.dispatch(actionCreators.PageBackward()),pageForwardActions:()=>store.dispatch(actionCreators.PageForward()),pageJump:n=>{const a=~~n-1;store.dispatch(actionCreators.PageJump(a))},hello:()=>alert("hello labelBee!!!")}),[r]),React__default.default.createElement(reactRedux.Provider,{store,context:ctx.LabelBeeContext},React__default.default.createElement(reactI18next.I18nextProvider,{i18n:lbUtils.i18n},React__default.default.createElement(PointCloudContext.PointCloudProvider,null,React__default.default.createElement(App,__spreadProps(__spreadValues({},e),{setToolInstance:o})))))};var index=React__default.default.forwardRef(OutputApp);exports.AnnotationView=index$1,exports.PointCloudAnnotationView=pointCloudAnnotationView,Object.defineProperty(exports,"i18n",{enumerable:!0,get:function(){return lbUtils.i18n}}),exports.VideoTagTool=TagToolInstanceAdaptorI18nProvider.VideoTagTool,exports.PredictTracking=index$2,Object.defineProperty(exports,"EStepType",{enumerable:!0,get:function(){return index$3.EStepType}}),Object.defineProperty(exports,"ESubmitType",{enumerable:!0,get:function(){return index$3.ESubmitType}}),exports.componentCls=index$3.componentCls,exports.prefix=index$3.prefix,exports.default=index,exports.store=store;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const ANNOTATION_ACTIONS={INIT_ALL_STATE:"@@INIT_ALL_STATE",UPDATE_TOOL_INSTANCE:"@@UPDATE_TOOL_INSTANCE",UPDATE_IMG_LIST:"@@UPDATE_IMG_LIST",UPDATE_ANNOTATION_CONFIG:"@@UPDATE_ANNOTATION_CONFIG",LOAD_FILE_DATA:"@@LOAD_FILE_DATA",SUBMIT_FILE_DATA:"@@SUBMIT_FILE_DATA",SET_TASK_CONFIG:"@@SET_TASK_CONFIG",INIT_TOOL:"@@INIT_TOOL",SET_TOOL:"@@SET_TOOL",UPDATE_ON_SUBMIT:"@@UPDATE_ON_SUBMIT",UPDATE_ON_SAVE:"@@UPDATE_ON_SAVE",UPDATE_ON_PAGE_CHANGE:"@@UPDATE_ON_PAGE_CHANGE",UPDATE_ON_STEP_CHANGE:"@@UPDATE_ON_STEP_CHANGE",UPDATE_ROTATE:"@@UPDATE_ROTATE",UPDATE_GET_FILE_DATA:"@@UPDATE_GET_FILE_DATA",UPDATE_PAGE_SIZE:"@@UPDATE_PAGE_SIZE",UPDATE_LOAD_FILE_LIST:"@@UPDATE_LOAD_FILE_LIST",GET_FILE_DATA:"@@GET_FILE_DATA",SET_FILE_DATA:"@@SET_FILE_DATA",COPY_BACKWARD_RESULT:"@@COPY_BACKWARD_RESULT",SET_STEP:"@@SET_STEP",SUBMIT_RESULT:"@@SUBMIT_RESULT",SAVE_RESULT:"@@SAVE_RESULT",SET_BASIC_INDEX:"@@SET_BASIC_INDEX",CALC_STEP_PROGRESS:"@@CALC_STEP_PROGRESS",SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED:"@@SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED",SKIP_BEFORE_PAGE_TURNING:"@@SKIP_BEFORE_PAGE_TURNING",UPDATE_BEFORE_ROTATE:"@@UPDATE_BEFORE_ROTATE",SET_LOADING:"@@SET_LOADING",SET_POINT_CLOUD_LOADING:"@@SET_POINT_CLOUD_LOADING",SET_CHECK_MODE:"@@SET_CHECK_MODE",SET_TASK_STEP_LIST:"@@SET_TASK_STEP_LIST",UPDATE_ANNOTATION_VALID:"@@UPDATE_ANNOTATION_VALID",BATCH_UPDATE_TRACK_ID:"@@BATCH_UPDATE_TRACK_ID",BATCH_UPDATE_RESULT_BY_TRACK_ID:"@@BATCH_UPDATE_RESULT_BY_TRACK_ID",BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT:"@@BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT",SET_PREDICT_RESULT_VISIBLE:"@@SET_PREDICT_RESULT_VISIBLE",SET_PREDICT_RESULT:"@@SET_PREDICT_RESULT"},IMAGE_ATTRIBUTE_ACTIONS={UPDATE_IMG_ATTRIBUTE:"@@UPDATE_IMG_ATTRIBUTE",INIT_IMG_ATTRIBUTE:"@@INIT_IMG_ATTRIBUTE"},TOOL_STYLE_ACTIONS={INIT_TOOL_STYLE_CONFIG:"@@INIT_TOOL_STYLE_CONFIG",UPDATE_TOOL_STYLE_CONFIG:"@@UPDATE_TOOL_STYLE_CONFIG"};exports.ANNOTATION_ACTIONS=ANNOTATION_ACTIONS,exports.IMAGE_ATTRIBUTE_ACTIONS=IMAGE_ATTRIBUTE_ACTIONS,exports.TOOL_STYLE_ACTIONS=TOOL_STYLE_ACTIONS;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Actions=require("../Actions.js"),reducer=require("./reducer.js"),index=require("../../constant/index.js"),AnnotationSize=require("../../data/enums/AnnotationSize.js"),PageOperator=require("../../utils/PageOperator.js"),index$1=require("../../utils/index.js"),util=require("../../components/predictTracking/previewResult/util.js"),__async=(e,t,n)=>new Promise((a,o)=>{var i=s=>{try{p(n.next(s))}catch(r){o(r)}},T=s=>{try{p(n.throw(s))}catch(r){o(r)}},p=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,T);p((n=n.apply(e,t)).next())});const dispatchTasks=(e,t)=>t.map(n=>e(n)),getSubmitByPageOperation=e=>e===AnnotationSize.EPageTurningOperation.Forward?index.ESubmitType.Forward:e===AnnotationSize.EPageTurningOperation.Backward?index.ESubmitType.Backward:e===AnnotationSize.EPageTurningOperation.Jump?index.ESubmitType.Jump:index.ESubmitType.Forward,getBasicIndex=(e,t)=>{var n,a;const{imgList:o,imgIndex:i}=e,{dataSourceStep:T}=reducer.getStepConfig(e.stepList,e.step);return((a=(n=index$1.jsonParser(o[i-1].result)[`step_${T}`])==null?void 0:n.result)==null?void 0:a.length)-1||t};function UpdateToolInstance(e){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_TOOL_INSTANCE,payload:{toolInstance:e}}}function SetTaskStepList({stepList:e}){return{type:Actions.ANNOTATION_ACTIONS.SET_TASK_STEP_LIST,payload:{stepList:e}}}function SetTaskConfig({stepList:e,step:t}){return{type:Actions.ANNOTATION_ACTIONS.SET_TASK_CONFIG,payload:{stepList:e,step:t}}}function UpdateOnSubmit(e){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ON_SUBMIT,payload:{onSubmit:e}}}function UpdateOnSave(e){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ON_SAVE,payload:{onSave:e}}}function UpdateOnPageChange(e){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ON_PAGE_CHANGE,payload:{onPageChange:e}}}function UpdateOnStepChange(e){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ON_STEP_CHANGE,payload:{onStepChange:e}}}function UpdateGetFileData(e){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_GET_FILE_DATA,payload:{getFileData:e}}}function UpdatePageSize(e){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_PAGE_SIZE,payload:{pageSize:e}}}function UpdateGetFileList(e){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_LOAD_FILE_LIST,payload:{loadFileList:e}}}function UpdateRotate(){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ROTATE}}function UpdateSkipBeforePageTurning(e){return{type:Actions.ANNOTATION_ACTIONS.SKIP_BEFORE_PAGE_TURNING,payload:{skipBeforePageTurning:e}}}function UpdateBeforeRotate(e){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_BEFORE_ROTATE,payload:{beforeRotate:e}}}function CopyBackWordResult(){return{type:Actions.ANNOTATION_ACTIONS.COPY_BACKWARD_RESULT}}function BatchUpdateTrackID({id:e,newID:t,rangeIndex:n,imgList:a}){return{type:Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_TRACK_ID,payload:{id:e,newID:t,rangeIndex:n,imgList:a}}}function BatchUpdateResultByTrackID(e,t,n){return{type:Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_RESULT_BY_TRACK_ID,payload:{id:e,newData:t,rangeIndex:n}}}function BatchUpdateImgListResultByPredictResult(){return{type:Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT,payload:{}}}const UpdateCheckMode=e=>({type:Actions.ANNOTATION_ACTIONS.SET_CHECK_MODE,payload:{checkMode:e}});function InitTaskData({onSubmit:e,onSave:t,onPageChange:n,onStepChange:a,getFileData:o,pageSize:i,loadFileList:T,step:p,stepList:s,skipBeforePageTurning:r,beforeRotate:A,checkMode:N}){const u=[];return e&&u.push(UpdateOnSubmit(e)),t&&u.push(UpdateOnSave(t)),n&&u.push(UpdateOnPageChange(n)),a&&u.push(UpdateOnStepChange(a)),o&&u.push(UpdateGetFileData(o)),T&&u.push(UpdateGetFileList(T)),i&&u.push(UpdatePageSize(i)),r&&u.push(UpdateSkipBeforePageTurning(r)),A&&u.push(UpdateBeforeRotate(A)),typeof N=="boolean"&&u.push(UpdateCheckMode(N)),u.push(SetTaskConfig({stepList:s,step:p})),u.push({type:Actions.ANNOTATION_ACTIONS.CALC_STEP_PROGRESS}),u.push({type:Actions.ANNOTATION_ACTIONS.INIT_TOOL}),I=>dispatchTasks(I,u)}function UpdateInjectFunc({onSubmit:e,onSave:t,onPageChange:n,onStepChange:a,getFileData:o,pageSize:i,loadFileList:T,stepList:p,beforeRotate:s}){const r=[];return e&&r.push(UpdateOnSubmit(e)),t&&r.push(UpdateOnSave(t)),n&&r.push(UpdateOnPageChange(n)),a&&r.push(UpdateOnStepChange(a)),o&&r.push(UpdateGetFileData(o)),T&&r.push(UpdateGetFileList(T)),i&&r.push(UpdatePageSize(i)),s&&r.push(UpdateBeforeRotate(s)),r.push(SetTaskStepList({stepList:p})),A=>dispatchTasks(A,r)}const getNextStep=(e,t)=>{var n;const a=t==null?void 0:t.findIndex(o=>(o==null?void 0:o.step)===e);return(n=t[a+1])==null?void 0:n.step},ToNextStep=e=>(t,n)=>{const{annotation:a}=n(),{step:o,stepList:i}=a,T=getNextStep(o,i);return[t(UpdateProcessingStep(T,e))]},UpdateProcessingStep=(e,t)=>(n,a)=>{var o,i;const{annotation:T}=a();(o=T==null?void 0:T.onStepChange)==null||o.call(T,e);const p=(i=T==null?void 0:T.imgIndex)!=null?i:0;return[n({type:Actions.ANNOTATION_ACTIONS.SUBMIT_RESULT}),n({type:Actions.ANNOTATION_ACTIONS.SUBMIT_FILE_DATA,payload:{submitType:index.ESubmitType.StepChanged}}),n({type:Actions.ANNOTATION_ACTIONS.SET_STEP,payload:{toStep:e}}),n({type:Actions.ANNOTATION_ACTIONS.CALC_STEP_PROGRESS}),n(reducer.LoadFileAndFileData(t!=null?t:p,0))]},ToSubmitFileData=e=>t=>[t({type:Actions.ANNOTATION_ACTIONS.SUBMIT_RESULT}),t({type:Actions.ANNOTATION_ACTIONS.SUBMIT_FILE_DATA,payload:{submitType:e}})],SubmitAndChangeFileIndex=(e,t,n,a)=>[e(ToSubmitFileData(n)),e(reducer.LoadFileAndFileData(t,a))],ChangeBasicIndex=(e,t)=>[e({type:Actions.ANNOTATION_ACTIONS.SUBMIT_RESULT}),e({type:Actions.ANNOTATION_ACTIONS.SET_BASIC_INDEX,payload:{basicIndex:t}})],ChangeTriggerEventAfterIndexChanged=(e,t)=>{e({type:Actions.ANNOTATION_ACTIONS.SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED,payload:{triggerEventAfterIndexChanged:t}})},PageBackward=(e=!1)=>(t,n)=>DispatcherTurning(t,n,AnnotationSize.EPageTurningOperation.Backward,e),PageForward=(e=!1)=>(t,n)=>DispatcherTurning(t,n,AnnotationSize.EPageTurningOperation.Forward,e),PageJump=(e,t=!1)=>(n,a)=>{if(e!==a().imgIndex)return DispatcherTurning(n,a,AnnotationSize.EPageTurningOperation.Jump,t,e)},loadImgList=(e,t,n,a)=>__async(void 0,null,function*(){var o;const{loadFileList:i,imgList:T,pageSize:p}=t().annotation,s=Math.floor(n/p);SetAnnotationLoading(e,!0);try{const r=yield i(s,p);if(SetAnnotationLoading(e,!1),!((o=r==null?void 0:r.fileList)==null?void 0:o.length)||!(r==null?void 0:r.total))throw new Error("fileList and total are required");const A=a?new Array(r.total):[...T];return A.splice(s*p,p,...r.fileList),e({type:Actions.ANNOTATION_ACTIONS.UPDATE_IMG_LIST,payload:{imgList:A}}),!0}catch(r){SetAnnotationLoading(e,!1),console.error(r)}}),DispatcherTurning=(e,t,n,a=!1,o)=>__async(void 0,null,function*(){var i;const T=t().annotation,{fileIndexChanged:p,fileIndex:s,basicIndexChanged:r,basicIndex:A}=PageOperator.getNextPageInfo(n,T,o),N=getSubmitByPageOperation(n);if(ChangeTriggerEventAfterIndexChanged(e,a),p){if(T.loading||!T.imgList[s]&&!(yield loadImgList(e,t,s)))return;(i=T.onPageChange)==null||i.call(T,s);const u=N===index.ESubmitType.Backward?getBasicIndex(t().annotation,A):A;return SubmitAndChangeFileIndex(e,s,N,u)}return r?ChangeBasicIndex(e,A):e(ToSubmitFileData(N))}),ChangeSave=e=>{e(ToSubmitFileData(index.ESubmitType.Save)),e({type:Actions.ANNOTATION_ACTIONS.SAVE_RESULT})},SetAnnotationLoading=(e,t)=>{e({type:Actions.ANNOTATION_ACTIONS.SET_LOADING,payload:{loading:t}})},SetPointCloudLoading=(e,t)=>{e({type:Actions.ANNOTATION_ACTIONS.SET_LOADING,payload:{loading:t}})},InitAnnotationState=e=>{e({type:Actions.ANNOTATION_ACTIONS.INIT_ALL_STATE,payload:{}})},SetPredictResult=(e,t)=>{e({type:Actions.ANNOTATION_ACTIONS.SET_PREDICT_RESULT,payload:{result:t}})},SetPredictResultVisible=(e,t)=>{e({type:Actions.ANNOTATION_ACTIONS.SET_PREDICT_RESULT_VISIBLE,payload:{visible:t}})},GetBoxesByID=e=>(t,n)=>{const{imgList:a,step:o}=n().annotation;return util.getBoxesByTrackID(a,o,e)};exports.BatchUpdateImgListResultByPredictResult=BatchUpdateImgListResultByPredictResult,exports.BatchUpdateResultByTrackID=BatchUpdateResultByTrackID,exports.BatchUpdateTrackID=BatchUpdateTrackID,exports.ChangeSave=ChangeSave,exports.CopyBackWordResult=CopyBackWordResult,exports.DispatcherTurning=DispatcherTurning,exports.GetBoxesByID=GetBoxesByID,exports.InitAnnotationState=InitAnnotationState,exports.InitTaskData=InitTaskData,exports.PageBackward=PageBackward,exports.PageForward=PageForward,exports.PageJump=PageJump,exports.SetAnnotationLoading=SetAnnotationLoading,exports.SetPointCloudLoading=SetPointCloudLoading,exports.SetPredictResult=SetPredictResult,exports.SetPredictResultVisible=SetPredictResultVisible,exports.SetTaskConfig=SetTaskConfig,exports.SetTaskStepList=SetTaskStepList,exports.ToNextStep=ToNextStep,exports.ToSubmitFileData=ToSubmitFileData,exports.UpdateBeforeRotate=UpdateBeforeRotate,exports.UpdateCheckMode=UpdateCheckMode,exports.UpdateGetFileData=UpdateGetFileData,exports.UpdateGetFileList=UpdateGetFileList,exports.UpdateInjectFunc=UpdateInjectFunc,exports.UpdateOnPageChange=UpdateOnPageChange,exports.UpdateOnSave=UpdateOnSave,exports.UpdateOnStepChange=UpdateOnStepChange,exports.UpdateOnSubmit=UpdateOnSubmit,exports.UpdatePageSize=UpdatePageSize,exports.UpdateProcessingStep=UpdateProcessingStep,exports.UpdateRotate=UpdateRotate,exports.UpdateSkipBeforePageTurning=UpdateSkipBeforePageTurning,exports.UpdateToolInstance=UpdateToolInstance,exports.loadImgList=loadImgList;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var StepUtils=require("../../utils/StepUtils.js"),index=require("../../utils/index.js");const a2MapStateToProps=n=>{var e,o,i;const{annotation:{imgList:r,imgIndex:s}}=n,a=(e=r[s])!=null?e:{},t=StepUtils.getCurrentStepInfo((o=n.annotation)==null?void 0:o.step,(i=n.annotation)==null?void 0:i.stepList);return{currentData:a,imgIndex:s,imgList:r,stepInfo:t,config:index.jsonParser(t==null?void 0:t.config),configString:t==null?void 0:t.config}};exports.a2MapStateToProps=a2MapStateToProps;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var index$2=require("../../components/customResizeHook/index.js"),index$1=require("../../constant/index.js"),styleString=require("../../constant/styleString.js"),Actions=require("../Actions.js"),index=require("../../utils/index.js"),AnnotationDataUtils=require("../../utils/AnnotationDataUtils.js"),ConfigUtils=require("../../utils/ConfigUtils.js"),data=require("../../utils/data.js"),StepUtils=require("../../utils/StepUtils.js"),ToolUtils=require("../../utils/ToolUtils.js"),lbAnnotation=require("@labelbee/lb-annotation"),lbUtils=require("@labelbee/lb-utils"),antd=require("antd"),es=require("antd/es"),_=require("lodash"),actionCreators=require("./actionCreators.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ___default=_interopDefaultLegacy(_),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,s)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,__spreadValues=(e,t)=>{for(var s in t||(t={}))__hasOwnProp.call(t,s)&&__defNormalProp(e,s,t[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(t))__propIsEnum.call(t,s)&&__defNormalProp(e,s,t[s]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__async=(e,t,s)=>new Promise((p,c)=>{var O=I=>{try{S(s.next(I))}catch(v){c(v)}},g=I=>{try{S(s.throw(I))}catch(v){c(v)}},S=I=>I.done?p(I.value):Promise.resolve(I.value).then(O,g);S((s=s.apply(e,t)).next())});const getStepConfig=(e,t)=>e.find(s=>s.step===t),initialState={annotationEngine:null,toolInstance:null,imgList:[],config:"{}",imgIndex:-1,basicIndex:0,imgPageSize:1,step:1,stepList:[],imgNode:new Image,basicResultList:[],resultList:[],stepProgress:0,loading:!1,triggerEventAfterIndexChanged:!1,pointCloudLoading:!1,checkMode:!1,predictionResult:[],predictionResultVisible:!1},getTotalPage=e=>{const{imgList:t,imgPageSize:s}=e;return Math.ceil(t.length/s)},calcStepProgress=(e,t)=>e.reduce((s,p)=>{if(p){const c=p.result;if(index.jsonParser(c)[`step_${t}`])return s+1}return s},0)/e.length,updateToolInstance=(e,t)=>{const{step:s,stepList:p}=e,c=StepUtils.getCurrentStepInfo(s,p),O=ConfigUtils.ConfigUtils.jsonParser(c.config);if(ToolUtils.isVideoTool(c==null?void 0:c.tool)||ToolUtils.isPointCloudTool(c==null?void 0:c.tool))return;const g=document.getElementById("toolContainer");if(!g)throw"Not exist dom named id-toolContainer";const S=index$2.getFormatSize({width:window.innerWidth,height:window.innerHeight}),I=new lbAnnotation.AnnotationEngine({container:g,toolName:c.tool,size:S,imgNode:t,config:O,style:JSON.parse(styleString)});return{toolInstance:I==null?void 0:I.toolInstance,annotationEngine:I}},LoadFileAndFileData=(e,t)=>(s,p)=>__async(void 0,null,function*(){const{stepList:c,step:O}=p().annotation,g=StepUtils.currentToolIsVideo(O,c),S=StepUtils.currentToolIsPointCloud(O,c);if(actionCreators.SetAnnotationLoading(s,!0),yield s(TryGetFileDataByAPI(e)),g||S){s(AfterVideoLoaded(e));return}s(AfterImageLoaded(e,t))}),TryGetFileDataByAPI=e=>(t,s)=>__async(void 0,null,function*(){const{getFileData:p,imgList:c}=s().annotation;if(p){const O=yield p(c[e],e);t({type:Actions.ANNOTATION_ACTIONS.SET_FILE_DATA,payload:{fileData:O,index:e}})}}),AfterVideoLoaded=e=>t=>{actionCreators.SetAnnotationLoading(t,!1),t({type:Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA,payload:{nextIndex:e}})},AfterImageLoaded=(e,t)=>(s,p)=>{var c;const{toolInstance:O,imgList:g}=p().annotation,S=(c=g==null?void 0:g[e])==null?void 0:c.url;lbAnnotation.ImgUtils.load(S).then(I=>{actionCreators.SetAnnotationLoading(s,!1),s({type:Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA,payload:{imgNode:I,nextIndex:e,nextBasicIndex:t}})}).catch(()=>{actionCreators.SetAnnotationLoading(s,!1),O==null||O.setErrorImg(),s({type:Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA,payload:{nextIndex:e,nextBasicIndex:t}})})},composeResultByToolInstance=({toolInstance:e,imgList:t,imgIndex:s,stepList:p,step:c=1})=>{var O,g,S,I;const v=((O=t[s])==null?void 0:O.result)||"",[h,b,U]=(g=e==null?void 0:e.exportData())!=null?g:[],x=(I=(S=e==null?void 0:e.exportCustomData)==null?void 0:S.call(e))!=null?I:{},B=data.composeResultWithBasicImgInfo(v,b),w=data.composeResult(B,{step:c,stepList:p},{rect:h},x);return t.map((R,j)=>j===s?__spreadValues(__spreadProps(__spreadValues({},R),{result:w}),U):__spreadValues({},R))},annotationReducer=(e=__spreadValues({},initialState),t)=>{var s,p,c,O,g,S,I,v,h,b,U,x,B,w,R,j,V,G,q,M,k,H,z;switch(t.type){case Actions.ANNOTATION_ACTIONS.INIT_ALL_STATE:return __spreadValues(__spreadValues({},e),initialState);case Actions.ANNOTATION_ACTIONS.UPDATE_TOOL_INSTANCE:return __spreadProps(__spreadValues({},e),{toolInstance:t.payload.toolInstance});case Actions.ANNOTATION_ACTIONS.UPDATE_IMG_LIST:return __spreadProps(__spreadValues({},e),{imgList:t.payload.imgList});case Actions.ANNOTATION_ACTIONS.CALC_STEP_PROGRESS:{const{imgList:n,step:o}=e,i=calcStepProgress(n,o);return __spreadProps(__spreadValues({},e),{stepProgress:i})}case Actions.ANNOTATION_ACTIONS.SUBMIT_FILE_DATA:{const{imgList:n,imgIndex:o,step:i,stepList:l,toolInstance:u,onSubmit:r,resultList:A}=e;if(!u||!n[o])return e;const d=((s=n[o])==null?void 0:s.result)||"",[,a,T]=(p=u==null?void 0:u.exportData())!=null?p:[],N=(O=(c=u==null?void 0:u.exportCustomData)==null?void 0:c.call(u))!=null?O:{},f=data.composeResultWithBasicImgInfo(d,a),L=data.composeResult(f,{step:i,stepList:l},{rect:A},N),m=e.imgList.map((E,C)=>{if(C===o){const P=AnnotationDataUtils.dataCorrection(L,d,i,l);return __spreadValues(__spreadProps(__spreadValues({},E),{result:P}),T)}return E});if(((g=t.payload)==null?void 0:g.submitType)===index$1.ESubmitType.SyncImgList)return __spreadProps(__spreadValues({},e),{imgList:m});r&&r([m[o]],(S=t.payload)==null?void 0:S.submitType,o,m);const D=calcStepProgress(m,i);return __spreadProps(__spreadValues({},e),{stepProgress:D,imgList:m})}case Actions.ANNOTATION_ACTIONS.SAVE_RESULT:{const{imgList:n,imgIndex:o,onSave:i}=e;return i==null||i(n[o],o,n),__spreadValues({},e)}case Actions.ANNOTATION_ACTIONS.SUBMIT_RESULT:{const{imgList:n,basicIndex:o,resultList:i,toolInstance:l,basicResultList:u}=e;if(!l)return e;const[r]=(I=l==null?void 0:l.exportData())!=null?I:[];let A=r;if((u==null?void 0:u.length)>0){const d=(v=u[o])==null?void 0:v.id,a=r.map(T=>__spreadProps(__spreadValues({},T),{sourceID:d}));A=___default.default.cloneDeep(i).filter(T=>T.sourceID!==d),A.push(...a)}return __spreadProps(__spreadValues({},e),{resultList:A,imgList:n})}case Actions.ANNOTATION_ACTIONS.SET_BASIC_INDEX:{const{toolInstance:n,step:o,imgList:i,imgIndex:l,stepList:u,annotationEngine:r,resultList:A,basicResultList:d}=e;if(!n||!r)return e;const a=t.payload.basicIndex,T=(h=d[a])==null?void 0:h.id,N=index.jsonParser((b=i[l])==null?void 0:b.result),f=(A||[]).filter(P=>P.sourceID===T),L=getStepConfig(u,o),{dataSourceStep:m,tool:D}=L,E=getStepConfig(u,m);let C=[];return m&&D&&(C=(U=N[`step_${m}`])==null?void 0:U.result,(C==null?void 0:C.length)>0?(r==null||r.setBasicInfo(E.tool,C[a]),r==null||r.launchOperation()):(r==null||r.setBasicInfo(E.tool),r==null||r.forbidOperation(),es.message.info(lbUtils.i18n.t("NoDependency")))),n==null||n.setResult(f),n==null||n.history.initRecord(f,!0),__spreadProps(__spreadValues({},e),{basicIndex:a})}case Actions.ANNOTATION_ACTIONS.SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED:{const{triggerEventAfterIndexChanged:n}=t.payload;return __spreadProps(__spreadValues({},e),{triggerEventAfterIndexChanged:!!n})}case Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA:{const{imgList:n,step:o,toolInstance:i,annotationEngine:l,stepList:u}=e;if(!i)return __spreadProps(__spreadValues({},e),{imgIndex:t.payload.nextIndex});const r=StepUtils.getCurrentStepInfo(o,u),{nextIndex:A,imgNode:d,nextBasicIndex:a,imgError:T}=t.payload,N=a!=null?a:0,f=index.jsonParser((x=n[A])==null?void 0:x.result),L=f[`step_${r.step}`],m=!L,D={rotate:(B=f.rotate)!=null?B:0,valid:(w=f.valid)!=null?w:!0};d&&T!==!0?l==null||l.setImgNode(d,D):i==null||i.setValid(D.valid);const E=getStepConfig(u,r.step),{dataSourceStep:C,tool:P}=E,K=getStepConfig(u,C),W=C&&P,y=(j=(R=f[`step_${C}`])==null?void 0:R.result)!=null?j:[],F=AnnotationDataUtils.getInitialResultList(L==null?void 0:L.result,i,E,y,m);if(l==null||l.launchOperation(),W&&((y==null?void 0:y.length)>0?l==null||l.setBasicInfo(K.tool,y[N]):(l==null||l.setBasicInfo(K.tool),l==null||l.forbidOperation(),es.message.info(lbUtils.i18n.t("NoDependency")))),r.tool!=="check"){const $=(G=(V=y[N])==null?void 0:V.id)!=null?G:"",Y=W?F.filter(J=>lbAnnotation.CommonToolUtils.isSameSourceID(J.sourceID,$)):F;i==null||i.history.initRecord(F,!0),i==null||i.setResult(Y)}return __spreadProps(__spreadValues({},e),{imgIndex:A,basicIndex:N,basicResultList:y,resultList:F})}case Actions.ANNOTATION_ACTIONS.UPDATE_ANNOTATION_CONFIG:return __spreadProps(__spreadValues({},e),{config:(q=t.payload.config)!=null?q:"{}"});case Actions.ANNOTATION_ACTIONS.SET_TASK_STEP_LIST:{const{stepList:n}=t.payload;return __spreadProps(__spreadValues({},e),{stepList:n})}case Actions.ANNOTATION_ACTIONS.SET_TASK_CONFIG:{const{stepList:n,step:o}=t.payload;return __spreadProps(__spreadValues({},e),{stepList:n,step:o})}case Actions.ANNOTATION_ACTIONS.INIT_TOOL:{const{imgNode:n}=e,o=updateToolInstance(e,n);if(o){const{toolInstance:i,annotationEngine:l}=o;return __spreadProps(__spreadValues({},e),{toolInstance:i,annotationEngine:l})}return __spreadValues({},e)}case Actions.ANNOTATION_ACTIONS.SET_TOOL:{const n=(M=t.payload)==null?void 0:M.instance;return n?__spreadProps(__spreadValues({},e),{toolInstance:n}):__spreadValues({},e)}case Actions.ANNOTATION_ACTIONS.UPDATE_ON_SUBMIT:return __spreadProps(__spreadValues({},e),{onSubmit:t.payload.onSubmit});case Actions.ANNOTATION_ACTIONS.UPDATE_ON_SAVE:return __spreadProps(__spreadValues({},e),{onSave:t.payload.onSave});case Actions.ANNOTATION_ACTIONS.UPDATE_ON_PAGE_CHANGE:return __spreadProps(__spreadValues({},e),{onPageChange:t.payload.onPageChange});case Actions.ANNOTATION_ACTIONS.SET_PREDICT_RESULT:return __spreadProps(__spreadValues({},e),{predictionResult:t.payload.result});case Actions.ANNOTATION_ACTIONS.SET_PREDICT_RESULT_VISIBLE:return __spreadProps(__spreadValues({},e),{predictionResultVisible:t.payload.visible});case Actions.ANNOTATION_ACTIONS.UPDATE_ON_STEP_CHANGE:return __spreadProps(__spreadValues({},e),{onStepChange:t.payload.onStepChange});case Actions.ANNOTATION_ACTIONS.UPDATE_GET_FILE_DATA:return __spreadProps(__spreadValues({},e),{getFileData:t.payload.getFileData});case Actions.ANNOTATION_ACTIONS.UPDATE_PAGE_SIZE:return __spreadProps(__spreadValues({},e),{pageSize:t.payload.pageSize});case Actions.ANNOTATION_ACTIONS.UPDATE_LOAD_FILE_LIST:return __spreadProps(__spreadValues({},e),{loadFileList:t.payload.loadFileList});case Actions.ANNOTATION_ACTIONS.UPDATE_BEFORE_ROTATE:return __spreadProps(__spreadValues({},e),{beforeRotate:t.payload.beforeRotate});case Actions.ANNOTATION_ACTIONS.SKIP_BEFORE_PAGE_TURNING:return __spreadProps(__spreadValues({},e),{skipBeforePageTurning:t.payload.skipBeforePageTurning});case Actions.ANNOTATION_ACTIONS.SET_FILE_DATA:{const{fileData:n,index:o}=t.payload,{imgList:i}=e,l=[...i];return l[o]=__spreadValues(__spreadValues({},l[o]),n),__spreadProps(__spreadValues({},e),{imgList:l})}case Actions.ANNOTATION_ACTIONS.UPDATE_ROTATE:{const{toolInstance:n,beforeRotate:o}=e;return o&&o()===!1||n==null||n.updateRotate(),e}case Actions.ANNOTATION_ACTIONS.UPDATE_ANNOTATION_VALID:{const{toolInstance:n}=e,o=(k=n==null?void 0:n.valid)!=null?k:!0;return antd.Modal.destroyAll(),antd.Modal.confirm({content:lbUtils.i18n.t(o?"updateValidFromValidToInValid":"updateValidFromInValidToValid"),onOk:()=>{n==null||n.setValid(!o)},okText:lbUtils.i18n.t("Confirm"),cancelText:lbUtils.i18n.t("Cancel")}),e}case Actions.ANNOTATION_ACTIONS.COPY_BACKWARD_RESULT:{const{toolInstance:n,imgIndex:o,imgList:i,step:l}=e;if(!n)return e;if(o===0||o>=i.length)return console.error("\u65E0\u6CD5\u590D\u5236\u8FB9\u754C\u5916\u7684\u5185\u5BB9"),e;const u=i[o-1].result;if(!u)return e;const r=AnnotationDataUtils.copyResultChange(u,l,(H=i[o].result)!=null?H:"");i[o]=__spreadProps(__spreadValues({},i[o]),{result:r});const d=index.jsonParser(r)[`step_${l}`],a=(d==null?void 0:d.result)||[];return n==null||n.setResult(a),n==null||n.history.pushHistory(a),(z=n==null?void 0:n.asyncData)==null||z.call(n,i[o]),__spreadProps(__spreadValues({},e),{imgList:[...i]})}case Actions.ANNOTATION_ACTIONS.SET_STEP:{const{stepList:n,annotationEngine:o}=e,{toStep:i}=t.payload;if(!o)return e;const l=getStepConfig(n,i);return o==null||o.setToolName(l.tool,l.config),__spreadProps(__spreadValues({},e),{step:i,toolInstance:o==null?void 0:o.toolInstance})}case Actions.ANNOTATION_ACTIONS.SET_LOADING:{const{loading:n}=t.payload;return __spreadProps(__spreadValues({},e),{loading:!!n})}case Actions.ANNOTATION_ACTIONS.SET_POINT_CLOUD_LOADING:{const{pointCloudLoading:n}=t.payload;return __spreadProps(__spreadValues({},e),{pointCloudLoading:!!n})}case Actions.ANNOTATION_ACTIONS.SET_CHECK_MODE:{const{checkMode:n}=t.payload;return __spreadProps(__spreadValues({},e),{checkMode:!!n})}case Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_TRACK_ID:{const{id:n,newID:o,rangeIndex:i,imgList:l}=t.payload,{imgIndex:u,onSubmit:r}=e,A=[],d=l.map((a,T)=>{if(lbAnnotation.MathUtils.isInRange(T,i)){const N=__spreadProps(__spreadValues({},a),{result:lbUtils.PointCloudUtils.batchUpdateTrackID({id:n,newID:o,result:a.result})});return A.push({imgIndex:T,newInfo:N}),N}return a});return r&&r([d[u]],index$1.ESubmitType.BatchUpdateTrackID,u,d,{updateImgList:A}),__spreadProps(__spreadValues({},e),{imgList:d})}case Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_RESULT_BY_TRACK_ID:{const{id:n,newData:o,rangeIndex:i}=t.payload,{imgList:l,imgIndex:u,onSubmit:r}=e,A=[],d=l.map((a,T)=>{if(lbAnnotation.MathUtils.isInRange(T,i)){const N=__spreadProps(__spreadValues({},a),{result:lbUtils.PointCloudUtils.batchUpdateResultByTrackID({id:n,newData:o,result:a.result})});return A.push({imgIndex:T,newInfo:N}),N}return a});return r&&r([d[u]],index$1.ESubmitType.BatchUpdateTrackID,u,d,{updateImgList:A}),__spreadProps(__spreadValues({},e),{imgList:d})}case Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT:{const{onSubmit:n,imgList:o,stepList:i,step:l,predictionResult:u}=e,r={};u.forEach(T=>{const{index:N}=T;r[N]=___default.default.pick(T,["center","width","height","depth","rotation","id","attribute","valid","trackID"])});const A=`step_${l}`,d=[],a=o.map((T,N)=>{if(r[N]){const f=T.result==="{}"?index.jsonParser(data.composeResult("",{step:l,stepList:i},{rect:[]},{})):index.jsonParser(T.result);f[A].result.push(r[N]);const L=__spreadProps(__spreadValues({},T),{result:JSON.stringify(f)});return d.push({imgIndex:N,newInfo:L}),L}return T});return n==null||n(a,index$1.ESubmitType.BatchUpdateImgList,-1,a,{updateImgList:d}),__spreadProps(__spreadValues({},e),{imgList:a})}default:return e}};exports.LoadFileAndFileData=LoadFileAndFileData,exports.annotationReducer=annotationReducer,exports.composeResultByToolInstance=composeResultByToolInstance,exports.getStepConfig=getStepConfig,exports.getTotalPage=getTotalPage;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var index=require("../../utils/index.js"),reducer=require("./reducer.js");const stepConfigSelector=({annotation:r})=>{var e;const{stepList:t,step:s}=r;return index.jsonParser((e=reducer.getStepConfig(t,s))==null?void 0:e.config)};exports.stepConfigSelector=stepConfigSelector;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),reactRedux=require("react-redux");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const LabelBeeContext=React__default.default.createContext(void 0),useDispatch=reactRedux.createDispatchHook(LabelBeeContext),useSelector=reactRedux.createSelectorHook(LabelBeeContext);exports.LabelBeeContext=LabelBeeContext,exports.useDispatch=useDispatch,exports.useSelector=useSelector;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Actions=require("../Actions.js");function UpdateImgAttribute(t){return{type:Actions.IMAGE_ATTRIBUTE_ACTIONS.UPDATE_IMG_ATTRIBUTE,payload:t}}function InitImgAttribute(){return{type:Actions.IMAGE_ATTRIBUTE_ACTIONS.INIT_IMG_ATTRIBUTE,payload:{}}}var ImgAttribute={UpdateImgAttribute,InitImgAttribute};exports.InitImgAttribute=InitImgAttribute,exports.UpdateImgAttribute=UpdateImgAttribute,exports.default=ImgAttribute;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Actions=require("../Actions.js"),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,r,t)=>r in e?__defProp(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,__spreadValues=(e,r)=>{for(var t in r||(r={}))__hasOwnProp.call(r,t)&&__defNormalProp(e,t,r[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(r))__propIsEnum.call(r,t)&&__defNormalProp(e,t,r[t]);return e};const initialState={contrast:1,saturation:1,brightness:1,zoomRatio:1,isOriginalSize:!1};function imgAttributeReducer(e=__spreadValues({},initialState),r){switch(r.type){case Actions.IMAGE_ATTRIBUTE_ACTIONS.UPDATE_IMG_ATTRIBUTE:return __spreadValues(__spreadValues({},e),r.payload);case Actions.IMAGE_ATTRIBUTE_ACTIONS.INIT_IMG_ATTRIBUTE:return __spreadValues({},initialState);default:return e}}exports.imgAttributeReducer=imgAttributeReducer;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var redux=require("redux"),reducer=require("./annotation/reducer.js"),reducer$1=require("./imgAttribute/reducer.js"),reducer$2=require("./toolStyle/reducer.js");const rootReducer=redux.combineReducers({annotation:reducer.annotationReducer,imgAttribute:reducer$1.imgAttributeReducer,toolStyle:reducer$2.toolStyleReducer});exports.rootReducer=rootReducer;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Actions=require("../Actions.js");function InitToolStyleConfig(){return{type:Actions.TOOL_STYLE_ACTIONS.INIT_TOOL_STYLE_CONFIG,payload:void 0}}function UpdateToolStyleConfig(e){return{type:Actions.TOOL_STYLE_ACTIONS.UPDATE_TOOL_STYLE_CONFIG,payload:e}}exports.InitToolStyleConfig=InitToolStyleConfig,exports.UpdateToolStyleConfig=UpdateToolStyleConfig;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Style=require("../../data/Style.js"),ToolStyleUtils=require("../../utils/ToolStyleUtils.js"),Actions=require("../Actions.js"),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(r,t,e)=>t in r?__defProp(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,__spreadValues=(r,t)=>{for(var e in t||(t={}))__hasOwnProp.call(t,e)&&__defNormalProp(r,e,t[e]);if(__getOwnPropSymbols)for(var e of __getOwnPropSymbols(t))__propIsEnum.call(t,e)&&__defNormalProp(r,e,t[e]);return r};const initialState={color:1,width:2,borderOpacity:9,fillOpacity:9,toolColor:ToolStyleUtils.ToolStyleUtils.getToolColors(),attributeColor:ToolStyleUtils.ToolStyleUtils.getAttributeColors(),lineColor:ToolStyleUtils.ToolStyleUtils.getDefaultToolLineColors(),attributeLineColor:[Style.NULL_COLOR].concat(Style.COLORS_ARRAY)};function toolStyleReducer(r=__spreadValues({},initialState),t){switch(t.type){case Actions.TOOL_STYLE_ACTIONS.INIT_TOOL_STYLE_CONFIG:return __spreadValues({},initialState);case Actions.TOOL_STYLE_ACTIONS.UPDATE_TOOL_STYLE_CONFIG:{const e={},o=t.payload;return((o==null?void 0:o.borderOpacity)||(o==null?void 0:o.fillOpacity))&&Object.assign(e,ToolStyleUtils.ToolStyleUtils.initByOpacity(o.borderOpacity||r.borderOpacity,o.fillOpacity||r.fillOpacity)),__spreadValues(__spreadValues(__spreadValues({},r),t.payload),e)}default:return r}}exports.toolStyleReducer=toolStyleReducer;
@@ -0,0 +1,75 @@
1
+ import React from 'react';
2
+ import { ToolInstance } from './store/annotation/types';
3
+ import { GetFileData, IFileItem, LoadFileList, OnPageChange, OnSave, OnStepChange, OnSubmit } from './types/data';
4
+ import { Header, RenderFooter, Sider } from './types/main';
5
+ import { IStepInfo } from './types/step';
6
+ interface IAnnotationStyle {
7
+ strokeColor: string;
8
+ fillColor: string;
9
+ textColor: string;
10
+ toolColor: any;
11
+ }
12
+ export interface AppProps {
13
+ exportData?: (data: any[]) => void;
14
+ goBack?: () => void;
15
+ imgList?: IFileItem[];
16
+ config: string;
17
+ stepList: IStepInfo[];
18
+ step: number;
19
+ onSubmit?: OnSubmit;
20
+ onSave?: OnSave;
21
+ onPageChange?: OnPageChange;
22
+ onStepChange?: OnStepChange;
23
+ getFileData?: GetFileData;
24
+ pageSize: number;
25
+ loadFileList?: LoadFileList;
26
+ headerName?: string;
27
+ initialIndex?: number;
28
+ className?: string;
29
+ toolInstance: ToolInstance;
30
+ header?: Header;
31
+ footer?: RenderFooter;
32
+ sider?: Sider;
33
+ style?: {
34
+ layout?: {
35
+ [key: string]: any;
36
+ };
37
+ header?: {
38
+ [key: string]: any;
39
+ };
40
+ sider?: {
41
+ [key: string]: any;
42
+ };
43
+ footer?: {
44
+ [key: string]: any;
45
+ };
46
+ };
47
+ setToolInstance?: (tool: ToolInstance) => void;
48
+ mode?: 'light' | 'dark';
49
+ showTips?: boolean;
50
+ tips?: string;
51
+ defaultLang: 'en' | 'cn';
52
+ leftSider?: () => React.ReactNode | React.ReactNode;
53
+ skipBeforePageTurning?: (pageTurning: Function) => void;
54
+ beforeRotate?: () => boolean;
55
+ drawLayerSlot?: (props: {
56
+ zoom: number;
57
+ currentPos: {
58
+ x: number;
59
+ y: number;
60
+ };
61
+ }) => React.ReactNode;
62
+ dataInjectionAtCreation: (annotationData: any) => {};
63
+ renderEnhance: {
64
+ staticRender?: (canvas: HTMLCanvasElement, data: any, style: IAnnotationStyle) => void;
65
+ selectedRender?: (canvas: HTMLCanvasElement, data: any, style: IAnnotationStyle) => void;
66
+ creatingRender?: (canvas: HTMLCanvasElement, data: any, style: IAnnotationStyle) => void;
67
+ };
68
+ customRenderStyle?: (data: any) => IAnnotationStyle;
69
+ checkMode?: boolean;
70
+ intelligentFit?: boolean;
71
+ }
72
+ declare const _default: import("react-redux").ConnectedComponent<React.FC<AppProps>, import("react-redux").Omit<AppProps & {
73
+ children?: React.ReactNode;
74
+ }, "toolInstance">>;
75
+ export default _default;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * 用于标注查看模式
3
+ * @author laoluo
4
+ */
5
+ import React from 'react';
6
+ type TAfterImgOnLoad = (img: HTMLImageElement) => void;
7
+ interface IProps {
8
+ src: string;
9
+ size?: {
10
+ width?: number;
11
+ height?: number;
12
+ };
13
+ style?: {
14
+ color?: string;
15
+ fill?: string;
16
+ thickness?: number;
17
+ };
18
+ annotations: any[];
19
+ zoomChange?: (zoom: number) => void;
20
+ backgroundStyle?: React.CSSProperties;
21
+ onChange?: (type: 'hover' | 'selected', ids: string[]) => void;
22
+ showLoading?: boolean;
23
+ globalStyle?: React.CSSProperties;
24
+ afterImgOnLoad?: TAfterImgOnLoad;
25
+ }
26
+ declare const _default: React.ForwardRefExoticComponent<IProps & React.RefAttributes<unknown>>;
27
+ export default _default;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ interface IProps {
3
+ src: string;
4
+ result: string;
5
+ size: {
6
+ width: number;
7
+ height: number;
8
+ };
9
+ backgroundColor?: string;
10
+ isOrthographicCamera?: boolean;
11
+ }
12
+ declare const PointCloudAnnotationView: (props: IProps) => JSX.Element;
13
+ export default PointCloudAnnotationView;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { IStepInfo } from '@/types/step';
3
+ interface IProps {
4
+ stepList: IStepInfo[];
5
+ currentStep: number;
6
+ updateStep: (step: number) => void;
7
+ }
8
+ declare const AnnotationStepPopover: (props: IProps) => JSX.Element;
9
+ export default AnnotationStepPopover;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ export declare const ATTRIBUTE_COLORS: string[];
3
+ interface IProps {
4
+ list: Array<{
5
+ label: string;
6
+ value: string;
7
+ color?: string;
8
+ }>;
9
+ selectedAttribute?: string;
10
+ attributeChanged: (v: string) => void;
11
+ forbidDefault?: boolean;
12
+ forbidColor?: boolean;
13
+ noHeightLimit?: boolean;
14
+ num?: number | string;
15
+ style?: React.CSSProperties;
16
+ }
17
+ declare const AttributeList: React.ForwardRefExoticComponent<IProps & React.RefAttributes<unknown>>;
18
+ export default AttributeList;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface IProps {
3
+ selectedAttribute: string[];
4
+ attributeChanged: () => void;
5
+ num?: any;
6
+ list?: any[];
7
+ }
8
+ declare const CheckboxList: (props: IProps) => JSX.Element;
9
+ export default CheckboxList;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ColorTag: ({ color, style }: any) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ text: string;
4
+ Icon: any;
5
+ iconChildren: React.ReactNode;
6
+ marginLeft?: number;
7
+ }
8
+ declare const IconWithText: (props: IProps) => JSX.Element;
9
+ export default IconWithText;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { ISize } from '@/types/main';
3
+ export declare const viewportContext: React.Context<{
4
+ width: number;
5
+ height: number;
6
+ }>;
7
+ export declare const ViewportProviderComponent: (props: any) => JSX.Element;
8
+ export declare const ViewportProvider: import("react-redux").ConnectedComponent<(props: any) => JSX.Element, import("react-redux").Omit<any, "annotation" | "dispatch">>;
9
+ export declare const useViewport: () => {
10
+ width: number;
11
+ height: number;
12
+ };
13
+ /**
14
+ * 获取当前 canvas 的大小
15
+ * @param isEdit 是否为编辑模式
16
+ * @param isTips 是否有 tips
17
+ */
18
+ export declare const useCanvasViewPort: (isEdit?: boolean, isTips?: boolean) => {
19
+ width: number;
20
+ height: number;
21
+ };
22
+ /**
23
+ * 解析当前 windowSize 下的 canvasSize
24
+ * @param size
25
+ * @param isEdit
26
+ * @param isTips
27
+ */
28
+ export declare const getFormatSize: (windowSize: ISize, isEdit?: boolean, isTips?: boolean) => {
29
+ width: number;
30
+ height: number;
31
+ };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export interface IFileErrorProps {
3
+ width?: number;
4
+ height?: number;
5
+ reloadImage: () => void;
6
+ hideSetInvalidTips?: boolean;
7
+ /** 忽略顶部的偏移,如: 多边形的容器已经计算好高度(容器不包含顶部标注提示语部分) */
8
+ ignoreOffsetY?: boolean;
9
+ layerStyle?: React.CSSProperties;
10
+ backgroundColor: string;
11
+ fileType?: string;
12
+ isError?: boolean;
13
+ }
14
+ declare const FileError: (props: IFileErrorProps) => JSX.Element;
15
+ export default FileError;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @author Glenfiddish <edwinlee0927@hotmail.com>
3
+ * @file File invalid layer, display while isValid equal false
4
+ * @date 2022-06-07
5
+ */
6
+ import React from 'react';
7
+ export interface IFileInvalidProps {
8
+ fileType?: string;
9
+ isValid: boolean;
10
+ }
11
+ declare const FileInvalid: React.FC<IFileInvalidProps>;
12
+ export default FileInvalid;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @author Glenfiddish <edwinlee0927@hotmail.com>
3
+ * @file File exception layer, determine whether to render FileInvalid or FileError
4
+ * @date 2022-06-07
5
+ */
6
+ import React from 'react';
7
+ import { IFileErrorProps } from './FileError';
8
+ import { IFileInvalidProps } from './FileInvalid';
9
+ interface IFileExceptionProps {
10
+ errorProps: IFileErrorProps & {
11
+ isError: boolean;
12
+ };
13
+ invalidProps: IFileInvalidProps;
14
+ fileType: string;
15
+ }
16
+ declare const FileException: React.FC<IFileExceptionProps>;
17
+ export default FileException;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IA2MapStateProps } from '@/store/annotation/map';
3
+ declare const _default: import("react-redux").ConnectedComponent<({ currentData, config }: IA2MapStateProps) => JSX.Element, import("react-redux").Omit<IA2MapStateProps, "imgIndex" | "imgList" | "config" | "currentData" | "stepInfo" | "configString">>;
4
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { IA2MapStateProps } from '@/store/annotation/map';
3
+ declare const _default: import("react-redux").ConnectedComponent<React.FC<IA2MapStateProps>, import("react-redux").Omit<IA2MapStateProps & {
4
+ children?: React.ReactNode;
5
+ }, "imgIndex" | "imgList" | "config" | "currentData" | "stepInfo" | "configString">>;
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { IA2MapStateProps } from '@/store/annotation/map';
3
+ interface IProps {
4
+ checkMode?: boolean;
5
+ }
6
+ declare const _default: import("react-redux").ConnectedComponent<({ currentData, config, checkMode }: IA2MapStateProps & IProps) => JSX.Element, import("react-redux").Omit<IA2MapStateProps & IProps, "imgIndex" | "imgList" | "config" | "currentData" | "stepInfo" | "configString">>;
7
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import { IPointCloudBox, IPointCloudBoxList, IPolygonData, IPointCloudSphereList, IPointCloudSphere, ILine } from '@labelbee/lb-utils';
2
+ import React from 'react';
3
+ import { PointCloud, PointCloudAnnotation, ActionsHistory, EToolName } from '@labelbee/lb-annotation';
4
+ interface IPointCloudContextInstances {
5
+ topViewInstance?: PointCloudAnnotation;
6
+ sideViewInstance?: PointCloudAnnotation;
7
+ backViewInstance?: PointCloudAnnotation;
8
+ mainViewInstance?: PointCloud;
9
+ setTopViewInstance: (instance: PointCloudAnnotation) => void;
10
+ setSideViewInstance: (instance: PointCloudAnnotation) => void;
11
+ setBackViewInstance: (instance: PointCloudAnnotation) => void;
12
+ setMainViewInstance: (instance: PointCloud) => void;
13
+ }
14
+ type AttrPanelLayout = '' | 'left' | 'right';
15
+ export interface IPointCloudContext extends IPointCloudContextInstances {
16
+ pointCloudBoxList: IPointCloudBoxList;
17
+ pointCloudSphereList: IPointCloudSphereList;
18
+ displayPointCloudList: IPointCloudBoxList;
19
+ displaySphereList: IPointCloudSphereList;
20
+ selectedIDs: string[];
21
+ setSelectedIDs: (ids?: string[] | string) => void;
22
+ valid: boolean;
23
+ setPointCloudResult: (resultList: IPointCloudBoxList) => void;
24
+ setPointCloudSphereList: (sphereList: IPointCloudSphereList) => void;
25
+ selectedPointCloudBox?: IPointCloudBox;
26
+ setPointCloudValid: (valid?: boolean) => void;
27
+ addSelectedID: (selectedID: string) => void;
28
+ selectedAllBoxes: () => void;
29
+ selectedID: string;
30
+ addPointCloudBox: (boxParams: IPointCloudBox) => IPointCloudBox[];
31
+ addPointCloudSphere: (sphereParams: IPointCloudSphere) => IPointCloudSphere[];
32
+ polygonList: IPolygonData[];
33
+ setPolygonList: (polygonList: IPolygonData[]) => void;
34
+ lineList: ILine[];
35
+ setLineList: (lineList: ILine[]) => void;
36
+ zoom: number;
37
+ setZoom: (zoom: number) => void;
38
+ history: ActionsHistory;
39
+ hideAttributes: string[];
40
+ setHideAttributes: (hideAttrs: string[]) => void;
41
+ toggleAttributesVisible: (attribute: string) => void;
42
+ reRender: (_displayPointCloudList: IPointCloudBoxList, _polygonList: IPolygonData[], _displaySphereList: IPointCloudSphereList, _lineList: ILine[]) => void;
43
+ attrPanelLayout: AttrPanelLayout;
44
+ setAttrPanelLayout: (layout: AttrPanelLayout) => void;
45
+ syncAllViewPointCloudColor: (newPointCloudList?: IPointCloudBox[]) => void;
46
+ defaultAttribute: string;
47
+ setDefaultAttribute: (defaultAttribute: string) => void;
48
+ pointCloudPattern: EToolName.Rect | EToolName.Polygon | EToolName.Point | EToolName.Line;
49
+ setPointCloudPattern: (toolName: EToolName.Rect | EToolName.Polygon | EToolName.Point | EToolName.Line) => void;
50
+ selectSpecAttr: (attr: string) => void;
51
+ }
52
+ export declare const PointCloudContext: React.Context<IPointCloudContext>;
53
+ export declare const PointCloudProvider: React.FC<{}>;
54
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @author Glenfiddish <edwinlee0927@hotmail.com>
3
+ * @file Display selected box's infos
4
+ * @createdate 2022-07-13
5
+ */
6
+ /// <reference types="react" />
7
+ import { EPerspectiveView, IPointCloudConfig } from '@labelbee/lb-utils';
8
+ /**
9
+ * Display size info for views
10
+ * @param param0
11
+ * @returns
12
+ */
13
+ export declare const SizeInfoForView: ({ perspectiveView }: {
14
+ perspectiveView: EPerspectiveView;
15
+ }) => JSX.Element | null;
16
+ /**
17
+ * Display selected box's infos
18
+ */
19
+ export declare const BoxInfos: ({ checkMode, config, }: {
20
+ checkMode?: boolean | undefined;
21
+ config: IPointCloudConfig;
22
+ }) => JSX.Element | null;
23
+ export declare const PointCloudValidity: () => JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const PointCloudContainer: React.FC<{
3
+ title: string;
4
+ toolbar?: React.ReactElement | null;
5
+ className?: string;
6
+ style?: React.CSSProperties;
7
+ }>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { IA2MapStateProps } from '@/store/annotation/map';
3
+ interface IProps extends IA2MapStateProps {
4
+ checkMode?: boolean;
5
+ }
6
+ declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
7
+ children?: React.ReactNode;
8
+ }, "imgIndex" | "imgList" | "config" | "currentData" | "stepInfo" | "configString">>;
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { IA2MapStateProps } from '@/store/annotation/map';
3
+ interface IProps {
4
+ checkMode?: boolean;
5
+ }
6
+ declare const _default: import("react-redux").ConnectedComponent<React.FC<IA2MapStateProps & IProps>, import("react-redux").Omit<IA2MapStateProps & IProps & {
7
+ children?: React.ReactNode;
8
+ }, "imgIndex" | "imgList" | "config" | "currentData" | "stepInfo" | "configString">>;
9
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { IA2MapStateProps } from '@/store/annotation/map';
3
+ import { TDrawLayerSlot } from '@/types/main';
4
+ interface IProps extends IA2MapStateProps {
5
+ drawLayerSlot?: TDrawLayerSlot;
6
+ checkMode?: boolean;
7
+ intelligentFit?: boolean;
8
+ }
9
+ declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
10
+ children?: React.ReactNode;
11
+ }, "imgIndex" | "imgList" | "config" | "currentData" | "stepInfo" | "configString">>;
12
+ export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const EmptyPage: () => JSX.Element;
3
+ export default EmptyPage;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { IPointCloudConfig } from '@labelbee/lb-utils';
3
+ import { AnnotationFileList } from '@/types/data';
4
+ interface IProps {
5
+ id?: number;
6
+ visible: boolean;
7
+ onCancel: () => void;
8
+ config: IPointCloudConfig;
9
+ imgList: AnnotationFileList;
10
+ imgIndex: number;
11
+ }
12
+ declare const _default: import("react-redux").ConnectedComponent<({ id, visible, onCancel, config, imgList, imgIndex }: IProps) => JSX.Element, import("react-redux").Omit<IProps, "imgIndex">>;
13
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { IPointCloudBox } from '@labelbee/lb-utils';
2
+ export declare const useAttribute: () => {
3
+ syncThreeViewsAttribute: (attribute?: string) => void;
4
+ updateDefaultAttribute: (attribute?: string) => void;
5
+ reRenderPointCloud3DBox: (newBox: IPointCloudBox) => void;
6
+ defaultAttribute: string;
7
+ };
@@ -0,0 +1,12 @@
1
+ import { IPointCloudBoxList, IPointCloudConfig } from '@labelbee/lb-utils';
2
+ /**
3
+ * Actions for selected boxes
4
+ */
5
+ export declare const useBoxes: ({ config }: {
6
+ config: IPointCloudConfig;
7
+ }) => {
8
+ copySelectedBoxes: () => void;
9
+ pasteSelectedBoxes: () => void;
10
+ copiedBoxes: IPointCloudBoxList;
11
+ selectedBoxes: import("@labelbee/lb-utils").IPointCloudBox[];
12
+ };
@@ -0,0 +1,5 @@
1
+ import { IPointCloudConfig } from '@labelbee/lb-utils';
2
+ export declare const useConfig: () => {
3
+ syncAllViewsConfig: (config: IPointCloudConfig) => void;
4
+ reRenderTopViewRange: (radius: number) => void;
5
+ };
@@ -0,0 +1,22 @@
1
+ import { IPointCloudBox, IPointCloudBoxList, IPolygonData, IPointUnit, ILine } from '@labelbee/lb-utils';
2
+ export declare const useHistory: () => {
3
+ addHistory: ({ newBoxParams, newPolygon, newLine, }: {
4
+ newBoxParams?: IPointCloudBox | undefined;
5
+ newPolygon?: IPolygonData | undefined;
6
+ newLine?: ILine | undefined;
7
+ }) => void;
8
+ pushHistoryWithList: (params: Partial<{
9
+ pointCloudBoxList: IPointCloudBoxList;
10
+ polygonList: IPolygonData[];
11
+ lineList: ILine[];
12
+ }>) => void;
13
+ initHistory: ({ pointCloudBoxList, polygonList, }: {
14
+ pointCloudBoxList: IPointCloudBoxList;
15
+ polygonList: IPolygonData[];
16
+ }) => void;
17
+ pushHistoryUnderUpdatePoint: (point: IPointUnit) => void;
18
+ pushHistoryUnderUpdatePolygon: (polygon: IPolygonData) => void;
19
+ pushHistoryUnderUpdateLine: (line: ILine) => void;
20
+ redo: () => void;
21
+ undo: () => void;
22
+ };
@@ -0,0 +1,12 @@
1
+ import { ILine } from '@labelbee/lb-utils';
2
+ /**
3
+ * PointCloud line Hook
4
+ * @returns
5
+ */
6
+ export declare const useLine: () => {
7
+ addLine: (line: ILine) => void;
8
+ deleteLine: (id: string) => void;
9
+ selectedLine: ILine | undefined;
10
+ updateSelectedLine: (line: ILine) => void;
11
+ updateLineValidByID: (id: string) => void;
12
+ };