@labelbee/lb-components 1.23.0-alpha.14 → 1.23.0-alpha.141

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 (325) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/_virtual/2DViewWorker.js +1 -0
  3. package/dist/_virtual/highlightSegmentWorker.js +1 -1
  4. package/dist/assets/annotation/icon_link.svg.js +1 -0
  5. package/dist/assets/annotation/icon_unlink.svg.js +1 -0
  6. package/dist/assets/annotation/pointCloudTool/Image2DBoxScale.svg.js +1 -0
  7. package/dist/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -1
  8. package/dist/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -1
  9. package/dist/assets/annotation/pointCloudTool/rotate90_black.svg.js +1 -0
  10. package/dist/assets/icons/ad33251.svg +26 -0
  11. package/dist/components/AnnotationView/hooks/useFilterAnnotations.js +1 -0
  12. package/dist/components/AnnotationView/index.js +1 -1
  13. package/dist/components/DynamicResizer/DynamicResizer.js +1 -0
  14. package/dist/components/DynamicResizer/assets/bottomToZero.svg.js +1 -0
  15. package/dist/components/DynamicResizer/assets/divider.svg.js +1 -0
  16. package/dist/components/DynamicResizer/assets/topToZero.svg.js +1 -0
  17. package/dist/components/DynamicResizer/hooks/useDrag.js +1 -0
  18. package/dist/components/DynamicResizer/hooks/useUpdateHeight.js +1 -0
  19. package/dist/components/DynamicResizer/index.js +1 -0
  20. package/dist/components/LLMMultiWheelView/dialogView/index.js +1 -0
  21. package/dist/components/LLMMultiWheelView/index.js +1 -0
  22. package/dist/components/LLMMultiWheelView/sidebar/index.js +1 -0
  23. package/dist/components/LLMToolView/index.js +1 -1
  24. package/dist/components/LLMToolView/questionView/components/header/index.js +1 -1
  25. package/dist/components/LLMToolView/questionView/components/imgView/index.js +1 -1
  26. package/dist/components/LLMToolView/questionView/index.js +1 -1
  27. package/dist/components/LLMToolView/sidebar/components/answerSort/index.js +1 -1
  28. package/dist/components/LLMToolView/sidebar/components/modelAnswerSort/index.js +1 -0
  29. package/dist/components/LLMToolView/sidebar/components/textEditor/index.js +2 -2
  30. package/dist/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
  31. package/dist/components/LLMToolView/sidebar/index.js +1 -1
  32. package/dist/components/attributeList/index.js +1 -1
  33. package/dist/components/audioAnnotate/audioContext/index.js +1 -1
  34. package/dist/components/audioAnnotate/audioSide/clipSidebar/index.js +2 -1
  35. package/dist/components/audioAnnotate/index.js +1 -1
  36. package/dist/components/audioAnnotate/textInput/index.js +1 -1
  37. package/dist/components/audioAnnotate/textInput/index.module.scss.js +1 -1
  38. package/dist/components/audioAnnotate/utils/dataTransform.js +1 -0
  39. package/dist/components/audioPlayer/clipRegion/index.js +1 -1
  40. package/dist/components/audioPlayer/index.js +1 -1
  41. package/dist/components/audioPlayer/useAudioCombine/index.js +3 -2
  42. package/dist/components/audioPlayer/useAudioScroll/index.js +1 -1
  43. package/dist/components/audioPlayer/useAudioSegment/index.js +1 -1
  44. package/dist/components/audioPlayer/zoomSlider/index.js +1 -1
  45. package/dist/components/longText/index.js +1 -1
  46. package/dist/components/markdownView/index.js +1 -1
  47. package/dist/components/pointCloud2DRectOperationView/index.js +1 -1
  48. package/dist/components/pointCloud2DRectOperationView/useUpdateRectList.js +1 -0
  49. package/dist/components/pointCloud2DRectOperationView/util.js +1 -0
  50. package/dist/components/pointCloudView/PointCloud2DSingleView.js +1 -1
  51. package/dist/components/pointCloudView/PointCloud2DView.js +1 -1
  52. package/dist/components/pointCloudView/PointCloud3DView.js +1 -1
  53. package/dist/components/pointCloudView/PointCloudBackView.js +1 -1
  54. package/dist/components/pointCloudView/PointCloudContext.js +1 -1
  55. package/dist/components/pointCloudView/PointCloudInfos.js +1 -1
  56. package/dist/components/pointCloudView/PointCloudLayout.js +1 -1
  57. package/dist/components/pointCloudView/PointCloudListener.js +1 -1
  58. package/dist/components/pointCloudView/PointCloudSegment2DView.js +1 -1
  59. package/dist/components/pointCloudView/PointCloudSegmentListener.js +1 -1
  60. package/dist/components/pointCloudView/PointCloudSideView.js +1 -1
  61. package/dist/components/pointCloudView/PointCloudTopView.js +1 -1
  62. package/dist/components/pointCloudView/components/HighlightVisible/index.js +1 -1
  63. package/dist/components/pointCloudView/hooks/useBoxes.js +1 -1
  64. package/dist/components/pointCloudView/hooks/useDataLinkSwitch.js +1 -0
  65. package/dist/components/pointCloudView/hooks/useHighlight.js +1 -1
  66. package/dist/components/pointCloudView/hooks/useHistory.js +1 -1
  67. package/dist/components/pointCloudView/hooks/usePointCloudViews.js +1 -1
  68. package/dist/components/pointCloudView/hooks/usePolygon.js +1 -1
  69. package/dist/components/pointCloudView/hooks/useRotate.js +1 -1
  70. package/dist/components/pointCloudView/hooks/useRotateEdge.js +1 -0
  71. package/dist/components/pointCloudView/hooks/useSingleBox.js +1 -1
  72. package/dist/components/pointCloudView/hooks/useStatus.js +1 -1
  73. package/dist/components/pointCloudView/hooks/useTimeoutFunc.js +1 -0
  74. package/dist/components/pointCloudView/hooks/useUpdatePointCloudColor.js +1 -0
  75. package/dist/components/pointCloudView/hooks/useWindowKeydownListener.js +1 -0
  76. package/dist/components/pointCloudView/index.js +1 -1
  77. package/dist/components/pointCloudView/utils/event-polyfill.js +1 -0
  78. package/dist/components/pointCloudView/utils/map.js +1 -0
  79. package/dist/components/predictTracking/predictTrackingIcon/index.js +1 -1
  80. package/dist/components/predictTracking/previewResult/index.js +1 -1
  81. package/dist/components/subAttributeList/index.js +1 -0
  82. package/dist/components/videoAnnotate/videoClipTool/index.js +1 -1
  83. package/dist/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.js +1 -1
  84. package/dist/data/enums/ToolType.js +1 -1
  85. package/dist/hooks/useToolStyle.js +1 -0
  86. package/dist/index.css +205 -16
  87. package/dist/index.js +1 -1
  88. package/dist/store/Actions.js +1 -1
  89. package/dist/store/LLMMultiWheel/index.js +1 -0
  90. package/dist/store/annotatedBox/index.js +1 -1
  91. package/dist/store/annotation/actionCreators.js +1 -1
  92. package/dist/store/annotation/reducer.js +1 -1
  93. package/dist/store/ctx.js +1 -1
  94. package/dist/store/toolConfig/baseToolConfig.js +1 -0
  95. package/dist/store/toolConfig/index.js +1 -0
  96. package/dist/store/toolConfig/pointCloudToolConfig.js +1 -0
  97. package/dist/types/App.d.ts +6 -1
  98. package/dist/types/components/AnnotationView/hooks/useFilterAnnotations.d.ts +2 -0
  99. package/dist/types/components/AnnotationView/index.d.ts +10 -0
  100. package/dist/types/components/DynamicResizer/DynamicResizer.d.ts +5 -0
  101. package/dist/types/components/DynamicResizer/hooks/useDrag.d.ts +12 -0
  102. package/dist/types/components/DynamicResizer/hooks/useUpdateHeight.d.ts +23 -0
  103. package/dist/types/components/DynamicResizer/index.d.ts +2 -0
  104. package/dist/types/components/DynamicResizer/types/interface.d.ts +17 -0
  105. package/dist/types/components/LLMMultiWheelView/dialogView/index.d.ts +15 -0
  106. package/dist/types/components/LLMMultiWheelView/index.d.ts +21 -0
  107. package/dist/types/components/LLMMultiWheelView/sidebar/index.d.ts +8 -0
  108. package/dist/types/components/LLMMultiWheelView/types.d.ts +62 -0
  109. package/dist/types/components/LLMToolView/questionView/components/header/index.d.ts +15 -0
  110. package/dist/types/components/LLMToolView/questionView/index.d.ts +7 -0
  111. package/dist/types/components/LLMToolView/sidebar/components/answerSort/index.d.ts +3 -0
  112. package/dist/types/components/LLMToolView/sidebar/components/modelAnswerSort/index.d.ts +30 -0
  113. package/dist/types/components/LLMToolView/sidebar/components/textInputBox/index.d.ts +2 -2
  114. package/dist/types/components/LLMToolView/sidebar/index.d.ts +10 -0
  115. package/dist/types/components/LLMToolView/types.d.ts +6 -2
  116. package/dist/types/components/LLMToolView/utils/data.d.ts +1 -0
  117. package/dist/types/components/audioAnnotate/audioContext/index.d.ts +10 -2
  118. package/dist/types/components/audioAnnotate/textInput/index.d.ts +1 -0
  119. package/dist/types/components/audioAnnotate/utils/dataTransform.d.ts +9 -0
  120. package/dist/types/components/audioPlayer/clipRegion/index.d.ts +1 -0
  121. package/dist/types/components/audioPlayer/index.d.ts +28 -21
  122. package/dist/types/components/audioPlayer/zoomSlider/index.d.ts +1 -0
  123. package/dist/types/components/longText/index.d.ts +1 -0
  124. package/dist/types/components/pointCloud2DRectOperationView/index.d.ts +1 -0
  125. package/dist/types/components/pointCloud2DRectOperationView/useUpdateRectList.d.ts +2 -0
  126. package/dist/types/components/pointCloud2DRectOperationView/util.d.ts +8 -0
  127. package/dist/types/components/pointCloudView/2DViewWorker.d.ts +1 -0
  128. package/dist/types/components/pointCloudView/PointCloud2DView.d.ts +1 -0
  129. package/dist/types/components/pointCloudView/PointCloudContext.d.ts +23 -4
  130. package/dist/types/components/pointCloudView/PointCloudLayout.d.ts +1 -0
  131. package/dist/types/components/pointCloudView/PointCloudListener.d.ts +1 -0
  132. package/dist/types/components/pointCloudView/components/HighlightVisible/index.d.ts +2 -1
  133. package/dist/types/components/pointCloudView/hooks/useBoxes.d.ts +5 -3
  134. package/dist/types/components/pointCloudView/hooks/useDataLinkSwitch.d.ts +19 -0
  135. package/dist/types/components/pointCloudView/hooks/useHighlight.d.ts +1 -1
  136. package/dist/types/components/pointCloudView/hooks/usePointCloudViews.d.ts +31 -1
  137. package/dist/types/components/pointCloudView/hooks/useRotateEdge.d.ts +9 -0
  138. package/dist/types/components/pointCloudView/hooks/useSingleBox.d.ts +3 -2
  139. package/dist/types/components/pointCloudView/hooks/useTimeoutFunc.d.ts +6 -0
  140. package/dist/types/components/pointCloudView/hooks/useUpdatePointCloudColor.d.ts +4 -0
  141. package/dist/types/components/pointCloudView/hooks/useWindowKeydownListener.d.ts +16 -0
  142. package/dist/types/components/pointCloudView/index.d.ts +1 -0
  143. package/dist/types/components/pointCloudView/utils/event-polyfill.d.ts +8 -0
  144. package/dist/types/components/pointCloudView/utils/map.d.ts +11 -0
  145. package/dist/types/components/subAttributeList/index.d.ts +10 -0
  146. package/dist/types/components/videoAnnotate/index.d.ts +2 -1
  147. package/dist/types/components/videoAnnotate/videoClipTool/index.d.ts +2 -1
  148. package/dist/types/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.d.ts +1 -1
  149. package/dist/types/data/enums/ToolType.d.ts +2 -1
  150. package/dist/types/hooks/useToolStyle.d.ts +30 -0
  151. package/dist/types/index.d.ts +9 -2
  152. package/dist/types/store/Actions.d.ts +1 -0
  153. package/dist/types/store/LLMMultiWheel/index.d.ts +15 -0
  154. package/dist/types/store/annotatedBox/index.d.ts +2 -0
  155. package/dist/types/store/annotation/actionCreators.d.ts +4 -3
  156. package/dist/types/store/annotation/reducer.d.ts +1 -0
  157. package/dist/types/store/annotation/types.d.ts +9 -2
  158. package/dist/types/store/ctx.d.ts +7 -0
  159. package/dist/types/store/toolConfig/baseToolConfig.d.ts +4 -0
  160. package/dist/types/store/toolConfig/index.d.ts +3 -0
  161. package/dist/types/store/toolConfig/pointCloudToolConfig.d.ts +4 -0
  162. package/dist/types/store/toolConfig/types.d.ts +10 -0
  163. package/dist/types/utils/AnnotationDataUtils.d.ts +58 -1
  164. package/dist/types/utils/ToolPointCloudBoxRenderHelper.d.ts +24 -0
  165. package/dist/types/utils/data.d.ts +0 -2
  166. package/dist/types/utils/index.d.ts +27 -0
  167. package/dist/types/views/MainView/LLMMultiWheelLayout/index.d.ts +9 -0
  168. package/dist/types/views/MainView/sidebar/GeneralOperation/ActionsConfirm.d.ts +1 -0
  169. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/firstFrameDataSwitch/index.d.ts +3 -0
  170. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.d.ts +3 -0
  171. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/selectBoxVisibleSwitch/index.d.ts +3 -0
  172. package/dist/types/views/MainView/sidebar/TextToolSidebar/index.d.ts +1 -1
  173. package/dist/types/views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.d.ts +9 -0
  174. package/dist/types/views/MainView/toolFooter/BatchSwitchConnectIn2DView/Icons.d.ts +3 -0
  175. package/dist/types/views/MainView/toolFooter/BatchSwitchConnectIn2DView/index.d.ts +1 -0
  176. package/dist/types/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.d.ts +10 -2
  177. package/dist/types/views/MainView/toolFooter/index.d.ts +1 -1
  178. package/dist/types/views/MainView/toolHeader/StepSwitch/index.d.ts +1 -1
  179. package/dist/types/views/MainView/toolHeader/index.d.ts +1 -1
  180. package/dist/utils/AnnotationDataUtils.js +1 -1
  181. package/dist/utils/ToolPointCloudBoxRenderHelper.js +1 -0
  182. package/dist/utils/data.js +1 -1
  183. package/dist/utils/index.js +1 -1
  184. package/dist/views/MainView/LLMMultiWheelLayout/index.js +1 -0
  185. package/dist/views/MainView/index.js +1 -1
  186. package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +1 -1
  187. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/firstFrameDataSwitch/index.js +1 -0
  188. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/firstFrameDataSwitch/index.module.scss.js +1 -0
  189. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.js +1 -0
  190. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.module.scss.js +1 -0
  191. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/selectBoxVisibleSwitch/index.js +1 -0
  192. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/selectBoxVisibleSwitch/index.module.scss.js +1 -0
  193. package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
  194. package/dist/views/MainView/sidebar/TagSidebar/index.js +1 -1
  195. package/dist/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
  196. package/dist/views/MainView/sidebar/index.js +1 -1
  197. package/dist/views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.js +1 -0
  198. package/dist/views/MainView/toolFooter/BatchSwitchConnectIn2DView/Icons.js +1 -0
  199. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -1
  200. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -1
  201. package/dist/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js +1 -1
  202. package/dist/views/MainView/toolFooter/index.js +1 -1
  203. package/dist/views/MainView/toolHeader/index.js +1 -1
  204. package/es/App.js +1 -1
  205. package/es/_virtual/2DViewWorker.js +1 -0
  206. package/es/_virtual/highlightSegmentWorker.js +1 -1
  207. package/es/assets/annotation/icon_link.svg.js +1 -0
  208. package/es/assets/annotation/icon_unlink.svg.js +1 -0
  209. package/es/assets/annotation/pointCloudTool/Image2DBoxScale.svg.js +1 -0
  210. package/es/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -1
  211. package/es/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -1
  212. package/es/assets/annotation/pointCloudTool/rotate90_black.svg.js +1 -0
  213. package/es/components/AnnotationView/hooks/useFilterAnnotations.js +1 -0
  214. package/es/components/AnnotationView/index.js +1 -1
  215. package/es/components/DynamicResizer/DynamicResizer.js +1 -0
  216. package/es/components/DynamicResizer/assets/bottomToZero.svg.js +1 -0
  217. package/es/components/DynamicResizer/assets/divider.svg.js +1 -0
  218. package/es/components/DynamicResizer/assets/topToZero.svg.js +1 -0
  219. package/es/components/DynamicResizer/hooks/useDrag.js +1 -0
  220. package/es/components/DynamicResizer/hooks/useUpdateHeight.js +1 -0
  221. package/es/components/DynamicResizer/index.js +1 -0
  222. package/es/components/LLMMultiWheelView/dialogView/index.js +1 -0
  223. package/es/components/LLMMultiWheelView/index.js +1 -0
  224. package/es/components/LLMMultiWheelView/sidebar/index.js +1 -0
  225. package/es/components/LLMToolView/index.js +1 -1
  226. package/es/components/LLMToolView/questionView/components/header/index.js +1 -1
  227. package/es/components/LLMToolView/questionView/components/imgView/index.js +1 -1
  228. package/es/components/LLMToolView/questionView/index.js +1 -1
  229. package/es/components/LLMToolView/sidebar/components/answerSort/index.js +1 -1
  230. package/es/components/LLMToolView/sidebar/components/modelAnswerSort/index.js +1 -0
  231. package/es/components/LLMToolView/sidebar/components/textEditor/index.js +2 -2
  232. package/es/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
  233. package/es/components/LLMToolView/sidebar/index.js +1 -1
  234. package/es/components/attributeList/index.js +1 -1
  235. package/es/components/audioAnnotate/audioContext/index.js +1 -1
  236. package/es/components/audioAnnotate/audioSide/clipSidebar/index.js +2 -1
  237. package/es/components/audioAnnotate/index.js +1 -1
  238. package/es/components/audioAnnotate/textInput/index.js +1 -1
  239. package/es/components/audioAnnotate/textInput/index.module.scss.js +1 -1
  240. package/es/components/audioAnnotate/utils/dataTransform.js +1 -0
  241. package/es/components/audioPlayer/clipRegion/index.js +1 -1
  242. package/es/components/audioPlayer/index.js +1 -1
  243. package/es/components/audioPlayer/useAudioCombine/index.js +3 -2
  244. package/es/components/audioPlayer/useAudioScroll/index.js +1 -1
  245. package/es/components/audioPlayer/useAudioSegment/index.js +1 -1
  246. package/es/components/audioPlayer/zoomSlider/index.js +1 -1
  247. package/es/components/longText/index.js +1 -1
  248. package/es/components/markdownView/index.js +1 -1
  249. package/es/components/pointCloud2DRectOperationView/index.js +1 -1
  250. package/es/components/pointCloud2DRectOperationView/useUpdateRectList.js +1 -0
  251. package/es/components/pointCloud2DRectOperationView/util.js +1 -0
  252. package/es/components/pointCloudView/PointCloud2DSingleView.js +1 -1
  253. package/es/components/pointCloudView/PointCloud2DView.js +1 -1
  254. package/es/components/pointCloudView/PointCloud3DView.js +1 -1
  255. package/es/components/pointCloudView/PointCloudBackView.js +1 -1
  256. package/es/components/pointCloudView/PointCloudContext.js +1 -1
  257. package/es/components/pointCloudView/PointCloudInfos.js +1 -1
  258. package/es/components/pointCloudView/PointCloudLayout.js +1 -1
  259. package/es/components/pointCloudView/PointCloudListener.js +1 -1
  260. package/es/components/pointCloudView/PointCloudSegment2DView.js +1 -1
  261. package/es/components/pointCloudView/PointCloudSegmentListener.js +1 -1
  262. package/es/components/pointCloudView/PointCloudSideView.js +1 -1
  263. package/es/components/pointCloudView/PointCloudTopView.js +1 -1
  264. package/es/components/pointCloudView/components/HighlightVisible/index.js +1 -1
  265. package/es/components/pointCloudView/hooks/useBoxes.js +1 -1
  266. package/es/components/pointCloudView/hooks/useDataLinkSwitch.js +1 -0
  267. package/es/components/pointCloudView/hooks/useHighlight.js +1 -1
  268. package/es/components/pointCloudView/hooks/useHistory.js +1 -1
  269. package/es/components/pointCloudView/hooks/usePointCloudViews.js +1 -1
  270. package/es/components/pointCloudView/hooks/usePolygon.js +1 -1
  271. package/es/components/pointCloudView/hooks/useRotate.js +1 -1
  272. package/es/components/pointCloudView/hooks/useRotateEdge.js +1 -0
  273. package/es/components/pointCloudView/hooks/useSingleBox.js +1 -1
  274. package/es/components/pointCloudView/hooks/useStatus.js +1 -1
  275. package/es/components/pointCloudView/hooks/useTimeoutFunc.js +1 -0
  276. package/es/components/pointCloudView/hooks/useUpdatePointCloudColor.js +1 -0
  277. package/es/components/pointCloudView/hooks/useWindowKeydownListener.js +1 -0
  278. package/es/components/pointCloudView/index.js +1 -1
  279. package/es/components/pointCloudView/utils/event-polyfill.js +1 -0
  280. package/es/components/pointCloudView/utils/map.js +1 -0
  281. package/es/components/predictTracking/predictTrackingIcon/index.js +1 -1
  282. package/es/components/predictTracking/previewResult/index.js +1 -1
  283. package/es/components/subAttributeList/index.js +1 -0
  284. package/es/components/videoAnnotate/videoClipTool/index.js +1 -1
  285. package/es/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.js +1 -1
  286. package/es/data/enums/ToolType.js +1 -1
  287. package/es/hooks/useToolStyle.js +1 -0
  288. package/es/index.css +205 -16
  289. package/es/index.js +1 -1
  290. package/es/store/Actions.js +1 -1
  291. package/es/store/LLMMultiWheel/index.js +1 -0
  292. package/es/store/annotatedBox/index.js +1 -1
  293. package/es/store/annotation/actionCreators.js +1 -1
  294. package/es/store/annotation/reducer.js +1 -1
  295. package/es/store/ctx.js +1 -1
  296. package/es/store/toolConfig/baseToolConfig.js +1 -0
  297. package/es/store/toolConfig/index.js +1 -0
  298. package/es/store/toolConfig/pointCloudToolConfig.js +1 -0
  299. package/es/utils/AnnotationDataUtils.js +1 -1
  300. package/es/utils/ToolPointCloudBoxRenderHelper.js +1 -0
  301. package/es/utils/data.js +1 -1
  302. package/es/utils/index.js +1 -1
  303. package/es/views/MainView/LLMMultiWheelLayout/index.js +1 -0
  304. package/es/views/MainView/index.js +1 -1
  305. package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +1 -1
  306. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/firstFrameDataSwitch/index.js +1 -0
  307. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/firstFrameDataSwitch/index.module.scss.js +1 -0
  308. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.js +1 -0
  309. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.module.scss.js +1 -0
  310. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/selectBoxVisibleSwitch/index.js +1 -0
  311. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/selectBoxVisibleSwitch/index.module.scss.js +1 -0
  312. package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
  313. package/es/views/MainView/sidebar/TagSidebar/index.js +1 -1
  314. package/es/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
  315. package/es/views/MainView/sidebar/index.js +1 -1
  316. package/es/views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.js +1 -0
  317. package/es/views/MainView/toolFooter/BatchSwitchConnectIn2DView/Icons.js +1 -0
  318. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -1
  319. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -1
  320. package/es/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js +1 -1
  321. package/es/views/MainView/toolHeader/index.js +1 -1
  322. package/package.json +7 -4
  323. package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +0 -1
  324. package/dist/assets/icons/9d70807.svg +0 -5
  325. package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +0 -1
