@labelbee/lb-components 1.10.0-alpha.2 → 1.10.0-alpha.3

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 (923) hide show
  1. package/dist/App.js +146 -1
  2. package/dist/App.js.map +1 -0
  3. package/dist/assets/annotation/common/icon_adapt.svg.js +6 -1
  4. package/dist/assets/annotation/common/icon_adapt.svg.js.map +1 -0
  5. package/dist/assets/annotation/common/icon_adapt_black.svg.js +6 -1
  6. package/dist/assets/annotation/common/icon_adapt_black.svg.js.map +1 -0
  7. package/dist/assets/annotation/common/icon_back.svg.js +6 -1
  8. package/dist/assets/annotation/common/icon_back.svg.js.map +1 -0
  9. package/dist/assets/annotation/common/icon_backA.svg.js +6 -1
  10. package/dist/assets/annotation/common/icon_backA.svg.js.map +1 -0
  11. package/dist/assets/annotation/common/icon_clear.svg.js +6 -1
  12. package/dist/assets/annotation/common/icon_clear.svg.js.map +1 -0
  13. package/dist/assets/annotation/common/icon_clearSmall.svg.js +6 -1
  14. package/dist/assets/annotation/common/icon_clearSmall.svg.js.map +1 -0
  15. package/dist/assets/annotation/common/icon_clearSmall_a.svg.js +6 -1
  16. package/dist/assets/annotation/common/icon_clearSmall_a.svg.js.map +1 -0
  17. package/dist/assets/annotation/common/icon_clear_a.svg.js +6 -1
  18. package/dist/assets/annotation/common/icon_clear_a.svg.js.map +1 -0
  19. package/dist/assets/annotation/common/icon_invalid.svg.js +6 -1
  20. package/dist/assets/annotation/common/icon_invalid.svg.js.map +1 -0
  21. package/dist/assets/annotation/common/icon_invalid_a.svg.js +6 -1
  22. package/dist/assets/annotation/common/icon_invalid_a.svg.js.map +1 -0
  23. package/dist/assets/annotation/common/icon_next.svg.js +6 -1
  24. package/dist/assets/annotation/common/icon_next.svg.js.map +1 -0
  25. package/dist/assets/annotation/common/icon_nextA.svg.js +6 -1
  26. package/dist/assets/annotation/common/icon_nextA.svg.js.map +1 -0
  27. package/dist/assets/annotation/common/icon_r.svg.js +6 -1
  28. package/dist/assets/annotation/common/icon_r.svg.js.map +1 -0
  29. package/dist/assets/annotation/common/icon_rA.svg.js +6 -1
  30. package/dist/assets/annotation/common/icon_rA.svg.js.map +1 -0
  31. package/dist/assets/annotation/common/icon_save.svg.js +6 -1
  32. package/dist/assets/annotation/common/icon_save.svg.js.map +1 -0
  33. package/dist/assets/annotation/common/icon_saveA.svg.js +6 -1
  34. package/dist/assets/annotation/common/icon_saveA.svg.js.map +1 -0
  35. package/dist/assets/annotation/image/brightness.svg.js +6 -1
  36. package/dist/assets/annotation/image/brightness.svg.js.map +1 -0
  37. package/dist/assets/annotation/image/contrast.svg.js +6 -1
  38. package/dist/assets/annotation/image/contrast.svg.js.map +1 -0
  39. package/dist/assets/annotation/image/icon_yuantu.svg.js +6 -1
  40. package/dist/assets/annotation/image/icon_yuantu.svg.js.map +1 -0
  41. package/dist/assets/annotation/image/saturation.svg.js +6 -1
  42. package/dist/assets/annotation/image/saturation.svg.js.map +1 -0
  43. package/dist/assets/annotation/lineTool/icon_line.svg.js +6 -1
  44. package/dist/assets/annotation/lineTool/icon_line.svg.js.map +1 -0
  45. package/dist/assets/annotation/lineTool/icon_line_a.svg.js +6 -1
  46. package/dist/assets/annotation/lineTool/icon_line_a.svg.js.map +1 -0
  47. package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +6 -1
  48. package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js.map +1 -0
  49. package/dist/assets/annotation/pointCloudTool/copy.svg.js +6 -1
  50. package/dist/assets/annotation/pointCloudTool/copy.svg.js.map +1 -0
  51. package/dist/assets/annotation/pointCloudTool/nextBox.svg.js +6 -1
  52. package/dist/assets/annotation/pointCloudTool/nextBox.svg.js.map +1 -0
  53. package/dist/assets/annotation/pointCloudTool/nodata.svg.js +6 -1
  54. package/dist/assets/annotation/pointCloudTool/nodata.svg.js.map +1 -0
  55. package/dist/assets/annotation/pointCloudTool/patse.svg.js +6 -1
  56. package/dist/assets/annotation/pointCloudTool/patse.svg.js.map +1 -0
  57. package/dist/assets/annotation/pointCloudTool/prevBox.svg.js +6 -1
  58. package/dist/assets/annotation/pointCloudTool/prevBox.svg.js.map +1 -0
  59. package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +6 -1
  60. package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js.map +1 -0
  61. package/dist/assets/annotation/pointCloudTool/selectAll.svg.js +6 -1
  62. package/dist/assets/annotation/pointCloudTool/selectAll.svg.js.map +1 -0
  63. package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js +6 -1
  64. package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js.map +1 -0
  65. package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js +6 -1
  66. package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js.map +1 -0
  67. package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +6 -1
  68. package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js.map +1 -0
  69. package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +6 -1
  70. package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js.map +1 -0
  71. package/dist/assets/annotation/pointTool/icon_point.svg.js +6 -1
  72. package/dist/assets/annotation/pointTool/icon_point.svg.js.map +1 -0
  73. package/dist/assets/annotation/pointTool/icon_point_a.svg.js +6 -1
  74. package/dist/assets/annotation/pointTool/icon_point_a.svg.js.map +1 -0
  75. package/dist/assets/annotation/polygonTool/icon_polygon.svg.js +6 -1
  76. package/dist/assets/annotation/polygonTool/icon_polygon.svg.js.map +1 -0
  77. package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js +6 -1
  78. package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js.map +1 -0
  79. package/dist/assets/annotation/rectTool/icon_rect.svg.js +6 -1
  80. package/dist/assets/annotation/rectTool/icon_rect.svg.js.map +1 -0
  81. package/dist/assets/annotation/rectTool/icon_rect_a.svg.js +6 -1
  82. package/dist/assets/annotation/rectTool/icon_rect_a.svg.js.map +1 -0
  83. package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +6 -1
  84. package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js.map +1 -0
  85. package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +6 -1
  86. package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js.map +1 -0
  87. package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +6 -1
  88. package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js.map +1 -0
  89. package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +6 -1
  90. package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js.map +1 -0
  91. package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +6 -1
  92. package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js.map +1 -0
  93. package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +6 -1
  94. package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js.map +1 -0
  95. package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +6 -1
  96. package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js.map +1 -0
  97. package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +6 -1
  98. package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js.map +1 -0
  99. package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +6 -1
  100. package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js.map +1 -0
  101. package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +6 -1
  102. package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js.map +1 -0
  103. package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +6 -1
  104. package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js.map +1 -0
  105. package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +6 -1
  106. package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js.map +1 -0
  107. package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +6 -1
  108. package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js.map +1 -0
  109. package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +6 -1
  110. package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js.map +1 -0
  111. package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +6 -1
  112. package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js.map +1 -0
  113. package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +6 -1
  114. package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js.map +1 -0
  115. package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +6 -1
  116. package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js.map +1 -0
  117. package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +6 -1
  118. package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js.map +1 -0
  119. package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +6 -1
  120. package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js.map +1 -0
  121. package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +6 -1
  122. package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js.map +1 -0
  123. package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +6 -1
  124. package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js.map +1 -0
  125. package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +6 -1
  126. package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js.map +1 -0
  127. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +6 -1
  128. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js.map +1 -0
  129. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +6 -1
  130. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js.map +1 -0
  131. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +6 -1
  132. package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js.map +1 -0
  133. package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +6 -1
  134. package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js.map +1 -0
  135. package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +6 -1
  136. package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js.map +1 -0
  137. package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +6 -1
  138. package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js.map +1 -0
  139. package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +6 -1
  140. package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js.map +1 -0
  141. package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +6 -1
  142. package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js.map +1 -0
  143. package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +6 -1
  144. package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js.map +1 -0
  145. package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +6 -1
  146. package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js.map +1 -0
  147. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +6 -1
  148. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js.map +1 -0
  149. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +6 -1
  150. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js.map +1 -0
  151. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +6 -1
  152. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js.map +1 -0
  153. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +6 -1
  154. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js.map +1 -0
  155. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +6 -1
  156. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js.map +1 -0
  157. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +6 -1
  158. package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js.map +1 -0
  159. package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +6 -1
  160. package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js.map +1 -0
  161. package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +6 -1
  162. package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js.map +1 -0
  163. package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +6 -1
  164. package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js.map +1 -0
  165. package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +6 -1
  166. package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js.map +1 -0
  167. package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +6 -1
  168. package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js.map +1 -0
  169. package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +6 -1
  170. package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js.map +1 -0
  171. package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +6 -1
  172. package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js.map +1 -0
  173. package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +6 -1
  174. package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js.map +1 -0
  175. package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +6 -1
  176. package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js.map +1 -0
  177. package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js +6 -1
  178. package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js.map +1 -0
  179. package/dist/assets/annotation/video/icon_keyboard_h.svg.js +6 -1
  180. package/dist/assets/annotation/video/icon_keyboard_h.svg.js.map +1 -0
  181. package/dist/assets/attributeIcon/eraser.svg.js +6 -1
  182. package/dist/assets/attributeIcon/eraser.svg.js.map +1 -0
  183. package/dist/assets/attributeIcon/eraser_a.svg.js +6 -1
  184. package/dist/assets/attributeIcon/eraser_a.svg.js.map +1 -0
  185. package/dist/assets/attributeIcon/pen.svg.js +6 -1
  186. package/dist/assets/attributeIcon/pen.svg.js.map +1 -0
  187. package/dist/assets/attributeIcon/pen_a.svg.js +6 -1
  188. package/dist/assets/attributeIcon/pen_a.svg.js.map +1 -0
  189. package/dist/assets/attributeIcon/zoomUp.svg.js +6 -1
  190. package/dist/assets/attributeIcon/zoomUp.svg.js.map +1 -0
  191. package/dist/assets/predictTracking/icon.svg.js +6 -1
  192. package/dist/assets/predictTracking/icon.svg.js.map +1 -0
  193. package/dist/assets/toolStyle/icon_border.svg.js +6 -1
  194. package/dist/assets/toolStyle/icon_border.svg.js.map +1 -0
  195. package/dist/assets/toolStyle/icon_borderColor.svg.js +6 -1
  196. package/dist/assets/toolStyle/icon_borderColor.svg.js.map +1 -0
  197. package/dist/assets/toolStyle/icon_opacityFill.svg.js +6 -1
  198. package/dist/assets/toolStyle/icon_opacityFill.svg.js.map +1 -0
  199. package/dist/assets/toolStyle/icon_opacityStroke.svg.js +6 -1
  200. package/dist/assets/toolStyle/icon_opacityStroke.svg.js.map +1 -0
  201. package/dist/components/AnnotationView/index.js +160 -1
  202. package/dist/components/AnnotationView/index.js.map +1 -0
  203. package/dist/components/AnnotationView/pointCloudAnnotationView.js +85 -1
  204. package/dist/components/AnnotationView/pointCloudAnnotationView.js.map +1 -0
  205. package/dist/components/annotationStepPopover/index.js +39 -1
  206. package/dist/components/annotationStepPopover/index.js.map +1 -0
  207. package/dist/components/attributeList/index.js +66 -1
  208. package/dist/components/attributeList/index.js.map +1 -0
  209. package/dist/components/checkboxList/index.js +39 -1
  210. package/dist/components/checkboxList/index.js.map +1 -0
  211. package/dist/components/colorTag/index.js +38 -1
  212. package/dist/components/colorTag/index.js.map +1 -0
  213. package/dist/components/customAntd/IconWithText/index.js +59 -1
  214. package/dist/components/customAntd/IconWithText/index.js.map +1 -0
  215. package/dist/components/customResizeHook/index.js +95 -1
  216. package/dist/components/customResizeHook/index.js.map +1 -0
  217. package/dist/components/fileException/FileError.js +61 -1
  218. package/dist/components/fileException/FileError.js.map +1 -0
  219. package/dist/components/fileException/FileInvalid.js +31 -1
  220. package/dist/components/fileException/FileInvalid.js.map +1 -0
  221. package/dist/components/fileException/index.js +38 -1
  222. package/dist/components/fileException/index.js.map +1 -0
  223. package/dist/components/pointCloudView/PointCloud2DView.js +153 -1
  224. package/dist/components/pointCloudView/PointCloud2DView.js.map +1 -0
  225. package/dist/components/pointCloudView/PointCloud3DView.js +234 -1
  226. package/dist/components/pointCloudView/PointCloud3DView.js.map +1 -0
  227. package/dist/components/pointCloudView/PointCloudBackView.js +138 -1
  228. package/dist/components/pointCloudView/PointCloudBackView.js.map +1 -0
  229. package/dist/components/pointCloudView/PointCloudContext.js +257 -1
  230. package/dist/components/pointCloudView/PointCloudContext.js.map +1 -0
  231. package/dist/components/pointCloudView/PointCloudInfos.js +146 -1
  232. package/dist/components/pointCloudView/PointCloudInfos.js.map +1 -0
  233. package/dist/components/pointCloudView/PointCloudLayout.js +28 -1
  234. package/dist/components/pointCloudView/PointCloudLayout.js.map +1 -0
  235. package/dist/components/pointCloudView/PointCloudListener.js +347 -1
  236. package/dist/components/pointCloudView/PointCloudListener.js.map +1 -0
  237. package/dist/components/pointCloudView/PointCloudSegment.js +63 -0
  238. package/dist/components/pointCloudView/PointCloudSegment.js.map +1 -0
  239. package/dist/components/pointCloudView/PointCloudSideView.js +135 -1
  240. package/dist/components/pointCloudView/PointCloudSideView.js.map +1 -0
  241. package/dist/components/pointCloudView/PointCloudTopView.js +339 -1
  242. package/dist/components/pointCloudView/PointCloudTopView.js.map +1 -0
  243. package/dist/components/pointCloudView/components/EmptyPage/index.js +24 -1
  244. package/dist/components/pointCloudView/components/EmptyPage/index.js.map +1 -0
  245. package/dist/components/pointCloudView/components/UnifyParamsModal/index.js +240 -1
  246. package/dist/components/pointCloudView/components/UnifyParamsModal/index.js.map +1 -0
  247. package/dist/components/pointCloudView/hooks/useAttribute.js +53 -1
  248. package/dist/components/pointCloudView/hooks/useAttribute.js.map +1 -0
  249. package/dist/components/pointCloudView/hooks/useBoxes.js +81 -1
  250. package/dist/components/pointCloudView/hooks/useBoxes.js.map +1 -0
  251. package/dist/components/pointCloudView/hooks/useConfig.js +33 -1
  252. package/dist/components/pointCloudView/hooks/useConfig.js.map +1 -0
  253. package/dist/components/pointCloudView/hooks/useHistory.js +173 -1
  254. package/dist/components/pointCloudView/hooks/useHistory.js.map +1 -0
  255. package/dist/components/pointCloudView/hooks/useLine.js +74 -1
  256. package/dist/components/pointCloudView/hooks/useLine.js.map +1 -0
  257. package/dist/components/pointCloudView/hooks/usePointCloudViews.js +759 -1
  258. package/dist/components/pointCloudView/hooks/usePointCloudViews.js.map +1 -0
  259. package/dist/components/pointCloudView/hooks/usePolygon.js +74 -1
  260. package/dist/components/pointCloudView/hooks/usePolygon.js.map +1 -0
  261. package/dist/components/pointCloudView/hooks/useRotate.js +47 -1
  262. package/dist/components/pointCloudView/hooks/useRotate.js.map +1 -0
  263. package/dist/components/pointCloudView/hooks/useSingleBox.js +176 -1
  264. package/dist/components/pointCloudView/hooks/useSingleBox.js.map +1 -0
  265. package/dist/components/pointCloudView/hooks/useSphere.js +51 -1
  266. package/dist/components/pointCloudView/hooks/useSphere.js.map +1 -0
  267. package/dist/components/pointCloudView/hooks/useStatus.js +92 -1
  268. package/dist/components/pointCloudView/hooks/useStatus.js.map +1 -0
  269. package/dist/components/pointCloudView/hooks/useZoom.js +42 -1
  270. package/dist/components/pointCloudView/hooks/useZoom.js.map +1 -0
  271. package/dist/components/pointCloudView/index.js +59 -1
  272. package/dist/components/pointCloudView/index.js.map +1 -0
  273. package/dist/components/predictTracking/index.js +8 -1
  274. package/dist/components/predictTracking/index.js.map +1 -0
  275. package/dist/components/predictTracking/predictTrackingIcon/index.js +97 -1
  276. package/dist/components/predictTracking/predictTrackingIcon/index.js.map +1 -0
  277. package/dist/components/predictTracking/previewResult/index.js +196 -1
  278. package/dist/components/predictTracking/previewResult/index.js.map +1 -0
  279. package/dist/components/predictTracking/previewResult/util.js +143 -1
  280. package/dist/components/predictTracking/previewResult/util.js.map +1 -0
  281. package/dist/components/videoAnnotate/index.js +50 -1
  282. package/dist/components/videoAnnotate/index.js.map +1 -0
  283. package/dist/components/videoPlayer/TagToolInstanceAdaptor.js +233 -1
  284. package/dist/components/videoPlayer/TagToolInstanceAdaptor.js.map +1 -0
  285. package/dist/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +40 -1
  286. package/dist/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js.map +1 -0
  287. package/dist/components/videoPlayer/VideoTagLayer.js +37 -1
  288. package/dist/components/videoPlayer/VideoTagLayer.js.map +1 -0
  289. package/dist/components/videoPlayer/components/controller/index.js +131 -1
  290. package/dist/components/videoPlayer/components/controller/index.js.map +1 -0
  291. package/dist/components/videoPlayer/index.js +267 -1
  292. package/dist/components/videoPlayer/index.js.map +1 -0
  293. package/dist/components/videoPlayer/utils.js +59 -1
  294. package/dist/components/videoPlayer/utils.js.map +1 -0
  295. package/dist/configureStore.js +16 -1
  296. package/dist/configureStore.js.map +1 -0
  297. package/dist/constant/index.js +32 -1
  298. package/dist/constant/index.js.map +1 -0
  299. package/dist/constant/styleString.js +6 -1
  300. package/dist/constant/styleString.js.map +1 -0
  301. package/dist/data/Style.js +113 -1
  302. package/dist/data/Style.js.map +1 -0
  303. package/dist/data/enums/AnnotationSize.js +39 -1
  304. package/dist/data/enums/AnnotationSize.js.map +1 -0
  305. package/dist/data/enums/ToolType.js +44 -1
  306. package/dist/data/enums/ToolType.js.map +1 -0
  307. package/dist/hooks/annotation.js +81 -1
  308. package/dist/hooks/annotation.js.map +1 -0
  309. package/dist/hooks/useRafState.js +21 -1
  310. package/dist/hooks/useRafState.js.map +1 -0
  311. package/dist/hooks/useRefCache.js +14 -1
  312. package/dist/hooks/useRefCache.js.map +1 -0
  313. package/dist/hooks/useSafeSate.js +22 -1
  314. package/dist/hooks/useSafeSate.js.map +1 -0
  315. package/dist/hooks/useSize.js +45 -1
  316. package/dist/hooks/useSize.js.map +1 -0
  317. package/dist/hooks/useUnmountedRef.js +17 -1
  318. package/dist/hooks/useUnmountedRef.js.map +1 -0
  319. package/dist/index.js +90 -1
  320. package/dist/index.js.map +1 -0
  321. package/dist/store/Actions.js +57 -1
  322. package/dist/store/Actions.js.map +1 -0
  323. package/dist/store/annotation/actionCreators.js +488 -1
  324. package/dist/store/annotation/actionCreators.js.map +1 -0
  325. package/dist/store/annotation/map.js +26 -1
  326. package/dist/store/annotation/map.js.map +1 -0
  327. package/dist/store/annotation/reducer.js +669 -1
  328. package/dist/store/annotation/reducer.js.map +1 -0
  329. package/dist/store/annotation/selectors.js +15 -1
  330. package/dist/store/annotation/selectors.js.map +1 -0
  331. package/dist/store/ctx.js +19 -1
  332. package/dist/store/ctx.js.map +1 -0
  333. package/dist/store/imgAttribute/actionCreators.js +27 -1
  334. package/dist/store/imgAttribute/actionCreators.js.map +1 -0
  335. package/dist/store/imgAttribute/reducer.js +44 -1
  336. package/dist/store/imgAttribute/reducer.js.map +1 -0
  337. package/dist/store/index.js +17 -1
  338. package/dist/store/index.js.map +1 -0
  339. package/dist/store/toolStyle/actionCreators.js +22 -1
  340. package/dist/store/toolStyle/actionCreators.js.map +1 -0
  341. package/dist/store/toolStyle/reducer.js +54 -1
  342. package/dist/store/toolStyle/reducer.js.map +1 -0
  343. package/dist/utils/AnnotationDataUtils.js +171 -1
  344. package/dist/utils/AnnotationDataUtils.js.map +1 -0
  345. package/dist/utils/ConfigUtils.js +22 -1
  346. package/dist/utils/ConfigUtils.js.map +1 -0
  347. package/dist/utils/PageOperator.js +99 -1
  348. package/dist/utils/PageOperator.js.map +1 -0
  349. package/dist/utils/StepUtils.js +29 -1
  350. package/dist/utils/StepUtils.js.map +1 -0
  351. package/dist/utils/TextUtils.js +45 -1
  352. package/dist/utils/TextUtils.js.map +1 -0
  353. package/dist/utils/ToolStyleUtils.js +96 -1
  354. package/dist/utils/ToolStyleUtils.js.map +1 -0
  355. package/dist/utils/ToolUtils.js +19 -1
  356. package/dist/utils/ToolUtils.js.map +1 -0
  357. package/dist/utils/data.js +77 -1
  358. package/dist/utils/data.js.map +1 -0
  359. package/dist/utils/dom.js +25 -1
  360. package/dist/utils/dom.js.map +1 -0
  361. package/dist/utils/index.js +39 -1
  362. package/dist/utils/index.js.map +1 -0
  363. package/dist/views/MainView/annotationOperation/index.js +175 -1
  364. package/dist/views/MainView/annotationOperation/index.js.map +1 -0
  365. package/dist/views/MainView/annotationTips/index.js +32 -1
  366. package/dist/views/MainView/annotationTips/index.js.map +1 -0
  367. package/dist/views/MainView/index.js +122 -1
  368. package/dist/views/MainView/index.js.map +1 -0
  369. package/dist/views/MainView/sidebar/AnnotationText/index.js +47 -1
  370. package/dist/views/MainView/sidebar/AnnotationText/index.js.map +1 -0
  371. package/dist/views/MainView/sidebar/ClearIcon/index.js +37 -1
  372. package/dist/views/MainView/sidebar/ClearIcon/index.js.map +1 -0
  373. package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +101 -1
  374. package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js.map +1 -0
  375. package/dist/views/MainView/sidebar/GeneralOperation/index.js +95 -1
  376. package/dist/views/MainView/sidebar/GeneralOperation/index.js.map +1 -0
  377. package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js +94 -1
  378. package/dist/views/MainView/sidebar/GeneralOperation/useOperationList.js.map +1 -0
  379. package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js +134 -1
  380. package/dist/views/MainView/sidebar/ImgAttributeInfo/index.js.map +1 -0
  381. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +128 -1
  382. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js.map +1 -0
  383. package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +253 -1
  384. package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js.map +1 -0
  385. package/dist/views/MainView/sidebar/ScribbleSidebar/index.js +64 -1
  386. package/dist/views/MainView/sidebar/ScribbleSidebar/index.js.map +1 -0
  387. package/dist/views/MainView/sidebar/SwitchAttributeList/index.js +79 -1
  388. package/dist/views/MainView/sidebar/SwitchAttributeList/index.js.map +1 -0
  389. package/dist/views/MainView/sidebar/TagSidebar/index.js +187 -1
  390. package/dist/views/MainView/sidebar/TagSidebar/index.js.map +1 -0
  391. package/dist/views/MainView/sidebar/TextAreaFormat/index.js +112 -1
  392. package/dist/views/MainView/sidebar/TextAreaFormat/index.js.map +1 -0
  393. package/dist/views/MainView/sidebar/TextToolSidebar/index.js +235 -1
  394. package/dist/views/MainView/sidebar/TextToolSidebar/index.js.map +1 -0
  395. package/dist/views/MainView/sidebar/ToolIcons.js +87 -1
  396. package/dist/views/MainView/sidebar/ToolIcons.js.map +1 -0
  397. package/dist/views/MainView/sidebar/ToolStyle/index.js +162 -1
  398. package/dist/views/MainView/sidebar/ToolStyle/index.js.map +1 -0
  399. package/dist/views/MainView/sidebar/index.js +156 -1
  400. package/dist/views/MainView/sidebar/index.js.map +1 -0
  401. package/dist/views/MainView/toolFooter/AnnotatedAttributes/index.js +211 -1
  402. package/dist/views/MainView/toolFooter/AnnotatedAttributes/index.js.map +1 -0
  403. package/dist/views/MainView/toolFooter/FooterPopover.js +54 -1
  404. package/dist/views/MainView/toolFooter/FooterPopover.js.map +1 -0
  405. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +149 -1
  406. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js.map +1 -0
  407. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +26 -1
  408. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js.map +1 -0
  409. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +226 -1
  410. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js.map +1 -0
  411. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +111 -1
  412. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js.map +1 -0
  413. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +55 -1
  414. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js.map +1 -0
  415. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +174 -1
  416. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js.map +1 -0
  417. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +117 -1
  418. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js.map +1 -0
  419. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +71 -1
  420. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js.map +1 -0
  421. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +18 -1
  422. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js.map +1 -0
  423. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +25 -1
  424. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js.map +1 -0
  425. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +18 -1
  426. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js.map +1 -0
  427. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +28 -1
  428. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js.map +1 -0
  429. package/dist/views/MainView/toolFooter/FooterTips/index.js +23 -1
  430. package/dist/views/MainView/toolFooter/FooterTips/index.js.map +1 -0
  431. package/dist/views/MainView/toolFooter/HiddenTips/index.js +45 -1
  432. package/dist/views/MainView/toolFooter/HiddenTips/index.js.map +1 -0
  433. package/dist/views/MainView/toolFooter/PageNumber/index.js +48 -1
  434. package/dist/views/MainView/toolFooter/PageNumber/index.js.map +1 -0
  435. package/dist/views/MainView/toolFooter/Pagination.js +91 -1
  436. package/dist/views/MainView/toolFooter/Pagination.js.map +1 -0
  437. package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +39 -1
  438. package/dist/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js.map +1 -0
  439. package/dist/views/MainView/toolFooter/ZoomController/index.js +72 -1
  440. package/dist/views/MainView/toolFooter/ZoomController/index.js.map +1 -0
  441. package/dist/views/MainView/toolFooter/index.js +135 -1
  442. package/dist/views/MainView/toolFooter/index.js.map +1 -0
  443. package/dist/views/MainView/toolHeader/ExportData/index.js +44 -1
  444. package/dist/views/MainView/toolHeader/ExportData/index.js.map +1 -0
  445. package/dist/views/MainView/toolHeader/StepSwitch/index.js +47 -1
  446. package/dist/views/MainView/toolHeader/StepSwitch/index.js.map +1 -0
  447. package/dist/views/MainView/toolHeader/SwitchPattern/index.js +59 -0
  448. package/dist/views/MainView/toolHeader/SwitchPattern/index.js.map +1 -0
  449. package/dist/views/MainView/toolHeader/headerOption/index.js +151 -1
  450. package/dist/views/MainView/toolHeader/headerOption/index.js.map +1 -0
  451. package/dist/views/MainView/toolHeader/index.js +180 -1
  452. package/dist/views/MainView/toolHeader/index.js.map +1 -0
  453. package/es/App.js +138 -1
  454. package/es/App.js.map +1 -0
  455. package/es/assets/annotation/common/icon_adapt.svg.js +4 -1
  456. package/es/assets/annotation/common/icon_adapt.svg.js.map +1 -0
  457. package/es/assets/annotation/common/icon_adapt_black.svg.js +4 -1
  458. package/es/assets/annotation/common/icon_adapt_black.svg.js.map +1 -0
  459. package/es/assets/annotation/common/icon_back.svg.js +4 -1
  460. package/es/assets/annotation/common/icon_back.svg.js.map +1 -0
  461. package/es/assets/annotation/common/icon_backA.svg.js +4 -1
  462. package/es/assets/annotation/common/icon_backA.svg.js.map +1 -0
  463. package/es/assets/annotation/common/icon_clear.svg.js +4 -1
  464. package/es/assets/annotation/common/icon_clear.svg.js.map +1 -0
  465. package/es/assets/annotation/common/icon_clearSmall.svg.js +4 -1
  466. package/es/assets/annotation/common/icon_clearSmall.svg.js.map +1 -0
  467. package/es/assets/annotation/common/icon_clearSmall_a.svg.js +4 -1
  468. package/es/assets/annotation/common/icon_clearSmall_a.svg.js.map +1 -0
  469. package/es/assets/annotation/common/icon_clear_a.svg.js +4 -1
  470. package/es/assets/annotation/common/icon_clear_a.svg.js.map +1 -0
  471. package/es/assets/annotation/common/icon_invalid.svg.js +4 -1
  472. package/es/assets/annotation/common/icon_invalid.svg.js.map +1 -0
  473. package/es/assets/annotation/common/icon_invalid_a.svg.js +4 -1
  474. package/es/assets/annotation/common/icon_invalid_a.svg.js.map +1 -0
  475. package/es/assets/annotation/common/icon_next.svg.js +4 -1
  476. package/es/assets/annotation/common/icon_next.svg.js.map +1 -0
  477. package/es/assets/annotation/common/icon_nextA.svg.js +4 -1
  478. package/es/assets/annotation/common/icon_nextA.svg.js.map +1 -0
  479. package/es/assets/annotation/common/icon_r.svg.js +4 -1
  480. package/es/assets/annotation/common/icon_r.svg.js.map +1 -0
  481. package/es/assets/annotation/common/icon_rA.svg.js +4 -1
  482. package/es/assets/annotation/common/icon_rA.svg.js.map +1 -0
  483. package/es/assets/annotation/common/icon_save.svg.js +4 -1
  484. package/es/assets/annotation/common/icon_save.svg.js.map +1 -0
  485. package/es/assets/annotation/common/icon_saveA.svg.js +4 -1
  486. package/es/assets/annotation/common/icon_saveA.svg.js.map +1 -0
  487. package/es/assets/annotation/image/brightness.svg.js +4 -1
  488. package/es/assets/annotation/image/brightness.svg.js.map +1 -0
  489. package/es/assets/annotation/image/contrast.svg.js +4 -1
  490. package/es/assets/annotation/image/contrast.svg.js.map +1 -0
  491. package/es/assets/annotation/image/icon_yuantu.svg.js +4 -1
  492. package/es/assets/annotation/image/icon_yuantu.svg.js.map +1 -0
  493. package/es/assets/annotation/image/saturation.svg.js +4 -1
  494. package/es/assets/annotation/image/saturation.svg.js.map +1 -0
  495. package/es/assets/annotation/lineTool/icon_line.svg.js +4 -1
  496. package/es/assets/annotation/lineTool/icon_line.svg.js.map +1 -0
  497. package/es/assets/annotation/lineTool/icon_line_a.svg.js +4 -1
  498. package/es/assets/annotation/lineTool/icon_line_a.svg.js.map +1 -0
  499. package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +4 -1
  500. package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js.map +1 -0
  501. package/es/assets/annotation/pointCloudTool/copy.svg.js +4 -1
  502. package/es/assets/annotation/pointCloudTool/copy.svg.js.map +1 -0
  503. package/es/assets/annotation/pointCloudTool/nextBox.svg.js +4 -1
  504. package/es/assets/annotation/pointCloudTool/nextBox.svg.js.map +1 -0
  505. package/es/assets/annotation/pointCloudTool/nodata.svg.js +4 -1
  506. package/es/assets/annotation/pointCloudTool/nodata.svg.js.map +1 -0
  507. package/es/assets/annotation/pointCloudTool/patse.svg.js +4 -1
  508. package/es/assets/annotation/pointCloudTool/patse.svg.js.map +1 -0
  509. package/es/assets/annotation/pointCloudTool/prevBox.svg.js +4 -1
  510. package/es/assets/annotation/pointCloudTool/prevBox.svg.js.map +1 -0
  511. package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +4 -1
  512. package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js.map +1 -0
  513. package/es/assets/annotation/pointCloudTool/selectAll.svg.js +4 -1
  514. package/es/assets/annotation/pointCloudTool/selectAll.svg.js.map +1 -0
  515. package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js +4 -1
  516. package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js.map +1 -0
  517. package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js +4 -1
  518. package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js.map +1 -0
  519. package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +4 -1
  520. package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js.map +1 -0
  521. package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +4 -1
  522. package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js.map +1 -0
  523. package/es/assets/annotation/pointTool/icon_point.svg.js +4 -1
  524. package/es/assets/annotation/pointTool/icon_point.svg.js.map +1 -0
  525. package/es/assets/annotation/pointTool/icon_point_a.svg.js +4 -1
  526. package/es/assets/annotation/pointTool/icon_point_a.svg.js.map +1 -0
  527. package/es/assets/annotation/polygonTool/icon_polygon.svg.js +4 -1
  528. package/es/assets/annotation/polygonTool/icon_polygon.svg.js.map +1 -0
  529. package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js +4 -1
  530. package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js.map +1 -0
  531. package/es/assets/annotation/rectTool/icon_rect.svg.js +4 -1
  532. package/es/assets/annotation/rectTool/icon_rect.svg.js.map +1 -0
  533. package/es/assets/annotation/rectTool/icon_rectPattern.svg.js +4 -0
  534. package/es/assets/annotation/rectTool/icon_rectPattern.svg.js.map +1 -0
  535. package/es/assets/annotation/rectTool/icon_rect_a.svg.js +4 -1
  536. package/es/assets/annotation/rectTool/icon_rect_a.svg.js.map +1 -0
  537. package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +4 -1
  538. package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js.map +1 -0
  539. package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +4 -1
  540. package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js.map +1 -0
  541. package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +4 -1
  542. package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js.map +1 -0
  543. package/es/assets/annotation/toolHotKeyIcon/icon_copyBackwardResult.svg.js +4 -0
  544. package/es/assets/annotation/toolHotKeyIcon/icon_copyBackwardResult.svg.js.map +1 -0
  545. package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +4 -1
  546. package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js.map +1 -0
  547. package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +4 -1
  548. package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js.map +1 -0
  549. package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +4 -1
  550. package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js.map +1 -0
  551. package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +4 -1
  552. package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js.map +1 -0
  553. package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +4 -1
  554. package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js.map +1 -0
  555. package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +4 -1
  556. package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js.map +1 -0
  557. package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +4 -1
  558. package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js.map +1 -0
  559. package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +4 -1
  560. package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js.map +1 -0
  561. package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +4 -1
  562. package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js.map +1 -0
  563. package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +4 -1
  564. package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js.map +1 -0
  565. package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +4 -1
  566. package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js.map +1 -0
  567. package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +4 -1
  568. package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js.map +1 -0
  569. package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +4 -1
  570. package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js.map +1 -0
  571. package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +4 -1
  572. package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js.map +1 -0
  573. package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +4 -1
  574. package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js.map +1 -0
  575. package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +4 -1
  576. package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js.map +1 -0
  577. package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +4 -1
  578. package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js.map +1 -0
  579. package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +4 -1
  580. package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js.map +1 -0
  581. package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +4 -1
  582. package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js.map +1 -0
  583. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +4 -1
  584. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js.map +1 -0
  585. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +4 -1
  586. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js.map +1 -0
  587. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +4 -1
  588. package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js.map +1 -0
  589. package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +4 -1
  590. package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js.map +1 -0
  591. package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +4 -1
  592. package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js.map +1 -0
  593. package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +4 -1
  594. package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js.map +1 -0
  595. package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +4 -1
  596. package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js.map +1 -0
  597. package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +4 -1
  598. package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js.map +1 -0
  599. package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +4 -1
  600. package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js.map +1 -0
  601. package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +4 -1
  602. package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js.map +1 -0
  603. package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +4 -1
  604. package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js.map +1 -0
  605. package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +4 -1
  606. package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js.map +1 -0
  607. package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +4 -1
  608. package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js.map +1 -0
  609. package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +4 -1
  610. package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js.map +1 -0
  611. package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +4 -1
  612. package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js.map +1 -0
  613. package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +4 -1
  614. package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js.map +1 -0
  615. package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +4 -1
  616. package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js.map +1 -0
  617. package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +4 -1
  618. package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js.map +1 -0
  619. package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +4 -1
  620. package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js.map +1 -0
  621. package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +4 -1
  622. package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js.map +1 -0
  623. package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +4 -1
  624. package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js.map +1 -0
  625. package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +4 -1
  626. package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js.map +1 -0
  627. package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +4 -1
  628. package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js.map +1 -0
  629. package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +4 -1
  630. package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js.map +1 -0
  631. package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +4 -1
  632. package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js.map +1 -0
  633. package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js +4 -1
  634. package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js.map +1 -0
  635. package/es/assets/annotation/video/icon_keyboard_h.svg.js +4 -1
  636. package/es/assets/annotation/video/icon_keyboard_h.svg.js.map +1 -0
  637. package/es/assets/attributeIcon/eraser.svg.js +4 -1
  638. package/es/assets/attributeIcon/eraser.svg.js.map +1 -0
  639. package/es/assets/attributeIcon/eraser_a.svg.js +4 -1
  640. package/es/assets/attributeIcon/eraser_a.svg.js.map +1 -0
  641. package/es/assets/attributeIcon/pen.svg.js +4 -1
  642. package/es/assets/attributeIcon/pen.svg.js.map +1 -0
  643. package/es/assets/attributeIcon/pen_a.svg.js +4 -1
  644. package/es/assets/attributeIcon/pen_a.svg.js.map +1 -0
  645. package/es/assets/attributeIcon/zoomUp.svg.js +4 -1
  646. package/es/assets/attributeIcon/zoomUp.svg.js.map +1 -0
  647. package/es/assets/cssIcon/annotation/icon_clearSmall.svg +10 -0
  648. package/es/assets/cssIcon/annotation/icon_clearSmall_a.svg +10 -0
  649. package/es/assets/cssIcon/slide_btn.svg +23 -0
  650. package/es/assets/predictTracking/icon.svg.js +4 -1
  651. package/es/assets/predictTracking/icon.svg.js.map +1 -0
  652. package/es/assets/toolStyle/icon_border.svg.js +4 -1
  653. package/es/assets/toolStyle/icon_border.svg.js.map +1 -0
  654. package/es/assets/toolStyle/icon_borderColor.svg.js +4 -1
  655. package/es/assets/toolStyle/icon_borderColor.svg.js.map +1 -0
  656. package/es/assets/toolStyle/icon_opacityFill.svg.js +4 -1
  657. package/es/assets/toolStyle/icon_opacityFill.svg.js.map +1 -0
  658. package/es/assets/toolStyle/icon_opacityStroke.svg.js +4 -1
  659. package/es/assets/toolStyle/icon_opacityStroke.svg.js.map +1 -0
  660. package/es/components/AnnotationView/index.js +154 -1
  661. package/es/components/AnnotationView/index.js.map +1 -0
  662. package/es/components/AnnotationView/pointCloudAnnotationView.js +79 -1
  663. package/es/components/AnnotationView/pointCloudAnnotationView.js.map +1 -0
  664. package/es/components/ImageError/index.js +53 -0
  665. package/es/components/ImageError/index.js.map +1 -0
  666. package/es/components/annotationStepPopover/index.js +33 -1
  667. package/es/components/annotationStepPopover/index.js.map +1 -0
  668. package/es/components/attributeList/index.js +57 -1
  669. package/es/components/attributeList/index.js.map +1 -0
  670. package/es/components/checkboxList/index.js +33 -1
  671. package/es/components/checkboxList/index.js.map +1 -0
  672. package/es/components/colorTag/index.js +30 -1
  673. package/es/components/colorTag/index.js.map +1 -0
  674. package/es/components/customAntd/IconWithText/index.js +53 -1
  675. package/es/components/customAntd/IconWithText/index.js.map +1 -0
  676. package/es/components/customResizeHook/index.js +84 -1
  677. package/es/components/customResizeHook/index.js.map +1 -0
  678. package/es/components/fileException/FileError.js +55 -1
  679. package/es/components/fileException/FileError.js.map +1 -0
  680. package/es/components/fileException/FileInvalid.js +25 -1
  681. package/es/components/fileException/FileInvalid.js.map +1 -0
  682. package/es/components/fileException/index.js +32 -1
  683. package/es/components/fileException/index.js.map +1 -0
  684. package/es/components/pointCloudView/PointCloud2DView.js +147 -1
  685. package/es/components/pointCloudView/PointCloud2DView.js.map +1 -0
  686. package/es/components/pointCloudView/PointCloud3DView.js +227 -1
  687. package/es/components/pointCloudView/PointCloud3DView.js.map +1 -0
  688. package/es/components/pointCloudView/PointCloudBackView.js +132 -1
  689. package/es/components/pointCloudView/PointCloudBackView.js.map +1 -0
  690. package/es/components/pointCloudView/PointCloudContext.js +248 -1
  691. package/es/components/pointCloudView/PointCloudContext.js.map +1 -0
  692. package/es/components/pointCloudView/PointCloudInfos.js +136 -1
  693. package/es/components/pointCloudView/PointCloudInfos.js.map +1 -0
  694. package/es/components/pointCloudView/PointCloudLayout.js +19 -1
  695. package/es/components/pointCloudView/PointCloudLayout.js.map +1 -0
  696. package/es/components/pointCloudView/PointCloudListener.js +345 -1
  697. package/es/components/pointCloudView/PointCloudListener.js.map +1 -0
  698. package/es/components/pointCloudView/PointCloudSegment.js +57 -0
  699. package/es/components/pointCloudView/PointCloudSegment.js.map +1 -0
  700. package/es/components/pointCloudView/PointCloudSideView.js +129 -1
  701. package/es/components/pointCloudView/PointCloudSideView.js.map +1 -0
  702. package/es/components/pointCloudView/PointCloudTopView.js +333 -1
  703. package/es/components/pointCloudView/PointCloudTopView.js.map +1 -0
  704. package/es/components/pointCloudView/components/EmptyPage/index.js +18 -1
  705. package/es/components/pointCloudView/components/EmptyPage/index.js.map +1 -0
  706. package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js +23 -0
  707. package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js.map +1 -0
  708. package/es/components/pointCloudView/components/UnifiedParamsModal/index.js +228 -0
  709. package/es/components/pointCloudView/components/UnifiedParamsModal/index.js.map +1 -0
  710. package/es/components/pointCloudView/components/UnifyParamsModal/index.js +234 -1
  711. package/es/components/pointCloudView/components/UnifyParamsModal/index.js.map +1 -0
  712. package/es/components/pointCloudView/data.js +4 -0
  713. package/es/components/pointCloudView/data.js.map +1 -0
  714. package/es/components/pointCloudView/hooks/useAttribute.js +49 -1
  715. package/es/components/pointCloudView/hooks/useAttribute.js.map +1 -0
  716. package/es/components/pointCloudView/hooks/useBoxes.js +73 -1
  717. package/es/components/pointCloudView/hooks/useBoxes.js.map +1 -0
  718. package/es/components/pointCloudView/hooks/useConfig.js +29 -1
  719. package/es/components/pointCloudView/hooks/useConfig.js.map +1 -0
  720. package/es/components/pointCloudView/hooks/useHistory.js +169 -1
  721. package/es/components/pointCloudView/hooks/useHistory.js.map +1 -0
  722. package/es/components/pointCloudView/hooks/useLine.js +70 -1
  723. package/es/components/pointCloudView/hooks/useLine.js.map +1 -0
  724. package/es/components/pointCloudView/hooks/usePointCloudViews.js +747 -1
  725. package/es/components/pointCloudView/hooks/usePointCloudViews.js.map +1 -0
  726. package/es/components/pointCloudView/hooks/usePolygon.js +70 -1
  727. package/es/components/pointCloudView/hooks/usePolygon.js.map +1 -0
  728. package/es/components/pointCloudView/hooks/useRotate.js +43 -1
  729. package/es/components/pointCloudView/hooks/useRotate.js.map +1 -0
  730. package/es/components/pointCloudView/hooks/useSingleBox.js +168 -1
  731. package/es/components/pointCloudView/hooks/useSingleBox.js.map +1 -0
  732. package/es/components/pointCloudView/hooks/useSphere.js +43 -1
  733. package/es/components/pointCloudView/hooks/useSphere.js.map +1 -0
  734. package/es/components/pointCloudView/hooks/useStatus.js +88 -1
  735. package/es/components/pointCloudView/hooks/useStatus.js.map +1 -0
  736. package/es/components/pointCloudView/hooks/useZoom.js +38 -1
  737. package/es/components/pointCloudView/hooks/useZoom.js.map +1 -0
  738. package/es/components/pointCloudView/index.js +53 -1
  739. package/es/components/pointCloudView/index.js.map +1 -0
  740. package/es/components/predictTracking/index.js +3 -1
  741. package/es/components/predictTracking/index.js.map +1 -0
  742. package/es/components/predictTracking/predictTrackingIcon/index.js +91 -1
  743. package/es/components/predictTracking/predictTrackingIcon/index.js.map +1 -0
  744. package/es/components/predictTracking/previewResult/index.js +189 -1
  745. package/es/components/predictTracking/previewResult/index.js.map +1 -0
  746. package/es/components/predictTracking/previewResult/util.js +135 -1
  747. package/es/components/predictTracking/previewResult/util.js.map +1 -0
  748. package/es/components/videoAnnotate/index.js +44 -1
  749. package/es/components/videoAnnotate/index.js.map +1 -0
  750. package/es/components/videoPlayer/TagToolInstanceAdaptor.js +224 -1
  751. package/es/components/videoPlayer/TagToolInstanceAdaptor.js.map +1 -0
  752. package/es/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js +32 -1
  753. package/es/components/videoPlayer/TagToolInstanceAdaptorI18nProvider.js.map +1 -0
  754. package/es/components/videoPlayer/VideoTagLayer.js +29 -1
  755. package/es/components/videoPlayer/VideoTagLayer.js.map +1 -0
  756. package/es/components/videoPlayer/components/controller/index.js +125 -1
  757. package/es/components/videoPlayer/components/controller/index.js.map +1 -0
  758. package/es/components/videoPlayer/index.js +257 -1
  759. package/es/components/videoPlayer/index.js.map +1 -0
  760. package/es/components/videoPlayer/utils.js +51 -1
  761. package/es/components/videoPlayer/utils.js.map +1 -0
  762. package/es/configureStore.js +10 -1
  763. package/es/configureStore.js.map +1 -0
  764. package/es/constant/index.js +27 -1
  765. package/es/constant/index.js.map +1 -0
  766. package/es/constant/styleString.js +4 -1
  767. package/es/constant/styleString.js.map +1 -0
  768. package/es/data/Style.js +104 -1
  769. package/es/data/Style.js.map +1 -0
  770. package/es/data/enums/AnnotationSize.js +32 -1
  771. package/es/data/enums/AnnotationSize.js.map +1 -0
  772. package/es/data/enums/ToolType.js +40 -1
  773. package/es/data/enums/ToolType.js.map +1 -0
  774. package/es/hooks/annotation.js +77 -1
  775. package/es/hooks/annotation.js.map +1 -0
  776. package/es/hooks/useConfig.js +18 -0
  777. package/es/hooks/useConfig.js.map +1 -0
  778. package/es/hooks/useRafState.js +19 -1
  779. package/es/hooks/useRafState.js.map +1 -0
  780. package/es/hooks/useRefCache.js +12 -1
  781. package/es/hooks/useRefCache.js.map +1 -0
  782. package/es/hooks/useSafeSate.js +16 -1
  783. package/es/hooks/useSafeSate.js.map +1 -0
  784. package/es/hooks/useSize.js +39 -1
  785. package/es/hooks/useSize.js.map +1 -0
  786. package/es/hooks/useUnmountedRef.js +15 -1
  787. package/es/hooks/useUnmountedRef.js.map +1 -0
  788. package/es/index.js +64 -1
  789. package/es/index.js.map +1 -0
  790. package/es/store/Actions.js +51 -1
  791. package/es/store/Actions.js.map +1 -0
  792. package/es/store/annotation/actionCreators.js +450 -1
  793. package/es/store/annotation/actionCreators.js.map +1 -0
  794. package/es/store/annotation/map.js +22 -1
  795. package/es/store/annotation/map.js.map +1 -0
  796. package/es/store/annotation/reducer.js +657 -1
  797. package/es/store/annotation/reducer.js.map +1 -0
  798. package/es/store/annotation/selectors.js +11 -1
  799. package/es/store/annotation/selectors.js.map +1 -0
  800. package/es/store/ctx.js +9 -1
  801. package/es/store/ctx.js.map +1 -0
  802. package/es/store/imgAttribute/actionCreators.js +21 -1
  803. package/es/store/imgAttribute/actionCreators.js.map +1 -0
  804. package/es/store/imgAttribute/reducer.js +40 -1
  805. package/es/store/imgAttribute/reducer.js.map +1 -0
  806. package/es/store/index.js +13 -1
  807. package/es/store/index.js.map +1 -0
  808. package/es/store/toolStyle/actionCreators.js +17 -1
  809. package/es/store/toolStyle/actionCreators.js.map +1 -0
  810. package/es/store/toolStyle/reducer.js +50 -1
  811. package/es/store/toolStyle/reducer.js.map +1 -0
  812. package/es/utils/AnnotationDataUtils.js +165 -1
  813. package/es/utils/AnnotationDataUtils.js.map +1 -0
  814. package/es/utils/ConfigUtils.js +18 -1
  815. package/es/utils/ConfigUtils.js.map +1 -0
  816. package/es/utils/PageOperator.js +93 -1
  817. package/es/utils/PageOperator.js.map +1 -0
  818. package/es/utils/StepUtils.js +27 -1
  819. package/es/utils/StepUtils.js.map +1 -0
  820. package/es/utils/TextUtils.js +39 -1
  821. package/es/utils/TextUtils.js.map +1 -0
  822. package/es/utils/ToolStyleUtils.js +88 -1
  823. package/es/utils/ToolStyleUtils.js.map +1 -0
  824. package/es/utils/ToolUtils.js +17 -1
  825. package/es/utils/ToolUtils.js.map +1 -0
  826. package/es/utils/data.js +72 -1
  827. package/es/utils/data.js.map +1 -0
  828. package/es/utils/dom.js +20 -1
  829. package/es/utils/dom.js.map +1 -0
  830. package/es/utils/index.js +30 -1
  831. package/es/utils/index.js.map +1 -0
  832. package/es/views/MainView/annotationOperation/index.js +168 -1
  833. package/es/views/MainView/annotationOperation/index.js.map +1 -0
  834. package/es/views/MainView/annotationTips/index.js +26 -1
  835. package/es/views/MainView/annotationTips/index.js.map +1 -0
  836. package/es/views/MainView/index.js +116 -1
  837. package/es/views/MainView/index.js.map +1 -0
  838. package/es/views/MainView/sidebar/AnnotationText/index.js +41 -1
  839. package/es/views/MainView/sidebar/AnnotationText/index.js.map +1 -0
  840. package/es/views/MainView/sidebar/ClearIcon/index.js +31 -1
  841. package/es/views/MainView/sidebar/ClearIcon/index.js.map +1 -0
  842. package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +95 -1
  843. package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js.map +1 -0
  844. package/es/views/MainView/sidebar/GeneralOperation/index.js +86 -1
  845. package/es/views/MainView/sidebar/GeneralOperation/index.js.map +1 -0
  846. package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js +88 -1
  847. package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js.map +1 -0
  848. package/es/views/MainView/sidebar/ImgAttributeInfo/index.js +128 -1
  849. package/es/views/MainView/sidebar/ImgAttributeInfo/index.js.map +1 -0
  850. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +122 -1
  851. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js.map +1 -0
  852. package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +247 -1
  853. package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js.map +1 -0
  854. package/es/views/MainView/sidebar/ScribbleSidebar/index.js +58 -1
  855. package/es/views/MainView/sidebar/ScribbleSidebar/index.js.map +1 -0
  856. package/es/views/MainView/sidebar/SwitchAttributeList/index.js +73 -1
  857. package/es/views/MainView/sidebar/SwitchAttributeList/index.js.map +1 -0
  858. package/es/views/MainView/sidebar/TagSidebar/index.js +178 -1
  859. package/es/views/MainView/sidebar/TagSidebar/index.js.map +1 -0
  860. package/es/views/MainView/sidebar/TextAreaFormat/index.js +106 -1
  861. package/es/views/MainView/sidebar/TextAreaFormat/index.js.map +1 -0
  862. package/es/views/MainView/sidebar/TextToolSidebar/index.js +225 -1
  863. package/es/views/MainView/sidebar/TextToolSidebar/index.js.map +1 -0
  864. package/es/views/MainView/sidebar/ToolIcons.js +78 -1
  865. package/es/views/MainView/sidebar/ToolIcons.js.map +1 -0
  866. package/es/views/MainView/sidebar/ToolStyle/index.js +156 -1
  867. package/es/views/MainView/sidebar/ToolStyle/index.js.map +1 -0
  868. package/es/views/MainView/sidebar/index.js +147 -1
  869. package/es/views/MainView/sidebar/index.js.map +1 -0
  870. package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js +200 -1
  871. package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js.map +1 -0
  872. package/es/views/MainView/toolFooter/FooterPopover.js +48 -1
  873. package/es/views/MainView/toolFooter/FooterPopover.js.map +1 -0
  874. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +127 -1
  875. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js.map +1 -0
  876. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js +24 -1
  877. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/cuboid/index.js.map +1 -0
  878. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +216 -1
  879. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js.map +1 -0
  880. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js +97 -1
  881. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/line/index.js.map +1 -0
  882. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js +47 -1
  883. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/point/index.js.map +1 -0
  884. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +165 -1
  885. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js.map +1 -0
  886. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +102 -1
  887. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js.map +1 -0
  888. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js +61 -1
  889. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/rectToolShortCutTable/index.js.map +1 -0
  890. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js +16 -1
  891. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/scribble/index.js.map +1 -0
  892. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js +20 -1
  893. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/tag/index.js.map +1 -0
  894. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js +16 -1
  895. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/text/index.js.map +1 -0
  896. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js +22 -1
  897. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/videoTag/index.js.map +1 -0
  898. package/es/views/MainView/toolFooter/FooterTips/index.js +17 -1
  899. package/es/views/MainView/toolFooter/FooterTips/index.js.map +1 -0
  900. package/es/views/MainView/toolFooter/HiddenTips/index.js +39 -1
  901. package/es/views/MainView/toolFooter/HiddenTips/index.js.map +1 -0
  902. package/es/views/MainView/toolFooter/PageNumber/index.js +42 -1
  903. package/es/views/MainView/toolFooter/PageNumber/index.js.map +1 -0
  904. package/es/views/MainView/toolFooter/Pagination.js +82 -1
  905. package/es/views/MainView/toolFooter/Pagination.js.map +1 -0
  906. package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js +33 -1
  907. package/es/views/MainView/toolFooter/ZoomController/ZoomLevel/index.js.map +1 -0
  908. package/es/views/MainView/toolFooter/ZoomController/index.js +63 -1
  909. package/es/views/MainView/toolFooter/ZoomController/index.js.map +1 -0
  910. package/es/views/MainView/toolFooter/index.js +125 -1
  911. package/es/views/MainView/toolFooter/index.js.map +1 -0
  912. package/es/views/MainView/toolHeader/ExportData/index.js +38 -1
  913. package/es/views/MainView/toolHeader/ExportData/index.js.map +1 -0
  914. package/es/views/MainView/toolHeader/StepSwitch/index.js +41 -1
  915. package/es/views/MainView/toolHeader/StepSwitch/index.js.map +1 -0
  916. package/es/views/MainView/toolHeader/SwitchPattern/index.js +53 -0
  917. package/es/views/MainView/toolHeader/SwitchPattern/index.js.map +1 -0
  918. package/es/views/MainView/toolHeader/headerOption/index.js +145 -1
  919. package/es/views/MainView/toolHeader/headerOption/index.js.map +1 -0
  920. package/es/views/MainView/toolHeader/index.js +173 -1
  921. package/es/views/MainView/toolHeader/index.js.map +1 -0
  922. package/package.json +6 -5
  923. package/LICENSE +0 -203
