@labelbee/lb-components 1.23.0-alpha.13 → 1.23.0-alpha.131

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 (320) 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/index.js +1 -1
  12. package/dist/components/DynamicResizer/DynamicResizer.js +1 -0
  13. package/dist/components/DynamicResizer/assets/bottomToZero.svg.js +1 -0
  14. package/dist/components/DynamicResizer/assets/divider.svg.js +1 -0
  15. package/dist/components/DynamicResizer/assets/topToZero.svg.js +1 -0
  16. package/dist/components/DynamicResizer/hooks/useDrag.js +1 -0
  17. package/dist/components/DynamicResizer/hooks/useUpdateHeight.js +1 -0
  18. package/dist/components/DynamicResizer/index.js +1 -0
  19. package/dist/components/LLMMultiWheelView/dialogView/index.js +1 -0
  20. package/dist/components/LLMMultiWheelView/index.js +1 -0
  21. package/dist/components/LLMMultiWheelView/sidebar/index.js +1 -0
  22. package/dist/components/LLMToolView/index.js +1 -1
  23. package/dist/components/LLMToolView/questionView/components/header/index.js +1 -1
  24. package/dist/components/LLMToolView/questionView/components/imgView/index.js +1 -1
  25. package/dist/components/LLMToolView/questionView/index.js +1 -1
  26. package/dist/components/LLMToolView/sidebar/components/answerSort/index.js +1 -1
  27. package/dist/components/LLMToolView/sidebar/components/modelAnswerSort/index.js +1 -0
  28. package/dist/components/LLMToolView/sidebar/components/textEditor/index.js +2 -2
  29. package/dist/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
  30. package/dist/components/LLMToolView/sidebar/index.js +1 -1
  31. package/dist/components/audioAnnotate/audioContext/index.js +1 -1
  32. package/dist/components/audioAnnotate/audioSide/clipSidebar/index.js +2 -1
  33. package/dist/components/audioAnnotate/index.js +1 -1
  34. package/dist/components/audioAnnotate/textInput/index.js +1 -1
  35. package/dist/components/audioAnnotate/textInput/index.module.scss.js +1 -1
  36. package/dist/components/audioAnnotate/utils/dataTransform.js +1 -0
  37. package/dist/components/audioPlayer/clipRegion/index.js +1 -1
  38. package/dist/components/audioPlayer/index.js +1 -1
  39. package/dist/components/audioPlayer/useAudioCombine/index.js +3 -2
  40. package/dist/components/audioPlayer/useAudioScroll/index.js +1 -1
  41. package/dist/components/audioPlayer/useAudioSegment/index.js +1 -1
  42. package/dist/components/audioPlayer/zoomSlider/index.js +1 -1
  43. package/dist/components/longText/index.js +1 -1
  44. package/dist/components/markdownView/index.js +1 -1
  45. package/dist/components/pointCloud2DRectOperationView/index.js +1 -1
  46. package/dist/components/pointCloud2DRectOperationView/useUpdateRectList.js +1 -0
  47. package/dist/components/pointCloud2DRectOperationView/util.js +1 -0
  48. package/dist/components/pointCloudView/PointCloud2DSingleView.js +1 -1
  49. package/dist/components/pointCloudView/PointCloud2DView.js +1 -1
  50. package/dist/components/pointCloudView/PointCloud3DView.js +1 -1
  51. package/dist/components/pointCloudView/PointCloudBackView.js +1 -1
  52. package/dist/components/pointCloudView/PointCloudContext.js +1 -1
  53. package/dist/components/pointCloudView/PointCloudInfos.js +1 -1
  54. package/dist/components/pointCloudView/PointCloudLayout.js +1 -1
  55. package/dist/components/pointCloudView/PointCloudListener.js +1 -1
  56. package/dist/components/pointCloudView/PointCloudSegment2DView.js +1 -1
  57. package/dist/components/pointCloudView/PointCloudSegmentListener.js +1 -1
  58. package/dist/components/pointCloudView/PointCloudSideView.js +1 -1
  59. package/dist/components/pointCloudView/PointCloudTopView.js +1 -1
  60. package/dist/components/pointCloudView/components/HighlightVisible/index.js +1 -1
  61. package/dist/components/pointCloudView/hooks/useBoxes.js +1 -1
  62. package/dist/components/pointCloudView/hooks/useDataLinkSwitch.js +1 -0
  63. package/dist/components/pointCloudView/hooks/useHighlight.js +1 -1
  64. package/dist/components/pointCloudView/hooks/useHistory.js +1 -1
  65. package/dist/components/pointCloudView/hooks/usePointCloudViews.js +1 -1
  66. package/dist/components/pointCloudView/hooks/usePolygon.js +1 -1
  67. package/dist/components/pointCloudView/hooks/useRotate.js +1 -1
  68. package/dist/components/pointCloudView/hooks/useRotateEdge.js +1 -0
  69. package/dist/components/pointCloudView/hooks/useSingleBox.js +1 -1
  70. package/dist/components/pointCloudView/hooks/useStatus.js +1 -1
  71. package/dist/components/pointCloudView/hooks/useTimeoutFunc.js +1 -0
  72. package/dist/components/pointCloudView/hooks/useUpdatePointCloudColor.js +1 -0
  73. package/dist/components/pointCloudView/hooks/useWindowKeydownListener.js +1 -0
  74. package/dist/components/pointCloudView/index.js +1 -1
  75. package/dist/components/pointCloudView/utils/event-polyfill.js +1 -0
  76. package/dist/components/pointCloudView/utils/map.js +1 -0
  77. package/dist/components/predictTracking/predictTrackingIcon/index.js +1 -1
  78. package/dist/components/predictTracking/previewResult/index.js +1 -1
  79. package/dist/components/subAttributeList/index.js +1 -0
  80. package/dist/components/videoAnnotate/videoClipTool/index.js +1 -1
  81. package/dist/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.js +1 -1
  82. package/dist/data/enums/ToolType.js +1 -1
  83. package/dist/hooks/useToolStyle.js +1 -0
  84. package/dist/index.css +205 -16
  85. package/dist/index.js +1 -1
  86. package/dist/store/Actions.js +1 -1
  87. package/dist/store/LLMMultiWheel/index.js +1 -0
  88. package/dist/store/annotatedBox/index.js +1 -1
  89. package/dist/store/annotation/actionCreators.js +1 -1
  90. package/dist/store/annotation/reducer.js +1 -1
  91. package/dist/store/ctx.js +1 -1
  92. package/dist/store/toolConfig/baseToolConfig.js +1 -0
  93. package/dist/store/toolConfig/index.js +1 -0
  94. package/dist/store/toolConfig/pointCloudToolConfig.js +1 -0
  95. package/dist/types/App.d.ts +6 -1
  96. package/dist/types/components/AnnotationView/index.d.ts +8 -0
  97. package/dist/types/components/DynamicResizer/DynamicResizer.d.ts +5 -0
  98. package/dist/types/components/DynamicResizer/hooks/useDrag.d.ts +12 -0
  99. package/dist/types/components/DynamicResizer/hooks/useUpdateHeight.d.ts +23 -0
  100. package/dist/types/components/DynamicResizer/index.d.ts +2 -0
  101. package/dist/types/components/DynamicResizer/types/interface.d.ts +17 -0
  102. package/dist/types/components/LLMMultiWheelView/dialogView/index.d.ts +15 -0
  103. package/dist/types/components/LLMMultiWheelView/index.d.ts +20 -0
  104. package/dist/types/components/LLMMultiWheelView/sidebar/index.d.ts +8 -0
  105. package/dist/types/components/LLMMultiWheelView/types.d.ts +62 -0
  106. package/dist/types/components/LLMToolView/questionView/components/header/index.d.ts +15 -0
  107. package/dist/types/components/LLMToolView/questionView/index.d.ts +7 -0
  108. package/dist/types/components/LLMToolView/sidebar/components/answerSort/index.d.ts +3 -0
  109. package/dist/types/components/LLMToolView/sidebar/components/modelAnswerSort/index.d.ts +30 -0
  110. package/dist/types/components/LLMToolView/sidebar/components/textInputBox/index.d.ts +2 -2
  111. package/dist/types/components/LLMToolView/sidebar/index.d.ts +10 -0
  112. package/dist/types/components/LLMToolView/types.d.ts +6 -2
  113. package/dist/types/components/LLMToolView/utils/data.d.ts +1 -0
  114. package/dist/types/components/audioAnnotate/audioContext/index.d.ts +10 -2
  115. package/dist/types/components/audioAnnotate/textInput/index.d.ts +1 -0
  116. package/dist/types/components/audioAnnotate/utils/dataTransform.d.ts +9 -0
  117. package/dist/types/components/audioPlayer/clipRegion/index.d.ts +1 -0
  118. package/dist/types/components/audioPlayer/index.d.ts +28 -21
  119. package/dist/types/components/audioPlayer/zoomSlider/index.d.ts +1 -0
  120. package/dist/types/components/longText/index.d.ts +1 -0
  121. package/dist/types/components/pointCloud2DRectOperationView/index.d.ts +1 -0
  122. package/dist/types/components/pointCloud2DRectOperationView/useUpdateRectList.d.ts +2 -0
  123. package/dist/types/components/pointCloud2DRectOperationView/util.d.ts +8 -0
  124. package/dist/types/components/pointCloudView/2DViewWorker.d.ts +1 -0
  125. package/dist/types/components/pointCloudView/PointCloud2DView.d.ts +2 -1
  126. package/dist/types/components/pointCloudView/PointCloudContext.d.ts +28 -4
  127. package/dist/types/components/pointCloudView/PointCloudLayout.d.ts +1 -0
  128. package/dist/types/components/pointCloudView/PointCloudListener.d.ts +1 -0
  129. package/dist/types/components/pointCloudView/components/HighlightVisible/index.d.ts +2 -1
  130. package/dist/types/components/pointCloudView/hooks/useBoxes.d.ts +5 -3
  131. package/dist/types/components/pointCloudView/hooks/useDataLinkSwitch.d.ts +19 -0
  132. package/dist/types/components/pointCloudView/hooks/useHighlight.d.ts +1 -1
  133. package/dist/types/components/pointCloudView/hooks/usePointCloudViews.d.ts +31 -1
  134. package/dist/types/components/pointCloudView/hooks/useRotateEdge.d.ts +9 -0
  135. package/dist/types/components/pointCloudView/hooks/useSingleBox.d.ts +3 -2
  136. package/dist/types/components/pointCloudView/hooks/useTimeoutFunc.d.ts +6 -0
  137. package/dist/types/components/pointCloudView/hooks/useUpdatePointCloudColor.d.ts +4 -0
  138. package/dist/types/components/pointCloudView/hooks/useWindowKeydownListener.d.ts +16 -0
  139. package/dist/types/components/pointCloudView/index.d.ts +1 -0
  140. package/dist/types/components/pointCloudView/utils/event-polyfill.d.ts +8 -0
  141. package/dist/types/components/pointCloudView/utils/map.d.ts +11 -0
  142. package/dist/types/components/subAttributeList/index.d.ts +10 -0
  143. package/dist/types/components/videoAnnotate/index.d.ts +2 -1
  144. package/dist/types/components/videoAnnotate/videoClipTool/index.d.ts +2 -1
  145. package/dist/types/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.d.ts +1 -1
  146. package/dist/types/data/enums/ToolType.d.ts +2 -1
  147. package/dist/types/hooks/useToolStyle.d.ts +30 -0
  148. package/dist/types/index.d.ts +9 -2
  149. package/dist/types/store/Actions.d.ts +1 -0
  150. package/dist/types/store/LLMMultiWheel/index.d.ts +15 -0
  151. package/dist/types/store/annotatedBox/index.d.ts +2 -0
  152. package/dist/types/store/annotation/actionCreators.d.ts +4 -3
  153. package/dist/types/store/annotation/reducer.d.ts +1 -0
  154. package/dist/types/store/annotation/types.d.ts +9 -2
  155. package/dist/types/store/ctx.d.ts +7 -0
  156. package/dist/types/store/toolConfig/baseToolConfig.d.ts +4 -0
  157. package/dist/types/store/toolConfig/index.d.ts +3 -0
  158. package/dist/types/store/toolConfig/pointCloudToolConfig.d.ts +4 -0
  159. package/dist/types/store/toolConfig/types.d.ts +10 -0
  160. package/dist/types/utils/AnnotationDataUtils.d.ts +58 -1
  161. package/dist/types/utils/ToolPointCloudBoxRenderHelper.d.ts +24 -0
  162. package/dist/types/utils/data.d.ts +0 -2
  163. package/dist/types/utils/index.d.ts +31 -1
  164. package/dist/types/views/MainView/LLMMultiWheelLayout/index.d.ts +9 -0
  165. package/dist/types/views/MainView/sidebar/GeneralOperation/ActionsConfirm.d.ts +1 -0
  166. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/firstFrameDataSwitch/index.d.ts +3 -0
  167. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.d.ts +3 -0
  168. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/selectBoxVisibleSwitch/index.d.ts +3 -0
  169. package/dist/types/views/MainView/sidebar/TextToolSidebar/index.d.ts +1 -1
  170. package/dist/types/views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.d.ts +9 -0
  171. package/dist/types/views/MainView/toolFooter/BatchSwitchConnectIn2DView/Icons.d.ts +3 -0
  172. package/dist/types/views/MainView/toolFooter/BatchSwitchConnectIn2DView/index.d.ts +1 -0
  173. package/dist/types/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.d.ts +10 -2
  174. package/dist/types/views/MainView/toolFooter/index.d.ts +1 -1
  175. package/dist/types/views/MainView/toolHeader/StepSwitch/index.d.ts +1 -1
  176. package/dist/types/views/MainView/toolHeader/index.d.ts +1 -1
  177. package/dist/utils/AnnotationDataUtils.js +1 -1
  178. package/dist/utils/ToolPointCloudBoxRenderHelper.js +1 -0
  179. package/dist/utils/data.js +1 -1
  180. package/dist/utils/index.js +1 -1
  181. package/dist/views/MainView/LLMMultiWheelLayout/index.js +1 -0
  182. package/dist/views/MainView/index.js +1 -1
  183. package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +1 -1
  184. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/firstFrameDataSwitch/index.js +1 -0
  185. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/firstFrameDataSwitch/index.module.scss.js +1 -0
  186. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.js +1 -0
  187. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.module.scss.js +1 -0
  188. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/selectBoxVisibleSwitch/index.js +1 -0
  189. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/selectBoxVisibleSwitch/index.module.scss.js +1 -0
  190. package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
  191. package/dist/views/MainView/sidebar/TagSidebar/index.js +1 -1
  192. package/dist/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
  193. package/dist/views/MainView/sidebar/index.js +1 -1
  194. package/dist/views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.js +1 -0
  195. package/dist/views/MainView/toolFooter/BatchSwitchConnectIn2DView/Icons.js +1 -0
  196. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -1
  197. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -1
  198. package/dist/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js +1 -1
  199. package/dist/views/MainView/toolFooter/index.js +1 -1
  200. package/dist/views/MainView/toolHeader/index.js +1 -1
  201. package/es/App.js +1 -1
  202. package/es/_virtual/2DViewWorker.js +1 -0
  203. package/es/_virtual/highlightSegmentWorker.js +1 -1
  204. package/es/assets/annotation/icon_link.svg.js +1 -0
  205. package/es/assets/annotation/icon_unlink.svg.js +1 -0
  206. package/es/assets/annotation/pointCloudTool/Image2DBoxScale.svg.js +1 -0
  207. package/es/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -1
  208. package/es/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -1
  209. package/es/assets/annotation/pointCloudTool/rotate90_black.svg.js +1 -0
  210. package/es/components/AnnotationView/index.js +1 -1
  211. package/es/components/DynamicResizer/DynamicResizer.js +1 -0
  212. package/es/components/DynamicResizer/assets/bottomToZero.svg.js +1 -0
  213. package/es/components/DynamicResizer/assets/divider.svg.js +1 -0
  214. package/es/components/DynamicResizer/assets/topToZero.svg.js +1 -0
  215. package/es/components/DynamicResizer/hooks/useDrag.js +1 -0
  216. package/es/components/DynamicResizer/hooks/useUpdateHeight.js +1 -0
  217. package/es/components/DynamicResizer/index.js +1 -0
  218. package/es/components/LLMMultiWheelView/dialogView/index.js +1 -0
  219. package/es/components/LLMMultiWheelView/index.js +1 -0
  220. package/es/components/LLMMultiWheelView/sidebar/index.js +1 -0
  221. package/es/components/LLMToolView/index.js +1 -1
  222. package/es/components/LLMToolView/questionView/components/header/index.js +1 -1
  223. package/es/components/LLMToolView/questionView/components/imgView/index.js +1 -1
  224. package/es/components/LLMToolView/questionView/index.js +1 -1
  225. package/es/components/LLMToolView/sidebar/components/answerSort/index.js +1 -1
  226. package/es/components/LLMToolView/sidebar/components/modelAnswerSort/index.js +1 -0
  227. package/es/components/LLMToolView/sidebar/components/textEditor/index.js +2 -2
  228. package/es/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
  229. package/es/components/LLMToolView/sidebar/index.js +1 -1
  230. package/es/components/audioAnnotate/audioContext/index.js +1 -1
  231. package/es/components/audioAnnotate/audioSide/clipSidebar/index.js +2 -1
  232. package/es/components/audioAnnotate/index.js +1 -1
  233. package/es/components/audioAnnotate/textInput/index.js +1 -1
  234. package/es/components/audioAnnotate/textInput/index.module.scss.js +1 -1
  235. package/es/components/audioAnnotate/utils/dataTransform.js +1 -0
  236. package/es/components/audioPlayer/clipRegion/index.js +1 -1
  237. package/es/components/audioPlayer/index.js +1 -1
  238. package/es/components/audioPlayer/useAudioCombine/index.js +3 -2
  239. package/es/components/audioPlayer/useAudioScroll/index.js +1 -1
  240. package/es/components/audioPlayer/useAudioSegment/index.js +1 -1
  241. package/es/components/audioPlayer/zoomSlider/index.js +1 -1
  242. package/es/components/longText/index.js +1 -1
  243. package/es/components/markdownView/index.js +1 -1
  244. package/es/components/pointCloud2DRectOperationView/index.js +1 -1
  245. package/es/components/pointCloud2DRectOperationView/useUpdateRectList.js +1 -0
  246. package/es/components/pointCloud2DRectOperationView/util.js +1 -0
  247. package/es/components/pointCloudView/PointCloud2DSingleView.js +1 -1
  248. package/es/components/pointCloudView/PointCloud2DView.js +1 -1
  249. package/es/components/pointCloudView/PointCloud3DView.js +1 -1
  250. package/es/components/pointCloudView/PointCloudBackView.js +1 -1
  251. package/es/components/pointCloudView/PointCloudContext.js +1 -1
  252. package/es/components/pointCloudView/PointCloudInfos.js +1 -1
  253. package/es/components/pointCloudView/PointCloudLayout.js +1 -1
  254. package/es/components/pointCloudView/PointCloudListener.js +1 -1
  255. package/es/components/pointCloudView/PointCloudSegment2DView.js +1 -1
  256. package/es/components/pointCloudView/PointCloudSegmentListener.js +1 -1
  257. package/es/components/pointCloudView/PointCloudSideView.js +1 -1
  258. package/es/components/pointCloudView/PointCloudTopView.js +1 -1
  259. package/es/components/pointCloudView/components/HighlightVisible/index.js +1 -1
  260. package/es/components/pointCloudView/hooks/useBoxes.js +1 -1
  261. package/es/components/pointCloudView/hooks/useDataLinkSwitch.js +1 -0
  262. package/es/components/pointCloudView/hooks/useHighlight.js +1 -1
  263. package/es/components/pointCloudView/hooks/useHistory.js +1 -1
  264. package/es/components/pointCloudView/hooks/usePointCloudViews.js +1 -1
  265. package/es/components/pointCloudView/hooks/usePolygon.js +1 -1
  266. package/es/components/pointCloudView/hooks/useRotate.js +1 -1
  267. package/es/components/pointCloudView/hooks/useRotateEdge.js +1 -0
  268. package/es/components/pointCloudView/hooks/useSingleBox.js +1 -1
  269. package/es/components/pointCloudView/hooks/useStatus.js +1 -1
  270. package/es/components/pointCloudView/hooks/useTimeoutFunc.js +1 -0
  271. package/es/components/pointCloudView/hooks/useUpdatePointCloudColor.js +1 -0
  272. package/es/components/pointCloudView/hooks/useWindowKeydownListener.js +1 -0
  273. package/es/components/pointCloudView/index.js +1 -1
  274. package/es/components/pointCloudView/utils/event-polyfill.js +1 -0
  275. package/es/components/pointCloudView/utils/map.js +1 -0
  276. package/es/components/predictTracking/predictTrackingIcon/index.js +1 -1
  277. package/es/components/predictTracking/previewResult/index.js +1 -1
  278. package/es/components/subAttributeList/index.js +1 -0
  279. package/es/components/videoAnnotate/videoClipTool/index.js +1 -1
  280. package/es/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.js +1 -1
  281. package/es/data/enums/ToolType.js +1 -1
  282. package/es/hooks/useToolStyle.js +1 -0
  283. package/es/index.css +205 -16
  284. package/es/index.js +1 -1
  285. package/es/store/Actions.js +1 -1
  286. package/es/store/LLMMultiWheel/index.js +1 -0
  287. package/es/store/annotatedBox/index.js +1 -1
  288. package/es/store/annotation/actionCreators.js +1 -1
  289. package/es/store/annotation/reducer.js +1 -1
  290. package/es/store/ctx.js +1 -1
  291. package/es/store/toolConfig/baseToolConfig.js +1 -0
  292. package/es/store/toolConfig/index.js +1 -0
  293. package/es/store/toolConfig/pointCloudToolConfig.js +1 -0
  294. package/es/utils/AnnotationDataUtils.js +1 -1
  295. package/es/utils/ToolPointCloudBoxRenderHelper.js +1 -0
  296. package/es/utils/data.js +1 -1
  297. package/es/utils/index.js +1 -1
  298. package/es/views/MainView/LLMMultiWheelLayout/index.js +1 -0
  299. package/es/views/MainView/index.js +1 -1
  300. package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +1 -1
  301. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/firstFrameDataSwitch/index.js +1 -0
  302. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/firstFrameDataSwitch/index.module.scss.js +1 -0
  303. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.js +1 -0
  304. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.module.scss.js +1 -0
  305. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/selectBoxVisibleSwitch/index.js +1 -0
  306. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/selectBoxVisibleSwitch/index.module.scss.js +1 -0
  307. package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
  308. package/es/views/MainView/sidebar/TagSidebar/index.js +1 -1
  309. package/es/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
  310. package/es/views/MainView/sidebar/index.js +1 -1
  311. package/es/views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.js +1 -0
  312. package/es/views/MainView/toolFooter/BatchSwitchConnectIn2DView/Icons.js +1 -0
  313. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -1
  314. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -1
  315. package/es/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js +1 -1
  316. package/es/views/MainView/toolHeader/index.js +1 -1
  317. package/package.json +7 -4
  318. package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +0 -1
  319. package/dist/assets/icons/9d70807.svg +0 -5
  320. package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +0 -1