@@ -1 +1 @@
1
- import{MathUtils as C,CommonToolUtils as F,uuid as A,AttributeUtils as k}from"@labelbee/lb-annotation";import{jsonParser as P}from"../../../utils/index.js";import{precisionAdd as I,precisionMinus as V,isImageValue as R}from"../../../utils/audio.js";import{message as m}from"antd";import b from"lodash";import g from"react";import _ from"./index.module.scss.js";import{VideoClipToolContextProvider as B}from"./VideoClipToolContext.js";import{EClipStatus as o,ETimeSliceType as T,PER_SLICE_CHANGE as v,SLICE_MIN_TIME as x}from"./constant.js";import{VideoPlayer as j}from"../../videoPlayer/index.js";import M from"./components/videoTimeSlicesOverVideo/index.js";import U from"../../../assets/annotation/video/icon_videoCutting.svg.js";import{decimalReserved as L}from"../../videoPlayer/utils.js";class N extends g.Component{constructor(r){super(r);this.fns=new Map,this.throttledUpdateTime=b.throttle(t=>{this.videoPlayer.currentTime=t},100,{trailing:!0}),this.stepInfo=()=>this.props.stepInfo,this.emitEvent=t=>{const e=this.fns.get(t);e&&e.forEach(i=>{i&&i()})},this.setValid=t=>{this.setState({valid:t}),t===!1&&(this.clearResult(),this.updateSidebar())},this.updateSidebar=()=>{this.emitEvent("changeClipSidebar"),this.emitEvent("updateTextAttribute"),this.emitEvent("changeAttributeSidebar")},this.exportData=()=>{var t,e;const i=(e=(t=this.videoRef)==null?void 0:t.duration)!=null?e:0;return[this.state.result.filter(s=>s.end!==null),{valid:this.state.valid,duration:i}]},this.updateSelectedSliceTimeStartByPer=t=>{var e,i;if(this.state.clipStatus===o.Clipping){m.info("\u622A\u53D6\u4E2D\u4E0D\u652F\u6301\u8C03\u6574\u5F00\u59CB\u65F6\u95F4");return}if(this.selectedSliceIndex>-1){const s=(i=(e=this.videoPlayer)==null?void 0:e.duration)!=null?i:0,{end:l,start:u,type:a}=this.state.result[this.selectedSliceIndex],n=C.withinRange(I(u,t),[0,V(a===T.Time?s:l,v)]);this.updateSelectedSliceTimeProperty(n,"start")}},this.updateSelectedSliceTimeEndByPer=t=>{var e,i;if(this.state.clipStatus===o.Clipping){m.info("\u622A\u53D6\u4E2D\u4E0D\u652F\u6301\u8C03\u6574\u7ED3\u675F\u65F6\u95F4");return}if(this.selectedSliceIndex>-1){const s=this.state.result[this.selectedSliceIndex],l=(i=(e=this.videoPlayer)==null?void 0:e.duration)!=null?i:0;if(s.type===T.Time){m.info("\u65F6\u95F4\u70B9\u4EC5\u652F\u6301\u8C03\u6574\u5F00\u59CB\u65F6\u95F4");return}const{end:u,start:a}=s,n=C.withinRange(I(u,t),[I(a,v),l]);this.updateSelectedSliceTimeProperty(n,"end")}},this.updateSelectedSliceTimeProperty=(t,e)=>{if(this.selectedSliceIndex>-1){const{result:i}=this.state;i[this.selectedSliceIndex][e]=t,this.setState({result:b.cloneDeep(i)}),this.updateSidebar()}},this.keyDownEvents=t=>{if(!F.hotkeyFilter(t))return;const e=t.target;switch(e&&(e==null?void 0:e.tag)==="INPUT"&&(e==null?void 0:e.type)==="radio"&&t.preventDefault(),t.key.toLocaleLowerCase()){case"x":this.toggleClipStatus();break;case"e":this.addTime();break;case"escape":this.cancelClipped();break;case"-":this.updateSelectedSliceTimeStartByPer(-v);break;case"=":this.updateSelectedSliceTimeStartByPer(v);break;case"[":this.updateSelectedSliceTimeEndByPer(-v);break;case"]":this.updateSelectedSliceTimeEndByPer(v);break}},this.setVideoError=(t,e,i)=>{if(t){const{clipStatus:s}=this.state;s===o.Clipping&&this.toggleClipStatus(i)}this.setState({videoError:t,loading:!1})},this.clearResult=()=>{this.setState({result:[],selectedID:"",textValue:""}),this.updateSidebar()},this.cancelClipped=()=>{const{result:t,selectedID:e,clipStatus:i}=this.state;if(i!==o.Clipping)return;const s=t.findIndex(l=>l.id===e);s>-1&&(t.splice(s,1),this.setState({result:t,selectedID:"",clipStatus:o.Stop}),this.updateSidebar())},this.toggleClipStatus=t=>{var e,i,s;if(this.disabled)return;const{clipStatus:l,selectedAttribute:u}=this.state,a=l!==o.Clipping;let n=a?o.Clipping:o.Stop,{result:d,selectedID:c,textValue:p}=this.state;const h=b.cloneDeep(d),S=t||((e=this.videoPlayer)==null?void 0:e.currentTime),y=(i=this.videoPlayer)==null?void 0:i.duration;if(y===void 0||S===void 0)return;const w=L(S,2);if(a){const f=A();c=f,h.push({start:w,end:null,attribute:u,textAttribute:this.defaultTextAttribute,duration:y,id:f,type:T.Period}),p=this.defaultTextAttribute}else{const f=h.findIndex(E=>E.id===c),D=h[f];D&&(S-D.start<x?(h.splice(f,1),m.info(`\u622A\u53D6\u7247\u6BB5\u4E0D\u80FD\u77ED\u4E8E${x}s`),n=o.Stop,c="",p=""):(h[f].end=L(S,2),(s=this.videoPlayer)==null||s.pause(),m.success(`\u5DF2\u622A\u53D6\u7247\u6BB5${d.length}`)))}this.setState({clipStatus:n,result:h,selectedID:c,textValue:p}),this.updateSidebar()},this.addTime=()=>{var t,e,i,s;if(this.disabled)return;const{result:l,selectedAttribute:u,selectedID:a}=this.state,n=A(),d=b.cloneDeep(l),c=((t=this.videoPlayer)==null?void 0:t.currentTime)||0;d.push({start:c,end:c,attribute:u,textAttribute:this.defaultTextAttribute,id:n,type:T.Time,duration:(i=(e=this.videoPlayer)==null?void 0:e.duration)!=null?i:0});const p={result:d,selectedID:n,textValue:this.defaultTextAttribute},h=d.find(S=>S.id===a);this.isClipping&&h?(delete p.selectedID,delete p.textValue,m.success(`\u5DF2\u622A\u53D6\u65F6\u95F4\u70B9${d.length-1}`)):(s=this.videoPlayer)==null||s.pause(),this.setState(p),this.updateSidebar()},this.updateCurrentTime=t=>{this.setState({currentTime:t})},this.contextToCancel=t=>{this.state.clipStatus===o.Stop&&(t.preventDefault(),this.setState({selectedID:""}),this.updateSidebar())},this.onTrackResize=(t,e,i)=>{var s,l;const{result:u}=this.state,a=u.find(n=>n.id===t);if(a){const n=a.duration,d=e==="left",c=d?"start":"end",p=d?-n*i:n*i,h=d?[0,Math.max(((s=a.end)!=null?s:0)-x,0)]:[a.start+x,n],S=C.withinRange(p+((l=a==null?void 0:a[c])!=null?l:0),h);a[c]=S,this.throttledUpdateTime(S)}this.setState({result:[...u]}),this.updateSidebar()},this.renderMediaContent=()=>{var t;const{pageForward:e,pageJump:i,pageBackward:s}=this.props,{result:l,videoError:u,valid:a,currentTime:n}=this.state;return g.createElement("div",{className:_.clipContainer},g.createElement(j,{imgIndex:this.props.imgIndex,imgList:this.props.imgList,pageBackward:s,pageForward:e,pageJump:i,valid:a,setVideoRef:d=>{this.videoPlayer=d},showVideoTrack:!u,onTrackResize:this.onTrackResize,drawLayerSlot:this.props.drawLayerSlot,footer:this.props.footer,dataLoaded:this.props.onVideoLoaded,toggleClipStatus:this.toggleClipStatus,addTime:this.addTime,updateCurrentTime:this.updateCurrentTime}),g.createElement(M,{key:(t=this.videoPlayer)==null?void 0:t.currentTime,result:l,currentTime:n,attributeList:this.props.config.attributeList,extraStyle:{top:this.props.drawLayerSlot?40:0}}),this.isClipping&&g.createElement("i",{className:_.clipping,style:{backgroundImage:U}}))},this.onSelectedTimeSlice=t=>{var e;this.isClipping||(this.setState({selectedID:t.id,selectedAttribute:t.attribute,textValue:t.textAttribute,currentTime:t.start}),this.updateSidebar(),(e=this.videoPlayer)==null||e.pause(),this.videoPlayer.currentTime=t.start)},this.removeTimeSlice=t=>{const{result:e}=this.state,i=this.state.selectedID===t.id?"":this.state.selectedID,s=e.findIndex(l=>l.id===t.id);s>-1&&(e.splice(s,1),this.setState({result:[...e],selectedID:i}),this.updateSidebar())},this.setResult=(t=!0,e=this.props)=>{try{const{imgIndex:i,imgList:s}=e;if(!s[i])return;const u=P(s[i].result)[`step_${this.stepInfo().step}`],a=(u==null?void 0:u.result)||[],n=R(s[i].result||"[]");this.setState({result:a,loading:t,selectedID:"",textValue:"",selectedAttribute:"",clipStatus:o.Stop,valid:n},()=>{this.updateSidebar(),n||m.info("\u65E0\u6548\u89C6\u9891\uFF0C\u8BF7\u8DF3\u8FC7")})}catch(i){console.error("\u6570\u636E\u89E3\u6790\u5931\u8D25"),this.setState({result:[],loading:!1,selectedID:"",textValue:"",selectedAttribute:"",valid:!0},()=>{this.updateSidebar()})}},this.setDefaultAttribute=t=>{const{result:e,selectedID:i}=this.state,s=e.find(l=>l.id===i);s&&i&&(s.attribute=t),this.setState({selectedAttribute:t,result:[...e]}),this.updateSidebar()},this.textChange=t=>{const{result:e,selectedID:i}=this.state;if(this.setState({textValue:t}),i){const s=e.find(l=>l.id===i);s&&(s.textAttribute=t,this.setState({result:[...e]}),this.updateSidebar())}},this.state={result:[],selectedAttribute:"",textValue:"",clipStatus:o.Stop,selectedID:"",loading:!1,videoError:!1,remainingTime:0,currentTime:0,configLoading:!1,valid:!0}}get videoUrl(){var r;const{imgIndex:t,imgList:e}=this.props;return((r=e[t])==null?void 0:r.url)||""}get isClipping(){return this.state.clipStatus===o.Clipping}get resultJSON(){const{imgIndex:r,imgList:t}=this.props;return t.length===0||!t[r]?"[]":t[r].result}get disabled(){return!this.state.valid||this.state.videoError}get loading(){return this.state.loading||this.state.configLoading}get defaultTextAttribute(){return k.getTextAttribute(this.state.result,this.props.config.textCheckType)}get defaultAttribute(){return this.state.selectedAttribute}get selectedID(){return this.state.selectedID}get selectedSliceIndex(){return this.state.result.findIndex(r=>r.id===this.state.selectedID)}get exportContext(){return{selectedID:this.state.selectedID,result:this.state.result,clipStatus:this.state.clipStatus,videoPlayer:this.videoPlayer,attributeList:this.props.config.attributeList,onSelectedTimeSlice:this.onSelectedTimeSlice,removeTimeSlice:this.removeTimeSlice,updateSelectedSliceTimeProperty:this.updateSelectedSliceTimeProperty}}get valid(){return this.state.valid}get config(){var r;return P((r=this.props.stepInfo)==null?void 0:r.config)}get selectedText(){var r,t;return(t=(r=this.state.result)==null?void 0:r[this.selectedSliceIndex])==null?void 0:t.textAttribute}componentDidMount(){this.setState({loading:!1}),this.setResult(!1),this.props.onMounted(this),window.addEventListener("keydown",this.keyDownEvents)}componentWillUnmount(){this.props.onUnmounted(),window.removeEventListener("keydown",this.keyDownEvents)}shouldComponentUpdate(r,t){const e=r.imgIndex-this.props.imgIndex,i=r.step-this.props.step;return(e!==0||i!==0)&&(this.setResult(!0,r),i!==0&&this.setState({loading:!1})),!0}singleOn(r,t){this.fns.set(r,[t])}on(r,t){this.singleOn(r,t)}unbindAll(r){this.fns.delete(r)}render(){const{selectedID:r,result:t,clipStatus:e,selectedAttribute:i}=this.state;return g.createElement(B,{value:{videoPlayer:this.videoPlayer,result:t,selectedID:r,attributeList:this.props.config.attributeList,clipStatus:e,selectedAttribute:i,contextToCancel:this.contextToCancel}},this.renderMediaContent())}}export{N as default};
1
+ import{MathUtils as C,CommonToolUtils as F,uuid as A,AttributeUtils as R}from"@labelbee/lb-annotation";import{jsonParser as P}from"../../../utils/index.js";import{precisionAdd as y,precisionMinus as k,isImageValue as V}from"../../../utils/audio.js";import{message as m}from"antd";import b from"lodash";import g from"react";import _ from"./index.module.scss.js";import{VideoClipToolContextProvider as B}from"./VideoClipToolContext.js";import{EClipStatus as d,ETimeSliceType as T,PER_SLICE_CHANGE as v,SLICE_MIN_TIME as x}from"./constant.js";import{VideoPlayer as j}from"../../videoPlayer/index.js";import M from"./components/videoTimeSlicesOverVideo/index.js";import U from"../../../assets/annotation/video/icon_videoCutting.svg.js";import{decimalReserved as L}from"../../videoPlayer/utils.js";class N extends g.Component{constructor(r){super(r);this.fns=new Map,this.throttledUpdateTime=b.throttle(t=>{this.videoPlayer.currentTime=t},100,{trailing:!0}),this.stepInfo=()=>this.props.stepInfo,this.emitEvent=t=>{const e=this.fns.get(t);e&&e.forEach(i=>{i&&i()})},this.setValid=t=>{this.setState({valid:t}),t===!1&&(this.clearResult(),this.updateSidebar())},this.updateSidebar=()=>{this.emitEvent("changeClipSidebar"),this.emitEvent("updateTextAttribute"),this.emitEvent("changeAttributeSidebar")},this.exportData=()=>{var t,e;const i=(e=(t=this.videoRef)==null?void 0:t.duration)!=null?e:0;return[this.state.result.filter(s=>s.end!==null),{valid:this.state.valid,duration:i}]},this.updateSelectedSliceTimeStartByPer=t=>{var e,i;if(this.state.clipStatus===d.Clipping){m.info("\u622A\u53D6\u4E2D\u4E0D\u652F\u6301\u8C03\u6574\u5F00\u59CB\u65F6\u95F4");return}if(this.selectedSliceIndex>-1){const s=(i=(e=this.videoPlayer)==null?void 0:e.duration)!=null?i:0,{end:l,start:u,type:a}=this.state.result[this.selectedSliceIndex],n=C.withinRange(y(u,t),[0,k(a===T.Time?s:l,v)]);this.updateSelectedSliceTimeProperty(n,"start")}},this.updateSelectedSliceTimeEndByPer=t=>{var e,i;if(this.state.clipStatus===d.Clipping){m.info("\u622A\u53D6\u4E2D\u4E0D\u652F\u6301\u8C03\u6574\u7ED3\u675F\u65F6\u95F4");return}if(this.selectedSliceIndex>-1){const s=this.state.result[this.selectedSliceIndex],l=(i=(e=this.videoPlayer)==null?void 0:e.duration)!=null?i:0;if(s.type===T.Time){m.info("\u65F6\u95F4\u70B9\u4EC5\u652F\u6301\u8C03\u6574\u5F00\u59CB\u65F6\u95F4");return}const{end:u,start:a}=s,n=C.withinRange(y(u,t),[y(a,v),l]);this.updateSelectedSliceTimeProperty(n,"end")}},this.updateSelectedSliceTimeProperty=(t,e)=>{if(this.selectedSliceIndex>-1){const{result:i}=this.state;i[this.selectedSliceIndex][e]=t,this.setState({result:b.cloneDeep(i)}),this.updateSidebar()}},this.keyDownEvents=t=>{if(!F.hotkeyFilter(t))return;const e=t.target;switch(e&&(e==null?void 0:e.tag)==="INPUT"&&(e==null?void 0:e.type)==="radio"&&t.preventDefault(),t.key.toLocaleLowerCase()){case"x":this.toggleClipStatus();break;case"e":this.addTime();break;case"escape":this.cancelClipped();break;case"-":this.updateSelectedSliceTimeStartByPer(-v);break;case"=":this.updateSelectedSliceTimeStartByPer(v);break;case"[":this.updateSelectedSliceTimeEndByPer(-v);break;case"]":this.updateSelectedSliceTimeEndByPer(v);break}},this.setVideoError=(t,e,i)=>{if(t){const{clipStatus:s}=this.state;s===d.Clipping&&this.toggleClipStatus(i)}this.setState({videoError:t,loading:!1})},this.clearResult=()=>{this.setState({result:[],selectedID:"",textValue:""}),this.updateSidebar()},this.cancelClipped=()=>{const{result:t,selectedID:e,clipStatus:i}=this.state;if(i!==d.Clipping)return;const s=t.findIndex(l=>l.id===e);s>-1&&(t.splice(s,1),this.setState({result:t,selectedID:"",clipStatus:d.Stop}),this.updateSidebar())},this.toggleClipStatus=t=>{var e,i;if(typeof((e=this.props)==null?void 0:e.annotationBefore)=="function"){(i=this.props)==null||i.annotationBefore(()=>this.setClipResult(t));return}this.setClipResult(t)},this.setClipResult=t=>{var e,i,s;if(this.disabled)return;const{clipStatus:l,selectedAttribute:u}=this.state,a=l!==d.Clipping;let n=a?d.Clipping:d.Stop,{result:o,selectedID:c,textValue:h}=this.state;const p=b.cloneDeep(o),S=t||((e=this.videoPlayer)==null?void 0:e.currentTime),I=(i=this.videoPlayer)==null?void 0:i.duration;if(I===void 0||S===void 0)return;const w=L(S,2);if(a){const f=A();c=f,p.push({start:w,end:null,attribute:u,textAttribute:this.defaultTextAttribute,duration:I,id:f,type:T.Period}),h=this.defaultTextAttribute}else{const f=p.findIndex(E=>E.id===c),D=p[f];D&&(S-D.start<x?(p.splice(f,1),m.info(`\u622A\u53D6\u7247\u6BB5\u4E0D\u80FD\u77ED\u4E8E${x}s`),n=d.Stop,c="",h=""):(p[f].end=L(S,2),(s=this.videoPlayer)==null||s.pause(),m.success(`\u5DF2\u622A\u53D6\u7247\u6BB5${o.length}`)))}this.setState({clipStatus:n,result:p,selectedID:c,textValue:h}),this.updateSidebar()},this.addTime=()=>{var t,e,i,s;if(this.disabled)return;const{result:l,selectedAttribute:u,selectedID:a}=this.state,n=A(),o=b.cloneDeep(l),c=((t=this.videoPlayer)==null?void 0:t.currentTime)||0;o.push({start:c,end:c,attribute:u,textAttribute:this.defaultTextAttribute,id:n,type:T.Time,duration:(i=(e=this.videoPlayer)==null?void 0:e.duration)!=null?i:0});const h={result:o,selectedID:n,textValue:this.defaultTextAttribute},p=o.find(S=>S.id===a);this.isClipping&&p?(delete h.selectedID,delete h.textValue,m.success(`\u5DF2\u622A\u53D6\u65F6\u95F4\u70B9${o.length-1}`)):(s=this.videoPlayer)==null||s.pause(),this.setState(h),this.updateSidebar()},this.updateCurrentTime=t=>{this.setState({currentTime:t})},this.contextToCancel=t=>{this.state.clipStatus===d.Stop&&(t.preventDefault(),this.setState({selectedID:""}),this.updateSidebar())},this.onTrackResize=(t,e,i)=>{var s,l;const{result:u}=this.state,a=u.find(n=>n.id===t);if(a){const n=a.duration,o=e==="left",c=o?"start":"end",h=o?-n*i:n*i,p=o?[0,Math.max(((s=a.end)!=null?s:0)-x,0)]:[a.start+x,n],S=C.withinRange(h+((l=a==null?void 0:a[c])!=null?l:0),p);a[c]=S,this.throttledUpdateTime(S)}this.setState({result:[...u]}),this.updateSidebar()},this.renderMediaContent=()=>{var t;const{pageForward:e,pageJump:i,pageBackward:s}=this.props,{result:l,videoError:u,valid:a,currentTime:n}=this.state;return g.createElement("div",{className:_.clipContainer},g.createElement(j,{imgIndex:this.props.imgIndex,imgList:this.props.imgList,pageBackward:s,pageForward:e,pageJump:i,valid:a,setVideoRef:o=>{this.videoPlayer=o},showVideoTrack:!u,onTrackResize:this.onTrackResize,drawLayerSlot:this.props.drawLayerSlot,footer:this.props.footer,dataLoaded:this.props.onVideoLoaded,toggleClipStatus:this.toggleClipStatus,addTime:this.addTime,updateCurrentTime:this.updateCurrentTime}),g.createElement(M,{key:(t=this.videoPlayer)==null?void 0:t.currentTime,result:l,currentTime:n,attributeList:this.props.config.attributeList,extraStyle:{top:this.props.drawLayerSlot?40:0}}),this.isClipping&&g.createElement("i",{className:_.clipping,style:{backgroundImage:U}}))},this.onSelectedTimeSlice=t=>{var e;this.isClipping||(this.setState({selectedID:t.id,selectedAttribute:t.attribute,textValue:t.textAttribute,currentTime:t.start}),this.updateSidebar(),(e=this.videoPlayer)==null||e.pause(),this.videoPlayer.currentTime=t.start)},this.removeTimeSlice=t=>{const{result:e}=this.state,i=this.state.selectedID===t.id?"":this.state.selectedID,s=e.findIndex(l=>l.id===t.id);s>-1&&(e.splice(s,1),this.setState({result:[...e],selectedID:i}),this.updateSidebar())},this.setResult=(t=!0,e=this.props)=>{try{const{imgIndex:i,imgList:s}=e;if(!s[i])return;const u=P(s[i].result)[`step_${this.stepInfo().step}`],a=(u==null?void 0:u.result)||[],n=V(s[i].result||"[]");this.setState({result:a,loading:t,selectedID:"",textValue:"",selectedAttribute:"",clipStatus:d.Stop,valid:n},()=>{this.updateSidebar(),n||m.info("\u65E0\u6548\u89C6\u9891\uFF0C\u8BF7\u8DF3\u8FC7")})}catch(i){console.error("\u6570\u636E\u89E3\u6790\u5931\u8D25"),this.setState({result:[],loading:!1,selectedID:"",textValue:"",selectedAttribute:"",valid:!0},()=>{this.updateSidebar()})}},this.setDefaultAttribute=t=>{const{result:e,selectedID:i}=this.state,s=e.find(l=>l.id===i);s&&i&&(s.attribute=t),this.setState({selectedAttribute:t,result:[...e]}),this.updateSidebar()},this.textChange=t=>{const{result:e,selectedID:i}=this.state;if(this.setState({textValue:t}),i){const s=e.find(l=>l.id===i);s&&(s.textAttribute=t,this.setState({result:[...e]}),this.updateSidebar())}},this.state={result:[],selectedAttribute:"",textValue:"",clipStatus:d.Stop,selectedID:"",loading:!1,videoError:!1,remainingTime:0,currentTime:0,configLoading:!1,valid:!0}}get videoUrl(){var r;const{imgIndex:t,imgList:e}=this.props;return((r=e[t])==null?void 0:r.url)||""}get isClipping(){return this.state.clipStatus===d.Clipping}get resultJSON(){const{imgIndex:r,imgList:t}=this.props;return t.length===0||!t[r]?"[]":t[r].result}get disabled(){return!this.state.valid||this.state.videoError}get loading(){return this.state.loading||this.state.configLoading}get defaultTextAttribute(){return R.getTextAttribute(this.state.result,this.props.config.textCheckType)}get defaultAttribute(){return this.state.selectedAttribute}get selectedID(){return this.state.selectedID}get selectedSliceIndex(){return this.state.result.findIndex(r=>r.id===this.state.selectedID)}get exportContext(){return{selectedID:this.state.selectedID,result:this.state.result,clipStatus:this.state.clipStatus,videoPlayer:this.videoPlayer,attributeList:this.props.config.attributeList,onSelectedTimeSlice:this.onSelectedTimeSlice,removeTimeSlice:this.removeTimeSlice,updateSelectedSliceTimeProperty:this.updateSelectedSliceTimeProperty}}get valid(){return this.state.valid}get config(){var r;return P((r=this.props.stepInfo)==null?void 0:r.config)}get selectedText(){var r,t;return(t=(r=this.state.result)==null?void 0:r[this.selectedSliceIndex])==null?void 0:t.textAttribute}componentDidMount(){this.setState({loading:!1}),this.setResult(!1),this.props.onMounted(this),window.addEventListener("keydown",this.keyDownEvents)}componentWillUnmount(){this.props.onUnmounted(),window.removeEventListener("keydown",this.keyDownEvents)}shouldComponentUpdate(r,t){const e=r.imgIndex-this.props.imgIndex,i=r.step-this.props.step;return(e!==0||i!==0)&&(this.setResult(!0,r),i!==0&&this.setState({loading:!1})),!0}singleOn(r,t){this.fns.set(r,[t])}on(r,t){this.singleOn(r,t)}unbindAll(r){this.fns.delete(r)}render(){const{selectedID:r,result:t,clipStatus:e,selectedAttribute:i}=this.state;return g.createElement(B,{value:{videoPlayer:this.videoPlayer,result:t,selectedID:r,attributeList:this.props.config.attributeList,clipStatus:e,selectedAttribute:i,contextToCancel:this.contextToCancel}},this.renderMediaContent())}}export{N as default};
@@ -1 +1 @@
1
- import h from"react";import{TagUtils as p,CommonToolUtils as m,uuid as v}from"@labelbee/lb-annotation";import{jsonParser as c}from"../../../utils/index.js";import{VideoPlayer as f}from"../../videoPlayer/index.js";import{VideoTagLayer as y}from"../../videoPlayer/VideoTagLayer.js";import g from"lodash";import{getKeyCodeNumber as L}from"../../videoPlayer/utils.js";class R extends h.Component{constructor(s){super(s);this.fns={},this.labelSelectedList=[],this.clearResult=(t=!0,e)=>{const l=e?this.state.tagResult.map(i=>((i==null?void 0:i.result[e])&&delete i.result[e],i)):[];this.setState({tagResult:l},()=>this.emitEvent("render"))},this.exportData=()=>{var t,e;const l=(e=(t=this.videoPlayer)==null?void 0:t.duration)!=null?e:0;return[this.state.tagResult,{valid:this.state.valid,duration:l}]},this.emitEvent=t=>{this.fns[t]&&this.fns[t]()},this.combineResult=(t,e={})=>{var l,i;const{isMulti:n}=t,{key:o,value:r}=t.value;if(n){let a=(i=(l=e[o])==null?void 0:l.split(";"))!=null?i:[];a.includes(r)?a=a.filter(u=>u!==r):a.push(r);const d=new Set(a);return e[o]=Array.from(d).join(";"),g.pickBy(e,u=>u)}return e[o]=e[o]===r?void 0:r,g.pickBy(e,a=>a)},this.setResult=t=>{this.setState({tagResult:t}),this.fns.render&&this.fns.render()},this.setLabel=(t,e)=>{this.setLabelBySelectedList(t,e)},this.keydown=t=>{var e;const l=L(t.keyCode);if(l){const i=l-1;if(((e=this.config.inputList)==null?void 0:e.length)===1){this.labelSelectedList=[0,i],this.setLabel(0,i),setTimeout(()=>{this.labelSelectedList=[],this.emitEvent("render")},500);return}this.labelSelectedList.length===1?(this.labelSelectedList=[this.labelSelectedList[0],i],this.setLabel(this.labelSelectedList[0],i),setTimeout(()=>{this.labelSelectedList=[],this.emitEvent("render")},500)):(this.labelSelectedList=[i],this.emitEvent("expend"))}},this.setValid=t=>{this.setState({valid:t}),t===!1&&this.setState({tagResult:[]}),this.emitEvent("render")},this.setResultFromImgList=t=>{const{imgList:e,imgIndex:l,stepInfo:i}=t;if(!e[l])return;const n=c(e[l].result),o=n[`step_${i.step}`],r=this.getInitResultList();this.setState({tagResult:o?o==null?void 0:o.result:r,valid:(n==null?void 0:n.valid)===void 0?!0:n.valid},()=>this.emitEvent("render"))},this.getInitResultList=()=>{var t;return p.getDefaultTagResult((t=this.config.inputList)!=null?t:[],[])},this.state={tagResult:[],labelSelectedList:[],valid:!0}}get config(){var s;return c((s=this.props.stepInfo)==null?void 0:s.config)}get history(){return{initRecord:()=>{},pushHistory:()=>{}}}get currentTagResult(){var s;return(s=this.state.tagResult[0])!=null?s:{}}get valid(){return this.state.valid}singleOn(s,t){this.fns[s]=t}on(s,t){this.singleOn(s,t)}unbindAll(s){delete this.fns[s]}getTagResultByCode(s,t){var e,l,i;try{const n=(l=(e=this.config)==null?void 0:e.inputList)!=null?l:[],o=(n==null?void 0:n.length)>1,r=t!==void 0?s:0,a=t!==void 0?t:s,d=o?n[r]:n[0],u=((i=d.subSelected)!=null?i:[])[a];if(d&&u)return{value:{key:d.value,value:u.value},isMulti:d.isMulti}}catch(n){return}}setLabelBySelectedList(s,t){var e,l,i,n;const o=this.getTagResultByCode(s,t);if(o){const r=this.combineResult(o,(l=(e=this.state.tagResult[0])==null?void 0:e.result)!=null?l:{}),a=[{sourceID:m.getSourceID(),id:(n=(i=this.currentTagResult)==null?void 0:i.id)!=null?n:v(8,62),result:r}];this.setState({tagResult:a},()=>this.emitEvent("render"))}}componentDidMount(){document.addEventListener("keydown",this.keydown),this.props.onMounted(this),this.setResultFromImgList(this.props)}componentWillUnmount(){document.addEventListener("keydown",this.keydown),this.props.onUnmounted()}shouldComponentUpdate(s){return s.imgIndex!==this.props.imgIndex&&this.setResultFromImgList(s),!0}render(){var s;const{imgIndex:t,imgList:e,pageForward:l,pageJump:i,pageBackward:n}=this.props,{tagResult:o,valid:r}=this.state;return h.createElement("div",{style:{height:"100%",width:"100%",position:"relative",display:"flex",flexDirection:"column"}},h.createElement(f,{imgIndex:t,imgList:e,pageBackward:n,pageForward:l,pageJump:i,valid:r,setVideoRef:a=>{this.videoPlayer=a},dataLoaded:this.props.onVideoLoaded,drawLayerSlot:this.props.drawLayerSlot,footer:this.props.footer}),h.createElement(y,{result:o,inputList:(s=this.config)==null?void 0:s.inputList,hasPromptLayer:!!this.props.drawLayerSlot}))}}export{R as TagToolInstanceAdaptor};
1
+ import h from"react";import{TagUtils as m,CommonToolUtils as v,uuid as f}from"@labelbee/lb-annotation";import{jsonParser as g}from"../../../utils/index.js";import{VideoPlayer as y}from"../../videoPlayer/index.js";import{VideoTagLayer as L}from"../../videoPlayer/VideoTagLayer.js";import p,{cloneDeep as R}from"lodash";import{getKeyCodeNumber as b}from"../../videoPlayer/utils.js";class S extends h.Component{constructor(e){super(e);this.fns={},this.labelSelectedList=[],this.clearResult=(t=!0,s)=>{const n=s?this.state.tagResult.map(i=>((i==null?void 0:i.result[s])&&delete i.result[s],i)):[];this.setState({tagResult:n},()=>this.emitEvent("render"))},this.exportData=()=>{var t,s;const n=(s=(t=this.videoPlayer)==null?void 0:t.duration)!=null?s:0;return[this.state.tagResult,{valid:this.state.valid,duration:n}]},this.emitEvent=t=>{this.fns[t]&&this.fns[t]()},this.combineResult=(t,s={})=>{var n,i;const l=R(s),{isMulti:a}=t,{key:r,value:d}=t.value;if(a){let o=(i=(n=l[r])==null?void 0:n.split(";"))!=null?i:[];o.includes(d)?o=o.filter(c=>c!==d):o.push(d);const u=new Set(o);return l[r]=Array.from(u).join(";"),p.pickBy(l,c=>c)}return l[r]=l[r]===d?void 0:d,p.pickBy(l,o=>o)},this.setResult=t=>{this.setState({tagResult:t}),this.fns.render&&this.fns.render()},this.setLabel=(t,s)=>{this.setLabelBySelectedList(t,s)},this.keydown=t=>{var s;const n=b(t.keyCode);if(n){const i=n-1;if(((s=this.config.inputList)==null?void 0:s.length)===1){this.labelSelectedList=[0,i],this.setLabel(0,i),setTimeout(()=>{this.labelSelectedList=[],this.emitEvent("render")},500);return}this.labelSelectedList.length===1?(this.labelSelectedList=[this.labelSelectedList[0],i],this.setLabel(this.labelSelectedList[0],i),setTimeout(()=>{this.labelSelectedList=[],this.emitEvent("render")},500)):(this.labelSelectedList=[i],this.emitEvent("expend"))}},this.setValid=t=>{this.setState({valid:t}),t===!1&&this.setState({tagResult:[]}),this.emitEvent("render")},this.setResultFromImgList=t=>{const{imgList:s,imgIndex:n,stepInfo:i}=t;if(!s[n])return;const l=g(s[n].result),a=l[`step_${i.step}`],r=this.getInitResultList();this.setState({tagResult:a?a==null?void 0:a.result:r,valid:(l==null?void 0:l.valid)===void 0?!0:l.valid},()=>this.emitEvent("render"))},this.getInitResultList=()=>{var t;return m.getDefaultTagResult((t=this.config.inputList)!=null?t:[],[])},this.state={tagResult:[],labelSelectedList:[],valid:!0}}get config(){var e;return g((e=this.props.stepInfo)==null?void 0:e.config)}get history(){return{initRecord:()=>{},pushHistory:()=>{}}}get currentTagResult(){var e;return(e=this.state.tagResult[0])!=null?e:{}}get valid(){return this.state.valid}singleOn(e,t){this.fns[e]=t}on(e,t){this.singleOn(e,t)}unbindAll(e){delete this.fns[e]}getTagResultByCode(e,t){var s,n,i;try{const l=(n=(s=this.config)==null?void 0:s.inputList)!=null?n:[],a=(l==null?void 0:l.length)>1,r=t!==void 0?e:0,d=t!==void 0?t:e,o=a?l[r]:l[0],u=((i=o.subSelected)!=null?i:[])[d];if(o&&u)return{value:{key:o.value,value:u.value},isMulti:o.isMulti}}catch(l){return}}setLabelBySelectedList(e,t){var s,n,i,l,a,r;const d=this.getTagResultByCode(e,t);if(d){const o=this.combineResult(d,(n=(s=this.state.tagResult[0])==null?void 0:s.result)!=null?n:{}),u=[{sourceID:v.getSourceID(),id:(l=(i=this.currentTagResult)==null?void 0:i.id)!=null?l:f(8,62),result:o}];if(typeof((a=this.props)==null?void 0:a.annotationBefore)=="function"){(r=this.props)==null||r.annotationBefore(()=>this.setState({tagResult:u},()=>this.emitEvent("render")));return}this.setState({tagResult:u},()=>this.emitEvent("render"))}}componentDidMount(){document.addEventListener("keydown",this.keydown),this.props.onMounted(this),this.setResultFromImgList(this.props)}componentWillUnmount(){document.removeEventListener("keydown",this.keydown),this.props.onUnmounted()}shouldComponentUpdate(e){return e.imgIndex!==this.props.imgIndex&&this.setResultFromImgList(e),!0}render(){var e;const{imgIndex:t,imgList:s,pageForward:n,pageJump:i,pageBackward:l}=this.props,{tagResult:a,valid:r}=this.state;return h.createElement("div",{style:{height:"100%",width:"100%",position:"relative",display:"flex",flexDirection:"column"}},h.createElement(y,{imgIndex:t,imgList:s,pageBackward:l,pageForward:n,pageJump:i,valid:r,setVideoRef:d=>{this.videoPlayer=d},dataLoaded:this.props.onVideoLoaded,drawLayerSlot:this.props.drawLayerSlot,footer:this.props.footer}),h.createElement(L,{result:a,inputList:(e=this.config)==null?void 0:e.inputList,hasPromptLayer:!!this.props.drawLayerSlot}))}}export{S as TagToolInstanceAdaptor};
@@ -1 +1 @@
1
- var o;(function(n){n[n.Scribble=1]="Scribble",n[n.Erase=2]="Erase"})(o||(o={}));var t;(function(n){n.Rect="rectTool",n.Tag="tagTool",n.Point="pointTool",n.PointMarker="pointMarkerTool",n.Segmentation="segmentationTool",n.Filter="filterTool",n.Text="textTool",n.Polygon="polygonTool",n.Line="lineTool",n.LineMarker="lineMarkerTool",n.Empty="emptyTool",n.FolderTag="folderTagTool",n.RectTrack="rectTrackTool",n.ScribbleTool="scribbleTool",n.Face="faceTool",n.ClientAttribute="clientAttributeTool",n.OCRRelation="OCRRelationTool",n.SegmentByRect="segmentByRectTool",n.Cuboid="cuboidTool",n.PointCloudPolygon="pointCloudPolygon",n.LLM="LLMTool",n.NLP="NLPTool"})(t||(t={}));var r;(function(n){n[n.AnyString=0]="AnyString",n[n.Order=1]="Order",n[n.EnglishOnly=2]="EnglishOnly",n[n.NumberOnly=3]="NumberOnly",n[n.CustomFormat=4]="CustomFormat"})(r||(r={}));const i=1e3;export{o as EScribblePattern,r as ETextType,t as EToolName,i as TEXT_ATTRIBUTE_MAX_LENGTH};
1
+ var o;(function(n){n[n.Scribble=1]="Scribble",n[n.Erase=2]="Erase"})(o||(o={}));var t;(function(n){n.Rect="rectTool",n.Tag="tagTool",n.Point="pointTool",n.PointMarker="pointMarkerTool",n.Segmentation="segmentationTool",n.Filter="filterTool",n.Text="textTool",n.Polygon="polygonTool",n.Line="lineTool",n.LineMarker="lineMarkerTool",n.Empty="emptyTool",n.FolderTag="folderTagTool",n.RectTrack="rectTrackTool",n.ScribbleTool="scribbleTool",n.Face="faceTool",n.ClientAttribute="clientAttributeTool",n.OCRRelation="OCRRelationTool",n.SegmentByRect="segmentByRectTool",n.Cuboid="cuboidTool",n.PointCloudPolygon="pointCloudPolygon",n.LLM="LLMTool",n.NLP="NLPTool",n.LLMMultiWheel="LLMMultiWheelTool"})(t||(t={}));var r;(function(n){n[n.AnyString=0]="AnyString",n[n.Order=1]="Order",n[n.EnglishOnly=2]="EnglishOnly",n[n.NumberOnly=3]="NumberOnly",n[n.CustomFormat=4]="CustomFormat"})(r||(r={}));const i=1e3;export{o as EScribblePattern,r as ETextType,t as EToolName,i as TEXT_ATTRIBUTE_MAX_LENGTH};
@@ -0,0 +1 @@
1
+ import p,{createContext as d,useContext as _,useState as y,useCallback as m,useMemo as v,useEffect as O}from"react";import{pick as P}from"lodash";var h=Object.defineProperty,c=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,s=(r,e,t)=>e in r?h(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,l=(r,e)=>{for(var t in e||(e={}))x.call(e,t)&&s(r,t,e[t]);if(c)for(var t of c(e))V.call(e,t)&&s(r,t,e[t]);return r};const w=["hiddenText"],i={hiddenText:!1},u=d({value:i,updateValue:()=>{}}),T=()=>_(u),b=r=>{const[e,t]=y(()=>l({},i)),a=m(o=>{t(n=>!o||typeof o=="object"&&Object.keys(o).length===0?n:l(l({},n),o))},[]),f=v(()=>({value:e,updateValue:a}),[e,a]);return O(()=>{const o=r.value;if(!o)return;const n=P(o,w);Object.keys(n).length!==0&&a(n)},[r.value,a]),p.createElement(u.Provider,{value:f},r.children)};export{u as ToolStyleContext,b as ToolStyleProvider,T as useToolStyleContext};
package/es/index.css CHANGED
@@ -8,13 +8,9 @@
8
8
  }