@@ -1 +1,345 @@
1
- import{PointCloudContext as Q}from"./PointCloudContext.js";import{useRotate as X}from"./hooks/useRotate.js";import{useBoxes as Z}from"./hooks/useBoxes.js";import{useSingleBox as ee}from"./hooks/useSingleBox.js";import{useSphere as te}from"./hooks/useSphere.js";import{useContext as oe,useEffect as d}from"react";import{CommonToolUtils as re,AttributeUtils as ne,EToolName as b,cTool as se}from"@labelbee/lb-annotation";import{message as C}from"antd";import{connect as ie}from"react-redux";import{a2MapStateToProps as ae}from"../../store/annotation/map.js";import{useCustomToolInstance as le}from"../../hooks/annotation.js";import{useStatus as ue}from"./hooks/useStatus.js";import{jsonParser as ce}from"../../utils/index.js";import{usePointCloudViews as de}from"./hooks/usePointCloudViews.js";import{LabelBeeContext as pe}from"../../store/ctx.js";import{useHistory as me}from"./hooks/useHistory.js";import{useAttribute as fe}from"./hooks/useAttribute.js";import{useConfig as be}from"./hooks/useConfig.js";import{usePolygon as Pe}from"./hooks/usePolygon.js";import{useTranslation as ye}from"react-i18next";var ve=Object.defineProperty,we=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,j=(l,r,a)=>r in l?ve(l,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[r]=a,h=(l,r)=>{for(var a in r||(r={}))he.call(r,a)&&j(l,a,r[a]);if(O)for(var a of O(r))xe.call(r,a)&&j(l,a,r[a]);return l},x=(l,r)=>we(l,Ce(r));const{EPolygonPattern:ge}=se,ke=({currentData:l,config:r,checkMode:a,configString:A,imgIndex:g})=>{const t=oe(Q),{changeSelectedBoxValid:D,selectNextBox:T,selectPrevBox:E,updateSelectedBox:k,deleteSelectedPointCloudBoxAndPolygon:R}=ee(),{selectedSphere:P,updatePointCloudSphere:K}=te(),{clearAllResult:y,updatePointCloudPattern:N}=ue(),H=ce(l.result),{copySelectedBoxes:U,pasteSelectedBoxes:z,copiedBoxes:F}=Z({config:r}),{toolInstanceRef:i}=le({basicInfo:H}),{updateRotate:v}=X({currentData:l}),{updatePointCloudData:m,topViewSelectedChanged:S}=de(),{redo:_,undo:L,pushHistoryWithList:q,pushHistoryUnderUpdatePolygon:G}=me(),{syncThreeViewsAttribute:B}=fe(),{syncAllViewsConfig:M,reRenderTopViewRange:W}=be(),{selectedPolygon:I}=Pe(),{t:w}=ye(),f=e=>{var o;const{topViewInstance:n}=t;!n||(o=n.pointCloud2dOperation)==null||o.updateSelectedPolygonsPoints(e)},Y=(e,o)=>{var n;const{topViewInstance:s,mainViewInstance:u}=t;if(!s)return;const{pointCloud2dOperation:c}=s;switch(e){case"q":{v(2);break}case"e":v(-2);break;case"g":v(180);break;case"u":{const p=c.pattern===ge.Normal?b.Rect:b.Polygon;N(p);const J={[b.Polygon]:w("PolygonPattern"),[b.Rect]:w("RectPattern")};C.success(w("ChangePatternMsg",{pattern:J[p]})),c.clearActiveStatus(),c.clearDrawingStatus()}break;case"+":u==null||u.updatePointSize(!0);break;case"-":u==null||u.updatePointSize(!1);break;case"v":t.setPointCloudValid(!t.valid);break;case"tab":if(o.shiftKey){E();break}T(),o.preventDefault();break;case"f":D();break;case"arrowup":f({y:-1});break;case"arrowdown":f({y:1});break;case"arrowleft":f({x:-1});break;case"arrowright":f({x:1});break;case"delete":R();break;default:{if(((n=r.attributeList)==null?void 0:n.length)>0){const p=ne.getAttributeByKeycode(o.keyCode,r.attributeList);p!==void 0&&i.current.setDefaultAttribute(p)}return}}},$=(e,o)=>{switch(e){case"c":U();break;case"v":z();break;case"a":o.preventDefault(),t.selectedAllBoxes();break;case"z":{o.shiftKey?_():L();break}}},V=e=>{if(!re.hotkeyFilter(e)||a===!0)return;const o=e.key.toLocaleLowerCase();if(e.ctrlKey){$(o,e);return}Y(o,e)};return d(()=>{const{topViewInstance:e}=t;if(!!e)return window.addEventListener("keydown",V),()=>{window.removeEventListener("keydown",V)}},[t,F,r,t.pointCloudBoxList,t.polygonList]),d(()=>{M(r)},[A]),d(()=>{(r==null?void 0:r.radius)&&W(r==null?void 0:r.radius)},[r==null?void 0:r.radius]),d(()=>{m==null||m()},[g,t.mainViewInstance]),d(()=>{t.setHideAttributes([])},[g]),d(()=>{i.current.exportData=()=>[t.pointCloudBoxList,{valid:t.valid}],i.current.exportCustomData=()=>{var e,o,n;return{resultPolygon:(e=t.polygonList)!=null?e:[],resultLine:(o=t.lineList)!=null?o:[],resultPoint:(n=t.pointCloudSphereList)!=null?n:[]}},i.current.setDefaultAttribute=e=>{var o;B(e);const n=t.selectedPointCloudBox;if(n){n.attribute=e;const s=k(n);t.mainViewInstance&&S({newSelectedBox:n,newPointCloudList:s})}if(I&&G(x(h({},I),{attribute:e})),P){const s=K(x(h({},P),{attribute:e}));t.mainViewInstance&&((o=t.mainViewInstance)==null||o.generateSpheres(s),S({newSelectedSphere:P,newSphereList:s}))}},i.current.setSubAttribute=(e,o)=>{var n;const s=t.selectedPointCloudBox;if(s){const u=(n=s==null?void 0:s.subAttribute)!=null?n:{};s.subAttribute=x(h({},u),{[e]:o}),k(s)}},i.current.clearResult=()=>{y==null||y()},i.current.redo=()=>{_()},i.current.undo=()=>{L()},i.current.setValid=e=>{i.current.valid=e,setTimeout(()=>{t.setPointCloudValid(e),e===!1&&y()})},i.current.setForbidOperation=e=>{var o,n;(n=(o=t.topViewInstance)==null?void 0:o.pointCloud2dOperation)==null||n.setForbidOperation(e),e===!0&&t.setSelectedIDs(void 0)},i.current.setShowDefaultCursor=e=>{var o,n;(n=(o=t.topViewInstance)==null?void 0:o.pointCloud2dOperation)==null||n.setShowDefaultCursor(e)},i.current.asyncData=e=>{setTimeout(()=>{m==null||m(e)})}},[t.pointCloudBoxList,t.pointCloudSphereList,t.selectedID,t.valid,t.polygonList,t.lineList,t.mainViewInstance]),d(()=>{i.current.history={pushHistory:e=>{q({pointCloudBoxList:e})},initRecord:()=>{}}},[]),d(()=>{var e;const o=(e=t.topViewInstance)==null?void 0:e.toolInstance;if(!o||a)return;const n=c=>{B(c)},s=c=>{C.error(c)},u=c=>{C.info(c)};return o.on("syncAttribute",n),o.on("messageError",s),o.on("messageInfo",u),()=>{o.unbind("syncAttribute",n),o.unbind("messageError",s),o.unbind("messageInfo",u)}},[t.topViewInstance]),null};var Se=ie(ae,null,null,{context:pe})(ke);export{Se as default};
1
+ import { PointCloudContext } from './PointCloudContext.js';
2
+ import { useRotate } from './hooks/useRotate.js';
3
+ import { useBoxes } from './hooks/useBoxes.js';
4
+ import { useSingleBox } from './hooks/useSingleBox.js';
5
+ import { useSphere } from './hooks/useSphere.js';
6
+ import { useContext, useEffect } from 'react';
7
+ import { CommonToolUtils, AttributeUtils, EToolName, cTool } from '@labelbee/lb-annotation';
8
+ import { message } from 'antd';
9
+ import { connect } from 'react-redux';
10
+ import { a2MapStateToProps } from '../../store/annotation/map.js';
11
+ import { useCustomToolInstance } from '../../hooks/annotation.js';
12
+ import { useStatus } from './hooks/useStatus.js';
13
+ import { jsonParser } from '../../utils/index.js';
14
+ import { usePointCloudViews } from './hooks/usePointCloudViews.js';
15
+ import { LabelBeeContext } from '../../store/ctx.js';
16
+ import { useHistory } from './hooks/useHistory.js';
17
+ import { useAttribute } from './hooks/useAttribute.js';
18
+ import { useConfig } from './hooks/useConfig.js';
19
+ import { usePolygon } from './hooks/usePolygon.js';
20
+ import { useTranslation } from 'react-i18next';
21
+
22
+ var __defProp = Object.defineProperty;
23
+ var __defProps = Object.defineProperties;
24
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
25
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
26
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
27
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
28
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
29
+ var __spreadValues = (a, b) => {
30
+ for (var prop in b || (b = {}))
31
+ if (__hasOwnProp.call(b, prop))
32
+ __defNormalProp(a, prop, b[prop]);
33
+ if (__getOwnPropSymbols)
34
+ for (var prop of __getOwnPropSymbols(b)) {
35
+ if (__propIsEnum.call(b, prop))
36
+ __defNormalProp(a, prop, b[prop]);
37
+ }
38
+ return a;
39
+ };
40
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
41
+ const {EPolygonPattern} = cTool;
42
+ const PointCloudListener = ({
43
+ currentData,
44
+ config,
45
+ checkMode,
46
+ configString,
47
+ imgIndex
48
+ }) => {
49
+ const ptCtx = useContext(PointCloudContext);
50
+ const {
51
+ changeSelectedBoxValid,
52
+ selectNextBox,
53
+ selectPrevBox,
54
+ updateSelectedBox,
55
+ deleteSelectedPointCloudBoxAndPolygon
56
+ } = useSingleBox();
57
+ const {selectedSphere, updatePointCloudSphere} = useSphere();
58
+ const {clearAllResult, updatePointCloudPattern} = useStatus();
59
+ const basicInfo = jsonParser(currentData.result);
60
+ const {copySelectedBoxes, pasteSelectedBoxes, copiedBoxes} = useBoxes({config});
61
+ const {toolInstanceRef} = useCustomToolInstance({basicInfo});
62
+ const {updateRotate} = useRotate({currentData});
63
+ const {updatePointCloudData, topViewSelectedChanged} = usePointCloudViews();
64
+ const {redo, undo, pushHistoryWithList, pushHistoryUnderUpdatePolygon} = useHistory();
65
+ const {syncThreeViewsAttribute} = useAttribute();
66
+ const {syncAllViewsConfig, reRenderTopViewRange} = useConfig();
67
+ const {selectedPolygon} = usePolygon();
68
+ const {t} = useTranslation();
69
+ const updatePolygonOffset = (offset) => {
70
+ var _a;
71
+ const {topViewInstance} = ptCtx;
72
+ if (!topViewInstance) {
73
+ return;
74
+ }
75
+ (_a = topViewInstance.pointCloud2dOperation) == null ? void 0 : _a.updateSelectedPolygonsPoints(offset);
76
+ };
77
+ const keydownEvents = (lowerCaseKey, e) => {
78
+ var _a;
79
+ const {topViewInstance, mainViewInstance} = ptCtx;
80
+ if (!topViewInstance) {
81
+ return;
82
+ }
83
+ const {pointCloud2dOperation: TopPointCloudPolygonOperation} = topViewInstance;
84
+ switch (lowerCaseKey) {
85
+ case "q": {
86
+ updateRotate(2);
87
+ break;
88
+ }
89
+ case "e":
90
+ updateRotate(-2);
91
+ break;
92
+ case "g":
93
+ updateRotate(180);
94
+ break;
95
+ case "u":
96
+ {
97
+ const newToolName = TopPointCloudPolygonOperation.pattern === EPolygonPattern.Normal ? EToolName.Rect : EToolName.Polygon;
98
+ updatePointCloudPattern(newToolName);
99
+ const POLYGON_PATTERN = {
100
+ [EToolName.Polygon]: t("PolygonPattern"),
101
+ [EToolName.Rect]: t("RectPattern")
102
+ };
103
+ message.success(t("ChangePatternMsg", {pattern: POLYGON_PATTERN[newToolName]}));
104
+ TopPointCloudPolygonOperation.clearActiveStatus();
105
+ TopPointCloudPolygonOperation.clearDrawingStatus();
106
+ }
107
+ break;
108
+ case "+":
109
+ mainViewInstance == null ? void 0 : mainViewInstance.updatePointSize(true);
110
+ break;
111
+ case "-":
112
+ mainViewInstance == null ? void 0 : mainViewInstance.updatePointSize(false);
113
+ break;
114
+ case "v":
115
+ ptCtx.setPointCloudValid(!ptCtx.valid);
116
+ break;
117
+ case "tab":
118
+ if (e.shiftKey) {
119
+ selectPrevBox();
120
+ break;
121
+ }
122
+ selectNextBox();
123
+ e.preventDefault();
124
+ break;
125
+ case "f":
126
+ changeSelectedBoxValid();
127
+ break;
128
+ case "arrowup":
129
+ updatePolygonOffset({y: -1});
130
+ break;
131
+ case "arrowdown":
132
+ updatePolygonOffset({y: 1});
133
+ break;
134
+ case "arrowleft":
135
+ updatePolygonOffset({x: -1});
136
+ break;
137
+ case "arrowright":
138
+ updatePolygonOffset({x: 1});
139
+ break;
140
+ case "delete":
141
+ deleteSelectedPointCloudBoxAndPolygon();
142
+ break;
143
+ default: {
144
+ if (((_a = config.attributeList) == null ? void 0 : _a.length) > 0) {
145
+ const keyCode2Attribute = AttributeUtils.getAttributeByKeycode(e.keyCode, config.attributeList);
146
+ if (keyCode2Attribute !== void 0) {
147
+ toolInstanceRef.current.setDefaultAttribute(keyCode2Attribute);
148
+ }
149
+ }
150
+ return;
151
+ }
152
+ }
153
+ };
154
+ const ctrlKeydownEvents = (lowerCaseKey, e) => {
155
+ switch (lowerCaseKey) {
156
+ case "c":
157
+ copySelectedBoxes();
158
+ break;
159
+ case "v":
160
+ pasteSelectedBoxes();
161
+ break;
162
+ case "a":
163
+ e.preventDefault();
164
+ ptCtx.selectedAllBoxes();
165
+ break;
166
+ case "z": {
167
+ if (e.shiftKey) {
168
+ redo();
169
+ } else {
170
+ undo();
171
+ }
172
+ break;
173
+ }
174
+ }
175
+ };
176
+ const onKeyDown = (e) => {
177
+ if (!CommonToolUtils.hotkeyFilter(e) || checkMode === true) {
178
+ return;
179
+ }
180
+ const lowerCaseKey = e.key.toLocaleLowerCase();
181
+ if (e.ctrlKey) {
182
+ ctrlKeydownEvents(lowerCaseKey, e);
183
+ return;
184
+ }
185
+ keydownEvents(lowerCaseKey, e);
186
+ };
187
+ useEffect(() => {
188
+ const {topViewInstance} = ptCtx;
189
+ if (!topViewInstance) {
190
+ return;
191
+ }
192
+ window.addEventListener("keydown", onKeyDown);
193
+ return () => {
194
+ window.removeEventListener("keydown", onKeyDown);
195
+ };
196
+ }, [ptCtx, copiedBoxes, config, ptCtx.pointCloudBoxList, ptCtx.polygonList]);
197
+ useEffect(() => {
198
+ syncAllViewsConfig(config);
199
+ }, [configString]);
200
+ useEffect(() => {
201
+ if (config == null ? void 0 : config.radius) {
202
+ reRenderTopViewRange(config == null ? void 0 : config.radius);
203
+ }
204
+ }, [config == null ? void 0 : config.radius]);
205
+ useEffect(() => {
206
+ updatePointCloudData == null ? void 0 : updatePointCloudData();
207
+ }, [imgIndex, ptCtx.mainViewInstance]);
208
+ useEffect(() => {
209
+ ptCtx.setHideAttributes([]);
210
+ }, [imgIndex]);
211
+ useEffect(() => {
212
+ toolInstanceRef.current.exportData = () => {
213
+ return [ptCtx.pointCloudBoxList, {valid: ptCtx.valid}];
214
+ };
215
+ toolInstanceRef.current.exportCustomData = () => {
216
+ var _a, _b, _c;
217
+ return {
218
+ resultPolygon: (_a = ptCtx.polygonList) != null ? _a : [],
219
+ resultLine: (_b = ptCtx.lineList) != null ? _b : [],
220
+ resultPoint: (_c = ptCtx.pointCloudSphereList) != null ? _c : []
221
+ };
222
+ };
223
+ toolInstanceRef.current.setDefaultAttribute = (newAttribute) => {
224
+ var _a;
225
+ syncThreeViewsAttribute(newAttribute);
226
+ const selectBox = ptCtx.selectedPointCloudBox;
227
+ if (selectBox) {
228
+ selectBox.attribute = newAttribute;
229
+ const newPointCloudList = updateSelectedBox(selectBox);
230
+ if (ptCtx.mainViewInstance) {
231
+ topViewSelectedChanged({
232
+ newSelectedBox: selectBox,
233
+ newPointCloudList
234
+ });
235
+ }
236
+ }
237
+ if (selectedPolygon) {
238
+ pushHistoryUnderUpdatePolygon(__spreadProps(__spreadValues({}, selectedPolygon), {attribute: newAttribute}));
239
+ }
240
+ if (selectedSphere) {
241
+ const newSphereList = updatePointCloudSphere(__spreadProps(__spreadValues({}, selectedSphere), {
242
+ attribute: newAttribute
243
+ }));
244
+ if (ptCtx.mainViewInstance) {
245
+ (_a = ptCtx.mainViewInstance) == null ? void 0 : _a.generateSpheres(newSphereList);
246
+ topViewSelectedChanged({
247
+ newSelectedSphere: selectedSphere,
248
+ newSphereList
249
+ });
250
+ }
251
+ }
252
+ };
253
+ toolInstanceRef.current.setSubAttribute = (key, value) => {
254
+ var _a;
255
+ const selectBox = ptCtx.selectedPointCloudBox;
256
+ if (selectBox) {
257
+ const originSubAttribute = (_a = selectBox == null ? void 0 : selectBox.subAttribute) != null ? _a : {};
258
+ selectBox.subAttribute = __spreadProps(__spreadValues({}, originSubAttribute), {
259
+ [key]: value
260
+ });
261
+ updateSelectedBox(selectBox);
262
+ }
263
+ };
264
+ toolInstanceRef.current.clearResult = () => {
265
+ clearAllResult == null ? void 0 : clearAllResult();
266
+ };
267
+ toolInstanceRef.current.redo = () => {
268
+ redo();
269
+ };
270
+ toolInstanceRef.current.undo = () => {
271
+ undo();
272
+ };
273
+ toolInstanceRef.current.setValid = (valid) => {
274
+ toolInstanceRef.current.valid = valid;
275
+ setTimeout(() => {
276
+ ptCtx.setPointCloudValid(valid);
277
+ if (valid === false) {
278
+ clearAllResult();
279
+ }
280
+ });
281
+ };
282
+ toolInstanceRef.current.setForbidOperation = (forbidOperation) => {
283
+ var _a, _b;
284
+ (_b = (_a = ptCtx.topViewInstance) == null ? void 0 : _a.pointCloud2dOperation) == null ? void 0 : _b.setForbidOperation(forbidOperation);
285
+ if (forbidOperation === true) {
286
+ ptCtx.setSelectedIDs(void 0);
287
+ }
288
+ };
289
+ toolInstanceRef.current.setShowDefaultCursor = (showDefaultCursor) => {
290
+ var _a, _b;
291
+ (_b = (_a = ptCtx.topViewInstance) == null ? void 0 : _a.pointCloud2dOperation) == null ? void 0 : _b.setShowDefaultCursor(showDefaultCursor);
292
+ };
293
+ toolInstanceRef.current.asyncData = (newData) => {
294
+ setTimeout(() => {
295
+ updatePointCloudData == null ? void 0 : updatePointCloudData(newData);
296
+ });
297
+ };
298
+ }, [
299
+ ptCtx.pointCloudBoxList,
300
+ ptCtx.pointCloudSphereList,
301
+ ptCtx.selectedID,
302
+ ptCtx.valid,
303
+ ptCtx.polygonList,
304
+ ptCtx.lineList,
305
+ ptCtx.mainViewInstance
306
+ ]);
307
+ useEffect(() => {
308
+ toolInstanceRef.current.history = {
309
+ pushHistory: (result) => {
310
+ pushHistoryWithList({pointCloudBoxList: result});
311
+ },
312
+ initRecord: () => {
313
+ }
314
+ };
315
+ }, []);
316
+ useEffect(() => {
317
+ var _a;
318
+ const toolInstance = (_a = ptCtx.topViewInstance) == null ? void 0 : _a.toolInstance;
319
+ if (!toolInstance || checkMode) {
320
+ return;
321
+ }
322
+ const syncAttribute = (newAttribute) => {
323
+ syncThreeViewsAttribute(newAttribute);
324
+ };
325
+ const messageError = (error) => {
326
+ message.error(error);
327
+ };
328
+ const messageInfo = (info) => {
329
+ message.info(info);
330
+ };
331
+ toolInstance.on("syncAttribute", syncAttribute);
332
+ toolInstance.on("messageError", messageError);
333
+ toolInstance.on("messageInfo", messageInfo);
334
+ return () => {
335
+ toolInstance.unbind("syncAttribute", syncAttribute);
336
+ toolInstance.unbind("messageError", messageError);
337
+ toolInstance.unbind("messageInfo", messageInfo);
338
+ };
339
+ }, [ptCtx.topViewInstance]);
340
+ return null;
341
+ };
342
+ var PointCloudListener$1 = connect(a2MapStateToProps, null, null, {context: LabelBeeContext})(PointCloudListener);
343
+
344
+ export { PointCloudListener$1 as default };
345
+ //# sourceMappingURL=PointCloudListener.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PointCloudListener.js","sources":["../../../src/components/pointCloudView/PointCloudListener.tsx"],"sourcesContent":["import { PointCloudContext } from './PointCloudContext';\nimport { useRotate } from './hooks/useRotate';\nimport { useBoxes } from './hooks/useBoxes';\nimport { useSingleBox } from './hooks/useSingleBox';\nimport { useSphere } from './hooks/useSphere';\nimport React, { useContext, useEffect } from 'react';\nimport { cTool, AttributeUtils, CommonToolUtils, EToolName } from '@labelbee/lb-annotation';\nimport { message } from 'antd';\nimport { connect } from 'react-redux';\nimport { a2MapStateToProps, IA2MapStateProps } from '@/store/annotation/map';\nimport { useCustomToolInstance } from '@/hooks/annotation';\nimport { useStatus } from './hooks/useStatus';\nimport { jsonParser } from '@/utils';\nimport { usePointCloudViews } from './hooks/usePointCloudViews';\nimport { LabelBeeContext } from '@/store/ctx';\nimport { useHistory } from './hooks/useHistory';\nimport { useAttribute } from './hooks/useAttribute';\nimport { ICoordinate } from '@labelbee/lb-utils/dist/types/types/common';\nimport { useConfig } from './hooks/useConfig';\nimport { usePolygon } from './hooks/usePolygon';\nimport { useTranslation } from 'react-i18next';\nimport { IFileItem } from '@/types/data';\n\nconst { EPolygonPattern } = cTool;\n\ninterface IProps extends IA2MapStateProps {\n checkMode?: boolean;\n}\n\nconst PointCloudListener: React.FC<IProps> = ({\n currentData,\n config,\n checkMode,\n configString,\n imgIndex,\n}) => {\n const ptCtx = useContext(PointCloudContext);\n const {\n changeSelectedBoxValid,\n selectNextBox,\n selectPrevBox,\n updateSelectedBox,\n deleteSelectedPointCloudBoxAndPolygon,\n } = useSingleBox();\n const { selectedSphere, updatePointCloudSphere } = useSphere();\n const { clearAllResult, updatePointCloudPattern } = useStatus();\n const basicInfo = jsonParser(currentData.result);\n const { copySelectedBoxes, pasteSelectedBoxes, copiedBoxes } = useBoxes({ config });\n const { toolInstanceRef } = useCustomToolInstance({ basicInfo });\n const { updateRotate } = useRotate({ currentData });\n const { updatePointCloudData, topViewSelectedChanged } = usePointCloudViews();\n const { redo, undo, pushHistoryWithList, pushHistoryUnderUpdatePolygon } = useHistory();\n const { syncThreeViewsAttribute } = useAttribute();\n const { syncAllViewsConfig, reRenderTopViewRange } = useConfig();\n const { selectedPolygon } = usePolygon();\n const { t } = useTranslation();\n\n const updatePolygonOffset = (offset: Partial<ICoordinate>) => {\n const { topViewInstance } = ptCtx;\n if (!topViewInstance) {\n return;\n }\n topViewInstance.pointCloud2dOperation?.updateSelectedPolygonsPoints(offset);\n };\n\n const keydownEvents = (lowerCaseKey: string, e: KeyboardEvent) => {\n const { topViewInstance, mainViewInstance } = ptCtx;\n if (!topViewInstance) {\n return;\n }\n\n const { pointCloud2dOperation: TopPointCloudPolygonOperation } = topViewInstance;\n\n switch (lowerCaseKey) {\n case 'q': {\n // Q - anticlockwise\n updateRotate(2);\n break;\n }\n\n case 'e':\n // E - closewise\n updateRotate(-2);\n\n break;\n\n case 'g':\n // G , overturn 180\n updateRotate(180);\n\n break;\n\n case 'u':\n {\n // U , change TopOpereation Pattern\n const newToolName =\n TopPointCloudPolygonOperation.pattern === EPolygonPattern.Normal\n ? EToolName.Rect\n : EToolName.Polygon;\n updatePointCloudPattern(newToolName);\n\n // Tips\n const POLYGON_PATTERN = {\n [EToolName.Polygon]: t('PolygonPattern'),\n [EToolName.Rect]: t('RectPattern'),\n };\n message.success(t('ChangePatternMsg', { pattern: POLYGON_PATTERN[newToolName] }));\n\n // Clear Status\n TopPointCloudPolygonOperation.clearActiveStatus();\n TopPointCloudPolygonOperation.clearDrawingStatus();\n }\n\n break;\n\n // +: Increase points size\n case '+':\n mainViewInstance?.updatePointSize(true);\n break;\n\n // -: Reduce points size\n case '-':\n mainViewInstance?.updatePointSize(false);\n break;\n\n case 'v':\n ptCtx.setPointCloudValid(!ptCtx.valid);\n break;\n\n case 'tab':\n if (e.shiftKey) {\n selectPrevBox();\n break;\n }\n selectNextBox();\n e.preventDefault();\n break;\n\n case 'f':\n changeSelectedBoxValid();\n break;\n\n case 'arrowup':\n updatePolygonOffset({ y: -1 });\n break;\n\n case 'arrowdown':\n updatePolygonOffset({ y: 1 });\n break;\n\n case 'arrowleft':\n updatePolygonOffset({ x: -1 });\n break;\n\n case 'arrowright':\n updatePolygonOffset({ x: 1 });\n break;\n\n case 'delete':\n deleteSelectedPointCloudBoxAndPolygon();\n break;\n\n default: {\n if (config.attributeList?.length > 0) {\n const keyCode2Attribute = AttributeUtils.getAttributeByKeycode(\n e.keyCode,\n config.attributeList,\n );\n\n if (keyCode2Attribute !== undefined) {\n toolInstanceRef.current.setDefaultAttribute(keyCode2Attribute);\n }\n }\n return;\n }\n }\n };\n\n const ctrlKeydownEvents = (lowerCaseKey: string, e: KeyboardEvent) => {\n switch (lowerCaseKey) {\n case 'c':\n copySelectedBoxes();\n break;\n case 'v':\n pasteSelectedBoxes();\n break;\n case 'a':\n e.preventDefault();\n ptCtx.selectedAllBoxes();\n break;\n case 'z': {\n if (e.shiftKey) {\n redo();\n } else {\n undo();\n }\n break;\n }\n\n default:\n break;\n }\n };\n\n const onKeyDown = (e: KeyboardEvent) => {\n if (!CommonToolUtils.hotkeyFilter(e) || checkMode === true) {\n return;\n }\n\n const lowerCaseKey = e.key.toLocaleLowerCase();\n\n if (e.ctrlKey) {\n ctrlKeydownEvents(lowerCaseKey, e);\n return;\n }\n\n keydownEvents(lowerCaseKey, e);\n };\n\n useEffect(() => {\n const { topViewInstance } = ptCtx;\n if (!topViewInstance) {\n return;\n }\n\n window.addEventListener('keydown', onKeyDown);\n\n return () => {\n window.removeEventListener('keydown', onKeyDown);\n };\n }, [ptCtx, copiedBoxes, config, ptCtx.pointCloudBoxList, ptCtx.polygonList]);\n\n useEffect(() => {\n syncAllViewsConfig(config);\n }, [configString]);\n\n useEffect(() => {\n if (config?.radius) {\n reRenderTopViewRange(config?.radius);\n }\n }, [config?.radius]);\n\n // Page switch data initialization\n useEffect(() => {\n updatePointCloudData?.();\n }, [imgIndex, ptCtx.mainViewInstance]);\n\n useEffect(() => {\n ptCtx.setHideAttributes([]);\n }, [imgIndex]);\n\n // Update the listener of toolInstance.\n useEffect(() => {\n toolInstanceRef.current.exportData = () => {\n return [ptCtx.pointCloudBoxList, { valid: ptCtx.valid }];\n };\n\n toolInstanceRef.current.exportCustomData = () => {\n return {\n resultPolygon: ptCtx.polygonList ?? [],\n resultLine: ptCtx.lineList ?? [],\n resultPoint: ptCtx.pointCloudSphereList ?? [],\n };\n };\n\n toolInstanceRef.current.setDefaultAttribute = (newAttribute: string) => {\n syncThreeViewsAttribute(newAttribute);\n const selectBox = ptCtx.selectedPointCloudBox;\n if (selectBox) {\n selectBox.attribute = newAttribute;\n\n const newPointCloudList = updateSelectedBox(selectBox);\n\n if (ptCtx.mainViewInstance) {\n // TODO: Poor performance.\n topViewSelectedChanged({\n newSelectedBox: selectBox,\n newPointCloudList: newPointCloudList,\n });\n }\n }\n if (selectedPolygon) {\n pushHistoryUnderUpdatePolygon({ ...selectedPolygon, attribute: newAttribute });\n }\n if (selectedSphere) {\n const newSphereList = updatePointCloudSphere({\n ...selectedSphere,\n attribute: newAttribute,\n });\n if (ptCtx.mainViewInstance) {\n ptCtx.mainViewInstance?.generateSpheres(newSphereList);\n topViewSelectedChanged({\n newSelectedSphere: selectedSphere,\n newSphereList: newSphereList,\n });\n }\n }\n };\n\n toolInstanceRef.current.setSubAttribute = (key: string, value: string) => {\n const selectBox = ptCtx.selectedPointCloudBox;\n if (selectBox) {\n const originSubAttribute = selectBox?.subAttribute ?? {};\n\n selectBox.subAttribute = {\n ...originSubAttribute,\n [key]: value,\n };\n\n updateSelectedBox(selectBox);\n }\n };\n toolInstanceRef.current.clearResult = () => {\n clearAllResult?.();\n };\n\n toolInstanceRef.current.redo = () => {\n redo();\n };\n\n toolInstanceRef.current.undo = () => {\n undo();\n };\n\n toolInstanceRef.current.setValid = (valid: boolean) => {\n toolInstanceRef.current.valid = valid;\n\n // Avoid triggering SetState operations in the reducer phase\n setTimeout(() => {\n ptCtx.setPointCloudValid(valid);\n\n if (valid === false) {\n clearAllResult();\n }\n });\n };\n\n /**\n * TopView forbid all operations.\n * @param forbidOperation\n */\n toolInstanceRef.current.setForbidOperation = (forbidOperation: boolean) => {\n ptCtx.topViewInstance?.pointCloud2dOperation?.setForbidOperation(forbidOperation);\n if (forbidOperation === true) {\n // Clear Selected Status.\n ptCtx.setSelectedIDs(undefined);\n }\n };\n\n toolInstanceRef.current.setShowDefaultCursor = (showDefaultCursor: boolean) => {\n ptCtx.topViewInstance?.pointCloud2dOperation?.setShowDefaultCursor(showDefaultCursor);\n };\n\n toolInstanceRef.current.asyncData = (newData: IFileItem) => {\n // Next Tick to update.\n setTimeout(() => {\n updatePointCloudData?.(newData);\n });\n };\n }, [\n ptCtx.pointCloudBoxList,\n ptCtx.pointCloudSphereList,\n ptCtx.selectedID,\n ptCtx.valid,\n ptCtx.polygonList,\n ptCtx.lineList,\n ptCtx.mainViewInstance,\n ]);\n\n useEffect(() => {\n toolInstanceRef.current.history = {\n // Origin Result\n pushHistory: (result: any[]) => {\n // Rewrite\n // TODO, The polygon is out of range.\n pushHistoryWithList({ pointCloudBoxList: result });\n },\n initRecord: () => {},\n };\n }, []);\n\n useEffect(() => {\n const toolInstance = ptCtx.topViewInstance?.toolInstance;\n\n if (!toolInstance || checkMode) {\n return;\n }\n // TopViewOperation Emitter\n const syncAttribute = (newAttribute: string) => {\n syncThreeViewsAttribute(newAttribute);\n };\n\n const messageError = (error: string) => {\n message.error(error);\n };\n const messageInfo = (info: string) => {\n message.info(info);\n };\n\n toolInstance.on('syncAttribute', syncAttribute);\n toolInstance.on('messageError', messageError);\n toolInstance.on('messageInfo', messageInfo);\n\n return () => {\n toolInstance.unbind('syncAttribute', syncAttribute);\n toolInstance.unbind('messageError', messageError);\n toolInstance.unbind('messageInfo', messageInfo);\n };\n }, [ptCtx.topViewInstance]);\n\n return null;\n};\n\nexport default connect(a2MapStateToProps, null, null, { context: LabelBeeContext })(\n PointCloudListener,\n);\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAM,CAAE,eAAoB,CAAA,GAAA,KAAA,CAAA;AAM5B,MAAM,qBAAuC,CAAC;AAAA,EAC5C,WAAA;AAA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AAA,EAAM,IAAM,EAAA,CAAE,SAAS,eAC/D,CAAA,CAAA,CAAA,kBAAA,CAAA;;;;"}
@@ -0,0 +1,57 @@
1
+ import useSize from '../../hooks/useSize.js';
2
+ import { a2MapStateToProps } from '../../store/annotation/map.js';
3
+ import { LabelBeeContext } from '../../store/ctx.js';
4
+ import { getClassName } from '../../utils/dom.js';
5
+ import { PointCloud } from '@labelbee/lb-annotation';
6
+ import React, { useRef, useContext, useEffect } from 'react';
7
+ import { connect } from 'react-redux';
8
+ import { PointCloudContext } from './PointCloudContext.js';
9
+ import { usePointCloudViews } from './hooks/usePointCloudViews.js';
10
+
11
+ const PointCloudSegment = ({currentData, config}) => {
12
+ const domRef = useRef(null);
13
+ const {setPtSegmentInstance, ptSegmentInstance} = useContext(PointCloudContext);
14
+ const size = useSize(domRef);
15
+ usePointCloudViews();
16
+ console.log("size", size);
17
+ useEffect(() => {
18
+ var _a;
19
+ if (!(size == null ? void 0 : size.width) || !domRef.current) {
20
+ return;
21
+ }
22
+ const orthographicParams = {
23
+ left: -size.width / 2,
24
+ right: size.width / 2,
25
+ top: size.height / 2,
26
+ bottom: -size.height / 2,
27
+ near: 100,
28
+ far: -100
29
+ };
30
+ const ptSegmentInstance2 = new PointCloud({
31
+ container: domRef.current,
32
+ isOrthographicCamera: true,
33
+ orthographicParams,
34
+ config
35
+ });
36
+ setPtSegmentInstance(ptSegmentInstance2);
37
+ if (currentData == null ? void 0 : currentData.url) {
38
+ debugger;
39
+ ptSegmentInstance2.loadPCDFile((_a = currentData == null ? void 0 : currentData.url) != null ? _a : "");
40
+ }
41
+ }, [size]);
42
+ useEffect(() => {
43
+ var _a;
44
+ if (ptSegmentInstance && currentData.url) {
45
+ console.log(currentData == null ? void 0 : currentData.url);
46
+ ptSegmentInstance.loadPCDFile((_a = currentData == null ? void 0 : currentData.url) != null ? _a : "");
47
+ }
48
+ }, [currentData, ptSegmentInstance]);
49
+ return /* @__PURE__ */ React.createElement("div", {
50
+ className: getClassName("point-cloud-layout"),
51
+ ref: domRef
52
+ });
53
+ };
54
+ var PointCloudSegment$1 = connect(a2MapStateToProps, null, null, {context: LabelBeeContext})(PointCloudSegment);
55
+
56
+ export { PointCloudSegment$1 as default };
57
+ //# sourceMappingURL=PointCloudSegment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PointCloudSegment.js","sources":["../../../src/components/pointCloudView/PointCloudSegment.tsx"],"sourcesContent":["import useSize from '@/hooks/useSize';\nimport { IA2MapStateProps, a2MapStateToProps } from '@/store/annotation/map';\nimport { LabelBeeContext } from '@/store/ctx';\nimport { getClassName } from '@/utils/dom';\nimport { PointCloud } from '@labelbee/lb-annotation';\nimport React, { useContext, useEffect, useRef, useState } from 'react';\nimport { connect } from 'react-redux';\nimport { PointCloudContext } from './PointCloudContext';\nimport { usePointCloudViews } from './hooks/usePointCloudViews';\n\nconst PointCloudSegment: React.FC<IA2MapStateProps> = ({ currentData, config }) => {\n const domRef = useRef<HTMLDivElement>(null);\n const { setPtSegmentInstance, ptSegmentInstance } = useContext(PointCloudContext);\n const size = useSize(domRef);\n const { updatePointCloudSegmentData } = usePointCloudViews();\n\n console.log('size', size);\n useEffect(() => {\n if (!size?.width || !domRef.current) {\n return;\n }\n\n const orthographicParams = {\n left: -size.width / 2,\n right: size.width / 2,\n top: size.height / 2,\n bottom: -size.height / 2,\n near: 100,\n far: -100,\n };\n\n const ptSegmentInstance = new PointCloud({\n container: domRef.current,\n isOrthographicCamera: true,\n orthographicParams,\n config,\n });\n\n setPtSegmentInstance(ptSegmentInstance);\n\n // TODO\n if (currentData?.url) {\n debugger;\n ptSegmentInstance.loadPCDFile(currentData?.url ?? '');\n }\n }, [size]);\n\n // Template just for show\n useEffect(() => {\n if (ptSegmentInstance && currentData.url) {\n console.log( currentData?.url);\n ptSegmentInstance.loadPCDFile(currentData?.url ?? '');\n }\n }, [currentData, ptSegmentInstance]);\n\n return <div className={getClassName('point-cloud-layout')} ref={domRef} />;\n};\n\nexport default connect(a2MapSt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,GAAK,EAAA;AACpB,MAAA,SAAA;AACA,MAAkB,kBAAA,CAAA,WAAA,CAAY,CAAa,EAAA,GAAA,WAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,CAAA,GAAA,KAAb,IAAoB,GAAA,EAAA,GAAA,EAAA,CAAA,CAAA;AAAA,KAAA;AAAA,GAAA,EAEnD,CAAC,IAAA,CAAA,CAAA,CAAA;AAGJ,EAAA,SAAA,CAAU,MAAM;AAhDlB,IAAA,IAAA,EAAA,CAAA;AAiDI,IAAI,IAAA,iBAAA,IAAqB,YAAY,GAAK,EAAA;AACxC,MAAA,OAAA,CAAQ,IAAK,WAAa,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,CAAA,GAAA,CAAA,CAAA;AAC1B,MAAkB,iBAAA,CAAA,WAAA,CAAY,CAAa,EAAA,GAAA,WAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,CAAA,GAAA,KAAb,IAAoB,GAAA,EAAA,GAAA,EAAA,CAAA,CAAA;AAAA,KAAA;AAAA,GAAA,EAEnD,CAAC,WAAa,EAAA,iBAAA,CAAA,CAAA,CAAA;AAEjB,EAAA,2CAAQ,KAAD,EAAA;AAAA,IAAK,WAAW,YAAa,CAAA,oBAAA,CAAA;AAAA,IAAuB,GAAK,EAAA,MAAA;AAAA,GAAA,CAAA,CAAA;AAAA,CAAA,CAAA;AAGlE,0BAAe,QAAQ,iBAAmB,EAAA,IAAA,EAAM,IAAM,EAAA,CAAE,SAAS,eAC/D,CAAA,CAAA,CAAA,iBAAA,CAAA;;;;"}
@@ -1 +1,129 @@
1
- import{PointCloudAnnotation as P}from"@labelbee/lb-annotation";import{getClassName as w}from"../../utils/dom.js";import{PointCloudContainer as v}from"./PointCloudLayout.js";import f,{useRef as y,useEffect as C}from"react";import{EPerspectiveView as V}from"@labelbee/lb-utils";import{PointCloudContext as j}from"./PointCloudContext.js";import{SizeInfoForView as B}from"./PointCloudInfos.js";import{connect as S}from"react-redux";import{a2MapStateToProps as b}from"../../store/annotation/map.js";import{usePointCloudViews as E}from"./hooks/usePointCloudViews.js";import{useSingleBox as I}from"./hooks/useSingleBox.js";import{useSphere as T}from"./hooks/useSphere.js";import D from"./components/EmptyPage/index.js";import N from"../../hooks/useSize.js";import{useTranslation as k}from"react-i18next";import{LabelBeeContext as M}from"../../store/ctx.js";import O from"../../utils/ToolUtils.js";import{useZoom as X}from"./hooks/useZoom.js";const L=(c,l,e=1)=>{const{width:u,height:i}=l,d={x:c.x+u*e/2,y:c.y+i*e/2},r={x:l.width/2,y:l.height/2};return{offsetX:(r.x-d.x)/e,offsetY:-(r.y-d.y)/e}},h=(c,l,e,u,i)=>{const{offsetX:d,offsetY:r}=L(c,e,l);if(i.camera.zoom=l,c){const a=Math.cos(u),o=Math.sin(u),x=d*a,p=d*o,{x:n,y:m,z:t}=i.initCameraPosition;i.camera.position.set(n-x,m-p,t+r)}i.camera.updateProjectionMatrix(),i.render()},U=({config:c,checkMode:l})=>{const e=f.useContext(j),{sideViewUpdateBox:u,sideViewUpdatePoint:i}=E(),{selectedBox:d}=I(),{selectedSphere:r}=T(),a=y(null),o=N(a),{t:x}=k(),{syncSideviewToolZoom:p}=X();return C(()=>{if(a.current){const n={width:a.current.clientWidth,height:a.current.clientHeight},m=new P({container:a.current,size:n,extraProps:{showDirectionLine:!1,forbidAddNew:!0,forbidDelete:!0},config:c,checkMode:l,toolName:O.getPointCloudToolList()});e.setSideViewInstance(m)}},[]),C(()=>{if(!o||!e.sideViewInstance)return;const{toolInstance:n,pointCloudInstance:m}=e.sideViewInstance;n.singleOn("renderZoom",(t,s)=>{if(e.selectedPointCloudBox){h(s,t,o,e.selectedPointCloudBox.rotation,m),p(s,t,o);return}r&&(h(s,t,o,0,m),p(s,t,o))}),n.singleOn("dragMove",({currentPos:t,zoom:s})=>{!e.selectedPointCloudBox&&!r||h(t,s,o,e.selectedPointCloudBox?e.selectedPointCloudBox.rotation:0,m)}),n.singleOn("updatePointByDrag",(t,s)=>{r&&(i==null||i(t,s[0]))}),n.singleOn("updatePolygonByDrag",t=>{if(e.selectedIDs.length===1&&t.length===1){const{newPolygon:s,originPolygon:g}=t[0];u(s,g)}})},[e,o]),C(()=>{var n;(n=e==null?void 0:e.sideViewInstance)==null||n.initSize(o)},[o]),f.createElement(v,{className:w("point-cloud-container","side-view"),title:x("SideView"),toolbar:f.createElement(B,{perspectiveView:V.Left})},f.createElement("div",{className:w("point-cloud-container","bottom-view-content")},f.createElement("div",{className:w("point-cloud-container","core-instance"),ref:a}),!d&&!r&&f.createElement(D,null)))};var Z=S(b,null,null,{context:M})(U);export{Z as default};
1
+ import { PointCloudAnnotation } from '@labelbee/lb-annotation';
2
+ import { getClassName } from '../../utils/dom.js';
3
+ import { PointCloudContainer } from './PointCloudLayout.js';
4
+ import React, { useRef, useEffect } from 'react';
5
+ import { EPerspectiveView } from '@labelbee/lb-utils';
6
+ import { PointCloudContext } from './PointCloudContext.js';
7
+ import { SizeInfoForView } from './PointCloudInfos.js';
8
+ import { connect } from 'react-redux';
9
+ import { a2MapStateToProps } from '../../store/annotation/map.js';
10
+ import { usePointCloudViews } from './hooks/usePointCloudViews.js';
11
+ import { useSingleBox } from './hooks/useSingleBox.js';
12
+ import { useSphere } from './hooks/useSphere.js';
13
+ import EmptyPage from './components/EmptyPage/index.js';
14
+ import useSize from '../../hooks/useSize.js';
15
+ import { useTranslation } from 'react-i18next';
16
+ import { LabelBeeContext } from '../../store/ctx.js';
17
+ import ToolUtils from '../../utils/ToolUtils.js';
18
+ import { useZoom } from './hooks/useZoom.js';
19
+
20
+ const TransferCanvas2WorldOffset = (currentPos, size, zoom = 1) => {
21
+ const {width: w, height: h} = size;
22
+ const canvasCenterPoint = {
23
+ x: currentPos.x + w * zoom / 2,
24
+ y: currentPos.y + h * zoom / 2
25
+ };
26
+ const worldCenterPoint = {
27
+ x: size.width / 2,
28
+ y: size.height / 2
29
+ };
30
+ return {
31
+ offsetX: (worldCenterPoint.x - canvasCenterPoint.x) / zoom,
32
+ offsetY: -(worldCenterPoint.y - canvasCenterPoint.y) / zoom
33
+ };
34
+ };
35
+ const updateSideViewByCanvas2D = (currentPos, zoom, size, rotation, SidePointCloud) => {
36
+ const {offsetX, offsetY} = TransferCanvas2WorldOffset(currentPos, size, zoom);
37
+ SidePointCloud.camera.zoom = zoom;
38
+ if (currentPos) {
39
+ const cos = Math.cos(rotation);
40
+ const sin = Math.sin(rotation);
41
+ const offsetXX = offsetX * cos;
42
+ const offsetXY = offsetX * sin;
43
+ const {x, y, z} = SidePointCloud.initCameraPosition;
44
+ SidePointCloud.camera.position.set(x - offsetXX, y - offsetXY, z + offsetY);
45
+ }
46
+ SidePointCloud.camera.updateProjectionMatrix();
47
+ SidePointCloud.render();
48
+ };
49
+ const PointCloudSideView = ({config, checkMode}) => {
50
+ const ptCtx = React.useContext(PointCloudContext);
51
+ const {sideViewUpdateBox, sideViewUpdatePoint} = usePointCloudViews();
52
+ const {selectedBox} = useSingleBox();
53
+ const {selectedSphere} = useSphere();
54
+ const ref = useRef(null);
55
+ const size = useSize(ref);
56
+ const {t} = useTranslation();
57
+ const {syncSideviewToolZoom} = useZoom();
58
+ useEffect(() => {
59
+ if (ref.current) {
60
+ const size2 = {
61
+ width: ref.current.clientWidth,
62
+ height: ref.current.clientHeight
63
+ };
64
+ const pointCloudAnnotation = new PointCloudAnnotation({
65
+ container: ref.current,
66
+ size: size2,
67
+ extraProps: {showDirectionLine: false, forbidAddNew: true, forbidDelete: true},
68
+ config,
69
+ checkMode,
70
+ toolName: ToolUtils.getPointCloudToolList()
71
+ });
72
+ ptCtx.setSideViewInstance(pointCloudAnnotation);
73
+ }
74
+ }, []);
75
+ useEffect(() => {
76
+ if (!size || !ptCtx.sideViewInstance) {
77
+ return;
78
+ }
79
+ const {toolInstance, pointCloudInstance} = ptCtx.sideViewInstance;
80
+ toolInstance.singleOn("renderZoom", (zoom, currentPos) => {
81
+ if (ptCtx.selectedPointCloudBox) {
82
+ updateSideViewByCanvas2D(currentPos, zoom, size, ptCtx.selectedPointCloudBox.rotation, pointCloudInstance);
83
+ syncSideviewToolZoom(currentPos, zoom, size);
84
+ return;
85
+ }
86
+ if (selectedSphere) {
87
+ updateSideViewByCanvas2D(currentPos, zoom, size, 0, pointCloudInstance);
88
+ syncSideviewToolZoom(currentPos, zoom, size);
89
+ }
90
+ });
91
+ toolInstance.singleOn("dragMove", ({currentPos, zoom}) => {
92
+ if (!ptCtx.selectedPointCloudBox && !selectedSphere) {
93
+ return;
94
+ }
95
+ updateSideViewByCanvas2D(currentPos, zoom, size, ptCtx.selectedPointCloudBox ? ptCtx.selectedPointCloudBox.rotation : 0, pointCloudInstance);
96
+ });
97
+ toolInstance.singleOn("updatePointByDrag", (updatePoint, oldPointList) => {
98
+ if (selectedSphere) {
99
+ sideViewUpdatePoint == null ? void 0 : sideViewUpdatePoint(updatePoint, oldPointList[0]);
100
+ }
101
+ });
102
+ toolInstance.singleOn("updatePolygonByDrag", (updateList) => {
103
+ if (ptCtx.selectedIDs.length === 1 && updateList.length === 1) {
104
+ const {newPolygon, originPolygon} = updateList[0];
105
+ sideViewUpdateBox(newPolygon, originPolygon);
106
+ }
107
+ });
108
+ }, [ptCtx, size]);
109
+ useEffect(() => {
110
+ var _a;
111
+ (_a = ptCtx == null ? void 0 : ptCtx.sideViewInstance) == null ? void 0 : _a.initSize(size);
112
+ }, [size]);
113
+ return /* @__PURE__ */ React.createElement(PointCloudContainer, {
114
+ className: getClassName("point-cloud-container", "side-view"),
115
+ title: t("SideView"),
116
+ toolbar: /* @__PURE__ */ React.createElement(SizeInfoForView, {
117
+ perspectiveView: EPerspectiveView.Left
118
+ })
119
+ }, /* @__PURE__ */ React.createElement("div", {
120
+ className: getClassName("point-cloud-container", "bottom-view-content")
121
+ }, /* @__PURE__ */ React.createElement("div", {
122
+ className: getClassName("point-cloud-container", "core-instance"),
123
+ ref
124
+ }), !selectedBox && !selectedSphere && /* @__PURE__ */ React.createElement(EmptyPage, null)));
125
+ };
126
+ var PointCloudSideView$1 = connect(a2MapStateToProps, null, null, {context: LabelBeeContext})(PointCloudSideView);
127
+
128
+ export { PointCloudSideView$1 as default };
129
+ //# sourceMappingURL=PointCloudSideView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PointCloudSideView.js","sources":["../../../src/components/pointCloudView/PointCloudSideView.tsx"],"sourcesContent":["/**\n * @file PointCloud sideView - React Component\n * @createdate 2022-07-11\n * @author Ron <ron.f.luo@gmail.com>\n */\nimport { PointCloud, PointCloudAnnotation, THybridToolName } from '@labelbee/lb-annotation';\nimport { getClassName } from '@/utils/dom';\nimport { PointCloudContainer } from './PointCloudLayout';\nimport React, { useEffect, useRef } from 'react';\nimport { EPerspectiveView, IPointUnit, UpdatePolygonByDragList } from '@labelbee/lb-utils';\nimport { PointCloudContext } from './PointCloudContext';\nimport { SizeInfoForView } from './PointCloudInfos';\nimport { connect } from 'react-redux';\nimport { a2MapStateToProps, IA2MapStateProps } from '@/store/annotation/map';\nimport { usePointCloudViews } from './hooks/usePointCloudViews';\nimport { useSingleBox } from './hooks/useSingleBox';\nimport { useSphere } from './hooks/useSphere';\nimport EmptyPage from './components/EmptyPage';\nimport useSize from '@/hooks/useSize';\nimport { useTranslation } from 'react-i18next';\nimport { LabelBeeContext } from '@/store/ctx';\nimport ToolUtils from '@/utils/ToolUtils';\nimport { useZoom } from '@/components/pointCloudView/hooks/useZoom';\n\n/**\n * Get the offset from canvas2d-coordinate to world coordinate\n * @param currentPos\n * @param size\n * @param zoom\n * @returns\n */\nconst TransferCanvas2WorldOffset = (\n currentPos: { x: number; y: number },\n size: { width: number; height: number },\n zoom = 1,\n) => {\n const { width: w, height: h } = size;\n\n const canvasCenterPoint = {\n x: currentPos.x + (w * zoom) / 2, // 放大倍数之后的中心点的偏移量\n y: currentPos.y + (h * zoom) / 2,\n };\n\n const worldCenterPoint = {\n x: size.width / 2,\n y: size.height / 2,\n };\n\n return {\n offsetX: (worldCenterPoint.x - canvasCenterPoint.x) / zoom,\n offsetY: -(worldCenterPoint.y - canvasCenterPoint.y) / zoom,\n };\n};\n\nconst updateSideViewByCanvas2D = (\n currentPos: { x: number; y: number },\n zoom: number,\n size: { width: number; height: number },\n rotation: number,\n SidePointCloud: PointCloud,\n) => {\n const { offsetX, offsetY } = TransferCanvas2WorldOffset(currentPos, size, zoom);\n SidePointCloud.camera.zoom = zoom;\n if (currentPos) {\n const cos = Math.cos(rotation);\n const sin = Math.sin(rotation);\n const offsetXX = offsetX * cos;\n const offsetXY = offsetX * sin;\n const { x, y, z } = SidePointCloud.initCameraPosition;\n SidePointCloud.camera.position.set(x - offsetXX, y - offsetXY, z + offsetY);\n }\n SidePointCloud.camera.updateProjectionMatrix();\n SidePointCloud.render();\n};\n\ninterface IProps {\n checkMode?: boolean;\n}\n\nconst PointCloudSideView: React.FC<IA2MapStateProps & IProps> = ({ config, checkMode }) => {\n const ptCtx = React.useContext(PointCloudContext);\n const { sideViewUpdateBox, sideViewUpdatePoint } = usePointCloudViews();\n const { selectedBox } = useSingleBox();\n const { selectedSphere } = useSphere();\n const ref = useRef<HTMLDivElement>(null);\n const size = useSize(ref);\n const { t } = useTranslation();\n const { syncSideviewToolZoom } = useZoom();\n\n useEffect(() => {\n if (ref.current) {\n const size = {\n width: ref.current.clientWidth,\n height: ref.current.clientHeight,\n };\n\n const pointCloudAnnotation = new PointCloudAnnotation({\n container: ref.current,\n size,\n extraProps: { showDirectionLine: false, forbidAddNew: true, forbidDelete: true },\n config,\n checkMode,\n toolName: ToolUtils.getPointCloudToolList() as THybridToolName,\n });\n ptCtx.setSideViewInstance(pointCloudAnnotation);\n // };\n }\n }, []);\n\n useEffect(() => {\n // By the way as an initialization judgment\n if (!size || !ptCtx.sideViewInstance) {\n return;\n }\n\n const { toolInstance, pointCloudInstance } = ptCtx.sideViewInstance;\n\n /**\n * Synchronized 3d point cloud view displacement operations\n *\n * Change Orthographic Camera size\n */\n toolInstance.singleOn('renderZoom', (zoom: number, currentPos: any) => {\n if (ptCtx.selectedPointCloudBox) {\n updateSideViewByCanvas2D(\n currentPos,\n zoom,\n size,\n ptCtx.selectedPointCloudBox.rotation,\n pointCloudInstance,\n );\n syncSideviewToolZoom(currentPos, zoom, size);\n return;\n }\n if (selectedSphere) {\n updateSideViewByCanvas2D(currentPos, zoom, size, 0, pointCloudInstance);\n syncSideviewToolZoom(currentPos, zoom, size);\n }\n });\n\n // Synchronized 3d point cloud view displacement operations\n toolInstance.singleOn('dragMove', ({ currentPos, zoom }: any) => {\n if (!ptCtx.selectedPointCloudBox && !selectedSphere) {\n return;\n }\n updateSideViewByCanvas2D(\n currentPos,\n zoom,\n size,\n ptCtx.selectedPointCloudBox ? ptCtx.selectedPointCloudBox.rotation : 0,\n pointCloudInstance,\n );\n });\n\n toolInstance.singleOn(\n 'updatePointByDrag',\n (updatePoint: IPointUnit, oldPointList: IPointUnit[]) => {\n if (selectedSphere) {\n sideViewUpdatePoint?.(updatePoint, oldPointList[0]);\n }\n },\n );\n\n toolInstance.singleOn('updatePolygonByDrag', (updateList: UpdatePolygonByDragList) => {\n if (ptCtx.selectedIDs.length === 1 && updateList.length === 1) {\n const { newPolygon, originPolygon } = updateList[0];\n sideViewUpdateBox(newPolygon, originPolygon);\n }\n });\n }, [ptCtx, size]);\n\n useEffect(() => {\n // Update Size\n ptCtx?.sideViewInstance?.initSize(size);\n }, [size]);\n\n return (\n <PointCloudContainer\n className={getClassName('point-cloud-container', 'side-view')}\n title={t('SideView')}\n toolbar={<SizeInfoForView perspectiveView={EPerspectiveView.Left} />}\n >\n <div className={getClassName('point-cloud-container', 'bottom-view-content')}>\n <div className={getClassName('point-cloud-container', 'core-instance')} ref={ref} />\n {!selectedBox && !selectedSphere && <EmptyPage />}\n </div>\n </PointCloudContainer>\n );\n};\n\nexport default connect(a2MapStateToProps, null, null, { context: LabelBeeContext })(\n PointCloudSideView,\n);\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AA+BA,MAAM,0BAA6B,GAAA,CACjC,UAC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