@@ -10,6 +10,7 @@ interface IPointCloud2DRectOperationViewProps {
10
10
  config: any;
11
11
  checkMode?: boolean;
12
12
  afterImgOnLoad: TAfterImgOnLoad;
13
+ shouldExcludePointCloudBoxListUpdate?: boolean;
13
14
  }
14
15
  declare const _default: import("react-redux").ConnectedComponent<(props: IPointCloud2DRectOperationViewProps) => React.JSX.Element, import("react-redux").Omit<IPointCloud2DRectOperationViewProps, "config">>;
15
16
  export default _default;
@@ -0,0 +1,2 @@
1
+ /// <reference types="lodash" />
2
+ export declare const useUpdateRectList: (fn: () => void) => import("lodash").DebouncedFunc<() => void>;
@@ -0,0 +1,8 @@
1
+ import { IPointCloudBoxRect, IPointCloud2DRectOperationViewRect } from '@labelbee/lb-utils';
2
+ /**
3
+ * 2D视图仅显示选中框体
4
+ *
5
+ * @description 参考 https://y631vj6044.feishu.cn/docx/VZLBdgvU8oJUfSxkOy3cswkKn3f
6
+ * ```选择俯视图对应框体,在选中状态下,2D视图仅展示该框体,其它框体隐藏,非选中状态下还是保持和现有一致都展示```
7
+ */
8
+ export declare const selectSpecifiedRectsFromTopViewSelectedIds: (selectedIdsByBoxList: string[], rectListByBoxList: IPointCloud2DRectOperationViewRect[], rectListInImage: IPointCloudBoxRect[]) => (IPointCloudBoxRect | IPointCloud2DRectOperationViewRect)[];
@@ -14,6 +14,7 @@ export interface IAnnotationDataTemporarily {
14
14
  export interface IAnnotationData2dView {
15
15
  annotations: IAnnotationDataTemporarily[];
16
16
  url: string;
17
+ fallbackUrl?: string;
17
18
  calName?: string;
18
19
  calib?: ICalib;
19
20
  path: string;
@@ -24,5 +25,5 @@ interface IProps extends IA2MapStateProps {
24
25
  checkMode?: boolean;
25
26
  measureVisible?: boolean;
26
27
  }
27
- declare const _default: import("react-redux").ConnectedComponent<({ currentData, config, thumbnailWidth, isEnlargeTopView, highlightAttribute, loadPCDFileLoading, checkMode, measureVisible }: IProps) => React.JSX.Element | null, import("react-redux").Omit<IProps, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
28
+ declare const _default: import("react-redux").ConnectedComponent<({ currentData, config, thumbnailWidth, isEnlargeTopView, highlightAttribute, loadPCDFileLoading, checkMode, measureVisible, }: IProps) => React.JSX.Element | null, import("react-redux").Omit<IProps, "imgIndex" | "imgList" | "config" | "highlightAttribute" | "loadPCDFileLoading" | "stepInfo" | "currentData" | "configString">>;
28
29
  export default _default;
@@ -1,6 +1,9 @@
1
- import { IPointCloudBox, IPointCloudBoxList, IPolygonData, IPointCloudSphereList, IPointCloudSphere, ILine, EPointCloudPattern, IPointCloudSegmentation, ICalib, ISize } from '@labelbee/lb-utils';
2
- import React from 'react';
1
+ import { IPointCloudBox, IPointCloudBoxList, IPolygonData, IPointCloudSphereList, IPointCloudSphere, ILine, EPointCloudPattern, IPointCloudSegmentation, ICalib, ISize, IPointCloudBoxRect, IPointCloud2DRectOperationViewRect } from '@labelbee/lb-utils';
2
+ import React, { PropsWithChildren } from 'react';
3
+ import { EPointCloudBoxRenderTrigger } from '@/utils/ToolPointCloudBoxRenderHelper';
3
4
  import { PointCloud, PointCloudAnnotation, ActionsHistory, EToolName } from '@labelbee/lb-annotation';
5
+ import type { MapIndirectWeakSet } from './utils/map';
6
+ import { WindowKeydownListenerHooker } from './hooks/useWindowKeydownListener';
4
7
  interface IPointCloudContextInstances {
5
8
  topViewInstance?: PointCloudAnnotation;
6
9
  sideViewInstance?: PointCloudAnnotation;
@@ -22,10 +25,14 @@ interface IPointCloudSegment {
22
25
  type AttrPanelLayout = '' | 'left' | 'right';
23
26
  interface IHighlight2DData {
24
27
  url: string;
28
+ fallbackUrl: string;
25
29
  calib?: ICalib;
26
30
  }
31
+ type PickRectObjct = Pick<IPointCloud2DRectOperationViewRect, 'id' | 'attribute' | 'width' | 'height' | 'x' | 'y' | 'imageName'>;
32
+ type UpdateRectListByReducer = (reducer: (prevRectList: IPointCloudBoxRect[], pickRectObject: (item: IPointCloud2DRectOperationViewRect) => PickRectObjct) => IPointCloudBoxRect[]) => void;
27
33
  export interface IPointCloudContext extends IPointCloudContextInstances, IPointCloudStatus, IPointCloudSegment {
28
34
  pointCloudBoxList: IPointCloudBoxList;
35
+ rectList: IPointCloudBoxRect[];
29
36
  pointCloudSphereList: IPointCloudSphereList;
30
37
  displayPointCloudList: IPointCloudBoxList;
31
38
  displaySphereList: IPointCloudSphereList;
@@ -47,6 +54,10 @@ export interface IPointCloudContext extends IPointCloudContextInstances, IPointC
47
54
  addPointCloudSphere: (sphereParams: IPointCloudSphere) => IPointCloudSphere[];
48
55
  polygonList: IPolygonData[];
49
56
  setPolygonList: (polygonList: IPolygonData[]) => void;
57
+ setRectList: (rectList: IPointCloudBoxRect[]) => void;
58
+ addRectIn2DView: (rect: IPointCloud2DRectOperationViewRect) => void;
59
+ removeRectIn2DView: (rects: IPointCloud2DRectOperationViewRect[]) => void;
60
+ updateRectIn2DView: (rect: IPointCloud2DRectOperationViewRect, mergeSelf?: boolean) => void;
50
61
  lineList: ILine[];
51
62
  setLineList: (lineList: ILine[]) => void;
52
63
  zoom: number;
@@ -60,7 +71,7 @@ export interface IPointCloudContext extends IPointCloudContextInstances, IPointC
60
71
  reRender: (_displayPointCloudList: IPointCloudBoxList, _polygonList: IPolygonData[], _displaySphereList: IPointCloudSphereList, _lineList: ILine[], _segmentation: IPointCloudSegmentation[]) => void;
61
72
  attrPanelLayout: AttrPanelLayout;
62
73
  setAttrPanelLayout: (layout: AttrPanelLayout) => void;
63
- syncAllViewPointCloudColor: (newPointCloudList?: IPointCloudBox[], newHighlight2DDataList?: IHighlight2DData[]) => Promise<any>;
74
+ syncAllViewPointCloudColor: (syncByTrigger: EPointCloudBoxRenderTrigger, newPointCloudList?: IPointCloudBox[], newHighlight2DDataList?: IHighlight2DData[]) => Promise<any>;
64
75
  defaultAttribute: string;
65
76
  setDefaultAttribute: (defaultAttribute: string) => void;
66
77
  pointCloudPattern: EToolName.Rect | EToolName.Polygon | EToolName.Point | EToolName.Line;
@@ -71,6 +82,8 @@ export interface IPointCloudContext extends IPointCloudContextInstances, IPointC
71
82
  clearAllDetectionInstance: () => void;
72
83
  highlight2DDataList: IHighlight2DData[];
73
84
  setHighlight2DDataList: (urlList: IHighlight2DData[]) => void;
85
+ highlight2DLoading: boolean;
86
+ setHighlight2DLoading: (loading: boolean) => void;
74
87
  imageSizes: {
75
88
  [key: string]: ISize;
76
89
  };
@@ -78,7 +91,18 @@ export interface IPointCloudContext extends IPointCloudContextInstances, IPointC
78
91
  imgNode: HTMLImageElement;
79
92
  path: string;
80
93
  }) => void;
94
+ addRectFromPointCloudBoxByImageName: (imageName: string) => boolean;
95
+ removeRectBySpecifyId: (imageName: string, ids: string[], idField?: keyof IPointCloudBoxRect) => boolean;
96
+ removeRectByPointCloudBoxId: (imageName: string) => boolean;
97
+ rectRotateSensitivity: number;
98
+ setRectRotateSensitivity: (sensitivity: number) => void;
99
+ /** imageName -> pointCloudBox.id -> [pointCloudBox, ...] */
100
+ imageNamePointCloudBoxMap: MapIndirectWeakSet<IPointCloudBox>;
101
+ /** imageName -> pointCloudBox.id -> [rect, ...] */
102
+ linkageImageNameRectMap: MapIndirectWeakSet<IPointCloudBoxRect>;
103
+ updateRectListByReducer: UpdateRectListByReducer;
104
+ windowKeydownListenerHook: WindowKeydownListenerHooker;
81
105
  }
82
106
  export declare const PointCloudContext: React.Context<IPointCloudContext>;
83
- export declare const PointCloudProvider: React.FC<{}>;
107
+ export declare const PointCloudProvider: React.FC<PropsWithChildren<{}>>;
84
108
  export {};
@@ -4,5 +4,6 @@ export declare const PointCloudContainer: React.FC<{
4
4
  toolbar?: React.ReactElement | null;
5
5
  className?: string;
6
6
  style?: React.CSSProperties;
7
+ titleNonInteractive?: boolean;
7
8
  titleOnSurface?: boolean;
8
9
  }>;
@@ -4,6 +4,7 @@ import { ICustomToolInstance } from '@/hooks/annotation';
4
4
  interface IProps extends IA2MapStateProps {
5
5
  checkMode?: boolean;
6
6
  toolInstanceRef: React.MutableRefObject<ICustomToolInstance>;
7
+ setResourceLoading?: (loading: boolean) => void;
7
8
  }
8
9
  declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
9
10
  children?: React.ReactNode;
@@ -2,10 +2,11 @@
2
2
  * Render Component for highlight.
3
3
  */
4
4
  import React from 'react';
5
- declare const HighlightVisible: ({ visible, style, onClick, loading, }: {
5
+ declare const HighlightVisible: ({ visible, style, onClick, loading, disabled, }: {
6
6
  visible: boolean;
7
7
  loading: boolean;
8
8
  style?: React.CSSProperties | undefined;
9
9
  onClick: () => void;
10
+ disabled?: boolean | undefined;
10
11
  }) => React.JSX.Element;
11
12
  export default HighlightVisible;
@@ -1,12 +1,14 @@
1
- import { IPointCloudBoxList, IPointCloudConfig } from '@labelbee/lb-utils';
1
+ import { IPointCloudBox, IPointCloudBoxList, IPointCloudConfig } from '@labelbee/lb-utils';
2
+ import { IFileItem } from '@/types/data';
2
3
  /**
3
4
  * Actions for selected boxes
4
5
  */
5
- export declare const useBoxes: ({ config }: {
6
+ export declare const useBoxes: ({ config, currentData, }: {
6
7
  config: IPointCloudConfig;
8
+ currentData: IFileItem;
7
9
  }) => {
8
10
  copySelectedBoxes: () => void;
9
11
  pasteSelectedBoxes: () => void;
10
12
  copiedBoxes: IPointCloudBoxList;
11
- selectedBoxes: import("@labelbee/lb-utils").IPointCloudBox[];
13
+ selectedBoxes: IPointCloudBox[];
12
14
  };
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export interface UseDataLinkSwitchOptions {
3
+ /** DOM显示层级 */
4
+ zIndex: number;
5
+ /** 是否2d框 */
6
+ is2DView: boolean;
7
+ /**
8
+ * 用来判断图片项,
9
+ * 具体参考:packages/lb-components/src/components/pointCloud2DRectOperationView/index.tsx, getRectListByBoxList函数
10
+ *
11
+ * 基于上参考,此值需确保唯一性!
12
+ */
13
+ imageName: string;
14
+ }
15
+ declare const useDataLinkSwitch: (opts: UseDataLinkSwitchOptions) => {
16
+ rendered: React.JSX.Element | null;
17
+ isLinking: boolean;
18
+ };
19
+ export default useDataLinkSwitch;
@@ -6,7 +6,7 @@
6
6
  import { IAnnotationStateProps } from '../../../store/annotation/map';
7
7
  import { ICalib } from '@labelbee/lb-utils';
8
8
  declare const useHighlight: ({ currentData }: Partial<IAnnotationStateProps>) => {
9
- toggle2dVisible: (url: string, calib?: ICalib) => Promise<void>;
9
+ toggle2dVisible: (url: string, fallbackUrl: string, calib?: ICalib) => Promise<void>;
10
10
  isHighlightVisible: (url: string) => boolean;
11
11
  };
12
12
  export { useHighlight };
@@ -6,6 +6,7 @@
6
6
  import { PointCloudAnnotation, PointCloud } from '@labelbee/lb-annotation';
7
7
  import { IPointCloudBox, IPointCloudSphere, IPointUnit, UpdatePolygonByDragList, IDefaultSize, IBasicRect } from '@labelbee/lb-utils';
8
8
  import { ISize } from '@/types/main';
9
+ import { EPointCloudBoxRenderTrigger } from '@/utils/ToolPointCloudBoxRenderHelper';
9
10
  import { IFileItem } from '@/types/data';
10
11
  export declare const topViewPoint2PointCloud: (newPoint: any, size: ISize, pointCloud: PointCloud, selectedPointCloudSphere?: IPointCloudSphere, defaultValue?: {
11
12
  [v: string]: any;
@@ -53,7 +54,23 @@ export declare const syncTopViewByPoint: (newSphereParams: IPointCloudSphere, ne
53
54
  * @param newPolygon TODO! Need to add type
54
55
  */
55
56
  export declare const synchronizeTopView: (newBoxParams: IPointCloudBox, newPolygon: any, topViewInstance?: PointCloudAnnotation, mainViewInstance?: PointCloud) => void;
56
- export declare const usePointCloudViews: () => {
57
+ interface IUsePointCloudViewsParams {
58
+ setResourceLoading?: (loading: boolean) => void;
59
+ }
60
+ /**
61
+ * Sync views' data from omit view, regenerate and highlight box on 3D-view
62
+ * @param omitView
63
+ * @param polygon
64
+ * @param boxParams
65
+ */
66
+ interface ISyncPointCloudViews {
67
+ omitView?: string;
68
+ polygon: any;
69
+ boxParams: IPointCloudBox;
70
+ zoom?: number;
71
+ newPointCloudBoxList?: IPointCloudBox[];
72
+ }
73
+ export declare const usePointCloudViews: (params?: IUsePointCloudViewsParams) => {
57
74
  topViewAddSphere: () => void;
58
75
  topViewAddBox: () => void;
59
76
  topViewSelectedChanged: () => void;
@@ -63,12 +80,15 @@ export declare const usePointCloudViews: () => {
63
80
  sideViewUpdatePoint?: undefined;
64
81
  backViewUpdatePoint?: undefined;
65
82
  topViewUpdateBox?: undefined;
83
+ syncPointCloudViews?: undefined;
84
+ syncPointCloudPoint?: undefined;
66
85
  pointCloudBoxListUpdated?: undefined;
67
86
  initPointCloud3d?: undefined;
68
87
  updatePointCloudData?: undefined;
69
88
  updateViewsByDefaultSize?: undefined;
70
89
  generateRects?: undefined;
71
90
  update2DViewRect?: undefined;
91
+ remove2DViewRect?: undefined;
72
92
  } | {
73
93
  topViewAddSphere: ({ newPoint, size, zoom, trackConfigurable, }: {
74
94
  newPoint: IPointUnit;
@@ -96,6 +116,8 @@ export declare const usePointCloudViews: () => {
96
116
  topViewUpdateBox: (updateList: UpdatePolygonByDragList, size: ISize) => void;
97
117
  sideViewUpdateBox: (newPolygon: any, originPolygon: any) => void;
98
118
  backViewUpdateBox: (newPolygon: any, originPolygon: any) => void;
119
+ syncPointCloudViews: (params: ISyncPointCloudViews, trigger?: EPointCloudBoxRenderTrigger) => void;
120
+ syncPointCloudPoint: (omitView: string, point: any, sphereParams: IPointCloudSphere, zoom?: number, newPointCloudSphereList?: IPointCloudSphere[], config?: any) => Promise<void>;
99
121
  pointCloudBoxListUpdated: (newBoxes: IPointCloudBox[]) => void;
100
122
  initPointCloud3d: (size: ISize) => void;
101
123
  updatePointCloudData: (newData?: any) => Promise<void>;
@@ -105,4 +127,12 @@ export declare const usePointCloudViews: () => {
105
127
  boxID: string;
106
128
  imageName: string;
107
129
  }) => IPointCloudBox[] | undefined;
130
+ remove2DViewRect: (params: {
131
+ boxID: string;
132
+ imageName: string;
133
+ }) => IPointCloudBox[] | undefined;
134
+ };
135
+ export declare const useSyncRectPositionDimensionToPointCloudList: () => {
136
+ syncToPointCloudBoxList: () => IPointCloudBox[] | null;
108
137
  };
138
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="lodash" />
2
+ import { IAnnotationStateProps } from '@/store/annotation/map';
3
+ /**
4
+ * PointCloud Rotate Hook
5
+ * @returns
6
+ */
7
+ export declare const useRotateEdge: ({ currentData }: IAnnotationStateProps) => {
8
+ updateRotateEdge: import("lodash").DebouncedFunc<(angle: number) => void>;
9
+ };
@@ -1,4 +1,5 @@
1
1
  import { IPointCloudBox, PartialIPointCloudBoxList } from '@labelbee/lb-utils';
2
+ import { IFileItem } from '@/types/data';
2
3
  interface IUseSingleBoxParams {
3
4
  generateRects?: (box: IPointCloudBox) => void;
4
5
  }
@@ -13,10 +14,10 @@ export declare const useSingleBox: (props?: IUseSingleBoxParams) => {
13
14
  changeValidByID: (id: string) => import("@labelbee/lb-utils").IPointCloudBoxList | undefined;
14
15
  selectNextBox: (manual?: boolean) => void;
15
16
  selectPrevBox: (manual?: boolean) => void;
16
- deletePointCloudBox: (id: string) => void;
17
+ deletePointCloudBox: (id: string, shouldUpdateMatchingRectList?: boolean) => void;
17
18
  selectedBoxes: IPointCloudBox[];
18
19
  updateSelectedBoxes: (updateList: PartialIPointCloudBoxList) => import("@labelbee/lb-utils").IPointCloudBoxList | undefined;
19
20
  getPointCloudByID: (id: string) => IPointCloudBox | undefined;
20
- deleteSelectedPointCloudBoxAndPolygon: () => void;
21
+ deleteSelectedPointCloudBoxAndPolygon: (currentData: IFileItem) => void;
21
22
  };
22
23
  export {};
@@ -0,0 +1,6 @@
1
+ export declare const isNumber: (value: unknown) => value is number;
2
+ declare const useTimeoutFunc: <T extends (...args: any[]) => void>(fn: T, delay?: number) => {
3
+ fn: T;
4
+ clear: () => void;
5
+ };
6
+ export default useTimeoutFunc;
@@ -0,0 +1,4 @@
1
+ declare const useUpdatePointCloudColor: (setResourceLoading: any, config: any) => {
2
+ updatePointCloudColor: (newAttribute: string) => void;
3
+ };
4
+ export { useUpdatePointCloudColor };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Proivde the `useWindowKeydownListener` hook (more power except `https://github.com/alibaba/hooks/blob/master/packages/hooks/src/useEventListener/index.ts`)
3
+ * which will have `preappend` or `append` event in your order.
4
+ */
5
+ import '../utils/event-polyfill';
6
+ type KeydownListener = (e: KeyboardEvent) => void;
7
+ type Caller = (fn: KeydownListener) => () => void;
8
+ export interface WindowKeydownListenerHooker {
9
+ appendEventListener: Caller;
10
+ preappendEventListener: Caller;
11
+ /** Alias for `appendEventListener`, user-friendly name */
12
+ addEventListener: Caller;
13
+ }
14
+ export declare const getEmptyUseWindowKeydownListener: () => WindowKeydownListenerHooker;
15
+ declare const useWindowKeydownListener: () => WindowKeydownListenerHooker;
16
+ export default useWindowKeydownListener;
@@ -12,6 +12,7 @@ interface IProps extends IA2MapStateProps {
12
12
  checkMode?: boolean;
13
13
  intelligentFit?: boolean;
14
14
  measureVisible?: boolean;
15
+ setResourceLoading?: (loading: boolean) => void;
15
16
  }
16
17
  declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
17
18
  children?: React.ReactNode;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Extend `isImmediatePropagationStopped` in Event
3
+ */
4
+ interface Event {
5
+ /** Detect it has been call `stopImmediatePropagation` or not? */
6
+ isImmediatePropagationStopped: () => boolean;
7
+ }
8
+ declare const stopImmediatePropagationOriginal: () => void;
@@ -0,0 +1,11 @@
1
+ export type MapIndirectWeakSet<T extends object> = Map<string, Map<string, WeakSet<T>>>;
2
+ /**
3
+ * Update MapIndirectWeakSet
4
+ *
5
+ * @param map The map will be changed
6
+ * @param key0 The top key
7
+ * @param key1 The inner key
8
+ * @param value The target to be set
9
+ * @returns return map
10
+ */
11
+ export declare const addMapIndirectWeakSetItem: <T extends object>(map: MapIndirectWeakSet<T>, key0: string, key1: string, value: T) => MapIndirectWeakSet<T>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { IInputList } from '@labelbee/lb-utils';
3
+ interface IProps {
4
+ subAttributeList: IInputList[];
5
+ setSubAttribute: (value: string, subAttribute: string) => void;
6
+ getValue: (subAttribute: IInputList) => undefined | string;
7
+ lang?: string;
8
+ }
9
+ declare const WrapSubAttributeList: (props: IProps) => React.JSX.Element;
10
+ export default WrapSubAttributeList;
@@ -20,8 +20,9 @@ export interface IVideoAnnotateProps {
20
20
  drawLayerSlot?: DrawLayerSlot;
21
21
  footer?: any;
22
22
  skipBeforePageTurning?: (pageTurning: Function) => void;
23
+ annotationBefore?: (setAnnotationData: Function) => void;
23
24
  }
24
25
  declare const _default: import("react-redux").ConnectedComponent<React.FC<IVideoAnnotateProps>, import("react-redux").Omit<IVideoAnnotateProps & {
25
26
  children?: React.ReactNode;
26
- }, "stepList" | "step" | "imgIndex" | "imgList" | "config" | "skipBeforePageTurning" | "loading" | "path" | "stepInfo">>;
27
+ }, "step" | "stepList" | "imgIndex" | "imgList" | "config" | "skipBeforePageTurning" | "loading" | "path" | "stepInfo">>;
27
28
  export default _default;
@@ -49,7 +49,7 @@ declare class VideoClipTool extends React.Component<IVideoClipProps, IState> {
49
49
  videoPlayer?: any;
50
50
  videoNode?: HTMLVideoElement;
51
51
  videoRef?: HTMLVideoElement;
52
- throttledUpdateTime: _.DebouncedFunc<(newValue: number) => void>;
52
+ throttledUpdateTime: _.DebouncedFuncLeading<(newValue: number) => void>;
53
53
  constructor(props: IVideoClipProps);
54
54
  get valid(): boolean;
55
55
  get config(): any;
@@ -91,6 +91,7 @@ declare class VideoClipTool extends React.Component<IVideoClipProps, IState> {
91
91
  * @returns
92
92
  */
93
93
  toggleClipStatus: (curTime?: number) => void;
94
+ setClipResult: (curTime?: number) => void;
94
95
  /** 添加时间点 */
95
96
  addTime: () => void;
96
97
  /** 更新当前时间 */
@@ -65,7 +65,7 @@ export declare class TagToolInstanceAdaptor extends React.Component<IVideoTagIns
65
65
  value: string;
66
66
  };
67
67
  isMulti: boolean;
68
- }, existValue?: ObjectString) => _.Dictionary<string | undefined>;
68
+ }, existData?: ObjectString) => _.Dictionary<string | undefined>;
69
69
  setResult: (tagResult: any[]) => void;
70
70
  setLabel: (num1: number, num2: number) => void;
71
71
  /**
@@ -43,7 +43,8 @@ export declare enum EToolName {
43
43
  /** 点云多边形工具 */
44
44
  PointCloudPolygon = "pointCloudPolygon",
45
45
  LLM = "LLMTool",
46
- NLP = "NLPTool"
46
+ NLP = "NLPTool",
47
+ LLMMultiWheel = "LLMMultiWheelTool"
47
48
  }
48
49
  export declare enum ETextType {
49
50
  AnyString = 0,
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The file is about `ToolStyle` context.
3
+ *
4
+ * What will provide:
5
+ * 1. give the explicit `toolStyle` config
6
+ * 2. give hook for reading context
7
+ *
8
+ * Who will use/consume:
9
+ * 1. `BasicToolOperation` class & its derived class
10
+ * 2. `DrawUtils`
11
+ *
12
+ */
13
+ import React, { FC, PropsWithChildren } from 'react';
14
+ import type { ToolStyle } from '../types/toolStyle';
15
+ declare const validFields: readonly ["hiddenText"];
16
+ type ValidField = typeof validFields[number];
17
+ type OptionalToolStyle = Pick<ToolStyle, ValidField>;
18
+ export declare const ToolStyleContext: React.Context<{
19
+ value: OptionalToolStyle;
20
+ updateValue: (value: Partial<OptionalToolStyle>) => void;
21
+ }>;
22
+ export declare const useToolStyleContext: () => {
23
+ value: OptionalToolStyle;
24
+ updateValue: (value: Partial<OptionalToolStyle>) => void;
25
+ };
26
+ interface ToolStyleProviderProps {
27
+ value?: OptionalToolStyle;
28
+ }
29
+ export declare const ToolStyleProvider: FC<PropsWithChildren<ToolStyleProviderProps>>;
30
+ export {};
@@ -9,15 +9,22 @@ import { VideoTagTool } from '@/components/videoAnnotate/videoTagTool/TagToolIns
9
9
  import './index.scss';
10
10
  import PredictTracking from '@/components/predictTracking';
11
11
  import LLMToolView from '@/components/LLMToolView';
12
- import SwitchCuboidBoxIn2DView from '@/views/MainView/toolFooter/SwitchCuboidBoxIn2DView';
12
+ import SwitchCuboidBoxIn2DView, { SwitchCuboidBoxIn2DViewStateMode } from '@/views/MainView/toolFooter/SwitchCuboidBoxIn2DView';
13
+ import BatchSwitchConnectIn2DView from '@/views/MainView/toolFooter/BatchSwitchConnectIn2DView';
13
14
  import MeasureCanvas from './components/measureCanvas';
14
15
  import AnnotatedBox from './views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox';
16
+ import RectRotateSensitivitySlider from './views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider';
15
17
  import { FindTrackIDIndexInCheckMode as FindTrackIDIndex } from './views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex';
18
+ import { WrapAudioPlayer as AudioPlayer } from './components/audioPlayer';
19
+ import { generatePointCloudBoxRects } from './utils';
20
+ import SubAttributeList from './components/subAttributeList';
21
+ import useToolConfigStore from '@/store/toolConfig';
22
+ import { LLMMultiWheelSourceView } from './components/LLMMultiWheelView';
16
23
  export declare const store: import("redux").Store<{}, import("redux").Action<any>> & {
17
24
  dispatch: unknown;
18
25
  };
19
26
  declare const _default: React.ForwardRefExoticComponent<AppProps & React.RefAttributes<unknown>>;
20
27
  export default _default;
21
- export { AnnotationView, PointCloudAnnotationView, QuestionView, TextContent, LLMToolView, i18n, VideoTagTool, PredictTracking, SwitchCuboidBoxIn2DView, MeasureCanvas, AnnotatedBox, FindTrackIDIndex, };
28
+ export { AnnotationView, PointCloudAnnotationView, QuestionView, LLMMultiWheelSourceView, TextContent, LLMToolView, i18n, VideoTagTool, PredictTracking, SwitchCuboidBoxIn2DView, SwitchCuboidBoxIn2DViewStateMode, BatchSwitchConnectIn2DView, MeasureCanvas, AnnotatedBox, RectRotateSensitivitySlider, FindTrackIDIndex, AudioPlayer, generatePointCloudBoxRects, SubAttributeList, useToolConfigStore, };
22
29
  export * from './constant';
23
30
  export * from './typeTem';
@@ -40,6 +40,7 @@ export declare const ANNOTATION_ACTIONS: {
40
40
  SET_PREDICT_RESULT: string;
41
41
  SET_HIGHLIGHT_ATTRIBUTE: string;
42
42
  UPDATE_PRE_DATA_PROCESS: string;
43
+ UPDATE_IMG_INDEX_BY_EXTERNAL: string;
43
44
  };
44
45
  export declare const IMAGE_ATTRIBUTE_ACTIONS: {
45
46
  UPDATE_IMG_ATTRIBUTE: string;
@@ -0,0 +1,15 @@
1
+ import { EDataFormatType } from '@/constant';
2
+ import React from 'react';
3
+ interface INewAnswerListMap {
4
+ [key: string]: string;
5
+ }
6
+ interface Store {
7
+ dataFormatType: EDataFormatType;
8
+ setDataFormatType: (dataFormatType: EDataFormatType) => void;
9
+ selectedID: React.Key;
10
+ setSelectedID: (selectedID: React.Key) => void;
11
+ newAnswerListMap: INewAnswerListMap;
12
+ setNewAnswerListMap: (newAnswerListMap: INewAnswerListMap) => void;
13
+ }
14
+ declare const useLLMMultiWheelStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Store>>;
15
+ export default useLLMMultiWheelStore;
@@ -8,6 +8,8 @@ interface Store {
8
8
  setHighlightIDs: (highlightIDs: number[]) => void;
9
9
  selectedIDs: string[];
10
10
  setSelectedIDs: (selectedIDs: string[]) => void;
11
+ rectRotateSensitivity: number;
12
+ setRectRotateSensitivity: (sensitivity: number) => void;
11
13
  setPtCtx: (ptCtx: IPointCloudContext) => void;
12
14
  }
13
15
  declare const useAnnotatedBoxStore: import("zustand").UseBoundStore<import("zustand").StoreApi<Store>>;
@@ -1,5 +1,5 @@
1
1
  import { IStepInfo } from '@/types/step';
2
- import { GetFileData, LoadFileList, IFileItem, OnPageChange, OnSave, OnStepChange, OnSubmit } from '@/types/data';
2
+ import { GetFileData, LoadFileList, IFileItem, OnPageChange, OnSave, OnStepChange, OnSubmit, GetImgIndexByExternal } from '@/types/data';
3
3
  import { AnnotationActionTypes, ToolInstance } from './types';
4
4
  import { ESubmitType } from '@/constant';
5
5
  import { EPageTurningOperation } from '@/data/enums/AnnotationSize';
@@ -28,6 +28,7 @@ export declare function UpdateSkipBeforePageTurning(skipBeforePageTurning: (page
28
28
  export declare function UpdateBeforeRotate(beforeRotate: () => {}): AnnotationActionTypes;
29
29
  export declare function UpdatePreDataProcess(preDataProcess: () => {}): AnnotationActionTypes;
30
30
  export declare function CopyBackWordResult(): AnnotationActionTypes;
31
+ export declare function UpdateImgIndexByExternal(getImgIndexByExternal: GetImgIndexByExternal): AnnotationActionTypes;
31
32
  export declare function BatchUpdateTrackID({ id, newID, rangeIndex, imgList, }: {
32
33
  id: number;
33
34
  newID: number;
@@ -43,7 +44,7 @@ export declare const UpdateHighlightAttribute: (attribute: string) => Annotation
43
44
  * 初始化任务数据
44
45
  * @param param0
45
46
  */
46
- export declare function InitTaskData({ onSubmit, onSave, onPageChange, onStepChange, getFileData, pageSize, loadFileList, step, stepList, skipBeforePageTurning, beforeRotate, checkMode, highlightAttribute, preDataProcess, }: any): any;
47
+ export declare function InitTaskData({ onSubmit, onSave, onPageChange, onStepChange, getFileData, pageSize, loadFileList, step, stepList, skipBeforePageTurning, beforeRotate, checkMode, highlightAttribute, preDataProcess, getImgIndexByExternal, }: any): any;
47
48
  /**
48
49
  * 初始化任务数据
49
50
  * @param param0
@@ -91,10 +92,10 @@ export declare const DispatcherTurning: (dispatch: any, getState: any, pageTurni
91
92
  * */
92
93
  export declare const ChangeSave: (dispatch: Function) => void;
93
94
  export declare const SetAnnotationLoading: (dispatch: Function, loading: boolean) => void;
94
- export declare const SetPointCloudLoading: (dispatch: Function, loading: boolean) => void;
95
95
  export declare const SetLoadPCDFileLoading: (dispatch: Function, loadPCDFileLoading: boolean) => void;
96
96
  export declare const InitAnnotationState: (dispatch: Function) => void;
97
97
  export declare const SetPredictResult: (dispatch: Function, result: any) => void;
98
98
  export declare const SetPredictResultVisible: (dispatch: Function, visible: boolean) => void;
99
99
  export declare const GetBoxesByID: (selectedBoxTrackID: number, selectedBoxID: string) => (dispatch: any, getState: any) => IPointCloudBox[];
100
100
  export declare const PreDataProcess: (params: IPreDataProcessParams) => (dispatch: any, getState: any) => IPointCloudBox[];
101
+ export declare const SubmitHandler: (submitType: ESubmitType) => (dispatch: any, getState: any) => Promise<void>;
@@ -54,4 +54,5 @@ export declare const annotationReducer: (state: {
54
54
  predictionResultVisible: boolean;
55
55
  highlightAttribute: string;
56
56
  preDataProcess?: ((params: import("../../App").IPreDataProcessParams) => IPointCloudBox[]) | undefined;
57
+ getImgIndexByExternal?: import("@/types/data").GetImgIndexByExternal | undefined;
57
58
  } | undefined, action: AnnotationActionTypes) => AnnotationState;
@@ -1,7 +1,7 @@
1
1
  import { AnnotationEngine, RectOperation, TagOperation, TextToolOperation, PointOperation, PolygonOperation, LineToolOperation } from '@labelbee/lb-annotation';
2
2
  import { ANNOTATION_ACTIONS } from '@/store/Actions';
3
3
  import { IStepInfo } from '@/types/step';
4
- import { OnSubmit, IFileItem, GetFileData, OnSave, OnPageChange, OnStepChange, LoadFileList } from '@/types/data';
4
+ import { OnSubmit, IFileItem, GetFileData, OnSave, OnPageChange, OnStepChange, LoadFileList, GetImgIndexByExternal } from '@/types/data';
5
5
  import { ESubmitType } from '@/constant';
6
6
  import { IPointCloudBox } from '@labelbee/lb-utils';
7
7
  import { IPreDataProcessParams } from '@/App';
@@ -47,6 +47,7 @@ export interface AnnotationState {
47
47
  predictionResultVisible: boolean;
48
48
  highlightAttribute: string;
49
49
  preDataProcess?: (params: IPreDataProcessParams) => IPointCloudBox[];
50
+ getImgIndexByExternal?: GetImgIndexByExternal;
50
51
  }
51
52
  interface UpdateToolInstance {
52
53
  type: typeof ANNOTATION_ACTIONS.UPDATE_TOOL_INSTANCE;
@@ -135,6 +136,12 @@ interface UpdateGetFileList {
135
136
  getFileData: LoadFileList;
136
137
  };
137
138
  }
139
+ interface UpdataImgIndexByExternal {
140
+ type: typeof ANNOTATION_ACTIONS.UPDATE_IMG_INDEX_BY_EXTERNAL;
141
+ payload: {
142
+ getImgIndexByExternal: GetImgIndexByExternal;
143
+ };
144
+ }
138
145
  interface CopyBackWordResult extends CommonActions {
139
146
  type: typeof ANNOTATION_ACTIONS.COPY_BACKWARD_RESULT;
140
147
  }
@@ -158,5 +165,5 @@ interface BatchUpdateResultByTrackID {
158
165
  range: [number, number];
159
166
  };
160
167
  }
161
- export type AnnotationActionTypes = UpdateToolInstance | UpdateImgList | UpdateAnnotationConfig | SubmitFileData | LoadFileData | SetTaskConfig | InitTool | UpdateOnSubmit | UpdateOnPageChange | UpdateOnStepChange | UpdateGetFileData | UpdatePageSize | UpdateGetFileList | CopyBackWordResult | UpdateOnSave | BatchUpdateTrackID | BatchUpdateResultByTrackID | InitAnnotationState;
168
+ export type AnnotationActionTypes = UpdateToolInstance | UpdateImgList | UpdateAnnotationConfig | SubmitFileData | LoadFileData | SetTaskConfig | InitTool | UpdateOnSubmit | UpdateOnPageChange | UpdateOnStepChange | UpdateGetFileData | UpdatePageSize | UpdateGetFileList | CopyBackWordResult | UpdateOnSave | BatchUpdateTrackID | BatchUpdateResultByTrackID | UpdataImgIndexByExternal | InitAnnotationState;
162
169
  export {};
@@ -9,6 +9,12 @@ interface ILLMContext {
9
9
  setModelAPIResponse: React.Dispatch<React.SetStateAction<IModelAPIAnswer[]>>;
10
10
  setNewAnswerList: (value: IAnswerList[]) => void;
11
11
  }
12
+ interface ILLMMultiWheelContext {
13
+ hoverKey: number;
14
+ setHoverKey: (value: number) => void;
15
+ selectKey: number;
16
+ setSelectKey: (value: number) => void;
17
+ }
12
18
  interface INLPContext {
13
19
  highlightKey: string;
14
20
  setHighlightKey: (value: string) => void;
@@ -18,4 +24,5 @@ export declare const useDispatch: () => Dispatch<AnyAction | any>;
18
24
  export declare const useSelector: <Selected extends unknown>(selector: (state: any) => Selected, equalityFn?: ((previous: Selected, next: Selected) => boolean) | undefined) => Selected;
19
25
  export declare const LLMContext: React.Context<ILLMContext>;
20
26
  export declare const NLPContext: React.Context<INLPContext>;
27
+ export declare const LLMMultiWheelContext: React.Context<ILLMMultiWheelContext>;
21
28
  export {};
@@ -0,0 +1,4 @@
1
+ import { StateCreator } from 'zustand';
2
+ import { BaseStore } from './types';
3
+ declare const baseToolStateCreator: StateCreator<BaseStore>;
4
+ export default baseToolStateCreator;
@@ -0,0 +1,3 @@
1
+ import { ToolConfigStore } from './types';
2
+ declare const useToolConfigStore: import("zustand").UseBoundStore<import("zustand").StoreApi<ToolConfigStore>>;
3
+ export default useToolConfigStore;