9
9
  .index-module_imgView__wmxDk .index-module_item__-80YI {
10
10
  margin: 0px 40px 40px 0px;
11
- width: 400px;
12
11
  display: flex;
13
- height: 300px;
14
12
  }
15
13
  .index-module_imgView__wmxDk .index-module_item__-80YI .index-module_image__V49oW {
16
- height: 260px;
17
- min-width: 300px;
18
14
  flex: 1;
19
15
  background: #E9EBF1;
20
16
  display: flex;
@@ -49,13 +45,118 @@
49
45
  right: -5px;
50
46
  top: -5px;
51
47
  }
48
+ .index-module_rectRotateSensitivitySlider__tGjUn {
49
+ padding: 12px 20px;
50
+ }
51
+ .index-module_rectRotateSensitivitySlider__tGjUn .index-module_title__aAJW6 {
52
+ margin-bottom: 16px;
53
+ }
52
54
  .index-module_container__RwV5P {
53
55
  padding: 12px 20px;
54
56
  }
55
57
  .index-module_container__RwV5P .index-module_content__vHpS9 {
56
58
  display: flex;
57
59
  justify-content: space-between;
58
- margin-top: 4px;
60
+ margin-top: 16px;
61
+ }
62
+ .index-module_switchBox__6DlnW {
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: space-between;
66
+ padding: 12px 20px;
67
+ }
68
+ .index-module_switchBox__mLSzh {
69
+ display: flex;
70
+ justify-content: space-between;
71
+ align-items: center;
72
+ padding: 12px 20px;
73
+ }
74
+
75
+ .index-module_switchLeft__7qd-2 {
76
+ display: flex;
77
+ align-items: center;
78
+ }
79
+
80
+ .index-module_switchTitle__de9li {
81
+ margin-right: 8px;
82
+ }
83
+ .dynamic-resizer-content {
84
+ width: 100%;
85
+ height: 100%;
86
+ flex-shrink: 0;
87
+ flex-grow: 0;
88
+ position: relative;
89
+ }
90
+
91
+ .divider {
92
+ height: 10px;
93
+ width: 100%;
94
+ position: absolute;
95
+ top: -5px;
96
+ left: 0;
97
+ cursor: row-resize;
98
+ user-select: none;
99
+ display: flex;
100
+ align-items: center;
101
+ flex-direction: column;
102
+ justify-content: center;
103
+ }
104
+ .divider:hover .divider-top, .divider:hover .divider-bottom, .divider:hover .divider-all {
105
+ display: block;
106
+ }
107
+
108
+ .divider-top,
109
+ .divider-bottom,
110
+ .divider-all {
111
+ width: 20px;
112
+ height: 20px;
113
+ cursor: pointer;
114
+ display: none;
115
+ user-select: none;
116
+ }
117
+
118
+ .divider-all {
119
+ position: absolute;
120
+ top: -50%;
121
+ left: 50%;
122
+ transform: translate(-50%);
123
+ }
124
+
125
+ .divider-icon {
126
+ width: 100%;
127
+ height: 20px;
128
+ position: relative;
129
+ }
130
+ .divider-icon::after {
131
+ content: "";
132
+ display: block;
133
+ position: absolute;
134
+ top: 50%;
135
+ left: 0;
136
+ right: 0;
137
+ width: 90%;
138
+ height: 1px;
139
+ background: #ccc;
140
+ margin: 0 auto;
141
+ }
142
+
143
+ .dynamic-resizer-top {
144
+ width: 100%;
145
+ overflow-y: auto;
146
+ }
147
+
148
+ .dynamic-resizer-bottom {
149
+ width: 100%;
150
+ overflow-y: auto;
151
+ }
152
+
153
+ .hide-scrollbar * {
154
+ scrollbar-width: none; /* Firefox */
155
+ -ms-overflow-style: none; /* IE and Edge */
156
+ }
157
+
158
+ .hide-scrollbar *::-webkit-scrollbar {
159
+ display: none; /* Chrome, Safari, Opera */
59
160
  }
