@labelbee/lb-components 1.22.0-beta.5 → 1.23.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (499) hide show
  1. package/dist/assets/annotation/LLMTool/empty.svg.js +1 -1
  2. package/dist/assets/annotation/LLMTool/imgFail_cn.svg.js +1 -1
  3. package/dist/assets/annotation/LLMTool/imgFail_en.svg.js +1 -1
  4. package/dist/assets/annotation/LLMTool/loading.svg.js +1 -1
  5. package/dist/assets/annotation/audio/clip.svg.js +1 -1
  6. package/dist/assets/annotation/audio/clipA.svg.js +1 -1
  7. package/dist/assets/annotation/audio/clipASmall.svg.js +1 -1
  8. package/dist/assets/annotation/audio/clipSmall.svg.js +1 -1
  9. package/dist/assets/annotation/audio/delete.svg.js +1 -1
  10. package/dist/assets/annotation/audio/loop.svg.js +1 -1
  11. package/dist/assets/annotation/audio/loopA.svg.js +1 -1
  12. package/dist/assets/annotation/audio/progressDot.svg.js +1 -1
  13. package/dist/assets/annotation/audio/progressDotA.svg.js +1 -1
  14. package/dist/assets/annotation/audio/tag.svg.js +1 -1
  15. package/dist/assets/annotation/audio/tagA.svg.js +1 -1
  16. package/dist/assets/annotation/common/icon_adapt.svg.js +1 -1
  17. package/dist/assets/annotation/common/icon_adapt_black.svg.js +1 -1
  18. package/dist/assets/annotation/common/icon_back.svg.js +1 -1
  19. package/dist/assets/annotation/common/icon_backA.svg.js +1 -1
  20. package/dist/assets/annotation/common/icon_clear.svg.js +1 -1
  21. package/dist/assets/annotation/common/icon_clearSmall.svg.js +1 -1
  22. package/dist/assets/annotation/common/icon_clearSmall_a.svg.js +1 -1
  23. package/dist/assets/annotation/common/icon_clear_a.svg.js +1 -1
  24. package/dist/assets/annotation/common/icon_esc.svg.js +1 -1
  25. package/dist/assets/annotation/common/icon_invalid.svg.js +1 -1
  26. package/dist/assets/annotation/common/icon_invalid_a.svg.js +1 -1
  27. package/dist/assets/annotation/common/icon_left_squareOutlined.svg.js +1 -1
  28. package/dist/assets/annotation/common/icon_menu_fold.svg.js +1 -1
  29. package/dist/assets/annotation/common/icon_next.svg.js +1 -1
  30. package/dist/assets/annotation/common/icon_nextA.svg.js +1 -1
  31. package/dist/assets/annotation/common/icon_r.svg.js +1 -1
  32. package/dist/assets/annotation/common/icon_rA.svg.js +1 -1
  33. package/dist/assets/annotation/common/icon_right_squareOutlined.svg.js +1 -1
  34. package/dist/assets/annotation/common/icon_save.svg.js +1 -1
  35. package/dist/assets/annotation/common/icon_saveA.svg.js +1 -1
  36. package/dist/assets/annotation/image/brightness.svg.js +1 -1
  37. package/dist/assets/annotation/image/contrast.svg.js +1 -1
  38. package/dist/assets/annotation/image/icon_yuantu.svg.js +1 -1
  39. package/dist/assets/annotation/image/saturation.svg.js +1 -1
  40. package/dist/assets/annotation/lineTool/icon_line.svg.js +1 -1
  41. package/dist/assets/annotation/lineTool/icon_line_a.svg.js +1 -1
  42. package/dist/assets/annotation/pointCloudTool/addSvg.svg.js +1 -1
  43. package/dist/assets/annotation/pointCloudTool/cancel.svg.js +1 -1
  44. package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +1 -1
  45. package/dist/assets/annotation/pointCloudTool/circleSelector.svg.js +1 -1
  46. package/dist/assets/annotation/pointCloudTool/circleSelector_a.svg.js +1 -1
  47. package/dist/assets/annotation/pointCloudTool/clearSvg.svg.js +1 -1
  48. package/dist/assets/annotation/pointCloudTool/copy.svg.js +1 -1
  49. package/dist/assets/annotation/pointCloudTool/coverMode.svg.js +1 -1
  50. package/dist/assets/annotation/pointCloudTool/finish.svg.js +1 -1
  51. package/dist/assets/annotation/pointCloudTool/highlight.svg.js +1 -0
  52. package/dist/assets/annotation/pointCloudTool/highlight_a.svg.js +1 -0
  53. package/dist/assets/annotation/pointCloudTool/lassoSelector.svg.js +1 -1
  54. package/dist/assets/annotation/pointCloudTool/lassoSelector_a.svg.js +1 -1
  55. package/dist/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -0
  56. package/dist/assets/annotation/pointCloudTool/nextBox.svg.js +1 -1
  57. package/dist/assets/annotation/pointCloudTool/nodata.svg.js +1 -1
  58. package/dist/assets/annotation/pointCloudTool/patse.svg.js +1 -1
  59. package/dist/assets/annotation/pointCloudTool/prevBox.svg.js +1 -1
  60. package/dist/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -0
  61. package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +1 -1
  62. package/dist/assets/annotation/pointCloudTool/selectAll.svg.js +1 -1
  63. package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js +1 -1
  64. package/dist/assets/annotation/pointCloudTool/unCoverMode.svg.js +1 -1
  65. package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js +1 -1
  66. package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +1 -1
  67. package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +1 -1
  68. package/dist/assets/annotation/pointTool/icon_point.svg.js +1 -1
  69. package/dist/assets/annotation/pointTool/icon_point_a.svg.js +1 -1
  70. package/dist/assets/annotation/polygonTool/icon_polygon.svg.js +1 -1
  71. package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js +1 -1
  72. package/dist/assets/annotation/rectTool/icon_rect.svg.js +1 -1
  73. package/dist/assets/annotation/rectTool/icon_rect_a.svg.js +1 -1
  74. package/dist/assets/annotation/toolHotKeyIcon/deleteRemark.svg.js +1 -1
  75. package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +1 -1
  76. package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +1 -1
  77. package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +1 -1
  78. package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +1 -1
  79. package/dist/assets/annotation/toolHotKeyIcon/icon_down.svg.js +1 -1
  80. package/dist/assets/annotation/toolHotKeyIcon/icon_eraser.svg.js +1 -1
  81. package/dist/assets/annotation/toolHotKeyIcon/icon_eyeLock_kj.svg.js +1 -1
  82. package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +1 -1
  83. package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +1 -1
  84. package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +1 -1
  85. package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +1 -1
  86. package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +1 -1
  87. package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +1 -1
  88. package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +1 -1
  89. package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +1 -1
  90. package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +1 -1
  91. package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +1 -1
  92. package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +1 -1
  93. package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +1 -1
  94. package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +1 -1
  95. package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +1 -1
  96. package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +1 -1
  97. package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +1 -1
  98. package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +1 -1
  99. package/dist/assets/annotation/toolHotKeyIcon/icon_line_static.svg.js +1 -1
  100. package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +1 -1
  101. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +1 -1
  102. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +1 -1
  103. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +1 -1
  104. package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +1 -1
  105. package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +1 -1
  106. package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +1 -1
  107. package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +1 -1
  108. package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +1 -1
  109. package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +1 -1
  110. package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +1 -1
  111. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +1 -1
  112. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +1 -1
  113. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonCut_kj.svg.js +1 -1
  114. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +1 -1
  115. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +1 -1
  116. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +1 -1
  117. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +1 -1
  118. package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +1 -1
  119. package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +1 -1
  120. package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +1 -1
  121. package/dist/assets/annotation/toolHotKeyIcon/icon_scribble.svg.js +1 -1
  122. package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +1 -1
  123. package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +1 -1
  124. package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +1 -1
  125. package/dist/assets/annotation/toolHotKeyIcon/icon_strokeEnlarge.svg.js +1 -1
  126. package/dist/assets/annotation/toolHotKeyIcon/icon_strokeReduction.svg.js +1 -1
  127. package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +1 -1
  128. package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +1 -1
  129. package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +1 -1
  130. package/dist/assets/annotation/toolHotKeyIcon/icon_up.svg.js +1 -1
  131. package/dist/assets/annotation/toolHotKeyIcon/nextRemark.svg.js +1 -1
  132. package/dist/assets/annotation/toolHotKeyIcon/preRemark.svg.js +1 -1
  133. package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js +1 -1
  134. package/dist/assets/annotation/video/icon_clip.svg.js +1 -1
  135. package/dist/assets/annotation/video/icon_keyboard_h.svg.js +1 -1
  136. package/dist/assets/annotation/video/icon_timePoint.svg.js +1 -1
  137. package/dist/assets/annotation/video/icon_videoCut.svg.js +1 -1
  138. package/dist/assets/annotation/video/icon_videoCutting.svg.js +1 -1
  139. package/dist/assets/attributeIcon/eraser.svg.js +1 -1
  140. package/dist/assets/attributeIcon/eraser_a.svg.js +1 -1
  141. package/dist/assets/attributeIcon/icon_eyeLock_a.svg.js +1 -1
  142. package/dist/assets/attributeIcon/icon_eyeLock_h.svg.js +1 -1
  143. package/dist/assets/attributeIcon/pen.svg.js +1 -1
  144. package/dist/assets/attributeIcon/pen_a.svg.js +1 -1
  145. package/dist/assets/attributeIcon/zoomUp.svg.js +1 -1
  146. package/dist/assets/predictTracking/icon.svg.js +1 -1
  147. package/dist/assets/toolStyle/icon_border.svg.js +1 -1
  148. package/dist/assets/toolStyle/icon_borderColor.svg.js +1 -1
  149. package/dist/assets/toolStyle/icon_defaultSize.svg.js +1 -1
  150. package/dist/assets/toolStyle/icon_opacityFill.svg.js +1 -1
  151. package/dist/assets/toolStyle/icon_opacityStroke.svg.js +1 -1
  152. package/dist/components/LLMToolView/index.js +1 -1
  153. package/dist/components/LLMToolView/questionView/components/header/index.js +1 -1
  154. package/dist/components/LLMToolView/sidebar/components/answerList/index.js +1 -1
  155. package/dist/components/LLMToolView/sidebar/components/answerSort/index.js +1 -1
  156. package/dist/components/LLMToolView/sidebar/components/determineGroup/index.js +1 -1
  157. package/dist/components/LLMToolView/sidebar/components/scoreGroupButton/index.js +1 -1
  158. package/dist/components/LLMToolView/sidebar/components/textEditor/index.js +1 -1
  159. package/dist/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
  160. package/dist/components/LLMToolView/sidebar/index.js +1 -1
  161. package/dist/components/LLMToolView/utils/data.js +1 -1
  162. package/dist/components/NLPToolView/index.js +1 -1
  163. package/dist/components/NLPToolView/textContent/extraMask.js +1 -0
  164. package/dist/components/NLPToolView/textContent/index.js +1 -1
  165. package/dist/components/messageMaskLayer/index.js +1 -0
  166. package/dist/components/pointCloudView/PointCloudContext.js +1 -1
  167. package/dist/components/pointCloudView/PointCloudTopView.js +1 -1
  168. package/dist/components/tagList/components/overall/index.js +1 -0
  169. package/dist/components/tagList/components/portion/index.js +1 -0
  170. package/dist/components/tagList/index.js +1 -0
  171. package/dist/components/tagList/index.module.scss.js +1 -0
  172. package/dist/constant/index.js +1 -1
  173. package/dist/index.css +70 -2
  174. package/dist/index.js +1 -1
  175. package/dist/store/annotatedBox/index.js +1 -0
  176. package/dist/types/components/LLMToolView/index.d.ts +2 -0
  177. package/dist/types/components/LLMToolView/sidebar/components/answerList/index.d.ts +3 -10
  178. package/dist/types/components/LLMToolView/sidebar/components/answerSort/index.d.ts +1 -1
  179. package/dist/types/components/LLMToolView/sidebar/components/determineGroup/index.d.ts +1 -1
  180. package/dist/types/components/LLMToolView/sidebar/components/scoreGroupButton/index.d.ts +1 -1
  181. package/dist/types/components/LLMToolView/sidebar/components/textEditor/index.d.ts +1 -1
  182. package/dist/types/components/LLMToolView/sidebar/components/textInputBox/index.d.ts +1 -1
  183. package/dist/types/components/LLMToolView/sidebar/index.d.ts +1 -3
  184. package/dist/types/components/LLMToolView/types.d.ts +27 -0
  185. package/dist/types/components/LLMToolView/utils/data.d.ts +14 -0
  186. package/dist/types/components/NLPToolView/index.d.ts +5 -4
  187. package/dist/types/components/NLPToolView/textContent/extraMask.d.ts +12 -0
  188. package/dist/types/components/NLPToolView/textContent/index.d.ts +6 -8
  189. package/dist/types/components/NLPToolView/types.d.ts +18 -11
  190. package/dist/types/components/messageMaskLayer/index.d.ts +11 -0
  191. package/dist/types/components/pointCloudView/PointCloudContext.d.ts +3 -0
  192. package/dist/types/components/tagList/components/overall/index.d.ts +4 -0
  193. package/dist/types/components/tagList/components/portion/index.d.ts +4 -0
  194. package/dist/types/components/tagList/index.d.ts +4 -0
  195. package/dist/types/components/tagList/types.d.ts +23 -0
  196. package/dist/types/constant/index.d.ts +0 -4
  197. package/dist/types/index.d.ts +3 -1
  198. package/dist/types/store/annotatedBox/index.d.ts +14 -0
  199. package/dist/types/views/MainView/NLPLayout/index.d.ts +5 -3
  200. package/dist/types/views/MainView/sidebar/NLPSidebar/indicatorDetermine.d.ts +1 -1
  201. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.d.ts +9 -0
  202. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/arrow.d.ts +8 -0
  203. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.d.ts +11 -0
  204. package/dist/types/views/MainView/sidebar/SwitchAttributeList/index.d.ts +0 -1
  205. package/dist/utils/audio.js +1 -1
  206. package/dist/views/MainView/LLMLayout/index.js +1 -1
  207. package/dist/views/MainView/NLPLayout/index.js +1 -1
  208. package/dist/views/MainView/sidebar/AnnotationText/index.js +1 -1
  209. package/dist/views/MainView/sidebar/NLPSidebar/index.js +1 -1
  210. package/dist/views/MainView/sidebar/NLPSidebar/indicatorDetermine.js +1 -1
  211. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.js +1 -0
  212. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.module.scss.js +1 -0
  213. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/arrow.js +1 -0
  214. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.js +1 -0
  215. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.module.scss.js +1 -0
  216. package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
  217. package/dist/views/MainView/sidebar/SwitchAttributeList/index.js +1 -1
  218. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/LLM/index.js +1 -1
  219. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -1
  220. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +1 -1
  221. package/es/App.js +1 -1
  222. package/es/assets/annotation/LLMTool/empty.svg.js +1 -1
  223. package/es/assets/annotation/LLMTool/imgFail_cn.svg.js +1 -1
  224. package/es/assets/annotation/LLMTool/imgFail_en.svg.js +1 -1
  225. package/es/assets/annotation/LLMTool/loading.svg.js +1 -1
  226. package/es/assets/annotation/audio/clip.svg.js +1 -1
  227. package/es/assets/annotation/audio/clipA.svg.js +1 -1
  228. package/es/assets/annotation/audio/clipASmall.svg.js +1 -1
  229. package/es/assets/annotation/audio/clipSmall.svg.js +1 -1
  230. package/es/assets/annotation/audio/delete.svg.js +1 -1
  231. package/es/assets/annotation/audio/loop.svg.js +1 -1
  232. package/es/assets/annotation/audio/loopA.svg.js +1 -1
  233. package/es/assets/annotation/audio/progressDot.svg.js +1 -1
  234. package/es/assets/annotation/audio/progressDotA.svg.js +1 -1
  235. package/es/assets/annotation/audio/tag.svg.js +1 -1
  236. package/es/assets/annotation/audio/tagA.svg.js +1 -1
  237. package/es/assets/annotation/common/icon_adapt.svg.js +1 -1
  238. package/es/assets/annotation/common/icon_adapt_black.svg.js +1 -1
  239. package/es/assets/annotation/common/icon_back.svg.js +1 -1
  240. package/es/assets/annotation/common/icon_backA.svg.js +1 -1
  241. package/es/assets/annotation/common/icon_clear.svg.js +1 -1
  242. package/es/assets/annotation/common/icon_clearSmall.svg.js +1 -1
  243. package/es/assets/annotation/common/icon_clearSmall_a.svg.js +1 -1
  244. package/es/assets/annotation/common/icon_clear_a.svg.js +1 -1
  245. package/es/assets/annotation/common/icon_esc.svg.js +1 -1
  246. package/es/assets/annotation/common/icon_invalid.svg.js +1 -1
  247. package/es/assets/annotation/common/icon_invalid_a.svg.js +1 -1
  248. package/es/assets/annotation/common/icon_left_squareOutlined.svg.js +1 -1
  249. package/es/assets/annotation/common/icon_menu_fold.svg.js +1 -1
  250. package/es/assets/annotation/common/icon_next.svg.js +1 -1
  251. package/es/assets/annotation/common/icon_nextA.svg.js +1 -1
  252. package/es/assets/annotation/common/icon_r.svg.js +1 -1
  253. package/es/assets/annotation/common/icon_rA.svg.js +1 -1
  254. package/es/assets/annotation/common/icon_right_squareOutlined.svg.js +1 -1
  255. package/es/assets/annotation/common/icon_save.svg.js +1 -1
  256. package/es/assets/annotation/common/icon_saveA.svg.js +1 -1
  257. package/es/assets/annotation/image/brightness.svg.js +1 -1
  258. package/es/assets/annotation/image/contrast.svg.js +1 -1
  259. package/es/assets/annotation/image/icon_yuantu.svg.js +1 -1
  260. package/es/assets/annotation/image/saturation.svg.js +1 -1
  261. package/es/assets/annotation/lineTool/icon_line.svg.js +1 -1
  262. package/es/assets/annotation/lineTool/icon_line_a.svg.js +1 -1
  263. package/es/assets/annotation/pointCloudTool/addSvg.svg.js +1 -1
  264. package/es/assets/annotation/pointCloudTool/cancel.svg.js +1 -1
  265. package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +1 -1
  266. package/es/assets/annotation/pointCloudTool/circleSelector.svg.js +1 -1
  267. package/es/assets/annotation/pointCloudTool/circleSelector_a.svg.js +1 -1
  268. package/es/assets/annotation/pointCloudTool/clearSvg.svg.js +1 -1
  269. package/es/assets/annotation/pointCloudTool/copy.svg.js +1 -1
  270. package/es/assets/annotation/pointCloudTool/coverMode.svg.js +1 -1
  271. package/es/assets/annotation/pointCloudTool/finish.svg.js +1 -1
  272. package/es/assets/annotation/pointCloudTool/highlight.svg.js +1 -0
  273. package/es/assets/annotation/pointCloudTool/highlight_a.svg.js +1 -0
  274. package/es/assets/annotation/pointCloudTool/lassoSelector.svg.js +1 -1
  275. package/es/assets/annotation/pointCloudTool/lassoSelector_a.svg.js +1 -1
  276. package/es/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -0
  277. package/es/assets/annotation/pointCloudTool/nextBox.svg.js +1 -1
  278. package/es/assets/annotation/pointCloudTool/nodata.svg.js +1 -1
  279. package/es/assets/annotation/pointCloudTool/patse.svg.js +1 -1
  280. package/es/assets/annotation/pointCloudTool/prevBox.svg.js +1 -1
  281. package/es/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -0
  282. package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +1 -1
  283. package/es/assets/annotation/pointCloudTool/selectAll.svg.js +1 -1
  284. package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js +1 -1
  285. package/es/assets/annotation/pointCloudTool/unCoverMode.svg.js +1 -1
  286. package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js +1 -1
  287. package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +1 -1
  288. package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +1 -1
  289. package/es/assets/annotation/pointTool/icon_point.svg.js +1 -1
  290. package/es/assets/annotation/pointTool/icon_point_a.svg.js +1 -1
  291. package/es/assets/annotation/polygonTool/icon_polygon.svg.js +1 -1
  292. package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js +1 -1
  293. package/es/assets/annotation/rectTool/icon_rect.svg.js +1 -1
  294. package/es/assets/annotation/rectTool/icon_rect_a.svg.js +1 -1
  295. package/es/assets/annotation/toolHotKeyIcon/deleteRemark.svg.js +1 -1
  296. package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +1 -1
  297. package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +1 -1
  298. package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +1 -1
  299. package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +1 -1
  300. package/es/assets/annotation/toolHotKeyIcon/icon_down.svg.js +1 -1
  301. package/es/assets/annotation/toolHotKeyIcon/icon_eraser.svg.js +1 -1
  302. package/es/assets/annotation/toolHotKeyIcon/icon_eyeLock_kj.svg.js +1 -1
  303. package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +1 -1
  304. package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +1 -1
  305. package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +1 -1
  306. package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +1 -1
  307. package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +1 -1
  308. package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +1 -1
  309. package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +1 -1
  310. package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +1 -1
  311. package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +1 -1
  312. package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +1 -1
  313. package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +1 -1
  314. package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +1 -1
  315. package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +1 -1
  316. package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +1 -1
  317. package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +1 -1
  318. package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +1 -1
  319. package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +1 -1
  320. package/es/assets/annotation/toolHotKeyIcon/icon_line_static.svg.js +1 -1
  321. package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +1 -1
  322. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +1 -1
  323. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +1 -1
  324. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +1 -1
  325. package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +1 -1
  326. package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +1 -1
  327. package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +1 -1
  328. package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +1 -1
  329. package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +1 -1
  330. package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +1 -1
  331. package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +1 -1
  332. package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +1 -1
  333. package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +1 -1
  334. package/es/assets/annotation/toolHotKeyIcon/icon_polygonCut_kj.svg.js +1 -1
  335. package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +1 -1
  336. package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +1 -1
  337. package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +1 -1
  338. package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +1 -1
  339. package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +1 -1
  340. package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +1 -1
  341. package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +1 -1
  342. package/es/assets/annotation/toolHotKeyIcon/icon_scribble.svg.js +1 -1
  343. package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +1 -1
  344. package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +1 -1
  345. package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +1 -1
  346. package/es/assets/annotation/toolHotKeyIcon/icon_strokeEnlarge.svg.js +1 -1
  347. package/es/assets/annotation/toolHotKeyIcon/icon_strokeReduction.svg.js +1 -1
  348. package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +1 -1
  349. package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +1 -1
  350. package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +1 -1
  351. package/es/assets/annotation/toolHotKeyIcon/icon_up.svg.js +1 -1
  352. package/es/assets/annotation/toolHotKeyIcon/nextRemark.svg.js +1 -1
  353. package/es/assets/annotation/toolHotKeyIcon/preRemark.svg.js +1 -1
  354. package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js +1 -1
  355. package/es/assets/annotation/video/icon_clip.svg.js +1 -1
  356. package/es/assets/annotation/video/icon_keyboard_h.svg.js +1 -1
  357. package/es/assets/annotation/video/icon_timePoint.svg.js +1 -1
  358. package/es/assets/annotation/video/icon_videoCut.svg.js +1 -1
  359. package/es/assets/annotation/video/icon_videoCutting.svg.js +1 -1
  360. package/es/assets/attributeIcon/eraser.svg.js +1 -1
  361. package/es/assets/attributeIcon/eraser_a.svg.js +1 -1
  362. package/es/assets/attributeIcon/icon_eyeLock_a.svg.js +1 -1
  363. package/es/assets/attributeIcon/icon_eyeLock_h.svg.js +1 -1
  364. package/es/assets/attributeIcon/pen.svg.js +1 -1
  365. package/es/assets/attributeIcon/pen_a.svg.js +1 -1
  366. package/es/assets/attributeIcon/zoomUp.svg.js +1 -1
  367. package/es/assets/predictTracking/icon.svg.js +1 -1
  368. package/es/assets/toolStyle/icon_border.svg.js +1 -1
  369. package/es/assets/toolStyle/icon_borderColor.svg.js +1 -1
  370. package/es/assets/toolStyle/icon_defaultSize.svg.js +1 -1
  371. package/es/assets/toolStyle/icon_opacityFill.svg.js +1 -1
  372. package/es/assets/toolStyle/icon_opacityStroke.svg.js +1 -1
  373. package/es/components/LLMToolView/index.js +1 -1
  374. package/es/components/LLMToolView/modelAPIView/index.js +1 -1
  375. package/es/components/LLMToolView/questionView/components/header/index.js +1 -1
  376. package/es/components/LLMToolView/questionView/components/imgView/index.js +1 -1
  377. package/es/components/LLMToolView/questionView/index.js +1 -1
  378. package/es/components/LLMToolView/sidebar/components/answerList/index.js +1 -1
  379. package/es/components/LLMToolView/sidebar/components/answerSort/index.js +1 -1
  380. package/es/components/LLMToolView/sidebar/components/determineGroup/index.js +1 -1
  381. package/es/components/LLMToolView/sidebar/components/scoreGroupButton/index.js +1 -1
  382. package/es/components/LLMToolView/sidebar/components/textEditor/index.js +2 -2
  383. package/es/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
  384. package/es/components/LLMToolView/sidebar/index.js +1 -1
  385. package/es/components/LLMToolView/utils/data.js +1 -1
  386. package/es/components/NLPToolView/index.js +1 -1
  387. package/es/components/NLPToolView/textContent/extraMask.js +1 -0
  388. package/es/components/NLPToolView/textContent/index.js +1 -1
  389. package/es/components/attributeList/components/limitPopover/index.js +1 -1
  390. package/es/components/audioAnnotate/audioContext/index.js +1 -1
  391. package/es/components/audioAnnotate/audioSide/LabelDetailPopover/index.js +1 -1
  392. package/es/components/audioAnnotate/audioSide/clipSidebar/index.js +1 -1
  393. package/es/components/audioAnnotate/audioSide/labelSidebar/index.js +1 -1
  394. package/es/components/audioAnnotate/tagResultShow/index.js +1 -1
  395. package/es/components/audioPlayer/clipRegion/index.js +1 -1
  396. package/es/components/audioPlayer/clipTip/index.js +1 -1
  397. package/es/components/audioPlayer/combineTip/index.js +1 -1
  398. package/es/components/audioPlayer/progressDot/index.js +1 -1
  399. package/es/components/audioPlayer/zoomSlider/index.js +1 -1
  400. package/es/components/checkboxList/index.js +1 -1
  401. package/es/components/colorPalette/index.js +1 -1
  402. package/es/components/customAntd/IconWithText/index.js +1 -1
  403. package/es/components/diffMatchPatchComponent/index.js +2 -2
  404. package/es/components/fileException/FileError.js +1 -1
  405. package/es/components/fileException/FileInvalid.js +1 -1
  406. package/es/components/fileException/index.js +1 -1
  407. package/es/components/invalidPage/index.js +1 -1
  408. package/es/components/latexEditor/index.js +1 -1
  409. package/es/components/markdownView/index.js +1 -1
  410. package/es/components/measureCanvas/index.js +1 -1
  411. package/es/components/messageMaskLayer/index.js +1 -0
  412. package/es/components/pointCloud2DRectOperationView/index.js +1 -1
  413. package/es/components/pointCloudView/PointCloud2DSingleView.js +1 -1
  414. package/es/components/pointCloudView/PointCloud2DView.js +1 -1
  415. package/es/components/pointCloudView/PointCloud3DView.js +1 -1
  416. package/es/components/pointCloudView/PointCloudContext.js +1 -1
  417. package/es/components/pointCloudView/PointCloudInfos.js +1 -1
  418. package/es/components/pointCloudView/PointCloudSegment.js +1 -1
  419. package/es/components/pointCloudView/PointCloudSegment2DView.js +1 -1
  420. package/es/components/pointCloudView/PointCloudSegmentStatus.js +1 -1
  421. package/es/components/pointCloudView/PointCloudSegmentToolbar.js +1 -1
  422. package/es/components/pointCloudView/PointCloudTopView.js +1 -1
  423. package/es/components/pointCloudView/components/HighlightVisible/index.js +1 -1
  424. package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js +1 -1
  425. package/es/components/pointCloudView/components/TitleButton/index.js +1 -1
  426. package/es/components/pointCloudView/components/UnifyParamsModal/index.js +1 -1
  427. package/es/components/pointCloudView/components/sideAndBackOverView/index.js +1 -1
  428. package/es/components/pointCloudView/index.js +1 -1
  429. package/es/components/predictTracking/predictTrackingIcon/index.js +1 -1
  430. package/es/components/predictTracking/previewResult/index.js +1 -1
  431. package/es/components/tagList/components/overall/index.js +1 -0
  432. package/es/components/tagList/components/portion/index.js +1 -0
  433. package/es/components/tagList/index.js +1 -0
  434. package/es/components/tagList/index.module.scss.js +1 -0
  435. package/es/components/videoAnnotate/index.js +1 -1
  436. package/es/components/videoAnnotate/videoClipTool/components/annotatedList/index.js +1 -1
  437. package/es/components/videoAnnotate/videoClipTool/components/resizableSnippet/index.js +1 -1
  438. package/es/components/videoAnnotate/videoClipTool/components/timeSliceRange/index.js +1 -1
  439. package/es/components/videoAnnotate/videoClipTool/components/videoClipToolHotkey/index.js +1 -1
  440. package/es/components/videoAnnotate/videoClipTool/components/videoTimeSlicesOverVideo/index.js +1 -1
  441. package/es/components/videoAnnotate/videoClipTool/components/videoTrack/index.js +1 -1
  442. package/es/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptorI18nProvider.js +1 -1
  443. package/es/components/videoPlayer/VideoTagLayer.js +1 -1
  444. package/es/components/videoPlayer/VideoTextLayer.js +2 -2
  445. package/es/components/videoPlayer/components/SpeedController/index.js +1 -1
  446. package/es/components/videoPlayer/components/controller/index.js +1 -1
  447. package/es/components/videoPlayer/index.js +1 -1
  448. package/es/constant/index.js +1 -1
  449. package/es/hooks/useSafeSate.js +1 -1
  450. package/es/index.css +70 -2
  451. package/es/index.js +1 -1
  452. package/es/store/annotatedBox/index.js +1 -0
  453. package/es/utils/audio.js +1 -1
  454. package/es/views/MainView/LLMLayout/index.js +1 -1
  455. package/es/views/MainView/NLPLayout/index.js +1 -1
  456. package/es/views/MainView/annotationOperation/index.js +1 -1
  457. package/es/views/MainView/annotationTips/index.js +1 -1
  458. package/es/views/MainView/index.js +1 -1
  459. package/es/views/MainView/sidebar/AnnotationText/index.js +1 -1
  460. package/es/views/MainView/sidebar/GeneralOperation/index.js +1 -1
  461. package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js +1 -1
  462. package/es/views/MainView/sidebar/NLPSidebar/NLPAnnotatedList.js +1 -1
  463. package/es/views/MainView/sidebar/NLPSidebar/index.js +1 -1
  464. package/es/views/MainView/sidebar/NLPSidebar/indicatorDetermine.js +1 -1
  465. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.js +1 -0
  466. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.module.scss.js +1 -0
  467. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +1 -1
  468. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/arrow.js +1 -0
  469. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.js +1 -0
  470. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.module.scss.js +1 -0
  471. package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
  472. package/es/views/MainView/sidebar/ScribbleSidebar/index.js +1 -1
  473. package/es/views/MainView/sidebar/SwitchAttributeList/index.js +1 -1
  474. package/es/views/MainView/sidebar/TextAreaFormat/index.js +1 -1
  475. package/es/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
  476. package/es/views/MainView/sidebar/ToolIcons.js +1 -1
  477. package/es/views/MainView/sidebar/index.js +1 -1
  478. package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js +1 -1
  479. package/es/views/MainView/toolFooter/FooterPopover.js +1 -1
  480. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/LLM/index.js +1 -1
  481. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -1
  482. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -1
  483. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +1 -1
  484. package/es/views/MainView/toolFooter/FooterTips/index.js +1 -1
  485. package/es/views/MainView/toolFooter/HiddenTips/index.js +1 -1
  486. package/es/views/MainView/toolFooter/PageNumber/index.js +1 -1
  487. package/es/views/MainView/toolFooter/Pagination.js +1 -1
  488. package/es/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js +1 -1
  489. package/es/views/MainView/toolFooter/ZoomController/index.js +1 -1
  490. package/es/views/MainView/toolFooter/index.js +1 -1
  491. package/es/views/MainView/toolHeader/ExportData/index.js +1 -1
  492. package/es/views/MainView/toolHeader/StepSwitch/index.js +1 -1
  493. package/es/views/MainView/toolHeader/SwitchPattern/index.js +1 -1
  494. package/es/views/MainView/toolHeader/headerOption/index.js +1 -1
  495. package/es/views/MainView/toolHeader/index.js +1 -1
  496. package/package.json +9 -6
  497. package/dist/components/NLPToolView/textContent/remarkMask.js +0 -1
  498. package/dist/types/components/NLPToolView/textContent/remarkMask.d.ts +0 -12
  499. package/es/components/NLPToolView/textContent/remarkMask.js +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var lbUtils=require("@labelbee/lb-utils"),React=require("react"),lbAnnotation=require("@labelbee/lb-annotation"),ctx=require("../../store/ctx.js"),actionCreators=require("../../store/annotation/actionCreators.js");function _interopDefaultLegacy(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(n,e,i)=>e in n?__defProp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i,__spreadValues=(n,e)=>{for(var i in e||(e={}))__hasOwnProp.call(e,i)&&__defNormalProp(n,i,e[i]);if(__getOwnPropSymbols)for(var i of __getOwnPropSymbols(e))__propIsEnum.call(e,i)&&__defNormalProp(n,i,e[i]);return n},__spreadProps=(n,e)=>__defProps(n,__getOwnPropDescs(e)),__async=(n,e,i)=>new Promise((S,b)=>{var C=p=>{try{f(i.next(p))}catch(r){b(r)}},L=p=>{try{f(i.throw(p))}catch(r){b(r)}},f=p=>p.done?S(p.value):Promise.resolve(p.value).then(C,L);f((i=i.apply(n,e)).next())});const PointCloudContext=React__default.default.createContext({pointCloudBoxList:[],pointCloudSphereList:[],displayPointCloudList:[],displaySphereList:[],displayLineList:[],polygonList:[],lineList:[],selectedID:"",selectedIDs:[],valid:!0,setSelectedIDs:()=>{},setPointCloudResult:()=>{},setPointCloudSphereList:()=>{},setPointCloudValid:()=>{},setTopViewInstance:()=>{},setSideViewInstance:()=>{},setBackViewInstance:()=>{},setMainViewInstance:()=>{},addSelectedID:()=>{},selectedAllBoxes:()=>{},addPointCloudBox:()=>[],addPointCloudSphere:()=>[],setPolygonList:()=>{},setLineList:()=>{},zoom:1,setZoom:()=>{},history:new lbAnnotation.ActionsHistory,hideAttributes:[],setHideAttributes:()=>{},toggleAttributesVisible:()=>{},reRender:()=>{},setAttrPanelLayout:()=>{},attrPanelLayout:"",syncAllViewPointCloudColor:()=>Promise.resolve(),defaultAttribute:"",setDefaultAttribute:()=>{},pointCloudPattern:lbAnnotation.EToolName.Rect,setPointCloudPattern:()=>{},selectSpecAttr:()=>{},globalPattern:lbUtils.EPointCloudPattern.Detection,setGlobalPattern:()=>{},setPtSegmentInstance:()=>{},segmentation:[],setSegmentation:()=>{},clearAllDetectionInstance:()=>{},highlight2DDataList:[],setHighlight2DDataList:()=>{},cuboidBoxIn2DView:!0,setCuboidBoxIn2DView:n=>{},imageSizes:{},cacheImageNodeSize:()=>{}}),PointCloudProvider=({children:n})=>{const[e,i]=React.useState([]),[S,b]=React.useState([]),[C,L]=React.useState([]),[f,p]=React.useState([]),[r,w]=React.useState([]),[B,W]=React.useState(!0),[O,X]=React.useState(!0),[R,Y]=React.useState(1),[l,E]=React.useState(),[H,j]=React.useState(),[z,N]=React.useState(),[s,M]=React.useState(),[q,$]=React.useState(""),[A,tt]=React.useState(lbAnnotation.EToolName.Rect),et=React.useRef(new lbAnnotation.ActionsHistory).current,[a,D]=React.useState([]),[G,ot]=React.useState(""),[_,nt]=React.useState(lbUtils.EPointCloudPattern.Detection),[g,T]=React.useState(void 0),[x,it]=React.useState([]),[V,st]=React.useState([]),[F,lt]=React.useState({}),rt=ctx.useDispatch(),at=P=>{const{imgNode:c,path:d}=P;d&&c&&lt(v=>__spreadProps(__spreadValues({},v),{[d]:{width:c.width,height:c.height}}))},Z=React.useMemo(()=>r.length===1?r[0]:"",[r]),k=React.useMemo(()=>{const P=e.find(t=>t.id===Z),c=t=>{const o=e.concat(t);return i(o),o},d=t=>{const o=S.concat(t);return b(o),o},v=t=>{W(t!==!1)},u=t=>{t===void 0&&w([]),typeof t=="string"&&w([t]),Array.isArray(t)&&w(Array.from(new Set(t)))},ct=t=>{r.includes(t)?u(r.filter(o=>o!==t)):u([...r,t])},dt=()=>{if(A===lbAnnotation.EToolName.Rect){const t=e.map(o=>o.id);u(t),l==null||l.pointCloud2dOperation.setSelectedIDs(t)}},pt=t=>{u(e.filter(o=>o.attribute===t).map(o=>o.id))},U=e.filter(t=>!a.includes(t.attribute)),J=S.filter(t=>!a.includes(t.attribute)),K=f.filter(t=>t.attribute&&!a.includes(t.attribute)),Pt=t=>{if(a.includes(t))D(a.filter(o=>o!==t));else{const o=a.concat(t);D(o)}},vt=(t=U,o=C,m=J,I=K,y=x)=>{var h;s==null||s.clearAllBox(),s==null||s.clearAllSphere(),l==null||l.updatePolygonList(t,o),l==null||l.updatePointList(m),l==null||l.updateLineList(I),s==null||s.generateBoxes(t),s==null||s.generateSpheres(m),(h=g==null?void 0:g.store)==null||h.updateCurrentSegment(y),Q(t)},ft=()=>{E(void 0),j(void 0),N(void 0),M(void 0)},Q=(t,o)=>__async(void 0,null,function*(){var m;if(!s)return;const I=s.pointCloudObject;if(!!I)try{const y=yield s.getHighlightIndexByMappingImgList({mappingImgList:o!=null?o:V,points:I.geometry.attributes.position.array}),h=yield s==null?void 0:s.highlightOriginPointCloud(t,y);return h&&((m=l==null?void 0:l.pointCloudInstance)==null||m.updateColor(h)),h}catch(y){console.error(y)}});return{selectedID:Z,pointCloudBoxList:e,pointCloudSphereList:S,displayPointCloudList:U,displaySphereList:J,displayLineList:K,selectedIDs:r,setPointCloudResult:i,setSelectedIDs:u,addPointCloudBox:c,addPointCloudSphere:d,setPointCloudSphereList:b,valid:B,selectedPointCloudBox:P,setPointCloudValid:v,addSelectedID:ct,selectedAllBoxes:dt,topViewInstance:l,setTopViewInstance:E,sideViewInstance:H,setSideViewInstance:j,backViewInstance:z,setBackViewInstance:N,mainViewInstance:s,setMainViewInstance:M,polygonList:C,setPolygonList:L,lineList:f,setLineList:p,zoom:R,setZoom:Y,history:et,toggleAttributesVisible:Pt,hideAttributes:a,setHideAttributes:D,reRender:vt,attrPanelLayout:G,setAttrPanelLayout:ot,syncAllViewPointCloudColor:Q,defaultAttribute:q,setDefaultAttribute:$,pointCloudPattern:A,setPointCloudPattern:tt,selectSpecAttr:pt,globalPattern:_,setGlobalPattern:t=>{_!==t&&(rt(actionCreators.ChangeSave),nt(t),t===lbUtils.EPointCloudPattern.Detection&&T(void 0))},ptSegmentInstance:g,setPtSegmentInstance:T,segmentation:x,setSegmentation:it,clearAllDetectionInstance:ft,highlight2DDataList:V,setHighlight2DDataList:st,cuboidBoxIn2DView:O,setCuboidBoxIn2DView:X,imageSizes:F,cacheImageNodeSize:at}},[B,r,e,S,C,f,l,H,z,s,R,a,G,q,A,_,g,x,V,O,F]),ut=()=>{const P=e.filter(u=>a.includes(u.attribute)),{setSelectedIDs:c,reRender:d}=k,v=P.map(u=>u.id);v.length>0&&c(r.filter(u=>!v.includes(u))),d()};return React.useEffect(()=>{var P,c,d,v;ut(),(c=(P=l==null?void 0:l.toolInstance)==null?void 0:P.setHiddenAttributes)==null||c.call(P,a),(v=(d=g==null?void 0:g.store)==null?void 0:d.setHiddenAttributes)==null||v.call(d,a)},[a]),React__default.default.createElement(PointCloudContext.Provider,{value:k},n)};exports.PointCloudContext=PointCloudContext,exports.PointCloudProvider=PointCloudProvider;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var lbUtils=require("@labelbee/lb-utils"),React=require("react"),lbAnnotation=require("@labelbee/lb-annotation"),ctx=require("../../store/ctx.js"),actionCreators=require("../../store/annotation/actionCreators.js"),index=require("../../store/annotatedBox/index.js");function _interopDefaultLegacy(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(n,e,i)=>e in n?__defProp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i,__spreadValues=(n,e)=>{for(var i in e||(e={}))__hasOwnProp.call(e,i)&&__defNormalProp(n,i,e[i]);if(__getOwnPropSymbols)for(var i of __getOwnPropSymbols(e))__propIsEnum.call(e,i)&&__defNormalProp(n,i,e[i]);return n},__spreadProps=(n,e)=>__defProps(n,__getOwnPropDescs(e)),__async=(n,e,i)=>new Promise((h,C)=>{var I=P=>{try{f(i.next(P))}catch(s){C(s)}},_=P=>{try{f(i.throw(P))}catch(s){C(s)}},f=P=>P.done?h(P.value):Promise.resolve(P.value).then(I,_);f((i=i.apply(n,e)).next())});const PointCloudContext=React__default.default.createContext({pointCloudBoxList:[],pointCloudSphereList:[],displayPointCloudList:[],displaySphereList:[],displayLineList:[],polygonList:[],lineList:[],selectedID:"",selectedIDs:[],highlightIDs:[],setHighlightIDs:()=>{},valid:!0,setSelectedIDs:()=>{},setPointCloudResult:()=>{},setPointCloudSphereList:()=>{},setPointCloudValid:()=>{},setTopViewInstance:()=>{},setSideViewInstance:()=>{},setBackViewInstance:()=>{},setMainViewInstance:()=>{},addSelectedID:()=>{},addHighlightID:()=>{},selectedAllBoxes:()=>{},addPointCloudBox:()=>[],addPointCloudSphere:()=>[],setPolygonList:()=>{},setLineList:()=>{},zoom:1,setZoom:()=>{},history:new lbAnnotation.ActionsHistory,hideAttributes:[],setHideAttributes:()=>{},toggleAttributesVisible:()=>{},reRender:()=>{},setAttrPanelLayout:()=>{},attrPanelLayout:"",syncAllViewPointCloudColor:()=>Promise.resolve(),defaultAttribute:"",setDefaultAttribute:()=>{},pointCloudPattern:lbAnnotation.EToolName.Rect,setPointCloudPattern:()=>{},selectSpecAttr:()=>{},globalPattern:lbUtils.EPointCloudPattern.Detection,setGlobalPattern:()=>{},setPtSegmentInstance:()=>{},segmentation:[],setSegmentation:()=>{},clearAllDetectionInstance:()=>{},highlight2DDataList:[],setHighlight2DDataList:()=>{},cuboidBoxIn2DView:!0,setCuboidBoxIn2DView:n=>{},imageSizes:{},cacheImageNodeSize:()=>{}}),PointCloudProvider=({children:n})=>{const[e,i]=React.useState([]),[h,C]=React.useState([]),[I,_]=React.useState([]),[f,P]=React.useState([]),[s,A]=React.useState([]),[m,x]=React.useState([]),[R,$]=React.useState(!0),[j,tt]=React.useState(!0),[z,et]=React.useState(1),[a,N]=React.useState(),[q,M]=React.useState(),[G,T]=React.useState(),[l,F]=React.useState(),[Z,ot]=React.useState(""),[V,nt]=React.useState(lbAnnotation.EToolName.Rect),it=React.useRef(new lbAnnotation.ActionsHistory).current,[c,B]=React.useState([]),[k,st]=React.useState(""),[O,lt]=React.useState(lbUtils.EPointCloudPattern.Detection),[S,U]=React.useState(void 0),[H,rt]=React.useState([]),[E,at]=React.useState([]),p=index(),[J,ut]=React.useState({}),dt=ctx.useDispatch(),ct=r=>{const{imgNode:u,path:d}=r;d&&u&&ut(g=>__spreadProps(__spreadValues({},g),{[d]:{width:u.width,height:u.height}}))},K=React.useMemo(()=>s.length===1?s[0]:"",[s]),D=React.useMemo(()=>{const r=e.find(t=>t.id===K),u=t=>{const o=e.concat(t);return i(o),o},d=t=>{const o=h.concat(t);return C(o),o},g=t=>{$(t!==!1)},v=t=>{t===void 0&&A([]),typeof t=="string"&&A([t]),Array.isArray(t)&&A(Array.from(new Set(t)))},vt=t=>{s.includes(t)?v(s.filter(o=>o!==t)):v([...s,t])},Pt=t=>{m.includes(t)?x([]):x([t])},gt=()=>{if(V===lbAnnotation.EToolName.Rect){const t=e.map(o=>o.id);v(t),a==null||a.pointCloud2dOperation.setSelectedIDs(t)}},ft=t=>{v(e.filter(o=>o.attribute===t).map(o=>o.id))},Q=e.filter(t=>!c.includes(t.attribute)),W=h.filter(t=>!c.includes(t.attribute)),X=f.filter(t=>t.attribute&&!c.includes(t.attribute)),ht=t=>{if(c.includes(t))B(c.filter(o=>o!==t));else{const o=c.concat(t);B(o)}},St=(t=Q,o=I,y=W,w=X,L=H)=>{var b;l==null||l.clearAllBox(),l==null||l.clearAllSphere(),a==null||a.updatePolygonList(t,o),a==null||a.updatePointList(y),a==null||a.updateLineList(w),l==null||l.generateBoxes(t),l==null||l.generateSpheres(y),(b=S==null?void 0:S.store)==null||b.updateCurrentSegment(L),Y(t)},bt=()=>{N(void 0),M(void 0),T(void 0),F(void 0)},Y=(t,o)=>__async(void 0,null,function*(){var y;if(!l)return;const w=l.pointCloudObject;if(!!w)try{const L=yield l.getHighlightIndexByMappingImgList({mappingImgList:o!=null?o:E,points:w.geometry.attributes.position.array}),b=yield l==null?void 0:l.highlightOriginPointCloud(t,L);return b&&((y=a==null?void 0:a.pointCloudInstance)==null||y.updateColor(b)),b}catch(L){console.error(L)}});return{selectedID:K,pointCloudBoxList:e,pointCloudSphereList:h,displayPointCloudList:Q,displaySphereList:W,displayLineList:X,selectedIDs:s,setPointCloudResult:i,setSelectedIDs:v,addPointCloudBox:u,addPointCloudSphere:d,setPointCloudSphereList:C,valid:R,selectedPointCloudBox:r,setPointCloudValid:g,addSelectedID:vt,addHighlightID:Pt,selectedAllBoxes:gt,topViewInstance:a,setTopViewInstance:N,sideViewInstance:q,setSideViewInstance:M,backViewInstance:G,setBackViewInstance:T,mainViewInstance:l,setMainViewInstance:F,polygonList:I,setPolygonList:_,lineList:f,setLineList:P,zoom:z,setZoom:et,history:it,toggleAttributesVisible:ht,hideAttributes:c,setHideAttributes:B,reRender:St,attrPanelLayout:k,setAttrPanelLayout:st,syncAllViewPointCloudColor:Y,defaultAttribute:Z,setDefaultAttribute:ot,pointCloudPattern:V,setPointCloudPattern:nt,selectSpecAttr:ft,globalPattern:O,setGlobalPattern:t=>{O!==t&&(dt(actionCreators.ChangeSave),lt(t),t===lbUtils.EPointCloudPattern.Detection&&U(void 0))},ptSegmentInstance:S,setPtSegmentInstance:U,segmentation:H,setSegmentation:rt,clearAllDetectionInstance:bt,highlight2DDataList:E,setHighlight2DDataList:at,cuboidBoxIn2DView:j,setCuboidBoxIn2DView:tt,imageSizes:J,cacheImageNodeSize:ct,highlightIDs:m,setHighlightIDs:x}},[R,s,e,h,I,f,a,q,G,l,z,c,k,Z,V,O,S,H,E,j,J,m]);React.useEffect(()=>{var r,u,d;(r=p==null?void 0:p.setPointCloudBoxList)==null||r.call(p,e),(u=p==null?void 0:p.setHighlightIDs)==null||u.call(p,m),(d=p==null?void 0:p.setSelectedIDs)==null||d.call(p,s)},[e,s,m]),React.useEffect(()=>{var r;(r=p==null?void 0:p.setPtCtx)==null||r.call(p,D)},[D]);const pt=()=>{const r=e.filter(v=>c.includes(v.attribute)),{setSelectedIDs:u,reRender:d}=D,g=r.map(v=>v.id);g.length>0&&u(s.filter(v=>!g.includes(v))),d()};return React.useEffect(()=>{var r,u,d,g;pt(),(u=(r=a==null?void 0:a.toolInstance)==null?void 0:r.setHiddenAttributes)==null||u.call(r,c),(g=(d=S==null?void 0:S.store)==null?void 0:d.setHiddenAttributes)==null||g.call(d,c)},[c]),React__default.default.createElement(PointCloudContext.Provider,{value:D},n)};exports.PointCloudContext=PointCloudContext,exports.PointCloudProvider=PointCloudProvider;
@@ -1 +1 @@
1
- "use strict";var dom=require("../../utils/dom.js"),index$3=require("../../views/MainView/toolFooter/index.js"),index$4=require("../../views/MainView/toolFooter/ZoomController/index.js"),icons=require("@ant-design/icons"),lbAnnotation=require("@labelbee/lb-annotation"),lbUtils=require("@labelbee/lb-utils"),React=require("react"),PointCloudContext=require("./PointCloudContext.js"),useRotate=require("./hooks/useRotate.js"),useSingleBox=require("./hooks/useSingleBox.js"),PointCloudLayout=require("./PointCloudLayout.js"),PointCloudInfos=require("./PointCloudInfos.js"),usePolygon=require("./hooks/usePolygon.js"),useSphere=require("./hooks/useSphere.js"),useZoom=require("./hooks/useZoom.js"),antd=require("antd"),map=require("../../store/annotation/map.js"),reactRedux=require("react-redux"),usePointCloudViews=require("./hooks/usePointCloudViews.js"),useSize=require("../../hooks/useSize.js"),reactI18next=require("react-i18next"),ctx=require("../../store/ctx.js"),index=require("../../utils/index.js"),ToolUtils=require("../../utils/ToolUtils.js"),_=require("lodash"),index$2=require("./components/PointCloudSizeSlider/index.js"),useHistory=require("./hooks/useHistory.js"),index$1=require("./components/TitleButton/index.js");function _interopDefaultLegacy(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var React__default=_interopDefaultLegacy(React),___default=_interopDefaultLegacy(_),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(o,i,l)=>i in o?__defProp(o,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[i]=l,__spreadValues=(o,i)=>{for(var l in i||(i={}))__hasOwnProp.call(i,l)&&__defNormalProp(o,l,i[l]);if(__getOwnPropSymbols)for(var l of __getOwnPropSymbols(i))__propIsEnum.call(i,l)&&__defNormalProp(o,l,i[l]);return o},__spreadProps=(o,i)=>__defProps(o,__getOwnPropDescs(i));const{EPolygonPattern,EToolName}=lbAnnotation.cTool,{ESortDirection}=lbAnnotation.cAnnotation,EKeyCode=lbAnnotation.cKeyCode.default,TransferCanvas2WorldOffset=(o,i,l=1)=>{const{width:C,height:c}=i,w={x:o.x+C*l/2,y:o.y+c*l/2},g={x:i.width/2,y:i.height/2};return{offsetX:(g.x-w.x)/l,offsetY:-(g.y-w.y)/l}},TopViewToolbar=({currentData:o})=>{var i,l;const{zoom:C,zoomIn:c,zoomOut:w,initialPosition:g}=useZoom.useZoom(),{selectNextBox:V,selectPrevBox:S}=useSingleBox.useSingleBox(),{switchToNextSphere:y}=useSphere.useSphere(),{updateRotate:P}=useRotate.useRotate({currentData:o}),x=React__default.default.useContext(PointCloudContext.PointCloudContext),{topViewInstance:E}=x,I=(l=(i=x==null?void 0:x.topViewInstance)==null?void 0:i.toolScheduler)==null?void 0:l.getCurrentToolName(),p=2,e=()=>{P(-p)},a=()=>{P(p)},f=()=>{P(180)};return React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement(index$2,{onChange:L=>{var h;(h=E==null?void 0:E.pointCloudInstance)==null||h.updatePointSize({customSize:L})}}),React__default.default.createElement("span",{onClick:a,className:dom.getClassName("point-cloud","rotate-reserve")}),React__default.default.createElement("span",{onClick:e,className:dom.getClassName("point-cloud","rotate")}),React__default.default.createElement("span",{onClick:f,className:dom.getClassName("point-cloud","rotate-180")}),React__default.default.createElement(index$3.FooterDivider,null),React__default.default.createElement(icons.UpSquareOutlined,{onClick:()=>{if(I===EToolName.Point){y(ESortDirection.descend);return}S(!0)},className:dom.getClassName("point-cloud","prev")}),React__default.default.createElement(icons.DownSquareOutlined,{onClick:()=>{if(I===EToolName.Point){y(ESortDirection.ascend);return}V(!0)},className:dom.getClassName("point-cloud","next")}),React__default.default.createElement(index$3.FooterDivider,null),React__default.default.createElement(index$4.ZoomController,{initialPosition:g,zoomIn:c,zoomOut:w,zoom:C}))},ZAxisSlider=({setZAxisLimit:o,zAxisLimit:i,checkMode:l})=>l?null:React__default.default.createElement("div",{style:{position:"absolute",top:128,right:8,height:"50%",zIndex:20}},React__default.default.createElement(antd.Slider,{vertical:!0,step:.5,max:10,min:.5,defaultValue:i,onAfterChange:C=>{o(C)}})),PointCloudTopView=({currentData:o,imgList:i,stepInfo:l,drawLayerSlot:C,checkMode:c,intelligentFit:w,setIsEnlargeTopView:g,isEnlargeTopView:V,onExitZoom:S,highlightAttribute:y})=>{var P,x;const[E,I]=React.useState({zoom:1,currentPos:{x:0,y:0}}),p=React.useRef(null),e=React__default.default.useContext(PointCloudContext.PointCloudContext),a=useSize(p),f=index.jsonParser(l.config),{setZoom:L,syncTopviewToolZoom:h}=useZoom.useZoom(),{hideAttributes:B}=e,{addPolygon:D,deletePolygon:R}=usePolygon.usePolygon(),{deletePointCloudSphere:U}=useSphere.useSphere(),{deletePointCloudBox:Z,changeValidByID:z}=useSingleBox.useSingleBox(),[b,H]=React.useState(10),{t:k}=reactI18next.useTranslation(),m=usePointCloudViews.usePointCloudViews(),{pushHistoryWithList:F}=useHistory.useHistory();React.useLayoutEffect(()=>{if(!e.topViewInstance&&p.current&&(o==null?void 0:o.url)&&(o==null?void 0:o.result)){const n={width:p.current.clientWidth,height:p.current.clientHeight},r=new lbAnnotation.PointCloudAnnotation({container:p.current,size:n,pcdPath:o.url,config:__spreadProps(__spreadValues({},f),{pointCloudPattern:e.pointCloudPattern}),checkMode:c,toolName:ToolUtils.getPointCloudToolList(),proxyMode:c});e.setTopViewInstance(r)}},[o]),React.useEffect(()=>{if(!a||!e.topViewInstance||!e.sideViewInstance)return;const{toolInstance:n}=e.topViewInstance;n.singleOn("dataUpdated",(t,s)=>{const d=___default.default.cloneDeep(t).map(u=>__spreadProps(__spreadValues({},u),{pointList:lbUtils.PointCloudUtils.pointListTransferCanvas2World(u.pointList,a)}));e.setSelectedIDs(s),e.setLineList(d),F({lineList:d})}),n.singleOn("pointCreated",(t,s)=>{m.topViewAddSphere({newPoint:t,size:a,trackConfigurable:f.trackConfigurable,zoom:s})}),n.singleOn("pointDeleted",t=>{U(t)}),n.singleOn("pointSelected",t=>{e.setSelectedIDs([t])}),n.singleOn("updatePointByDrag",(t,s)=>{var d;(d=m.topViewUpdatePoint)==null||d.call(m,t,a)}),n.singleOn("polygonCreated",(t,s)=>{if(n.pattern===EPolygonPattern.Normal||!(o==null?void 0:o.url)){const d=__spreadProps(__spreadValues({},t),{pointList:t.pointList.map(u=>lbUtils.PointCloudUtils.transferCanvas2World(u,a))});D(d),e.setSelectedIDs(B.includes(t.attribute)?"":t.id);return}m.topViewAddBox({polygon:t,size:a,imgList:i,trackConfigurable:f.trackConfigurable,zoom:s,intelligentFit:w})}),n.singleOn("deletedObject",({id:t})=>{Z(t),R(t)}),n.singleOn("deleteSelectedIDs",()=>{e.setSelectedIDs([])}),n.singleOn("addSelectedIDs",t=>{e.addSelectedID(t)}),n.singleOn("setSelectedIDs",t=>{e.setSelectedIDs(t)}),n.singleOn("updatePolygonByDrag",t=>{var s;(s=m.topViewUpdateBox)==null||s.call(m,t,a)});const r=t=>{var s;const d=z(t);d&&e.syncAllViewPointCloudColor(d),e.polygonList.find(u=>u.id===t)&&((s=e.topViewInstance)==null||s.toolInstance.setPolygonValidAndRender(t,!0))};return n.on("validUpdate",r),()=>{n.unbind("validUpdate",r)}},[e,a,o,m,e.polygonList,e.lineList,(P=e.topViewInstance)==null?void 0:P.toolInstance]),React.useEffect(()=>{var n,r;if(!(a==null?void 0:a.width)||!e.topViewInstance)return;const t=(r=(n=f==null?void 0:f.attributeList)==null?void 0:n[0])==null?void 0:r.value;t&&e.topViewInstance.toolInstance.setDefaultAttribute(t),e.topViewInstance.initSize(a),e.topViewInstance.updatePolygonList(e.displayPointCloudList,e.polygonList),e.topViewInstance.updatePointList(e.displaySphereList),e.topViewInstance.updateLineList(e.displayLineList);const{topViewInstance:{pointCloudInstance:s,toolInstance:d}}=e;d.singleOn("renderZoom",(u,v)=>{const{offsetX:O,offsetY:q}=TransferCanvas2WorldOffset(v,a,u);if(s.camera.zoom=u,v){const{x:j,y:T,z:N}=s.initCameraPosition;s.camera.position.set(j+q,T-O,N)}s.camera.updateProjectionMatrix(),s.render(),L(u),h(v,u,a),I({zoom:u,currentPos:v})}),d.singleOn("dragMove",({currentPos:u,zoom:v})=>{const{offsetX:O,offsetY:q}=TransferCanvas2WorldOffset(u,a,v);s.camera.zoom=v;const{x:j,y:T,z:N}=s.initCameraPosition;s.camera.position.set(j+q,T-O,N),s.render(),h(u,v,a),I({zoom:v,currentPos:u})})},[a,e.topViewInstance,(x=e.topViewInstance)==null?void 0:x.toolInstance]),React.useEffect(()=>{var n,r;(r=(n=e.topViewInstance)==null?void 0:n.pointCloudInstance)==null||r.applyZAxisPoints(b)},[b]),React.useEffect(()=>{m.topViewSelectedChanged({})},[e.selectedIDs]),React.useEffect(()=>(window.addEventListener("keydown",A),()=>{window.removeEventListener("keydown",A)}),[]);const A=n=>{const{keyCode:r}=n;r===EKeyCode.Esc&&S()};return React.useEffect(()=>{var n,r,t;(t=(r=(n=e.topViewInstance)==null?void 0:n.pointCloud2dOperation)==null?void 0:r.setHighlightAttribute)==null||t.call(r,y)},[e.topViewInstance,y]),React__default.default.createElement(PointCloudLayout.PointCloudContainer,{className:dom.getClassName("point-cloud-container","top-view"),title:V?React__default.default.createElement("div",{style:{display:"flex",alignItems:"center",position:"relative"}},React__default.default.createElement(icons.LeftOutlined,{style:{cursor:"pointer",marginRight:"12px"},onClick:()=>{S()}}),React__default.default.createElement("span",null,k("TopView")),React__default.default.createElement(PointCloudInfos.BoxInfos,{checkMode:c,config:f,style:{display:"flex",position:"initial",margin:"0px 20px"}})):React__default.default.createElement(index$1,{title:k("TopView"),onClick:()=>{g(!0)}}),toolbar:React__default.default.createElement(TopViewToolbar,{currentData:o})},React__default.default.createElement("div",{style:{position:"relative",flex:1}},React__default.default.createElement("div",{style:{width:"100%",height:"100%"},ref:p},C==null?void 0:C(E)),!V&&React__default.default.createElement(PointCloudInfos.BoxInfos,{checkMode:c,config:f}),React__default.default.createElement(ZAxisSlider,{checkMode:c,zAxisLimit:b,setZAxisLimit:H}),React__default.default.createElement(PointCloudInfos.PointCloudValidity,null)))};var PointCloudTopView$1=reactRedux.connect(map.a2MapStateToProps,null,null,{context:ctx.LabelBeeContext})(PointCloudTopView);module.exports=PointCloudTopView$1;
1
+ "use strict";var dom=require("../../utils/dom.js"),index$3=require("../../views/MainView/toolFooter/index.js"),index$4=require("../../views/MainView/toolFooter/ZoomController/index.js"),icons=require("@ant-design/icons"),lbAnnotation=require("@labelbee/lb-annotation"),lbUtils=require("@labelbee/lb-utils"),React=require("react"),PointCloudContext=require("./PointCloudContext.js"),useRotate=require("./hooks/useRotate.js"),useSingleBox=require("./hooks/useSingleBox.js"),PointCloudLayout=require("./PointCloudLayout.js"),PointCloudInfos=require("./PointCloudInfos.js"),usePolygon=require("./hooks/usePolygon.js"),useSphere=require("./hooks/useSphere.js"),useZoom=require("./hooks/useZoom.js"),antd=require("antd"),map=require("../../store/annotation/map.js"),reactRedux=require("react-redux"),usePointCloudViews=require("./hooks/usePointCloudViews.js"),useSize=require("../../hooks/useSize.js"),reactI18next=require("react-i18next"),ctx=require("../../store/ctx.js"),index=require("../../utils/index.js"),ToolUtils=require("../../utils/ToolUtils.js"),_=require("lodash"),index$2=require("./components/PointCloudSizeSlider/index.js"),useHistory=require("./hooks/useHistory.js"),index$1=require("./components/TitleButton/index.js");function _interopDefaultLegacy(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var React__default=_interopDefaultLegacy(React),___default=_interopDefaultLegacy(_),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(o,l,s)=>l in o?__defProp(o,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[l]=s,__spreadValues=(o,l)=>{for(var s in l||(l={}))__hasOwnProp.call(l,s)&&__defNormalProp(o,s,l[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(l))__propIsEnum.call(l,s)&&__defNormalProp(o,s,l[s]);return o},__spreadProps=(o,l)=>__defProps(o,__getOwnPropDescs(l));const{EPolygonPattern,EToolName}=lbAnnotation.cTool,{ESortDirection}=lbAnnotation.cAnnotation,EKeyCode=lbAnnotation.cKeyCode.default,TransferCanvas2WorldOffset=(o,l,s=1)=>{const{width:C,height:c}=l,w={x:o.x+C*s/2,y:o.y+c*s/2},g={x:l.width/2,y:l.height/2};return{offsetX:(g.x-w.x)/s,offsetY:-(g.y-w.y)/s}},TopViewToolbar=({currentData:o})=>{var l,s;const{zoom:C,zoomIn:c,zoomOut:w,initialPosition:g}=useZoom.useZoom(),{selectNextBox:V,selectPrevBox:S}=useSingleBox.useSingleBox(),{switchToNextSphere:y}=useSphere.useSphere(),{updateRotate:P}=useRotate.useRotate({currentData:o}),x=React__default.default.useContext(PointCloudContext.PointCloudContext),{topViewInstance:E}=x,I=(s=(l=x==null?void 0:x.topViewInstance)==null?void 0:l.toolScheduler)==null?void 0:s.getCurrentToolName(),p=2,e=()=>{P(-p)},r=()=>{P(p)},f=()=>{P(180)};return React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement(index$2,{onChange:L=>{var h;(h=E==null?void 0:E.pointCloudInstance)==null||h.updatePointSize({customSize:L})}}),React__default.default.createElement("span",{onClick:r,className:dom.getClassName("point-cloud","rotate-reserve")}),React__default.default.createElement("span",{onClick:e,className:dom.getClassName("point-cloud","rotate")}),React__default.default.createElement("span",{onClick:f,className:dom.getClassName("point-cloud","rotate-180")}),React__default.default.createElement(index$3.FooterDivider,null),React__default.default.createElement(icons.UpSquareOutlined,{onClick:()=>{if(I===EToolName.Point){y(ESortDirection.descend);return}S(!0)},className:dom.getClassName("point-cloud","prev")}),React__default.default.createElement(icons.DownSquareOutlined,{onClick:()=>{if(I===EToolName.Point){y(ESortDirection.ascend);return}V(!0)},className:dom.getClassName("point-cloud","next")}),React__default.default.createElement(index$3.FooterDivider,null),React__default.default.createElement(index$4.ZoomController,{initialPosition:g,zoomIn:c,zoomOut:w,zoom:C}))},ZAxisSlider=({setZAxisLimit:o,zAxisLimit:l,checkMode:s})=>s?null:React__default.default.createElement("div",{style:{position:"absolute",top:128,right:8,height:"50%",zIndex:20}},React__default.default.createElement(antd.Slider,{vertical:!0,step:.5,max:10,min:.5,defaultValue:l,onAfterChange:C=>{o(C)}})),PointCloudTopView=({currentData:o,imgList:l,stepInfo:s,drawLayerSlot:C,checkMode:c,intelligentFit:w,setIsEnlargeTopView:g,isEnlargeTopView:V,onExitZoom:S,highlightAttribute:y})=>{var P,x;const[E,I]=React.useState({zoom:1,currentPos:{x:0,y:0}}),p=React.useRef(null),e=React__default.default.useContext(PointCloudContext.PointCloudContext),r=useSize(p),f=index.jsonParser(s.config),{setZoom:L,syncTopviewToolZoom:h}=useZoom.useZoom(),{hideAttributes:D}=e,{addPolygon:B,deletePolygon:R}=usePolygon.usePolygon(),{deletePointCloudSphere:U}=useSphere.useSphere(),{deletePointCloudBox:Z,changeValidByID:z}=useSingleBox.useSingleBox(),[b,H]=React.useState(10),{t:k}=reactI18next.useTranslation(),m=usePointCloudViews.usePointCloudViews(),{pushHistoryWithList:F}=useHistory.useHistory();React.useLayoutEffect(()=>{if(!e.topViewInstance&&p.current&&(o==null?void 0:o.url)&&(o==null?void 0:o.result)){const n={width:p.current.clientWidth,height:p.current.clientHeight},a=new lbAnnotation.PointCloudAnnotation({container:p.current,size:n,pcdPath:o.url,config:__spreadProps(__spreadValues({},f),{pointCloudPattern:e.pointCloudPattern}),checkMode:c,toolName:ToolUtils.getPointCloudToolList(),proxyMode:c});e.setTopViewInstance(a)}},[o]),React.useEffect(()=>{if(!r||!e.topViewInstance||!e.sideViewInstance)return;const{toolInstance:n}=e.topViewInstance;n.singleOn("dataUpdated",(t,i)=>{const d=___default.default.cloneDeep(t).map(u=>__spreadProps(__spreadValues({},u),{pointList:lbUtils.PointCloudUtils.pointListTransferCanvas2World(u.pointList,r)}));e.setSelectedIDs(i),e.setLineList(d),F({lineList:d})}),n.singleOn("pointCreated",(t,i)=>{m.topViewAddSphere({newPoint:t,size:r,trackConfigurable:f.trackConfigurable,zoom:i})}),n.singleOn("pointDeleted",t=>{U(t)}),n.singleOn("pointSelected",t=>{e.setSelectedIDs([t])}),n.singleOn("updatePointByDrag",(t,i)=>{var d;(d=m.topViewUpdatePoint)==null||d.call(m,t,r)}),n.singleOn("polygonCreated",(t,i)=>{if(n.pattern===EPolygonPattern.Normal||!(o==null?void 0:o.url)){const d=__spreadProps(__spreadValues({},t),{pointList:t.pointList.map(u=>lbUtils.PointCloudUtils.transferCanvas2World(u,r))});B(d),e.setSelectedIDs(D.includes(t.attribute)?"":t.id);return}m.topViewAddBox({polygon:t,size:r,imgList:l,trackConfigurable:f.trackConfigurable,zoom:i,intelligentFit:w})}),n.singleOn("deletedObject",({id:t})=>{Z(t),R(t)}),n.singleOn("deleteSelectedIDs",()=>{e.setSelectedIDs([])}),n.singleOn("addSelectedIDs",t=>{e.addSelectedID(t)}),n.singleOn("setSelectedIDs",t=>{e.setSelectedIDs(t)}),n.singleOn("updatePolygonByDrag",t=>{var i;(i=m.topViewUpdateBox)==null||i.call(m,t,r)});const a=t=>{var i;const d=z(t);d&&e.syncAllViewPointCloudColor(d),e.polygonList.find(u=>u.id===t)&&((i=e.topViewInstance)==null||i.toolInstance.setPolygonValidAndRender(t,!0))};return n.on("validUpdate",a),()=>{n.unbind("validUpdate",a)}},[e,r,o,m,e.polygonList,e.lineList,(P=e.topViewInstance)==null?void 0:P.toolInstance]),React.useEffect(()=>{var n,a;if(!(r==null?void 0:r.width)||!e.topViewInstance)return;const t=(a=(n=f==null?void 0:f.attributeList)==null?void 0:n[0])==null?void 0:a.value;t&&e.topViewInstance.toolInstance.setDefaultAttribute(t),e.topViewInstance.initSize(r),e.topViewInstance.updatePolygonList(e.displayPointCloudList,e.polygonList),e.topViewInstance.updatePointList(e.displaySphereList),e.topViewInstance.updateLineList(e.displayLineList);const{topViewInstance:{pointCloudInstance:i,toolInstance:d}}=e;d.singleOn("renderZoom",(u,v)=>{const{offsetX:O,offsetY:q}=TransferCanvas2WorldOffset(v,r,u);if(i.camera.zoom=u,v){const{x:j,y:T,z:N}=i.initCameraPosition;i.camera.position.set(j+q,T-O,N)}i.camera.updateProjectionMatrix(),i.render(),L(u),h(v,u,r),I({zoom:u,currentPos:v})}),d.singleOn("dragMove",({currentPos:u,zoom:v})=>{const{offsetX:O,offsetY:q}=TransferCanvas2WorldOffset(u,r,v);i.camera.zoom=v;const{x:j,y:T,z:N}=i.initCameraPosition;i.camera.position.set(j+q,T-O,N),i.render(),h(u,v,r),I({zoom:v,currentPos:u})})},[r,e.topViewInstance,(x=e.topViewInstance)==null?void 0:x.toolInstance]),React.useEffect(()=>{var n,a;(a=(n=e.topViewInstance)==null?void 0:n.pointCloudInstance)==null||a.applyZAxisPoints(b)},[b]),React.useEffect(()=>{var n,a,t,i;m.topViewSelectedChanged({}),(i=(t=(a=(n=e.topViewInstance)==null?void 0:n.toolInstance)==null?void 0:a.selection)==null?void 0:t.hardSetSelectedIDs)==null||i.call(t,e.selectedIDs)},[e.selectedIDs]),React.useEffect(()=>(window.addEventListener("keydown",A),()=>{window.removeEventListener("keydown",A)}),[]);const A=n=>{const{keyCode:a}=n;a===EKeyCode.Esc&&S()};return React.useEffect(()=>{var n,a,t;(t=(a=(n=e.topViewInstance)==null?void 0:n.pointCloud2dOperation)==null?void 0:a.setHighlightAttribute)==null||t.call(a,y)},[e.topViewInstance,y]),React__default.default.createElement(PointCloudLayout.PointCloudContainer,{className:dom.getClassName("point-cloud-container","top-view"),title:V?React__default.default.createElement("div",{style:{display:"flex",alignItems:"center",position:"relative"}},React__default.default.createElement(icons.LeftOutlined,{style:{cursor:"pointer",marginRight:"12px"},onClick:()=>{S()}}),React__default.default.createElement("span",null,k("TopView")),React__default.default.createElement(PointCloudInfos.BoxInfos,{checkMode:c,config:f,style:{display:"flex",position:"initial",margin:"0px 20px"}})):React__default.default.createElement(index$1,{title:k("TopView"),onClick:()=>{g(!0)}}),toolbar:React__default.default.createElement(TopViewToolbar,{currentData:o})},React__default.default.createElement("div",{style:{position:"relative",flex:1}},React__default.default.createElement("div",{style:{width:"100%",height:"100%"},ref:p},C==null?void 0:C(E)),!V&&React__default.default.createElement(PointCloudInfos.BoxInfos,{checkMode:c,config:f}),React__default.default.createElement(ZAxisSlider,{checkMode:c,zAxisLimit:b,setZAxisLimit:H}),React__default.default.createElement(PointCloudInfos.PointCloudValidity,null)))};var PointCloudTopView$1=reactRedux.connect(map.a2MapStateToProps,null,null,{context:ctx.LabelBeeContext})(PointCloudTopView);module.exports=PointCloudTopView$1;
@@ -0,0 +1 @@
1
+ "use strict";var React=require("react"),index=require("../../index.js");function _interopDefaultLegacy(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(r,e,t)=>e in r?__defProp(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,__spreadValues=(r,e)=>{for(var t in e||(e={}))__hasOwnProp.call(e,t)&&__defNormalProp(r,t,e[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(e))__propIsEnum.call(e,t)&&__defNormalProp(r,t,e[t]);return r},__spreadProps=(r,e)=>__defProps(r,__getOwnPropDescs(e)),OverallTagList=r=>{var e;const t=((e=r==null?void 0:r.inputList)==null?void 0:e.filter(a=>a==null?void 0:a.isOverall))||[];return React__default.default.createElement(index,__spreadProps(__spreadValues({},r),{inputList:t}))};module.exports=OverallTagList;
@@ -0,0 +1 @@
1
+ "use strict";var React=require("react"),index=require("../../index.js");function _interopDefaultLegacy(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(r,e,t)=>e in r?__defProp(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,__spreadValues=(r,e)=>{for(var t in e||(e={}))__hasOwnProp.call(e,t)&&__defNormalProp(r,t,e[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(e))__propIsEnum.call(e,t)&&__defNormalProp(r,t,e[t]);return r},__spreadProps=(r,e)=>__defProps(r,__getOwnPropDescs(e)),PortionTagList=r=>{var e;const t=((e=r==null?void 0:r.inputList)==null?void 0:e.filter(a=>!(a==null?void 0:a.isOverall)))||[];return React__default.default.createElement(index,__spreadProps(__spreadValues({},r),{inputList:t}))};module.exports=PortionTagList;
@@ -0,0 +1 @@
1
+ "use strict";var React=require("react"),antd=require("antd"),index_module=require("./index.module.scss.js"),index=require("../longText/index.js"),classNames=require("classnames");function _interopDefaultLegacy(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var React__default=_interopDefaultLegacy(React),classNames__default=_interopDefaultLegacy(classNames);const{CheckableTag}=antd.Tag,CheckBoxList=({tagItem:a,selectedTags:d,handleChange:c,disabeledAll:o})=>{var r;const s=o,{isMulti:u,subSelected:n=[],value:i}=a,t=i;return u?React__default.default.createElement(React__default.default.Fragment,null,n.map(e=>{var l,v;return React__default.default.createElement(CheckableTag,{key:e==null?void 0:e.value,checked:(l=d[t])==null?void 0:l.includes(e==null?void 0:e.value),onChange:m=>{s||c({key:t,tag:e==null?void 0:e.value,checked:m})},className:classNames__default.default({[`${index_module.disabled}`]:s,[`${index_module.active}`]:s&&((v=d[t])==null?void 0:v.includes(e==null?void 0:e.value))})},React__default.default.createElement("span",{className:index_module.tagItem},React__default.default.createElement(index,{text:e==null?void 0:e.key,openByText:!0})))})):React__default.default.createElement(antd.Radio.Group,{onChange:e=>{c({key:t,tag:e.target.value,checked:e.target.checked,isRadio:!0})},value:(r=d[t])==null?void 0:r[0]},n.map(e=>React__default.default.createElement(antd.Radio,{value:e==null?void 0:e.value,key:e==null?void 0:e.value,disabled:s},React__default.default.createElement("span",{className:index_module.tagItem},React__default.default.createElement(index,{text:e==null?void 0:e.key,openByText:!0})))))},TagList=a=>{const{selectedTags:d,updateValue:c,disabeledAll:o,inputList:r=[]}=a,s=u=>{const{key:n,checked:i,tag:t,isRadio:e}=u;let l=d[n]||[];if(e&&(l=[]),i){if(l==null?void 0:l.includes(t))return;l.push(t)}else!i&&(l==null?void 0:l.includes(t))&&(l=l.filter(m=>m!==t));c({key:n,value:l})};return(r==null?void 0:r.length)>0?React__default.default.createElement("div",{className:index_module.tagList},r.map((u,n)=>React__default.default.createElement(antd.Row,{key:n,className:index_module.content},React__default.default.createElement(antd.Col,{span:4,className:index_module.left},u==null?void 0:u.key),React__default.default.createElement(antd.Col,{span:20,className:index_module.right},React__default.default.createElement(CheckBoxList,{selectedTags:d,handleChange:s,tagItem:u,disabeledAll:o}))))):null};module.exports=TagList;
@@ -0,0 +1 @@
1
+ "use strict";var styles={tagList:"index-module_tagList__cvWor",content:"index-module_content__Jy4jf",left:"index-module_left__r1ebR",right:"index-module_right__RHSL5",tagItem:"index-module_tagItem__hicyz",disabled:"index-module_disabled__lpoBn",active:"index-module_active__8fZjL"};module.exports=styles;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EStepType=void 0,function(o){o[o.Check=0]="Check",o[o.ANNOTATION=1]="ANNOTATION",o[o.QUALITY_INSPECTION=2]="QUALITY_INSPECTION",o[o.PRE_ANNOTATION=3]="PRE_ANNOTATION",o[o.MANUAL_CORRECTION=4]="MANUAL_CORRECTION"}(exports.EStepType||(exports.EStepType={})),exports.ESubmitType=void 0,function(o){o[o.Backward=1]="Backward",o[o.Forward=2]="Forward",o[o.Jump=3]="Jump",o[o.Quit=4]="Quit",o[o.Export=5]="Export",o[o.StepChanged=6]="StepChanged",o[o.Save=7]="Save",o[o.BatchUpdateTrackID=8]="BatchUpdateTrackID",o[o.BatchUpdateImgList=9]="BatchUpdateImgList",o[o.SyncImgList=10001]="SyncImgList",o[o.SyncCurrentPageData=10002]="SyncCurrentPageData"}(exports.ESubmitType||(exports.ESubmitType={}));const prefix="bee",componentCls=`${prefix}-component`;exports.EDataFormatType=void 0,function(o){o.Default="default",o.Markdown="markdown"}(exports.EDataFormatType||(exports.EDataFormatType={})),exports.ELLMDataType=void 0,function(o){o.Picture="picture",o.Text="text",o.None="none"}(exports.ELLMDataType||(exports.ELLMDataType={}));const TOOL_PANEL_KEY={Tool:"tool",Remark:"remark"};exports.TOOL_PANEL_KEY=TOOL_PANEL_KEY,exports.componentCls=componentCls,exports.prefix=prefix;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EStepType=void 0,function(o){o[o.Check=0]="Check",o[o.ANNOTATION=1]="ANNOTATION",o[o.QUALITY_INSPECTION=2]="QUALITY_INSPECTION",o[o.PRE_ANNOTATION=3]="PRE_ANNOTATION",o[o.MANUAL_CORRECTION=4]="MANUAL_CORRECTION"}(exports.EStepType||(exports.EStepType={})),exports.ESubmitType=void 0,function(o){o[o.Backward=1]="Backward",o[o.Forward=2]="Forward",o[o.Jump=3]="Jump",o[o.Quit=4]="Quit",o[o.Export=5]="Export",o[o.StepChanged=6]="StepChanged",o[o.Save=7]="Save",o[o.BatchUpdateTrackID=8]="BatchUpdateTrackID",o[o.BatchUpdateImgList=9]="BatchUpdateImgList",o[o.SyncImgList=10001]="SyncImgList",o[o.SyncCurrentPageData=10002]="SyncCurrentPageData"}(exports.ESubmitType||(exports.ESubmitType={}));const prefix="bee",componentCls=`${prefix}-component`;exports.EDataFormatType=void 0,function(o){o.Default="default",o.Markdown="markdown"}(exports.EDataFormatType||(exports.EDataFormatType={})),exports.ELLMDataType=void 0,function(o){o.Picture="picture",o.Text="text",o.None="none"}(exports.ELLMDataType||(exports.ELLMDataType={})),exports.componentCls=componentCls,exports.prefix=prefix;
package/dist/index.css CHANGED
@@ -24,6 +24,39 @@
24
24
  .index-module_imgView__wmxDk .index-module_item__-80YI .index-module_image__V49oW .ant-image {
25
25
  display: flex;
26
26
  }
27
+ .index-module_annotatedBox__gmg-f {
28
+ padding: 24px;
29
+ border-bottom: 1px solid #eee;
30
+ }
31
+ .index-module_annotatedBox__gmg-f .index-module_tag__wIcdd {
32
+ color: #666;
33
+ background-color: #f3f4ff;
34
+ border-color: transparent;
35
+ cursor: pointer;
36
+ position: relative;
37
+ }
38
+ .index-module_annotatedBox__gmg-f .index-module_tag__wIcdd.index-module_disabled__OuTHq {
39
+ color: #ccc;
40
+ background-color: #f5f5f5;
41
+ cursor: not-allowed;
42
+ }
43
+ .index-module_annotatedBox__gmg-f .index-module_tag__wIcdd.index-module_selected__UhwdY {
44
+ color: #fff;
45
+ background-color: #666fff;
46
+ }
47
+ .index-module_annotatedBox__gmg-f .index-module_tag__wIcdd .index-module_highlight__g25J2 {
48
+ position: absolute;
49
+ right: -5px;
50
+ top: -5px;
51
+ }
52
+ .index-module_container__RwV5P {
53
+ padding: 12px 20px;
54
+ }
55
+ .index-module_container__RwV5P .index-module_content__vHpS9 {
56
+ display: flex;
57
+ justify-content: space-between;
58
+ margin-top: 4px;
59
+ }
27
60
  .index-module_latexEditor__0fK8G {
28
61
  line-height: 32px;
29
62
  background-color: #ededed;
@@ -99,6 +132,41 @@
99
132
  .index-module_outputDisplay__5dS48 .index-module_content__Iml6l .markdown-body {
100
133
  font-size: 14px;
101
134
  }
135
+ .index-module_tagList__cvWor {
136
+ padding: 0px 16px 16px 16px;
137
+ }
138
+ .index-module_tagList__cvWor .index-module_content__Jy4jf {
139
+ display: flex;
140
+ flex-wrap: nowrap;
141
+ margin-top: 16px;
142
+ }
143
+ .index-module_tagList__cvWor .index-module_left__r1ebR {
144
+ display: flex;
145
+ align-items: center;
146
+ }
147
+ .index-module_tagList__cvWor .index-module_right__RHSL5 {
148
+ display: flex;
149
+ flex-wrap: wrap;
150
+ }
151
+ .index-module_tagList__cvWor .index-module_right__RHSL5 .ant-tag-checkable {
152
+ border: 1px solid #D9D9D9;
153
+ margin: 4px;
154
+ display: flex;
155
+ }
156
+ .index-module_tagList__cvWor .index-module_right__RHSL5 .index-module_tagItem__hicyz {
157
+ display: flex;
158
+ max-width: 60px;
159
+ }
160
+ .index-module_tagList__cvWor .index-module_right__RHSL5 .index-module_disabled__lpoBn {
161
+ animation: none;
162
+ transition: none;
163
+ background: transparent;
164
+ }
165
+ .index-module_tagList__cvWor .index-module_right__RHSL5 .index-module_active__8fZjL {
166
+ background-color: #4689ff;
167
+ border-color: #4689ff;
168
+ color: #fff;
169
+ }
102
170
  .index-module_form__rwjRm {
103
171
  margin-bottom: 16px;
104
172
  }
@@ -1363,7 +1431,6 @@
1363
1431
  max-height: calc(100vh - 61px);
1364
1432
  display: flex;
1365
1433
  flex-direction: column;
1366
- max-height: 300px;
1367
1434
  overflow-y: auto;
1368
1435
  }
1369
1436
  .bee-sidebar .sensebee-radio-group .ant-radio-wrapper,
@@ -2805,6 +2872,7 @@
2805
2872
  background-color: #ffffff;
2806
2873
  overflow-y: auto;
2807
2874
  flex: auto;
2875
+ position: relative;
2808
2876
  }
2809
2877
  .bee-LLMView .ant-layout {
2810
2878
  flex: 1;
@@ -2827,7 +2895,7 @@
2827
2895
  width: 100%;
2828
2896
  }
2829
2897
  .bee-LLMView .bee-LLMView-tag {
2830
- color: #666FFF;
2898
+ color: #666fff;
2831
2899
  background: #eeefff;
2832
2900
  height: 20px;
2833
2901
  padding: 0px 8px;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var index$1=require("./components/AnnotationView/index.js"),pointCloudAnnotationView=require("./components/AnnotationView/pointCloudAnnotationView.js"),index$2=require("./components/LLMToolView/questionView/index.js"),index$3=require("./components/NLPToolView/textContent/index.js"),lbUtils=require("@labelbee/lb-utils"),React=require("react"),reactI18next=require("react-i18next"),reactRedux=require("react-redux"),App=require("./App.js"),configureStore=require("./configureStore.js"),actionCreators=require("./store/annotation/actionCreators.js"),TagToolInstanceAdaptorI18nProvider=require("./components/videoAnnotate/videoTagTool/TagToolInstanceAdaptorI18nProvider.js"),PointCloudContext=require("./components/pointCloudView/PointCloudContext.js"),ctx=require("./store/ctx.js"),index$5=require("./components/predictTracking/predictTrackingIcon/index.js"),index$4=require("./components/LLMToolView/index.js"),index$6=require("./views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js"),index$7=require("./components/measureCanvas/index.js"),index$8=require("./constant/index.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t));const store=configureStore(),OutputApp=(e,t)=>{const[r,a]=React.useState();return React.useImperativeHandle(t,()=>({toolInstance:r,annotationEngine:store.getState().annotation.annotationEngine,pageBackwardActions:()=>store.dispatch(actionCreators.PageBackward()),pageForwardActions:()=>store.dispatch(actionCreators.PageForward()),pageJump:o=>{const n=~~o-1;store.dispatch(actionCreators.PageJump(n))},hello:()=>alert("hello labelBee!!!")}),[r]),React__default.default.createElement(reactRedux.Provider,{store,context:ctx.LabelBeeContext},React__default.default.createElement(reactI18next.I18nextProvider,{i18n:lbUtils.i18n},React__default.default.createElement(PointCloudContext.PointCloudProvider,null,React__default.default.createElement(App,__spreadProps(__spreadValues({},e),{setToolInstance:o=>{var n;a(o),(n=e.onLoad)==null||n.call(e,{toolInstance:o})}})))))};var index=React__default.default.forwardRef(OutputApp);exports.AnnotationView=index$1,exports.PointCloudAnnotationView=pointCloudAnnotationView,exports.QuestionView=index$2.default,exports.TextContent=index$3,Object.defineProperty(exports,"i18n",{enumerable:!0,get:function(){return lbUtils.i18n}}),exports.VideoTagTool=TagToolInstanceAdaptorI18nProvider.VideoTagTool,exports.PredictTracking=index$5,exports.LLMToolView=index$4,exports.SwitchCuboidBoxIn2DView=index$6,exports.MeasureCanvas=index$7,Object.defineProperty(exports,"EDataFormatType",{enumerable:!0,get:function(){return index$8.EDataFormatType}}),Object.defineProperty(exports,"ELLMDataType",{enumerable:!0,get:function(){return index$8.ELLMDataType}}),Object.defineProperty(exports,"EStepType",{enumerable:!0,get:function(){return index$8.EStepType}}),Object.defineProperty(exports,"ESubmitType",{enumerable:!0,get:function(){return index$8.ESubmitType}}),exports.TOOL_PANEL_KEY=index$8.TOOL_PANEL_KEY,exports.componentCls=index$8.componentCls,exports.prefix=index$8.prefix,exports.default=index,exports.store=store;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var index$1=require("./components/AnnotationView/index.js"),pointCloudAnnotationView=require("./components/AnnotationView/pointCloudAnnotationView.js"),index$2=require("./components/LLMToolView/questionView/index.js"),index$3=require("./components/NLPToolView/textContent/index.js"),lbUtils=require("@labelbee/lb-utils"),React=require("react"),reactI18next=require("react-i18next"),reactRedux=require("react-redux"),App=require("./App.js"),configureStore=require("./configureStore.js"),actionCreators=require("./store/annotation/actionCreators.js"),TagToolInstanceAdaptorI18nProvider=require("./components/videoAnnotate/videoTagTool/TagToolInstanceAdaptorI18nProvider.js"),PointCloudContext=require("./components/pointCloudView/PointCloudContext.js"),ctx=require("./store/ctx.js"),index$5=require("./components/predictTracking/predictTrackingIcon/index.js"),index$4=require("./components/LLMToolView/index.js"),index$6=require("./views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js"),index$7=require("./components/measureCanvas/index.js"),index$8=require("./views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.js"),index$9=require("./views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.js"),index$a=require("./constant/index.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t));const store=configureStore(),OutputApp=(e,t)=>{const[r,a]=React.useState();return React.useImperativeHandle(t,()=>({toolInstance:r,annotationEngine:store.getState().annotation.annotationEngine,pageBackwardActions:()=>store.dispatch(actionCreators.PageBackward()),pageForwardActions:()=>store.dispatch(actionCreators.PageForward()),pageJump:o=>{const n=~~o-1;store.dispatch(actionCreators.PageJump(n))},hello:()=>alert("hello labelBee!!!")}),[r]),React__default.default.createElement(reactRedux.Provider,{store,context:ctx.LabelBeeContext},React__default.default.createElement(reactI18next.I18nextProvider,{i18n:lbUtils.i18n},React__default.default.createElement(PointCloudContext.PointCloudProvider,null,React__default.default.createElement(App,__spreadProps(__spreadValues({},e),{setToolInstance:o=>{var n;a(o),(n=e.onLoad)==null||n.call(e,{toolInstance:o})}})))))};var index=React__default.default.forwardRef(OutputApp);exports.AnnotationView=index$1,exports.PointCloudAnnotationView=pointCloudAnnotationView,exports.QuestionView=index$2.default,exports.TextContent=index$3,Object.defineProperty(exports,"i18n",{enumerable:!0,get:function(){return lbUtils.i18n}}),exports.VideoTagTool=TagToolInstanceAdaptorI18nProvider.VideoTagTool,exports.PredictTracking=index$5,exports.LLMToolView=index$4,exports.SwitchCuboidBoxIn2DView=index$6,exports.MeasureCanvas=index$7,exports.AnnotatedBox=index$8,exports.FindTrackIDIndex=index$9.FindTrackIDIndexInCheckMode,Object.defineProperty(exports,"EDataFormatType",{enumerable:!0,get:function(){return index$a.EDataFormatType}}),Object.defineProperty(exports,"ELLMDataType",{enumerable:!0,get:function(){return index$a.ELLMDataType}}),Object.defineProperty(exports,"EStepType",{enumerable:!0,get:function(){return index$a.EStepType}}),Object.defineProperty(exports,"ESubmitType",{enumerable:!0,get:function(){return index$a.ESubmitType}}),exports.componentCls=index$a.componentCls,exports.prefix=index$a.prefix,exports.default=index,exports.store=store;
@@ -0,0 +1 @@
1
+ "use strict";var zustand=require("zustand");const useAnnotatedBoxStore=zustand.create(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}))}));module.exports=useAnnotatedBoxStore;
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
+ import { DrawLayerSlot } from '@/types/main';
2
3
  interface IProps {
3
4
  checkMode?: boolean;
4
5
  annotation?: any;
5
6
  showTips?: boolean;
6
7
  tips?: string;
8
+ drawLayerSlot?: DrawLayerSlot;
7
9
  }
8
10
  declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
9
11
  children?: React.ReactNode;
@@ -1,17 +1,10 @@
1
1
  import React from 'react';
2
- import { ILLMToolConfig, IAnswerList } from '@/components/LLMToolView/types';
2
+ import { ILLMToolConfig, IAnswerList, IConfigUpdate } from '@/components/LLMToolView/types';
3
3
  interface IProps {
4
4
  list?: IAnswerList[];
5
- checkMode?: boolean;
5
+ disabeledAll?: boolean;
6
6
  LLMConfig?: ILLMToolConfig;
7
- updateValue: ({ order, value, key, }: {
8
- order: number;
9
- value: number | string | {
10
- key: string;
11
- value: number | boolean;
12
- };
13
- key?: string;
14
- }) => void;
7
+ updateValue: (value: IConfigUpdate) => void;
15
8
  }
16
9
  declare const AnswerList: (props: IProps) => React.JSX.Element;
17
10
  export default AnswerList;
@@ -4,7 +4,7 @@ interface IProps {
4
4
  setSortList: (value: IAnswerSort[][]) => void;
5
5
  sortList: IAnswerSort[][];
6
6
  waitSortList: IWaitAnswerSort[];
7
- checkMode?: boolean;
7
+ disabeledAll?: boolean;
8
8
  }
9
9
  declare const AnswerSort: (props: IProps) => React.JSX.Element;
10
10
  export default AnswerSort;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  interface IProps {
3
3
  title: string;
4
4
  selectValue?: boolean;
5
- isDisableAll?: boolean;
5
+ disabeledAll?: boolean;
6
6
  updateValue: (changeValue: boolean) => void;
7
7
  }
8
8
  declare const DetermineGroup: (props: IProps) => React.JSX.Element;
@@ -3,7 +3,7 @@ interface IProps {
3
3
  title: React.ReactNode;
4
4
  score?: number;
5
5
  selectScore?: number;
6
- isDisableAll?: boolean;
6
+ disabeledAll?: boolean;
7
7
  updateScore: (score: number) => void;
8
8
  }
9
9
  declare const ScoreGroupButton: (props: IProps) => React.JSX.Element;
@@ -4,7 +4,7 @@ interface IProps {
4
4
  newAnswer?: string;
5
5
  textEditObject: ITextList;
6
6
  updateValue: (changeValue: string) => void;
7
- checkMode?: boolean;
7
+ disabeledAll?: boolean;
8
8
  answerIndex: number;
9
9
  }
10
10
  declare const TextEditor: (props: IProps) => React.JSX.Element;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ILLMToolConfig, ITextList } from '@/components/LLMToolView/types';
3
3
  interface IProps {
4
4
  textAttribute: ITextList[];
5
- checkMode?: boolean;
5
+ disabeledAll?: boolean;
6
6
  LLMConfig?: ILLMToolConfig;
7
7
  setText: (value: ITextList[]) => void;
8
8
  }
@@ -4,7 +4,5 @@ interface IProps {
4
4
  dispatch: any;
5
5
  checkMode?: boolean;
6
6
  }
7
- declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
8
- children?: React.ReactNode;
9
- }, "annotation" | "dispatch">>;
7
+ declare const _default: import("react-redux").ConnectedComponent<(props: IProps) => React.JSX.Element, import("react-redux").Omit<IProps, "annotation" | "dispatch">>;
10
8
  export default _default;
@@ -20,6 +20,7 @@ export interface IAnswerList {
20
20
  };
21
21
  newAnswer?: string;
22
22
  url?: string;
23
+ tagList?: ISelectedTags;
23
24
  }
24
25
  export interface IModelAPIAnswer {
25
26
  id: string;
@@ -52,6 +53,8 @@ export interface ILLMToolConfig {
52
53
  };
53
54
  isTextEdit: boolean;
54
55
  textEdit: ITextList[];
56
+ tagInputListConfigurable: boolean;
57
+ inputList?: IInputList[];
55
58
  }
56
59
  export interface ITextList {
57
60
  textId?: string;
@@ -89,5 +92,29 @@ export interface ILLMBoxResult {
89
92
  id: number;
90
93
  sort?: number[][];
91
94
  textAttribute?: ITextList[];
95
+ valid: boolean;
96
+ tagList?: ISelectedTags;
97
+ }
98
+ export interface IInputList {
99
+ key: string;
100
+ value: string;
101
+ isMulti: boolean;
102
+ isOverall: boolean;
103
+ subSelected: Array<{
104
+ key: string;
105
+ value: string;
106
+ isDefault: boolean;
107
+ }>;
108
+ }
109
+ export interface ISelectedTags {
110
+ [key: string]: string[];
111
+ }
112
+ export interface IConfigUpdate {
113
+ order: number;
114
+ value: number | string | {
115
+ key: string;
116
+ value?: number | boolean | string[];
117
+ };
118
+ key?: string;
92
119
  }
93
120
  export {};
@@ -1,2 +1,16 @@
1
+ import { IAnswerList, IAnswerSort, ILLMBoxResult, ILLMToolConfig, IWaitAnswerSort, IInputList, ISelectedTags } from '../types';
1
2
  export declare const getCurrentResultFromResultList: (result: string) => any;
2
3
  export declare const formatSort: (sortList: any) => any;
4
+ export declare const getTagResult: (inputList: IInputList[], result?: ISelectedTags) => {};
5
+ export declare const getWaitSortList: (answerList: IAnswerList[], result?: ILLMBoxResult) => {
6
+ newSort: IAnswerSort[][];
7
+ waitSorts: IWaitAnswerSort[];
8
+ };
9
+ export declare const initAnswerList: (initValue: IAnswerList[], LLMConfig?: ILLMToolConfig) => IAnswerList[];
10
+ export declare const getRenderDataByResult: (LLMConfig?: ILLMToolConfig, result?: ILLMBoxResult) => {
11
+ newSort: IAnswerSort[][];
12
+ waitSorts: IWaitAnswerSort[];
13
+ answerList: IAnswerList[];
14
+ tagList: ISelectedTags;
15
+ textAttribute: import("../types").ITextList[] | undefined;
16
+ };
@@ -1,13 +1,14 @@
1
1
  import React from 'react';
2
- import { IRemarkLayer } from './types';
2
+ import { IExtraLayer, ISelectText, IExtraData } from './types';
3
3
  interface IProps {
4
- activeToolPanel?: string;
5
4
  checkMode?: boolean;
6
5
  annotation?: any;
7
6
  showTips?: boolean;
8
7
  tips?: string;
9
- remarkLayer?: (value: IRemarkLayer) => void;
10
- remark: any;
8
+ extraLayer?: (value: IExtraLayer) => void;
9
+ extraData?: IExtraData;
10
+ onChangeAnnotation?: (v: ISelectText) => void;
11
+ customAnnotationData?: ISelectText;
11
12
  }
12
13
  declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
13
14
  children?: React.ReactNode;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @file extra mask
3
+ * @author lixinghua <lixinghua_vendor@sensetime.com>
4
+ * @date 2024.01.30
5
+ */
6
+ import React from 'react';
7
+ import { IExtraData, IExtraInterval } from '../types';
8
+ declare const _default: ({ splitIntervals, extraData, }: {
9
+ splitIntervals: IExtraInterval[];
10
+ extraData?: IExtraData | undefined;
11
+ }) => React.JSX.Element;
12
+ export default _default;
@@ -1,18 +1,16 @@
1
- import React from 'react';
2
- import { INLPToolConfig, ITextData, INLPTextAnnotation, IRemarkLayer } from '../types';
1
+ import React, { RefObject } from 'react';
2
+ import { INLPToolConfig, ITextData, INLPTextAnnotation, ISelectText, IExtraLayer, IExtraData } from '../types';
3
3
  interface IProps {
4
4
  highlightKey?: string;
5
5
  textData: ITextData[];
6
6
  textAnnotation: INLPTextAnnotation[];
7
7
  lang?: string;
8
- checkMode?: boolean;
9
8
  NLPConfig?: INLPToolConfig;
10
9
  answerHeaderSlot?: React.ReactDOM | string;
11
- onSelectionChange?: (text: string) => void;
12
- remarkLayer?: (values: IRemarkLayer) => void;
13
- remark?: any;
14
- isSourceView?: boolean;
15
- activeToolPanel?: string;
10
+ onSelectionChange?: (contentRef: RefObject<HTMLDivElement>, text: string) => void;
11
+ extraLayer?: (values: IExtraLayer) => void;
12
+ extraData?: IExtraData;
13
+ customAnnotationData?: ISelectText;
16
14
  }
17
15
  declare const WrapQuestionView: (props: IProps) => React.JSX.Element;
18
16
  export default WrapQuestionView;
@@ -48,28 +48,35 @@ export interface INLPInterval {
48
48
  }
49
49
  export interface ISelectText {
50
50
  id?: string;
51
- start?: number;
52
- end?: number;
53
- text?: string;
51
+ start: number;
52
+ end: number;
53
+ text: string;
54
+ endPosition?: React.CSSProperties;
54
55
  }
55
- export interface IRemarkLayer {
56
+ export interface IExtraLayer {
56
57
  style: React.CSSProperties | undefined;
57
58
  onClose: () => void;
58
- submitData: ISelectText;
59
+ submitData?: ISelectText;
59
60
  }
60
- export interface IRemarkInterval {
61
+ export interface IExtraInterval {
61
62
  start: number;
62
63
  end: number;
63
- remarkAnnotations?: IRemarkAnnotation[];
64
+ extraAnnotations?: IExtraInAnnotation[];
64
65
  text: string;
65
66
  attribute?: string;
66
67
  id?: string;
67
68
  }
68
- export interface IRemarkAnnotation {
69
- auditID: number;
69
+ export interface IExtraInAnnotation {
70
+ auditID?: number;
70
71
  text: string;
71
- id: string;
72
+ id?: string;
72
73
  start: number;
73
74
  end: number;
74
- uuid: string;
75
+ uuid?: string;
76
+ }
77
+ export interface IExtraData {
78
+ isShowRemark?: boolean;
79
+ hoverAuditID?: number;
80
+ editAuditID?: number;
81
+ displayRemarkList: IExtraInAnnotation[];
75
82
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @file Used to cover container and prompt
3
+ * @author lixinghua <lixinghua_vendor@sensetime.com>
4
+ * @date 2024.03.13
5
+ */
6
+ import React from 'react';
7
+ declare const _default: ({ message, style }: {
8
+ message: string;
9
+ style?: React.CSSProperties | undefined;
10
+ }) => React.JSX.Element;
11
+ export default _default;
@@ -38,8 +38,11 @@ export interface IPointCloudContext extends IPointCloudContextInstances, IPointC
38
38
  selectedPointCloudBox?: IPointCloudBox;
39
39
  setPointCloudValid: (valid?: boolean) => void;
40
40
  addSelectedID: (selectedID: string) => void;
41
+ addHighlightID: (highlightID: number) => void;
41
42
  selectedAllBoxes: () => void;
42
43
  selectedID: string;
44
+ highlightIDs: number[];
45
+ setHighlightIDs: (ids: number[]) => void;
43
46
  addPointCloudBox: (boxParams: IPointCloudBox) => IPointCloudBox[];
44
47
  addPointCloudSphere: (sphereParams: IPointCloudSphere) => IPointCloudSphere[];
45
48
  polygonList: IPolygonData[];
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ITagListProps } from '../../types';
3
+ declare const _default: (props: ITagListProps) => React.JSX.Element;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ITagListProps } from '../../types';
3
+ declare const _default: (props: ITagListProps) => React.JSX.Element;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ITagListProps } from './types';
3
+ declare const TagList: (props: ITagListProps) => React.JSX.Element | null;
4
+ export default TagList;
@@ -0,0 +1,23 @@
1
+ export interface IInputList {
2
+ key: string;
3
+ value: string;
4
+ isMulti: boolean;
5
+ isOverall: boolean;
6
+ subSelected: Array<{
7
+ key: string;
8
+ value: string;
9
+ isDefault: boolean;
10
+ }>;
11
+ }
12
+ export interface ISelectedTags {
13
+ [key: string]: string[];
14
+ }
15
+ export interface ITagListProps {
16
+ updateValue: (value: {
17
+ key: string;
18
+ value: string[];
19
+ }) => void;
20
+ inputList?: IInputList[];
21
+ selectedTags: ISelectedTags;
22
+ disabeledAll?: boolean;
23
+ }
@@ -29,7 +29,3 @@ export declare enum ELLMDataType {
29
29
  Text = "text",
30
30
  None = "none"
31
31
  }
32
- export declare const TOOL_PANEL_KEY: {
33
- Tool: string;
34
- Remark: string;
35
- };
@@ -11,11 +11,13 @@ import PredictTracking from '@/components/predictTracking';
11
11
  import LLMToolView from '@/components/LLMToolView';
12
12
  import SwitchCuboidBoxIn2DView from '@/views/MainView/toolFooter/SwitchCuboidBoxIn2DView';
13
13
  import MeasureCanvas from './components/measureCanvas';
14
+ import AnnotatedBox from './views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox';
15
+ import { FindTrackIDIndexInCheckMode as FindTrackIDIndex } from './views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex';
14
16
  export declare const store: import("redux").Store<{}, import("redux").Action<any>> & {
15
17
  dispatch: unknown;
16
18
  };
17
19
  declare const _default: React.ForwardRefExoticComponent<AppProps & React.RefAttributes<unknown>>;
18
20
  export default _default;
19
- export { AnnotationView, PointCloudAnnotationView, QuestionView, TextContent, LLMToolView, i18n, VideoTagTool, PredictTracking, SwitchCuboidBoxIn2DView, MeasureCanvas };
21
+ export { AnnotationView, PointCloudAnnotationView, QuestionView, TextContent, LLMToolView, i18n, VideoTagTool, PredictTracking, SwitchCuboidBoxIn2DView, MeasureCanvas, AnnotatedBox, FindTrackIDIndex, };
20
22
  export * from './constant';
21
23
  export * from './typeTem';