60
161
  .index-module_latexEditor__0fK8G {
61
162
  line-height: 32px;
@@ -612,6 +713,7 @@
612
713
  }
613
714
  .index-module_waveformContainer__rVhq9::-webkit-scrollbar {
614
715
  width: 8px;
716
+ height: 10px;
615
717
  }
616
718
  .index-module_waveformContainer__rVhq9::-webkit-scrollbar-track {
617
719
  background: #555;
@@ -704,6 +806,7 @@
704
806
  text-align: right;
705
807
  background: rgb(102, 111, 255);
706
808
  opacity: 0.6;
809
+ margin-top: 10px;
707
810
  }
708
811
  .index-module_textInputContainer__ES6X3 {
709
812
  height: 100%;
@@ -726,6 +829,16 @@
726
829
  font-family: SourceHanSansCN-Medium;
727
830
  font-size: 14px;
728
831
  }
832
+ .index-module_label__xE6hM .index-module_labelText__Zg1c4 {
833
+ display: flex;
834
+ overflow: hidden;
835
+ width: 60%;
836
+ align-items: center;
837
+ }
838
+ .index-module_label__xE6hM .index-module_labelText__Zg1c4 .index-module_titleText__BRM44 {
839
+ max-width: calc(100% - 20px);
840
+ overflow: hidden;
841
+ }
729
842
  .index-module_label__xE6hM .index-module_required__iElYl::before {
730
843
  display: inline-block;
731
844
  margin-right: 4px;
@@ -738,6 +851,7 @@
738
851
  .index-module_label__xE6hM .index-module_extra__PW5Qk {
739
852
  float: right;
740
853
  margin-right: 5px;
854
+ width: 40%;
741
855
  }
742
856
 
743
857
  .index-module_textareaContainer__dTIv4 {
@@ -868,6 +982,7 @@
868
982
  flex-wrap: wrap;
869
983
  align-items: center;
870
984
  justify-content: center;
985
+ overflow: hidden;
871
986
  }
872
987
  .index-module_placeholderHotkey__0SKPo .text {
873
988
  color: #333;
@@ -884,7 +999,10 @@
884
999
 
885
1000
  .index-module_attribute__g8Vbl {
886
1001
  height: 22px;
887
- padding: 2px 8px;
1002
+ padding: 0px 8px;
1003
+ width: max-content;
1004
+ max-width: 100%;
1005
+ margin-left: auto;
888
1006
  }
889
1007
 
890
1008
  .index-module_clearIcon__ZBZqI {
@@ -1147,7 +1265,8 @@
1147
1265
  }
1148
1266
  .index-module_clipSidebar__z2E8x .index-module_attributeList__2wnCE {
1149
1267
  flex: 1;
1150
- overflow: auto;
1268
+ overflow-x: hidden;
1269
+ overflow-y: auto;
1151
1270
  }
1152
1271
  .index-module_clipSidebar__z2E8x .index-module_attributeList__2wnCE .sensebee-radio-group,
1153
1272
  .index-module_clipSidebar__z2E8x .index-module_attributeList__2wnCE .sensebee-radio-group-no-limit-height .ant-radio-group {
@@ -1495,6 +1614,7 @@
1495
1614
  .bee-sidebar #style-width .ant-slider .ant-slider-track,
1496
1615
  .bee-sidebar #style-color .ant-slider .ant-slider-track,
1497
1616
  .bee-sidebar #style-fillOpacity .ant-slider .ant-slider-track,
1617
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider .ant-slider-track,
1498
1618
  .bee-sidebar #style-borderOpacity .ant-slider .ant-slider-track {
1499
1619
  background: #f5f5f5;
1500
1620
  }
@@ -1504,6 +1624,7 @@
1504
1624
  .bee-sidebar #style-width .ant-slider .ant-slider-dot,
1505
1625
  .bee-sidebar #style-color .ant-slider .ant-slider-dot,
1506
1626
  .bee-sidebar #style-fillOpacity .ant-slider .ant-slider-dot,
1627
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider .ant-slider-dot,
1507
1628
  .bee-sidebar #style-borderOpacity .ant-slider .ant-slider-dot {
1508
1629
  width: 0;
1509
1630
  height: 0;
@@ -1515,6 +1636,7 @@
1515
1636
  .bee-sidebar #style-width .ant-slider .ant-slider-handle,
1516
1637
  .bee-sidebar #style-color .ant-slider .ant-slider-handle,
1517
1638
  .bee-sidebar #style-fillOpacity .ant-slider .ant-slider-handle,
1639
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider .ant-slider-handle,
1518
1640
  .bee-sidebar #style-borderOpacity .ant-slider .ant-slider-handle {
1519
1641
  background-image: url("../dist/assets/icons/cc550fff.svg");
1520
1642
  background-repeat: no-repeat;
@@ -1532,6 +1654,7 @@
1532
1654
  .bee-sidebar #style-width .ant-slider .ant-slider-handle:focus,
1533
1655
  .bee-sidebar #style-color .ant-slider .ant-slider-handle:focus,
1534
1656
  .bee-sidebar #style-fillOpacity .ant-slider .ant-slider-handle:focus,
1657
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider .ant-slider-handle:focus,
1535
1658
  .bee-sidebar #style-borderOpacity .ant-slider .ant-slider-handle:focus {
1536
1659
  box-shadow: none;
1537
1660
  }
@@ -1541,6 +1664,7 @@
1541
1664
  .bee-sidebar #style-width .ant-slider .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow,
1542
1665
  .bee-sidebar #style-color .ant-slider .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow,
1543
1666
  .bee-sidebar #style-fillOpacity .ant-slider .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow,
1667
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow,
1544
1668
  .bee-sidebar #style-borderOpacity .ant-slider .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow {
1545
1669
  color: inherit;
1546
1670
  font-style: normal;
@@ -1564,6 +1688,7 @@
1564
1688
  .bee-sidebar #style-width .ant-slider .ant-collapse > .ant-collapse-item > .ant-collapse-header,
1565
1689
  .bee-sidebar #style-color .ant-slider .ant-collapse > .ant-collapse-item > .ant-collapse-header,
1566
1690
  .bee-sidebar #style-fillOpacity .ant-slider .ant-collapse > .ant-collapse-item > .ant-collapse-header,
1691
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider .ant-collapse > .ant-collapse-item > .ant-collapse-header,
1567
1692
  .bee-sidebar #style-borderOpacity .ant-slider .ant-collapse > .ant-collapse-item > .ant-collapse-header {
1568
1693
  position: relative;
1569
1694
  color: rgba(0, 0, 0, 0.85);
@@ -1590,6 +1715,9 @@
1590
1715
  .bee-sidebar #style-fillOpacity .ant-slider-rail,
1591
1716
  .bee-sidebar #style-fillOpacity .ant-slider-track,
1592
1717
  .bee-sidebar #style-fillOpacity .ant-slider-step,
1718
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider-rail,
1719
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider-track,
1720
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider-step,
1593
1721
  .bee-sidebar #style-borderOpacity .ant-slider-rail,
1594
1722
  .bee-sidebar #style-borderOpacity .ant-slider-track,
1595
1723
  .bee-sidebar #style-borderOpacity .ant-slider-step {
@@ -1602,38 +1730,46 @@
1602
1730
  .bee-sidebar #style-width .ant-slider .ant-slider-track,
1603
1731
  .bee-sidebar #style-color .ant-slider .ant-slider-track,
1604
1732
  .bee-sidebar #style-fillOpacity .ant-slider .ant-slider-track,
1733
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider .ant-slider-track,
1605
1734
  .bee-sidebar #style-borderOpacity .ant-slider .ant-slider-track {
1606
1735
  background: none;
1607
1736
  }
1608
1737
  .bee-sidebar #style-radius .ant-slider-step .ant-slider-dot,
1609
- .bee-sidebar #style-width .ant-slider-step .ant-slider-dot {
1738
+ .bee-sidebar #style-width .ant-slider-step .ant-slider-dot,
1739
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider-step .ant-slider-dot {
1610
1740
  height: 12px;
1611
1741
  background: #666666;
1612
1742
  border-radius: 0;
1613
1743
  margin-left: -2px;
1614
1744
  }
1615
1745
  .bee-sidebar #style-radius .ant-slider-step .ant-slider-dot:nth-of-type(1),
1616
- .bee-sidebar #style-width .ant-slider-step .ant-slider-dot:nth-of-type(1) {
1746
+ .bee-sidebar #style-width .ant-slider-step .ant-slider-dot:nth-of-type(1),
1747
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider-step .ant-slider-dot:nth-of-type(1) {
1617
1748
  width: 1px;
1618
1749
  }
1619
1750
  .bee-sidebar #style-radius .ant-slider-step .ant-slider-dot:nth-of-type(2),
1620
- .bee-sidebar #style-width .ant-slider-step .ant-slider-dot:nth-of-type(2) {
1751
+ .bee-sidebar #style-width .ant-slider-step .ant-slider-dot:nth-of-type(2),
1752
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider-step .ant-slider-dot:nth-of-type(2) {
1621
1753
  width: 2px;
1622
1754
  }
1623
1755
  .bee-sidebar #style-radius .ant-slider-step .ant-slider-dot:nth-of-type(3),
1624
- .bee-sidebar #style-width .ant-slider-step .ant-slider-dot:nth-of-type(3) {
1756
+ .bee-sidebar #style-width .ant-slider-step .ant-slider-dot:nth-of-type(3),
1757
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider-step .ant-slider-dot:nth-of-type(3) {
1625
1758
  width: 3px;
1626
1759
  }
1627
1760
  .bee-sidebar #style-radius .ant-slider-step .ant-slider-dot:nth-of-type(4),
1628
- .bee-sidebar #style-width .ant-slider-step .ant-slider-dot:nth-of-type(4) {
1761
+ .bee-sidebar #style-width .ant-slider-step .ant-slider-dot:nth-of-type(4),
1762
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider-step .ant-slider-dot:nth-of-type(4) {
1629
1763
  width: 4px;
1630
1764
  }
1631
1765
  .bee-sidebar #style-radius .ant-slider-step .ant-slider-dot:nth-of-type(5),
1632
- .bee-sidebar #style-width .ant-slider-step .ant-slider-dot:nth-of-type(5) {
1766
+ .bee-sidebar #style-width .ant-slider-step .ant-slider-dot:nth-of-type(5),
1767
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider-step .ant-slider-dot:nth-of-type(5) {
1633
1768
  width: 5px;
1634
1769
  }
1635
1770
  .bee-sidebar #style-radius .ant-slider:hover .ant-slider-rail,
1636
- .bee-sidebar #style-width .ant-slider:hover .ant-slider-rail {
1771
+ .bee-sidebar #style-width .ant-slider:hover .ant-slider-rail,
1772
+ .bee-sidebar #style-rectRotateSensitivity .ant-slider:hover .ant-slider-rail {
1637
1773
  background: #f5f5f5;
1638
1774
  }
1639
1775
  .bee-sidebar #style-color .ant-slider-rail {
@@ -2250,6 +2386,9 @@
2250
2386
  .bee-pop-confirm .ant-popover-buttons {
2251
2387
  min-width: 116px;
2252
2388
  }
2389
+ .bee-pop-confirm .ant-popover-inner-content .ant-popover-message {
2390
+ align-items: initial;
2391
+ }
2253
2392
 
2254
2393
  .bee-annotated-attribute {
2255
2394
  width: 240px;
@@ -2500,14 +2639,14 @@
2500
2639
  margin-right: 16px;
2501
2640
  background-image: url("../dist/assets/icons/7eadb9c4.svg");
2502
2641
  }
2503
- .bee-point-cloud-wrapper .bee-point-cloud-container__header-toolbar .bee-point-cloud__rotate-180 {
2642
+ .bee-point-cloud-wrapper .bee-point-cloud-container__header-toolbar .bee-point-cloud__rotate-90 {
2504
2643
  display: inline-block;
2505
2644
  height: 24px;
2506
2645
  width: 24px;
2507
2646
  background-repeat: no-repeat;
2508
2647
  cursor: pointer;
2509
2648
  flex: none;
2510
- background-image: url("../dist/assets/icons/9d70807.svg");
2649
+ background-image: url("../dist/assets/icons/ad33251.svg");
2511
2650
  }
2512
2651
  .bee-point-cloud-wrapper .bee-point-cloud-container__header-toolbar .bee-point-cloud__next {
2513
2652
  font-size: 24px;
@@ -3224,4 +3363,54 @@
3224
3363
 
3225
3364
  .bee-audio-combined {
3226
3365
  cursor: url("../dist/assets/icons/ad8081bf.svg") 10 12, default;
3366
+ }
3367
+
3368
+ /** LLMMultiWheel style */
3369
+ .bee-LLMMultiWheelView {
3370
+ display: flex;
3371
+ flex: 1;
3372
+ flex-direction: column;
3373
+ overflow: hidden;
3374
+ background-color: #fff;
3375
+ }
3376
+
3377
+ .bee-LLMMultiWheelView-container {
3378
+ flex: auto;
3379
+ display: flex;
3380
+ overflow: auto;
3381
+ }
3382
+ .bee-LLMMultiWheelView-container .dialog {
3383
+ min-width: 50%;
3384
+ padding: 8px;
3385
+ border: 1px solid transparent;
3386
+ overflow: auto;
3387
+ }
3388
+ .bee-LLMMultiWheelView-container .dialog.selected {
3389
+ border-color: #69b1ff;
3390
+ }
3391
+ .bee-LLMMultiWheelView-container .dialog .header {
3392
+ position: relative;
3393
+ }
3394
+ .bee-LLMMultiWheelView-container .dialog .header .order {
3395
+ position: absolute;
3396
+ left: 0;
3397
+ top: 0;
3398
+ width: 32px;
3399
+ height: 32px;
3400
+ line-height: 32px;
3401
+ text-align: center;
3402
+ background: #d4cbcb;
3403
+ border-radius: 4px;
3404
+ }
3405
+ .bee-LLMMultiWheelView-container .dialog .header .name {
3406
+ display: flex;
3407
+ flex-direction: column;
3408
+ align-items: center;
3409
+ justify-content: center;
3410
+ }
3411
+ .bee-LLMMultiWheelView-container .dialog .header .name .show-name {
3412
+ font-size: 16px;
3413
+ }
3414
+ .bee-LLMMultiWheelView-container .dialog .header .name .tips {
3415
+ color: #d4cbcb;
3227
3416
  }
package/es/index.js CHANGED
@@ -1 +1 @@
1
- export{default as AnnotationView}from"./components/AnnotationView/index.js";export{default as PointCloudAnnotationView}from"./components/AnnotationView/pointCloudAnnotationView.js";export{default as QuestionView}from"./components/LLMToolView/questionView/index.js";export{default as TextContent}from"./components/NLPToolView/textContent/index.js";import{i18n as l}from"@labelbee/lb-utils";export{i18n}from"@labelbee/lb-utils";import r,{useState as c,useImperativeHandle as m}from"react";import{I18nextProvider as f}from"react-i18next";import{Provider as u}from"react-redux";import x from"./App.js";import w from"./configureStore.js";import{PageBackward as P,PageForward as v,PageJump as T}from"./store/annotation/actionCreators.js";export{VideoTagTool}from"./components/videoAnnotate/videoTagTool/TagToolInstanceAdaptorI18nProvider.js";import{PointCloudProvider as g}from"./components/pointCloudView/PointCloudContext.js";import{LabelBeeContext as j}from"./store/ctx.js";export{default as PredictTracking}from"./components/predictTracking/predictTrackingIcon/index.js";export{default as LLMToolView}from"./components/LLMToolView/index.js";export{default as SwitchCuboidBoxIn2DView}from"./views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js";export{default as MeasureCanvas}from"./components/measureCanvas/index.js";export{default as AnnotatedBox}from"./views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.js";export{FindTrackIDIndexInCheckMode as FindTrackIDIndex}from"./views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.js";export{EDataFormatType,ELLMDataType,EStepType,ESubmitType,componentCls,prefix}from"./constant/index.js";var _=Object.defineProperty,I=Object.defineProperties,b=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,p=(o,e,t)=>e in o?_(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,A=(o,e)=>{for(var t in e||(e={}))V.call(e,t)&&p(o,t,e[t]);if(s)for(var t of s(e))C.call(e,t)&&p(o,t,e[t]);return o},O=(o,e)=>I(o,b(e));const n=w(),E=(o,e)=>{const[t,d]=c();return m(e,()=>({toolInstance:t,annotationEngine:n.getState().annotation.annotationEngine,pageBackwardActions:()=>n.dispatch(P()),pageForwardActions:()=>n.dispatch(v()),pageJump:a=>{const i=~~a-1;n.dispatch(T(i))},hello:()=>alert("hello labelBee!!!")}),[t]),r.createElement(u,{store:n,context:j},r.createElement(f,{i18n:l},r.createElement(g,null,r.createElement(x,O(A({},o),{setToolInstance:a=>{var i;d(a),(i=o.onLoad)==null||i.call(o,{toolInstance:a})}})))))};var S=r.forwardRef(E);export{S as default,n as store};
1
+ export{default as AnnotationView}from"./components/AnnotationView/index.js";export{default as PointCloudAnnotationView}from"./components/AnnotationView/pointCloudAnnotationView.js";export{default as QuestionView}from"./components/LLMToolView/questionView/index.js";export{default as TextContent}from"./components/NLPToolView/textContent/index.js";import{i18n as s}from"@labelbee/lb-utils";export{i18n}from"@labelbee/lb-utils";import r,{useState as m,useImperativeHandle as u}from"react";import{initReactI18next as f,I18nextProvider as x}from"react-i18next";import{Provider as w}from"react-redux";import P from"./App.js";import v from"./configureStore.js";import{PageBackward as j,PageForward as S,PageJump as T}from"./store/annotation/actionCreators.js";export{VideoTagTool}from"./components/videoAnnotate/videoTagTool/TagToolInstanceAdaptorI18nProvider.js";import{PointCloudProvider as V}from"./components/pointCloudView/PointCloudContext.js";import{LabelBeeContext as b}from"./store/ctx.js";export{default as PredictTracking}from"./components/predictTracking/predictTrackingIcon/index.js";export{default as LLMToolView}from"./components/LLMToolView/index.js";export{default as SwitchCuboidBoxIn2DView,SwitchCuboidBoxIn2DViewStateMode}from"./views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js";export{default as BatchSwitchConnectIn2DView}from"./views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.js";export{default as MeasureCanvas}from"./components/measureCanvas/index.js";export{default as AnnotatedBox}from"./views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.js";export{default as RectRotateSensitivitySlider}from"./views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.js";export{FindTrackIDIndexInCheckMode as FindTrackIDIndex}from"./views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.js";export{WrapAudioPlayer as AudioPlayer}from"./components/audioPlayer/index.js";export{generatePointCloudBoxRects}from"./utils/index.js";export{default as SubAttributeList}from"./components/subAttributeList/index.js";import{ToolStyleProvider as g}from"./hooks/useToolStyle.js";import{LoadFileAndFileData as C}from"./store/annotation/reducer.js";export{default as useToolConfigStore}from"./store/toolConfig/index.js";export{LLMMultiWheelSourceView}from"./components/LLMMultiWheelView/index.js";export{EDataFormatType,ELLMDataType,EStepType,ESubmitType,componentCls,prefix}from"./constant/index.js";var I=Object.defineProperty,h=Object.defineProperties,_=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,p=(o,e,t)=>e in o?I(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,L=(o,e)=>{for(var t in e||(e={}))y.call(e,t)&&p(o,t,e[t]);if(l)for(var t of l(e))A.call(e,t)&&p(o,t,e[t]);return o},M=(o,e)=>h(o,_(e));const n=v();s.use(f),s.options.react={useSuspense:!1};const D=(o,e)=>{const[t,c]=m();return u(e,()=>({toolInstance:t,annotationEngine:n.getState().annotation.annotationEngine,pageBackwardActions:()=>n.dispatch(j()),pageForwardActions:()=>n.dispatch(S()),pageJump:(i,a)=>{const d=~~i-1;n.dispatch(T(d)),a&&n.dispatch(C(d))},hello:()=>alert("hello labelBee!!!")}),[t]),r.createElement(w,{store:n,context:b},r.createElement(x,{i18n:s},r.createElement(g,{value:o.toolStyle},r.createElement(V,null,r.createElement(P,M(L({},o),{setToolInstance:i=>{var a;c(i),(a=o.onLoad)==null||a.call(o,{toolInstance:i})}}))))))};var B=r.forwardRef(D);export{B as default,n as store};
@@ -1 +1 @@
1
- const T={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_LOADPCDFILE_LOADING:"@@SET_LOADPCDFILE_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",SET_HIGHLIGHT_ATTRIBUTE:"@@SET_HIGHLIGHT_ATTRIBUTE",UPDATE_PRE_DATA_PROCESS:"@@UPDATE_PRE_DATA_PROCESS"},_={UPDATE_IMG_ATTRIBUTE:"@@UPDATE_IMG_ATTRIBUTE",INIT_IMG_ATTRIBUTE:"@@INIT_IMG_ATTRIBUTE"},E={INIT_TOOL_STYLE_CONFIG:"@@INIT_TOOL_STYLE_CONFIG",UPDATE_TOOL_STYLE_CONFIG:"@@UPDATE_TOOL_STYLE_CONFIG"};export{T as ANNOTATION_ACTIONS,_ as IMAGE_ATTRIBUTE_ACTIONS,E as TOOL_STYLE_ACTIONS};
1
+ const T={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_LOADPCDFILE_LOADING:"@@SET_LOADPCDFILE_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",SET_HIGHLIGHT_ATTRIBUTE:"@@SET_HIGHLIGHT_ATTRIBUTE",UPDATE_PRE_DATA_PROCESS:"@@UPDATE_PRE_DATA_PROCESS",UPDATE_IMG_INDEX_BY_EXTERNAL:"@@UPDATE_IMG_INDEX_BY_EXTERNAL"},_={UPDATE_IMG_ATTRIBUTE:"@@UPDATE_IMG_ATTRIBUTE",INIT_IMG_ATTRIBUTE:"@@INIT_IMG_ATTRIBUTE"},E={INIT_TOOL_STYLE_CONFIG:"@@INIT_TOOL_STYLE_CONFIG",UPDATE_TOOL_STYLE_CONFIG:"@@UPDATE_TOOL_STYLE_CONFIG"};export{T as ANNOTATION_ACTIONS,_ as IMAGE_ATTRIBUTE_ACTIONS,E as TOOL_STYLE_ACTIONS};
@@ -0,0 +1 @@
1
+ import{EDataFormatType as s}from"../../constant/index.js";import{create as r}from"zustand";const o=r(e=>({dataFormatType:s.Default,setDataFormatType:t=>e(a=>({dataFormatType:t})),selectedID:"",setSelectedID:t=>e(a=>({selectedID:t})),newAnswerListMap:{},setNewAnswerListMap:t=>e(a=>({newAnswerListMap:t}))}));export{o as default};
@@ -1 +1 @@
1
- import{create as o}from"zustand";const a=o(e=>({ptCtx:{},pointCloudBoxList:[],setPointCloudBoxList:t=>e(s=>({pointCloudBoxList:t})),highlightIDs:[],setHighlightIDs:t=>e(s=>({highlightIDs:t})),selectedIDs:[],setSelectedIDs:t=>e(s=>({selectedIDs:t})),setPtCtx:t=>e(s=>({ptCtx:t}))}));export{a as default};
1
+ import{create as i}from"zustand";const o=i(e=>({ptCtx:{},pointCloudBoxList:[],setPointCloudBoxList:t=>e(s=>({pointCloudBoxList:t})),highlightIDs:[],setHighlightIDs:t=>e(s=>({highlightIDs:t})),selectedIDs:[],setSelectedIDs:t=>e(s=>({selectedIDs:t})),rectRotateSensitivity:2,setRectRotateSensitivity:t=>e(s=>({rectRotateSensitivity:t})),setPtCtx:t=>e(s=>({ptCtx:t}))}));export{o as default};
@@ -1 +1 @@
1
- import{ANNOTATION_ACTIONS as a}from"../Actions.js";import{LoadFileAndFileData as O,getStepConfig as M}from"./reducer.js";import{ESubmitType as _}from"../../constant/index.js";import{EPageTurningOperation as y}from"../../data/enums/AnnotationSize.js";import j from"../../utils/PageOperator.js";import{jsonParser as K}from"../../utils/index.js";import{getBoxesByTrackID as V}from"../../components/predictTracking/previewResult/util.js";var v=(t,e,n)=>new Promise((o,r)=>{var i=u=>{try{d(n.next(u))}catch(p){r(p)}},s=u=>{try{d(n.throw(u))}catch(p){r(p)}},d=u=>u.done?o(u.value):Promise.resolve(u.value).then(i,s);d((n=n.apply(t,e)).next())});const N=(t,e)=>e.map(n=>t(n)),J=t=>t===y.Forward?_.Forward:t===y.Backward?_.Backward:t===y.Jump?_.Jump:_.Forward,Y=(t,e)=>{var n,o;const{imgList:r,imgIndex:i}=t,{dataSourceStep:s}=M(t.stepList,t.step);return((o=(n=K(r[i-1].result)[`step_${s}`])==null?void 0:n.result)==null?void 0:o.length)-1||e};function W(t){return{type:a.UPDATE_TOOL_INSTANCE,payload:{toolInstance:t}}}function x({stepList:t}){return{type:a.SET_TASK_STEP_LIST,payload:{stepList:t}}}function G({stepList:t,step:e}){return{type:a.SET_TASK_CONFIG,payload:{stepList:t,step:e}}}function P(t){return{type:a.UPDATE_ON_SUBMIT,payload:{onSubmit:t}}}function U(t){return{type:a.UPDATE_ON_SAVE,payload:{onSave:t}}}function L(t){return{type:a.UPDATE_ON_PAGE_CHANGE,payload:{onPageChange:t}}}function D(t){return{type:a.UPDATE_ON_STEP_CHANGE,payload:{onStepChange:t}}}function R(t){return{type:a.UPDATE_GET_FILE_DATA,payload:{getFileData:t}}}function C(t){return{type:a.UPDATE_PAGE_SIZE,payload:{pageSize:t}}}function m(t){return{type:a.UPDATE_LOAD_FILE_LIST,payload:{loadFileList:t}}}function X(){return{type:a.UPDATE_ROTATE}}function w(t){return{type:a.SKIP_BEFORE_PAGE_TURNING,payload:{skipBeforePageTurning:t}}}function g(t){return{type:a.UPDATE_BEFORE_ROTATE,payload:{beforeRotate:t}}}function h(t){return{type:a.UPDATE_PRE_DATA_PROCESS,payload:{preDataProcess:t}}}function q(){return{type:a.COPY_BACKWARD_RESULT}}function z({id:t,newID:e,rangeIndex:n,imgList:o}){return{type:a.BATCH_UPDATE_TRACK_ID,payload:{id:t,newID:e,rangeIndex:n,imgList:o}}}function Z(t,e,n){return{type:a.BATCH_UPDATE_RESULT_BY_TRACK_ID,payload:{id:t,newData:e,rangeIndex:n}}}function $(){return{type:a.BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT,payload:{}}}const F=t=>({type:a.SET_CHECK_MODE,payload:{checkMode:t}}),B=t=>({type:a.SET_HIGHLIGHT_ATTRIBUTE,payload:{attribute:t}});function Q({onSubmit:t,onSave:e,onPageChange:n,onStepChange:o,getFileData:r,pageSize:i,loadFileList:s,step:d,stepList:u,skipBeforePageTurning:p,beforeRotate:T,checkMode:l,highlightAttribute:E,preDataProcess:A}){const c=[];return t&&c.push(P(t)),e&&c.push(U(e)),n&&c.push(L(n)),o&&c.push(D(o)),r&&c.push(R(r)),s&&c.push(m(s)),i&&c.push(C(i)),p&&c.push(w(p)),T&&c.push(g(T)),A&&c.push(h(A)),typeof l=="boolean"&&c.push(F(l)),c.push(B(E)),c.push(G({stepList:u,step:d})),c.push({type:a.CALC_STEP_PROGRESS}),c.push({type:a.INIT_TOOL}),H=>N(H,c)}function tt({onSubmit:t,onSave:e,onPageChange:n,onStepChange:o,getFileData:r,pageSize:i,loadFileList:s,stepList:d,beforeRotate:u,highlightAttribute:p,preDataProcess:T}){const l=[];return t&&l.push(P(t)),e&&l.push(U(e)),n&&l.push(L(n)),o&&l.push(D(o)),r&&l.push(R(r)),s&&l.push(m(s)),i&&l.push(C(i)),u&&l.push(g(u)),T&&l.push(h(T)),l.push(B(p)),l.push(x({stepList:d})),E=>N(E,l)}const et=(t,e)=>{var n;const o=e==null?void 0:e.findIndex(r=>(r==null?void 0:r.step)===t);return(n=e[o+1])==null?void 0:n.step},nt=t=>(e,n)=>{const{annotation:o}=n(),{step:r,stepList:i}=o,s=et(r,i);return[e(k(s,t))]},k=(t,e)=>(n,o)=>{var r,i;const{annotation:s}=o();(r=s==null?void 0:s.onStepChange)==null||r.call(s,t);const d=(i=s==null?void 0:s.imgIndex)!=null?i:0;return[n({type:a.SUBMIT_RESULT}),n({type:a.SUBMIT_FILE_DATA,payload:{submitType:_.StepChanged}}),n({type:a.SET_STEP,payload:{toStep:t}}),n({type:a.CALC_STEP_PROGRESS}),n(O(e!=null?e:d,0))]},f=t=>e=>[e({type:a.SUBMIT_RESULT}),e({type:a.SUBMIT_FILE_DATA,payload:{submitType:t}})],at=(t,e,n,o)=>[t(f(n)),t(O(e,o))],ot=(t,e)=>[t({type:a.SUBMIT_RESULT}),t({type:a.SET_BASIC_INDEX,payload:{basicIndex:e}})],rt=(t,e)=>{t({type:a.SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED,payload:{triggerEventAfterIndexChanged:e}})},it=(t=!1)=>(e,n)=>S(e,n,y.Backward,t),st=(t=!1)=>(e,n)=>S(e,n,y.Forward,t),ut=(t,e=!1)=>(n,o)=>{if(t!==o().imgIndex)return S(n,o,y.Jump,e,t)},b=(t,e,n,o)=>v(void 0,null,function*(){var r;const{loadFileList:i,imgList:s,pageSize:d}=e().annotation,u=Math.floor(n/d);I(t,!0);try{const p=yield i(u,d);if(I(t,!1),!((r=p==null?void 0:p.fileList)==null?void 0:r.length)||!(p==null?void 0:p.total))throw new Error("fileList and total are required");const T=o?new Array(p.total):[...s];return T.splice(u*d,d,...p.fileList),t({type:a.UPDATE_IMG_LIST,payload:{imgList:T}}),!0}catch(p){I(t,!1),console.error(p)}}),S=(t,e,n,o=!1,r)=>v(void 0,null,function*(){var i;const s=e().annotation,{fileIndexChanged:d,fileIndex:u,basicIndexChanged:p,basicIndex:T}=j.getNextPageInfo(n,s,r),l=J(n);if(rt(t,o),d){if(s.loading||!s.imgList[u]&&!(yield b(t,e,u)))return;(i=s.onPageChange)==null||i.call(s,u);const E=l===_.Backward?Y(e().annotation,T):T;return at(t,u,l,E)}return p?ot(t,T):t(f(l))}),pt=t=>{t(f(_.Save)),t({type:a.SAVE_RESULT})},I=(t,e)=>{t({type:a.SET_LOADING,payload:{loading:e}})},lt=(t,e)=>{t({type:a.SET_LOADING,payload:{loading:e}})},dt=(t,e)=>{t({type:a.SET_LOADPCDFILE_LOADING,payload:{loadPCDFileLoading:e}})},ct=t=>{t({type:a.INIT_ALL_STATE,payload:{}})},Tt=(t,e)=>{t({type:a.SET_PREDICT_RESULT,payload:{result:e}})},_t=(t,e)=>{t({type:a.SET_PREDICT_RESULT_VISIBLE,payload:{visible:e}})},yt=(t,e)=>(n,o)=>{const{imgList:r,step:i}=o().annotation;return V(r,i,t,e)},Et=t=>(e,n)=>{var o,r;const{annotation:i}=n();return(r=(o=i==null?void 0:i.preDataProcess)==null?void 0:o.call(i,t))!=null?r:t.dataList};export{$ as BatchUpdateImgListResultByPredictResult,Z as BatchUpdateResultByTrackID,z as BatchUpdateTrackID,pt as ChangeSave,q as CopyBackWordResult,S as DispatcherTurning,yt as GetBoxesByID,ct as InitAnnotationState,Q as InitTaskData,it as PageBackward,st as PageForward,ut as PageJump,Et as PreDataProcess,I as SetAnnotationLoading,dt as SetLoadPCDFileLoading,lt as SetPointCloudLoading,Tt as SetPredictResult,_t as SetPredictResultVisible,G as SetTaskConfig,x as SetTaskStepList,nt as ToNextStep,f as ToSubmitFileData,g as UpdateBeforeRotate,F as UpdateCheckMode,R as UpdateGetFileData,m as UpdateGetFileList,B as UpdateHighlightAttribute,tt as UpdateInjectFunc,L as UpdateOnPageChange,U as UpdateOnSave,D as UpdateOnStepChange,P as UpdateOnSubmit,C as UpdatePageSize,h as UpdatePreDataProcess,k as UpdateProcessingStep,X as UpdateRotate,w as UpdateSkipBeforePageTurning,W as UpdateToolInstance,b as loadImgList};
1
+ import{ANNOTATION_ACTIONS as a}from"../Actions.js";import{LoadFileAndFileData as N,getStepConfig as V}from"./reducer.js";import{ESubmitType as E}from"../../constant/index.js";import{EPageTurningOperation as y}from"../../data/enums/AnnotationSize.js";import J from"../../utils/PageOperator.js";import{jsonParser as X}from"../../utils/index.js";import{getBoxesByTrackID as Y}from"../../components/predictTracking/previewResult/util.js";var S=(t,n,e)=>new Promise((o,r)=>{var i=l=>{try{u(e.next(l))}catch(p){r(p)}},s=l=>{try{u(e.throw(l))}catch(p){r(p)}},u=l=>l.done?o(l.value):Promise.resolve(l.value).then(i,s);u((e=e.apply(t,n)).next())});const G=(t,n)=>n.map(e=>t(e)),W=t=>t===y.Forward?E.Forward:t===y.Backward?E.Backward:t===y.Jump?E.Jump:E.Forward,q=(t,n)=>{var e,o,r;const{imgList:i,imgIndex:s}=t,{dataSourceStep:u}=V(t.stepList,t.step);return((r=(o=X((e=i[s-1])==null?void 0:e.result)[`step_${u}`])==null?void 0:o.result)==null?void 0:r.length)-1||n};function z(t){return{type:a.UPDATE_TOOL_INSTANCE,payload:{toolInstance:t}}}function w({stepList:t}){return{type:a.SET_TASK_STEP_LIST,payload:{stepList:t}}}function F({stepList:t,step:n}){return{type:a.SET_TASK_CONFIG,payload:{stepList:t,step:n}}}function L(t){return{type:a.UPDATE_ON_SUBMIT,payload:{onSubmit:t}}}function D(t){return{type:a.UPDATE_ON_SAVE,payload:{onSave:t}}}function m(t){return{type:a.UPDATE_ON_PAGE_CHANGE,payload:{onPageChange:t}}}function R(t){return{type:a.UPDATE_ON_STEP_CHANGE,payload:{onStepChange:t}}}function g(t){return{type:a.UPDATE_GET_FILE_DATA,payload:{getFileData:t}}}function h(t){return{type:a.UPDATE_PAGE_SIZE,payload:{pageSize:t}}}function B(t){return{type:a.UPDATE_LOAD_FILE_LIST,payload:{loadFileList:t}}}function Z(){return{type:a.UPDATE_ROTATE}}function k(t){return{type:a.SKIP_BEFORE_PAGE_TURNING,payload:{skipBeforePageTurning:t}}}function C(t){return{type:a.UPDATE_BEFORE_ROTATE,payload:{beforeRotate:t}}}function v(t){return{type:a.UPDATE_PRE_DATA_PROCESS,payload:{preDataProcess:t}}}function $(){return{type:a.COPY_BACKWARD_RESULT}}function b(t){return{type:a.UPDATE_IMG_INDEX_BY_EXTERNAL,payload:{getImgIndexByExternal:t}}}function Q({id:t,newID:n,rangeIndex:e,imgList:o}){return{type:a.BATCH_UPDATE_TRACK_ID,payload:{id:t,newID:n,rangeIndex:e,imgList:o}}}function tt(t,n,e){return{type:a.BATCH_UPDATE_RESULT_BY_TRACK_ID,payload:{id:t,newData:n,rangeIndex:e}}}function nt(){return{type:a.BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT,payload:{}}}const H=t=>({type:a.SET_CHECK_MODE,payload:{checkMode:t}}),x=t=>({type:a.SET_HIGHLIGHT_ATTRIBUTE,payload:{attribute:t}});function et({onSubmit:t,onSave:n,onPageChange:e,onStepChange:o,getFileData:r,pageSize:i,loadFileList:s,step:u,stepList:l,skipBeforePageTurning:p,beforeRotate:_,checkMode:c,highlightAttribute:T,preDataProcess:f,getImgIndexByExternal:I}){const d=[];return t&&d.push(L(t)),n&&d.push(D(n)),e&&d.push(m(e)),o&&d.push(R(o)),r&&d.push(g(r)),s&&d.push(B(s)),i&&d.push(h(i)),p&&d.push(k(p)),_&&d.push(C(_)),f&&d.push(v(f)),typeof c=="boolean"&&d.push(H(c)),I&&d.push(b(I)),d.push(x(T)),d.push(F({stepList:l,step:u})),d.push({type:a.CALC_STEP_PROGRESS}),d.push({type:a.INIT_TOOL}),O=>G(O,d)}function at({onSubmit:t,onSave:n,onPageChange:e,onStepChange:o,getFileData:r,pageSize:i,loadFileList:s,stepList:u,beforeRotate:l,highlightAttribute:p,preDataProcess:_}){const c=[];return t&&c.push(L(t)),n&&c.push(D(n)),e&&c.push(m(e)),o&&c.push(R(o)),r&&c.push(g(r)),s&&c.push(B(s)),i&&c.push(h(i)),l&&c.push(C(l)),_&&c.push(v(_)),c.push(x(p)),c.push(w({stepList:u})),T=>G(T,c)}const ot=(t,n)=>{var e;const o=n==null?void 0:n.findIndex(r=>(r==null?void 0:r.step)===t);return(e=n[o+1])==null?void 0:e.step},rt=t=>(n,e)=>{const{annotation:o}=e(),{step:r,stepList:i}=o,s=ot(r,i);return[n(M(s,t))]},M=(t,n)=>(e,o)=>{var r,i;const{annotation:s}=o();(r=s==null?void 0:s.onStepChange)==null||r.call(s,t);const u=(i=s==null?void 0:s.imgIndex)!=null?i:0;return[e({type:a.SUBMIT_RESULT}),e({type:a.SUBMIT_FILE_DATA,payload:{submitType:E.StepChanged}}),e({type:a.SET_STEP,payload:{toStep:t}}),e({type:a.CALC_STEP_PROGRESS}),e(N(n!=null?n:u,0))]},A=t=>n=>[n({type:a.SUBMIT_RESULT}),n({type:a.SUBMIT_FILE_DATA,payload:{submitType:t}})],it=(t,n,e,o)=>S(void 0,null,function*(){t(A(e)),yield t(K(e)),t(N(n,o))}),ut=(t,n)=>[t({type:a.SUBMIT_RESULT}),t({type:a.SET_BASIC_INDEX,payload:{basicIndex:n}})],st=(t,n)=>{t({type:a.SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED,payload:{triggerEventAfterIndexChanged:n}})},lt=(t=!1)=>(n,e)=>P(n,e,y.Backward,t),pt=(t=!1)=>(n,e)=>P(n,e,y.Forward,t),dt=(t,n=!1)=>(e,o)=>{if(t!==o().imgIndex)return P(e,o,y.Jump,n,t)},j=(t,n,e,o)=>S(void 0,null,function*(){var r;const{loadFileList:i,imgList:s,pageSize:u}=n().annotation,l=Math.floor(e/u);U(t,!0);try{const p=yield i(l,u);if(U(t,!1),!((r=p==null?void 0:p.fileList)==null?void 0:r.length)||!(p==null?void 0:p.total))throw new Error("fileList and total are required");const _=o?new Array(p.total):[...s];return _.splice(l*u,u,...p.fileList),t({type:a.UPDATE_IMG_LIST,payload:{imgList:_}}),!0}catch(p){U(t,!1),console.error(p)}}),P=(t,n,e,o=!1,r)=>S(void 0,null,function*(){var i,s;const u=n().annotation,l=W(e);let{fileIndexChanged:p,fileIndex:_,basicIndexChanged:c,basicIndex:T}=J.getNextPageInfo(e,u,r);const f=(i=u==null?void 0:u.getImgIndexByExternal)==null?void 0:i.call(u,u.imgIndex,l);if(f!==void 0&&(p=!0,_=f),st(t,o),p){if(u.loading||!u.imgList[_]&&!(yield j(t,n,_)))return;const I=n();(s=u.onPageChange)==null||s.call(u,_);const d=l===E.Backward?q(I.annotation,T):T;return it(t,_,l,d)}return c?ut(t,T):t(A(l))}),ct=t=>{t(A(E.Save)),t({type:a.SAVE_RESULT})},U=(t,n)=>{t({type:a.SET_LOADING,payload:{loading:n}})},_t=(t,n)=>{t({type:a.SET_LOADPCDFILE_LOADING,payload:{loadPCDFileLoading:n}})},Tt=t=>{t({type:a.INIT_ALL_STATE,payload:{}})},Et=(t,n)=>{t({type:a.SET_PREDICT_RESULT,payload:{result:n}})},yt=(t,n)=>{t({type:a.SET_PREDICT_RESULT_VISIBLE,payload:{visible:n}})},ft=(t,n)=>(e,o)=>{const{imgList:r,step:i}=o().annotation;return Y(r,i,t,n)},It=t=>(n,e)=>{var o,r;const{annotation:i}=e();return(r=(o=i==null?void 0:i.preDataProcess)==null?void 0:o.call(i,t))!=null?r:t.dataList},K=t=>(n,e)=>S(void 0,null,function*(){const{annotation:o}=e(),{onSubmit:r,imgIndex:i,imgList:s}=o;!r||(yield r([s[i]],t,i,s))});export{nt as BatchUpdateImgListResultByPredictResult,tt as BatchUpdateResultByTrackID,Q as BatchUpdateTrackID,ct as ChangeSave,$ as CopyBackWordResult,P as DispatcherTurning,ft as GetBoxesByID,Tt as InitAnnotationState,et as InitTaskData,lt as PageBackward,pt as PageForward,dt as PageJump,It as PreDataProcess,U as SetAnnotationLoading,_t as SetLoadPCDFileLoading,Et as SetPredictResult,yt as SetPredictResultVisible,F as SetTaskConfig,w as SetTaskStepList,K as SubmitHandler,rt as ToNextStep,A as ToSubmitFileData,C as UpdateBeforeRotate,H as UpdateCheckMode,g as UpdateGetFileData,B as UpdateGetFileList,x as UpdateHighlightAttribute,b as UpdateImgIndexByExternal,at as UpdateInjectFunc,m as UpdateOnPageChange,D as UpdateOnSave,R as UpdateOnStepChange,L as UpdateOnSubmit,h as UpdatePageSize,v as UpdatePreDataProcess,M as UpdateProcessingStep,Z as UpdateRotate,k as UpdateSkipBeforePageTurning,z as UpdateToolInstance,j as loadImgList};